Fwd: Java core dump on freeBSD 12.2

From: Simeo Reig <reig.simeo_at_gmail.com>
Date: Mon, 12 Jul 2021 17:59:44 +0200
Hi again,

  You are right. JDBC driver from xerial seems to have some issues in
freebsd. Version 3.32.X versions works ok, but above it (right now last one
is 3.36.01 <https://github.com/xerial/sqlite-jdbc/releases>) don't want to
connect with DB: "DB corrupt" or "java.lang.UnsatisfiedLinkError: 'int
org.sqlite.core.NativeDB.limit(int, int)'" it depends on version.  Db isn't
corrupt, it has the same sha1 in the Linux machine and I have tested it
with pragma integrity_check on freeBSD. I needed to have it online and I
downgraded jdbc to last 3.32 version.

I have never worked with lldd. Could you be more specific?

Error with last xerial version:

2021-07-12 03:16:11,956 WARNING
[org.omnifaces.cdi.eager.EagerBeansRepository] (ServerService Thread Pool
-- 150) Could not instantiate eager application scoped beans. Possibly the
CDI application scope is not active. This is known to be the case in
certain Tomcat and Jetty based configurations.:
org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke
public void com.adronica.application.InitApp.init() on
com.adronica.application.InitApp_at_55db987e
at org.jboss.weld.core_at_3.1.6.Final
//org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:85)
at org.jboss.weld.core_at_3.1.6.Final
//org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postConstruct(DefaultLifecycleCallbackInvoker.java:66)
at org.jboss.weld.core_at_3.1.6.Final
//org.jboss.weld.injection.producer.BasicInjectionTarget.postConstruct(BasicInjectionTarget.java:122)
at org.jboss.weld.core_at_3.1.6.Final
//org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:174)
at org.jboss.weld.core_at_3.1.6.Final
//org.jboss.weld.contexts.AbstractContext.get(AbstractContext.java:96)
at
deployment.botTelegramDetectius.war//org.omnifaces.util.BeansLocal.getInstance(BeansLocal.java:131)
at
deployment.botTelegramDetectius.war//org.omnifaces.cdi.eager.EagerBeansRepository.instantiateBeans(EagerBeansRepository.java:136)
at
deployment.botTelegramDetectius.war//org.omnifaces.cdi.eager.EagerBeansRepository.instantiateApplicationScoped(EagerBeansRepository.java:106)
at
deployment.botTelegramDetectius.war//org.omnifaces.cdi.eager.EagerBeansRepository$Proxy$_$$_WeldClientProxy.instantiateApplicationScoped(Unknown
Source)
at
deployment.botTelegramDetectius.war//org.omnifaces.cdi.eager.EagerBeansRepository.instantiateApplicationScopedAndRegisterListenerIfNecessary(EagerBeansRepository.java:80)
at
deployment.botTelegramDetectius.war//org.omnifaces.ApplicationListener.contextInitialized(ApplicationListener.java:82)
at io.undertow.servlet_at_2.2.5.Final
//io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)
at io.undertow.servlet_at_2.2.5.Final
//io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:219)
at io.undertow.servlet_at_2.2.5.Final
//io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:187)
at io.undertow.servlet_at_2.2.5.Final
//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
at io.undertow.servlet_at_2.2.5.Final
//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at org.wildfly.extension.undertow_at_23.0.2.Final
//org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
at org.wildfly.extension.undertow_at_23.0.2.Final
//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
at org.wildfly.extension.undertow_at_23.0.2.Final
//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
at org.wildfly.extension.undertow_at_23.0.2.Final
//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
at org.wildfly.extension.undertow_at_23.0.2.Final
//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
at io.undertow.servlet_at_2.2.5.Final
//io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:255)
at org.wildfly.extension.undertow_at_23.0.2.Final
//org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:96)
at org.wildfly.extension.undertow_at_23.0.2.Final
//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78)
at
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.jboss.threads_at_2.4.0.Final
//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads_at_2.4.0.Final
//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at org.jboss.threads_at_2.4.0.Final
//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads_at_2.4.0.Final
//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.base/java.lang.Thread.run(Thread.java:829)
at org.jboss.threads_at_2.4.0.Final
//org.jboss.threads.JBossThread.run(JBossThread.java:513)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.jboss.weld.core_at_3.1.6.Final
//org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:83)
... 31 more

*Caused by: java.lang.UnsatisfiedLinkError: 'int
org.sqlite.core.NativeDB.limit(int, int)' at
deployment.botTelegramDetectius.war//org.sqlite.core.NativeDB.limit(Native
Method)*
at
deployment.botTelegramDetectius.war//org.sqlite.SQLiteConnection.setLimit(SQLiteConnection.java:366)
at
deployment.botTelegramDetectius.war//org.sqlite.SQLiteConfig.apply(SQLiteConfig.java:125)
at
deployment.botTelegramDetectius.war//org.sqlite.SQLiteConnection.<init>(SQLiteConnection.java:65)
at
deployment.botTelegramDetectius.war//org.sqlite.jdbc3.JDBC3Connection.<init>(JDBC3Connection.java:28)
at
deployment.botTelegramDetectius.war//org.sqlite.jdbc4.JDBC4Connection.<init>(JDBC4Connection.java:21)
at
deployment.botTelegramDetectius.war//org.sqlite.JDBC.createConnection(JDBC.java:115)
at
deployment.botTelegramDetectius.war//org.sqlite.JDBC.connect(JDBC.java:90)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:251)
at
deployment.botTelegramDetectius.war//com.adronica.sqlite.Sqlite.connect(Sqlite.java:32)
at
deployment.botTelegramDetectius.war//com.adronica.sqlite.Sqlite.llistatMissatgesPermanents(Sqlite.java:91)
at
deployment.botTelegramDetectius.war//com.adronica.telegram.PhotoBot.onRegister(PhotoBot.java:802)
at
deployment.botTelegramDetectius.war//org.telegram.telegrambots.meta.TelegramBotsApi.registerBot(TelegramBotsApi.java:120)
at
deployment.botTelegramDetectius.war//com.adronica.telegram.InitBot.incialitzaBot(InitBot.java:19)
at
deployment.botTelegramDetectius.war//com.adronica.application.InitApp.init(InitApp.java:23)
... 36 more

Thanks again

SimeĆ³ Reig


Missatge de Michael Osipov <1983-01-06_at_gmx.net> del dia dl., 12 de jul.
2021 a les 17:14:

> Am 2021-07-12 um 16:17 schrieb Simeo Reig:
> > Hello,
> >
> >    Hello, I send you a java core Dump (*1). It occurs when a wildfly 23
> > tries to deploy a war with a reference to a sqlite file db and it does
> not
> > exist. (Same wildfly version, with same war works perfectly under Linux)
>
> Can you share the stack trace and show from lldb "bt all"?
> The SQLite JDBC driver from Xerial should either fail or libsqlite3
> should tell that the DB does not exist.
>
> M
>
>
Received on Mon Jul 12 2021 - 15:59:44 UTC

Original text of this message