java.lang.LinkageError, but only sometimes
by kennywest
Dear list,
We have an application (A) deployed on JBoss 7.1.1 accepting commands (CQRS,
but only C and Q :) ). A console application (B) is sending a large volume
of commands to create entities in A. Entities in A are validated by Drools
(plain drl files, configured in spring using drools-spring). Most of the
time this works just fine. But sometimes, we get the following exception:
java.lang.LinkageError: loader (instance of
org/drools/rule/JavaDialectRuntimeData$PackageClassLoader): attempted
duplicate class definition for name:
"a/b/c/Rule_person_unique___name_656ee3db19d34e689d95e2d6b2be67b6"
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_30]
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
[rt.jar:1.6.0_30]
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
[rt.jar:1.6.0_30]
at
org.drools.rule.JavaDialectRuntimeData$PackageClassLoader.fastFindClass(JavaDialectRuntimeData.java:615)
[drools-core-5.4.0.Final.jar:5.4.0.Final]
at
org.drools.util.CompositeClassLoader$CachingLoader.load(CompositeClassLoader.java:254)
[knowledge-api-5.4.0.Final.jar:5.4.0.Final]
at
org.drools.util.CompositeClassLoader$CachingLoader.load(CompositeClassLoader.java:237)
[knowledge-api-5.4.0.Final.jar:5.4.0.Final]
at
org.drools.util.CompositeClassLoader.loadClass(CompositeClassLoader.java:88)
[knowledge-api-5.4.0.Final.jar:5.4.0.Final]
at java.lang.ClassLoader.loadClass(ClassLoader.java:295) [rt.jar:1.6.0_30]
at java.lang.ClassLoader.loadClass(ClassLoader.java:247) [rt.jar:1.6.0_30]
at
a.b.c.Rule_gg___unique___name_656ee3db19d34e689d95e2d6b2be67b6Eval0InvokerGenerated.evaluate(Unknown
Source)
at
a.b.c.Rule_gg___unique___name_656ee3db19d34e689d95e2d6b2be67b6Eval0Invoker.evaluate(Unknown
Source)
at org.drools.rule.EvalCondition.isAllowed(EvalCondition.java:114)
[drools-core-5.4.0.Final.jar:5.4.0.Final]
Any idea where this is coming from or what's causing this.
We are using:
- JBoss 7.1.1
- drools 5.4.0.Final
- jdk 1.6u30
- Windows 7 64 bit
regards,
Kenneth
--
View this message in context: http://drools.46999.n3.nabble.com/java-lang-LinkageError-but-only-sometim...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years
Re: [rules-users] ArrayIndexOutOfBoundsException in MVELCompilationUnit
by Stephen Masters
Actually please ignore. I temporarily upgraded to 5.4 which identified a bug in a DSL. With that fixed, I was able to downgraded again.
Thanks anyway!
Steve
Stephen Masters <stephen.masters(a)me.com> wrote:
>Hi folks,
>
>I seem to have come across an issue with hitting an ArrayIndexOutOfBoundsException:3 during an insert. It seems to depend on how many other facts have already been inserted.
>
>This is on 5.3 Final.
>
>Can anybody give me any pointers on how to diagnose such an issue?
>
>Many thanks
>
>Steve
>_______________________________________________
>rules-users mailing list
>rules-users(a)lists.jboss.org
>https://lists.jboss.org/mailman/listinfo/rules-users
12 years
Problem with guvnor db mysql jndi
by Leonardo Soubeste
Hello everyone,
I'm trying to use Guvnor repository with mysql. I'm using JBoss7.
I configured the datasource as jndi resource like this:
<datasource jta="true" jndi-name="java:jboss/datasources/guvnor"
pool-name="guvnor" enabled="true" use-java-context="true" use-ccm="true">
<connection-url>jdbc:mysql://localhost:3306/guvnor</connection-url>
<driver>com.mysql</driver>
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
<pool>
<min-pool-size>10</min-pool-size>
<max-pool-size>100</max-pool-size>
<prefill>true</prefill>
</pool>
<security>
<user-name>root</user-name>
<password>password</password>
</security>
<statement>
<prepared-statement-cache-size>32</prepared-statement-cache-size>
<share-prepared-statements>true</share-prepared-statements>
</statement>
</datasource>
Now, when I run guvnor I get this exception:
Caused by: java.sql.SQLException: You cannot set autocommit during a managed
transaction!
at
org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnection.setJdbcAutoCommit(BaseWrapperManagedConnection.java:888)
at
org.jboss.jca.adapters.jdbc.WrappedConnection.setAutoCommit(WrappedConnection.java:715)
at
org.apache.jackrabbit.core.util.db.ConnectionHelper.getConnection(ConnectionHelper.java:395)
[jackrabbit-core-2.2.8.jar:2.2.8]
at
org.apache.jackrabbit.core.util.db.ConnectionHelper.reallyExec(ConnectionHelper.java:351)
[jackrabbit-core-2.2.8.jar:2.2.8]
at
org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:339)
[jackrabbit-core-2.2.8.jar:2.2.8]
I think is related to the <transaction-isolation> tag. Any help?
I couldn't find any example of how to configure this. Without using JNDI it
works.
Thanks in advance
--
View this message in context: http://drools.46999.n3.nabble.com/Problem-with-guvnor-db-mysql-jndi-tp402...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years
Re: [rules-users] Unable to download the deployment files pointed in the Guvnor documentation pages.
by EvelthonPatrickios@tsys.com
Drools Guvnor Documentation for PDF points to:
http://docs.jboss.org/drools/release/5.5.0.Final/drools-guvnor-docs/pdf/
drools-guvnor-docs.pdf
where it SHOULD point to:
http://docs.jboss.org/drools/release/5.5.0.Final/drools-guvnor-docs/pdf/
guvnor-docs.pdf
(or change the target file name)
Same is true for some of the previous versions. (5.5.0.CR1, 5.4.0, etc)
Evelthon
-----------------------------------------
The information contained in this communication (including any
attachments hereto) is confidential and is intended solely for the
personal and confidential use of the individual or entity to whom
it is addressed. If the reader of this message is not the intended
recipient or an agent responsible for delivering it to the intended
recipient, you are hereby notified that you have received this
communication in error and that any review, dissemination, copying,
or unauthorized use of this information, or the taking of any
action in reliance on the contents of this information is strictly
prohibited. If you have received this communication in error,
please notify us immediately by e-mail, and delete the original
message. Thank you
12 years
ArrayIndexOutOfBoundsException in MVELCompilationUnit
by Stephen Masters
Hi folks,
I seem to have come across an issue with hitting an ArrayIndexOutOfBoundsException:3 during an insert. It seems to depend on how many other facts have already been inserted.
This is on 5.3 Final.
Can anybody give me any pointers on how to diagnose such an issue?
Many thanks
Steve
12 years
Re: [rules-users] Unable to download the deployment files pointed in the Guvnor documentation pages.
by milen igrachev
Hi,
the link still seems broken to me, but the other link you gave me did the trick.
Thanks a lot.
Best Regards,
Milen
-------- Оригинално писмо --------
От: Michael Anstis michael.anstis(a)gmail.com
Относно: Re: [rules-users] Unable to download the deployment files pointed
in the Guvnor documentation pages.
До: Rules Users List
Изпратено на: Сряда, 2012, Ноември 21 12:08:20 EET
I have correct the link in the documentation.
5.4.0.Final can be obtained from
http://download.jboss.org/drools/release/ which is included within the the "Other downloads" section of my original link.
On 21 November 2012 09:57, Michael Anstis
michael.anstis(a)gmail.com > wrote:
Hi,
I appears the download link in the documentation is broken.
You can download from here:
http://www.jboss.org/drools/downloads
With kind regards,
Mike
On 21 November 2012 09:38, milen igrachev
igrachev(a)abv.bg > wrote:
Hi,
Let me first say that I am new to Guvnor, but the functionality which it present seems to be really good and just the thing that I need at the moment.
So I decided to give it a try and see it in action. I began to read the documentation and the "Installation" section in it:
http://docs.jboss.org/drools/release/5.4.0.Final/drools-guvnor-docs/html_... (I am trying to use guvnor-5.4.0)
And there is a link there for deployment files download, which i failed to download since yesterday.
Can you please take a look in it and tell me if the files are moved or if there is a problem with the server they are hosted on?
Big thanks for your support!
Best Regards,
Milen Igrachev
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
12 years