Why does this cause an exception when I open a CDatabase (ACCDB) - exception

Sample project:
https://www.dropbox.com/s/ezwe48gpezrr19u/MFCApplicationDB.zip?dl=0
I am using VS 2022. Has basic code in the dialogs OnInitDialog:
CDatabase db;
if (db.OpenEx(_T("Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=D:\\Test.ACCDB;Pwd="), CDatabase::noOdbcDialog))
{
AfxMessageBox(_T("DB Opened"));
db.Close();
}
When I run this in DEBUG and simply start it, it opens the DB and then I shut down the application I get an exception:
I am building x64.
FYI:
My PC is:
Windows 11
Microsoft 365 64 bit
The callstack is:
Mso20win32client.dll!00007ff9d322da31() Unknown
Mso20win32client.dll!00007ff9d322d6c1() Unknown
Mso20win32client.dll!00007ff9d32b8cea() Unknown
Mso20win32client.dll!00007ff9d32b8c9a() Unknown
Mso20win32client.dll!00007ff9d334978a() Unknown
Mso20win32client.dll!00007ff9d3349754() Unknown
Mso20win32client.dll!00007ff9d31f5624() Unknown
Mso20win32client.dll!00007ff9d336485f() Unknown
Mso20win32client.dll!00007ff9d335fdae() Unknown
Mso20win32client.dll!00007ff9d335fd8e() Unknown
Mso20win32client.dll!00007ff9d33748e0() Unknown
Mso20win32client.dll!00007ff9d31f5624() Unknown
Mso20win32client.dll!00007ff9d3315b31() Unknown
Mso20win32client.dll!00007ff9d3315a94() Unknown
Mso20win32client.dll!00007ff9d337da31() Unknown
Mso20win32client.dll!00007ff9d31f5624() Unknown
Mso20win32client.dll!00007ff9d333c1d3() Unknown
Mso20win32client.dll!00007ff9d333c1ae() Unknown
Mso20win32client.dll!00007ff9d336c8dc() Unknown
Mso20win32client.dll!00007ff9d336c86d() Unknown
ucrtbase.dll!<lambda>(void)() Unknown
ucrtbase.dll!__crt_seh_guarded_call<int>::operator()<<lambda_7777bce6b2f8c936911f934f8298dc43>,<lambda>(void) &,<lambda_3883c3dff614d5e0c5f61bb1ac94921c>>() Unknown
ucrtbase.dll!_execute_onexit_table() Unknown
Mso20win32client.dll!00007ff9d3385501() Unknown
Mso20win32client.dll!00007ff9d338562a() Unknown
ntdll.dll!00007ffaaa660277() Unknown
ntdll.dll!00007ffaaa6747f0() Unknown
ntdll.dll!00007ffaaa67465d() Unknown
kernel32.dll!00007ffaa941c66b() Unknown
ucrtbased.dll!00007ff9d3b31bba() Unknown
ucrtbased.dll!00007ff9d3b31b65() Unknown
ucrtbased.dll!00007ff9d3b31f06() Unknown
> MFCApplicationDB.exe!__scrt_common_main_seh() Line 297 C++
MFCApplicationDB.exe!__scrt_common_main() Line 331 C++
MFCApplicationDB.exe!wWinMainCRTStartup(void * __formal) Line 17 C++
kernel32.dll!00007ffaa94154e0() Unknown
ntdll.dll!00007ffaaa62485b() Unknown
In the comments it was suggested to load symbols, but I don't have Mso20Win32Client.pdb.
If I trace into clicking the Ok button to shutdown it eventually gets to this closing } in system code:
#pragma warning(suppress: 4985)
{
// call shared/exported WinMain
return AfxWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
}
Went it hits that it crashes.

Related

MySQL Sink Connector - JsonConverter - DataException: Unknown schema type: null

