Date: Mon, 12 Jul 2021 17:59:44 +0200 From: Simeo Reig <reig.simeo@gmail.com> To: freebsd-java@freebsd.org Subject: Fwd: Java core dump on freeBSD 12.2 Message-ID: <CAJJNRpOjShfuKjjCQ0OGR86hbHM61UHz2ohQsQBWBRSi%2BZogrQ@mail.gmail.com> In-Reply-To: <CAJJNRpObe3MEZTjCbsaJWC%2BBjKgYFQbVGXAFynPqrsBukN9ULg@mail.gmail.com> References: <CAJJNRpNasQD==m7G_FB8cCcgCDJjPehj53NFz54zGsRWzwpTAw@mail.gmail.com> <261b4107-b2cb-8008-e092-8b05300ef337@gmx.net> <CAJJNRpObe3MEZTjCbsaJWC%2BBjKgYFQbVGXAFynPqrsBukN9ULg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000050593e05c6ef378c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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@55db987e at org.jboss.weld.core@3.1.6.Final //org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeM= ethods(DefaultLifecycleCallbackInvoker.java:85) at org.jboss.weld.core@3.1.6.Final //org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postCon= struct(DefaultLifecycleCallbackInvoker.java:66) at org.jboss.weld.core@3.1.6.Final //org.jboss.weld.injection.producer.BasicInjectionTarget.postConstruct(Basi= cInjectionTarget.java:122) at org.jboss.weld.core@3.1.6.Final //org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:174) at org.jboss.weld.core@3.1.6.Final //org.jboss.weld.contexts.AbstractContext.get(AbstractContext.java:96) at deployment.botTelegramDetectius.war//org.omnifaces.util.BeansLocal.getInsta= nce(BeansLocal.java:131) at deployment.botTelegramDetectius.war//org.omnifaces.cdi.eager.EagerBeansRepo= sitory.instantiateBeans(EagerBeansRepository.java:136) at deployment.botTelegramDetectius.war//org.omnifaces.cdi.eager.EagerBeansRepo= sitory.instantiateApplicationScoped(EagerBeansRepository.java:106) at deployment.botTelegramDetectius.war//org.omnifaces.cdi.eager.EagerBeansRepo= sitory$Proxy$_$$_WeldClientProxy.instantiateApplicationScoped(Unknown Source) at deployment.botTelegramDetectius.war//org.omnifaces.cdi.eager.EagerBeansRepo= sitory.instantiateApplicationScopedAndRegisterListenerIfNecessary(EagerBean= sRepository.java:80) at deployment.botTelegramDetectius.war//org.omnifaces.ApplicationListener.cont= extInitialized(ApplicationListener.java:82) at io.undertow.servlet@2.2.5.Final //io.undertow.servlet.core.ApplicationListeners.contextInitialized(Applicat= ionListeners.java:187) at io.undertow.servlet@2.2.5.Final //io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerIm= pl.java:219) at io.undertow.servlet@2.2.5.Final //io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerIm= pl.java:187) at io.undertow.servlet@2.2.5.Final //io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(Se= rvletRequestContextThreadSetupAction.java:42) at io.undertow.servlet@2.2.5.Final //io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClas= sLoaderSetupAction.java:43) at org.wildfly.extension.undertow@23.0.2.Final //org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.= lambda$create$0(SecurityContextThreadSetupAction.java:105) at org.wildfly.extension.undertow@23.0.2.Final //org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$U= ndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java= :1530) at org.wildfly.extension.undertow@23.0.2.Final //org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$U= ndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java= :1530) at org.wildfly.extension.undertow@23.0.2.Final //org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$U= ndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java= :1530) at org.wildfly.extension.undertow@23.0.2.Final //org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$U= ndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java= :1530) at io.undertow.servlet@2.2.5.Final //io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerIm= pl.java:255) at org.wildfly.extension.undertow@23.0.2.Final //org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start= Context(UndertowDeploymentService.java:96) at org.wildfly.extension.undertow@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.jav= a:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.jboss.threads@2.4.0.Final //org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoader= SavingRunnable.java:35) at org.jboss.threads@2.4.0.Final //org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.jav= a:1990) at org.jboss.threads@2.4.0.Final //org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueu= eExecutor.java:1486) at org.jboss.threads@2.4.0.Final //org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecu= tor.java:1377) at java.base/java.lang.Thread.run(Thread.java:829) at org.jboss.threads@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(NativeMethod= AccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Delegati= ngMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.jboss.weld.core@3.1.6.Final //org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeM= ethods(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(S= QLiteConnection.java:366) at deployment.botTelegramDetectius.war//org.sqlite.SQLiteConfig.apply(SQLiteCo= nfig.java:125) at deployment.botTelegramDetectius.war//org.sqlite.SQLiteConnection.<init>(SQL= iteConnection.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(Sql= ite.java:32) at deployment.botTelegramDetectius.war//com.adronica.sqlite.Sqlite.llistatMiss= atgesPermanents(Sqlite.java:91) at deployment.botTelegramDetectius.war//com.adronica.telegram.PhotoBot.onRegis= ter(PhotoBot.java:802) at deployment.botTelegramDetectius.war//org.telegram.telegrambots.meta.Telegra= mBotsApi.registerBot(TelegramBotsApi.java:120) at deployment.botTelegramDetectius.war//com.adronica.telegram.InitBot.incialit= zaBot(InitBot.java:19) at deployment.botTelegramDetectius.war//com.adronica.application.InitApp.init(= InitApp.java:23) ... 36 more Thanks again Sime=C3=B3 Reig Missatge de Michael Osipov <1983-01-06@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 > > --00000000000050593e05c6ef378c--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJJNRpOjShfuKjjCQ0OGR86hbHM61UHz2ohQsQBWBRSi%2BZogrQ>