I have created MySQL sink connector and successfully run and i see the logs and got 200 response, But the sink connector not able to push the data into mysql db (data is available in the topic)
{
"name":"mysql-sink-connector",
"config":{ "tasks.max":"2",
"batch.size":"1000",
"batch.max.rows":"1000",
"poll.interval.ms":"500",
"connector.class":"io.confluent.connect.jdbc.JdbcSinkConnector",
"connection.url":"jdbc:mysql://mysql.azure.com:3306/db_test_dev",
"table.name.format":"tbl_clients_merchants",
"topics":"createorder",
"connection.user":"user",
"connection.password":"password",
"auto.create":"true",
"auto.evolve":"true",
"value.converter":"org.apache.kafka.connect.json.JsonConverter",
"value.converter.schemas.enable":"true",
"key.converter":"org.apache.kafka.connect.json.JsonConverter",
"key.converter.schemas.enable":"true"
}}
getting an error
[2021-07-29 09:41:03,157] ERROR WorkerSinkTask{id=jdbc-mysql-sink-connector-1} Task threw an uncaught and unrecoverable exception (org.apache.kafka.connect.runtime.WorkerTask:177) org.apache.kafka.connect.errors.ConnectException: Tolerance exceeded in error handler
at org.apache.kafka.connect.runtime.errors.RetryWithToleranceOperator.execAndHandleError(RetryWithToleranceOperator.java:178)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.kafka.connect.errors.DataException: Converting byte[] to Kafka Connect data failed due to serialization error:
at org.apache.kafka.connect.json.JsonConverter.toConnectData(JsonConverter.java:344)
at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.kafka.connect.errors.DataException: Unknown schema type: null
at org.apache.kafka.connect.json.JsonConverter.convertToConnect(JsonConverter.java:743
at org.apache.kafka.connect.runtime.errors.RetryWithToleranceOperator.execAndHandleError(RetryWithToleranceOperator.java:162) ... 13 more
[2021-07-29 13:26:11,347] ERROR WorkerSinkTask{id=mysql-sink-connector-0} Task is being killed and will not recover until manually restarted (org.apache.kafka.connect.runtime.WorkerTask:178)
As the error suggests, you have null tombstone records in the topic, which cannot be mapped to any MySQL columns since there are no field names.
Option 1) Fix your producer to not send these messages
Option 2) Filter them in Connect
For example,
"transforms": "Filter",
"transforms.Filter.type": "org.apache.kafka.connect.transforms.Filter",
"transforms.Filter.predicate" : "DropNull",
"predicates" : "DropNull",
"predicates.DropNull.type": "org.apache.kafka.connect.transforms.predicates.RecordIsTombstone"

node.js sequelize - mysql Unkown database problem

I'm trying to make a website by using node.js, mysql and sequelize with my friends, so I downloaded database files my friend made.
But I cannot create and recognize database table.
How can I fix this problem..?
I already tried " sequelize db:create " on the server terminal.
The error codes I got are
{ SequelizeConnectionError: Unknown database 'database_development'
at ...
name: 'SequelizeConnectionError',
parent:
{ Error: Unknown database 'database_development'
at ....
code: 'ER_BAD_DB_ERROR',
errno: 1049,
sqlState: '42000',
sqlMessage: 'Unknown database \'database_development\'' },
original:
{ Error: Unknown database 'database_development'
at .....
code: 'ER_BAD_DB_ERROR',
errno: 1049,
sqlState: '42000',
sqlMessage: 'Unknown database \'database_development\'' } }
use following command to create CREATE DATABASE IF NOT EXISTS <db_name>;

ebtables.c:61:3: error: implicit declaration of function 'xt_compat_calc_jump' [-Werror=implicit-function-declaration]

I am getting the following exception while building the recovery for a lineageos project and need some help diagnosing and resolving the issue
Device tree:= https://github.com/darran-kelinske-fivestars/android_device_lenovo_tb8504f/tree/lineage-15.1
Vendor tree:= https://github.com/darran-kelinske-fivestars/android_vendor_lenovo_tb8504f/tree/lineage-15.1
Kernel source:= https://github.com/darran-kelinske-fivestars/android_kernel_lenovo_tb8504f/tree/lineage-15.1
ROM Source:= https://github.com/LineageOS/android
Command: source build/envsetup.sh && breakfast tb8504f && repo sync --force-sync -q -j6 && mka recoveryimage -j6 | tee recovery.log
../../../../../../kernel/lenovo/msm8917/net/bridge/netfilter/ebtables.c: In function 'ebt_standard_compat_from_user':
../../../../../../kernel/lenovo/msm8917/net/bridge/netfilter/ebtables.c:61:3: error: implicit declaration of function 'xt_compat_calc_jump' [-Werror=implicit-function-declaration]
v += xt_compat_calc_jump(NFPROTO_BRIDGE, v);
^
../../../../../../kernel/lenovo/msm8917/net/bridge/netfilter/ebtables.c: At top level:
../../../../../../kernel/lenovo/msm8917/net/bridge/netfilter/ebtables.c:76:15: error: variable 'ebt_standard_target' has initializer but incomplete type
static struct xt_target ebt_standard_target = {
^
../../../../../../kernel/lenovo/msm8917/net/bridge/netfilter/ebtables.c:77:2: error: unknown field 'name' specified in initializer
.name = "standard",
^
../../../../../../kernel/lenovo/msm8917/net/bridge/netfilter/ebtables.c:77:2: warning: excess elements in struct initializer
error, forbidden warning: ebtables.c:77
CC net/core/gen_estimator.o
/home/lineageos/kernel/lenovo/msm8917/scripts/Makefile.build:257: recipe for target 'net/bridge/netfilter/ebtables.o' failed
make[4]: *** [net/bridge/netfilter/ebtables.o] Error 1
/home/lineageos/kernel/lenovo/msm8917/scripts/Makefile.build:402: recipe for target 'net/bridge/netfilter' failed
make[3]: *** [net/bridge/netfilter] Error 2
/home/lineageos/kernel/lenovo/msm8917/scripts/Makefile.build:402: recipe for target 'net/bridge' failed
make[2]: *** [net/bridge] Error 2
make[2]: *** Waiting for unfinished jobs....
Full log:
https://pastebin.com/v2ZsfRuc
I resolved this issue by replacing the source in the include directory of this project with the include directory of another project.
I replaced the source with the source from this directory:
https://github.com/HighwayStar/android_kernel_lenovo_tb8704/tree/tab4-8plus-LA.UM.5.6.r1-0/include

Fatal error: Uncaught Error: Call to a member function exists() on null in

when I open myPhpAdmin of xampp on mac, it gives
Fatal error: Uncaught Error: Call to a member function exists()
on null in /opt/lampp/phpmyadmin/libraries/classes/DatabaseInterface.php:1544
Stack trace: #0
/opt/lampp/phpmyadmin/libraries/classes/DatabaseInterface.php(2477):
PhpMyAdmin\DatabaseInterface->postConnectControl() #1
/opt/lampp/phpmyadmin/libraries/common.inc.php(358):
PhpMyAdmin\DatabaseInterface->connect(257) #2
/opt/lampp/phpmyadmin/index.php(26):
require_once('/opt/lampp/phpm...') #3 {main}
thrown in
/opt/lampp/phpmyadmin/libraries/classes/DatabaseInterface.php
on line 1544
Do you know what I should do?

Error in building itk with GDCM git repository

I build ITK with gdcm official release for windows. But its not having some of file that I'm using in further coding. So I have to use git version of gdcm cause its having those which I needed but following error encountered when I am trying to build ITK with ITK_USE_SYSTEM_GDCM and using gdcm git version to build gdcm bin.
>------ Build started: Project: ITKIOGDCM, Configuration: Debug Win32 ------
80>Compiling...
80>itkGDCMImageIO.cxx
80>..\..\..\..\..\src\Modules\IO\GDCM\src\itkGDCMImageIO.cxx(41) : fatal error C1083: Cannot open include file: 'gdcmImageHelper.h': No such file or directory
80>itkGDCMSeriesFileNames.cxx
80>D:\ITK\src\Modules\IO\GDCM\include\itkGDCMSeriesFileNames.h(154) : error C2664: 'void gdcm::SerieHelper::AddRestriction(const gdcm::TagKey &)' : cannot convert parameter 1 from 'const std::string' to 'const gdcm::TagKey &'
80> Reason: cannot convert from 'const std::string' to 'const gdcm::TagKey'
80> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
80>..\..\..\..\..\src\Modules\IO\GDCM\src\itkGDCMSeriesFileNames.cxx(29) : error C2248: 'gdcm::SerieHelper::SerieHelper' : cannot access protected member declared in class 'gdcm::SerieHelper'
80> D:\GDCM\gdcm\src\gdcmSerieHelper.h(198) : see declaration of 'gdcm::SerieHelper::SerieHelper'
80> D:\GDCM\gdcm\src\gdcmSerieHelper.h(64) : see declaration of 'gdcm::SerieHelper'
80>..\..\..\..\..\src\Modules\IO\GDCM\src\itkGDCMSeriesFileNames.cxx(160) : error C2027: use of undefined type 'gdcm::File'
80> D:\GDCM\gdcm\src\gdcmSerieHelper.h(34) : see declaration of 'gdcm::File'
80>..\..\..\..\..\src\Modules\IO\GDCM\src\itkGDCMSeriesFileNames.cxx(160) : error C2227: left of '->IsReadable' must point to class/struct/union/generic type
80>..\..\..\..\..\src\Modules\IO\GDCM\src\itkGDCMSeriesFileNames.cxx(163) : error C2027: use of undefined type 'gdcm::File'
80> D:\GDCM\gdcm\src\gdcmSerieHelper.h(34) : see declaration of 'gdcm::File'
80>..\..\..\..\..\src\Modules\IO\GDCM\src\itkGDCMSeriesFileNames.cxx(163) : error C2227: left of '->GetFileName' must point to class/struct/union/generic type
80>..\..\..\..\..\src\Modules\IO\GDCM\src\itkGDCMSeriesFileNames.cxx(166) : error C2027: use of undefined type 'gdcm::File'
80> D:\GDCM\gdcm\src\gdcmSerieHelper.h(34) : see declaration of 'gdcm::File'
80>..\..\..\..\..\src\Modules\IO\GDCM\src\itkGDCMSeriesFileNames.cxx(166) : error C2227: left of '->GetFileName' must point to class/struct/union/generic type
80>itkGDCMImageIOFactory.cxx
80>Generating Code...
80>Build log was saved at "file://d:\ITK\binGDCM\Modules\IO\GDCM\src\ITKIOGDCM.dir\Debug\BuildLog.htm"
80>ITKIOGDCM - 9 error(s), 0 warning(s)
Please help.
You are mixing the very old and deprecated GDCM 1.x with GDCM 2.x. They are actually API incompatible.