[jBPM] - Re: JBPM4.4 application deployment/startup issue in Tomcat
by Hendra Jaya
Hendra Jaya [https://community.jboss.org/people/jancrot] created the discussion
"Re: JBPM4.4 application deployment/startup issue in Tomcat"
To view the discussion, visit: https://community.jboss.org/message/794211#794211
--------------------------------------------------------------
I have a very similar issue like Felix Jose had. JBPM tables grow so fast and my application now takes more than 10 minutes to start up.
Unfortunately, it's now alive and I need to find a way to housekeep them.
Basically, I want to delete all the records in JBPM4_DEPLOYMENT and (of course) its children/grandchildren/etc.
Are these records safe to delete? FYI, I stop my application before doing this.
If this operation is safe, can I have any documentation saying that they're safe to delete? Or at least a documentation saying that "they are duplicates" so that I have a strong reason to delete them.
By the way, they are being re-populated everytime my application starts. That's why they grow..
I guess "I accidentally deploy the same process definition on each restart". Still, I need a formal documentation to say it.
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/794211#794211]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 2 months
[jBPM] - How to deploy a BPMN process file by using the JBPM API ?
by pichunhan pi
pichunhan pi [https://community.jboss.org/people/miniservice] created the discussion
"How to deploy a BPMN process file by using the JBPM API ?"
To view the discussion, visit: https://community.jboss.org/message/793402#793402
--------------------------------------------------------------
there's some questions for me .
In my project , i use the spring to manage the KnowledgeBase and the StatefulKnowledgeSession , and the config XML is follow .
<drools:kbase id="kbase">
<drools:resources>
<drools:resource type="BPMN2" source="classpath:Evaluation.bpmn" />
<drools:resource type="BPMN2" source="classpath:WorkTrip.bpmn" />
<drools:resource type="BPMN2" source="classpath:HR_WorkTrip.bpmn" />
<drools:resource type="BPMN2" source="classpath:Common_WorkTrip.bpmn" />
<drools:resource type="BPMN2" source="classpath:Performance.bpmn" />
</drools:resources>
</drools:kbase>
<drools:ksession id="sSession" type="stateful" kbase="kbase">
<drools:configuration>
<drools:jpa-persistence>
<drools:transaction-manager ref="txManager" />
<drools:entity-manager-factory
ref="entityManagerFactory" />
</drools:jpa-persistence>
</drools:configuration>
</drools:ksession>
but when i need to add a new BPMN process resource , i need to add a drools:resource config and restart the web server to deploy it into the KnowledgeBase which is used in my project .
is there a JBPM API for me to deploy it into the KnowledgeBase without using the guvnor ? Like the way in JBPM4.x .
in the JBPM demo , i know that the BPMN resource can be deployed by using this code :
private static KnowledgeBase readKnowledgeBase() throws Exception {
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory
.newKnowledgeBuilder();
kbuilder.add(ResourceFactory.newClassPathResource("Evaluation.bpmn"),
ResourceType.BPMN2);
return kbuilder.newKnowledgeBase();
}
but when i used the spring , i can't do this to deploy now . because if i use this way , the KnowledgeBase and the StatefulKnowledgeSession are the new instance different with the one in spring IOC .
how can i do ? is there any way to do without using the guvnor web ? just using the JBPM API .
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/793402#793402]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 2 months
[jBPM] - Dynamic Task UI via HornetQ
by Benjamin Wirtz
Benjamin Wirtz [https://community.jboss.org/people/bennixview] created the discussion
"Dynamic Task UI via HornetQ"
To view the discussion, visit: https://community.jboss.org/message/793118#793118
--------------------------------------------------------------
Hi,
i want to show dynamic HumanTask UI in my App via HornetQ.
For Test I have a simple Process with one HT. inputData String userID , String reason. outputData Boolean acceptedOut. The User have to check a checkBox to set the Variable acceptedOut to true.
Now I want to retrieve the input / output Data to build a generic UI.
For that i read the Task via HornetQ TaskService and read the DocumentConten like this:
long contentId = task1.getTaskData().getDocumentContentId();
Content content = client.getContent(contentId);
Object unmarshalledObject = ContentMarshallerHelper.unmarshall(content.getContent(), null);
Now i've got the inputData. But i can't get the outputData. The ...getTaskData().getOutputContentId() is still -1.
What am I doing wrong?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/793118#793118]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 2 months
[Datasource Configuration] - Mysql JDBC module can't start: ClassNotFoundException XAResource
by Haifeng Song
Haifeng Song [https://community.jboss.org/people/hypheng] created the discussion
"Mysql JDBC module can't start: ClassNotFoundException XAResource"
To view the discussion, visit: https://community.jboss.org/message/794017#794017
--------------------------------------------------------------
I got a problem when deploying Mysql JDBC module on jboss-as-7.2.0.Alpha1-SNAPSHOT (on rhel 6.3)
I was deploying just according to the document at https://community.jboss.org/docs/DOC-16657 https://community.jboss.org/wiki/DataSourceConfigurationInAS7
Error message is:
00:00:15,513 WARN [org.jboss.modules] (JCA PoolFiller) Failed to define class com.mysql.jdbc.jdbc2.optional.MysqlXAConnection in Module "com.mysql:main" from local module loader @68e2918b (roots: /home/bruce/jboss-as-7.2.0.Alpha1-SNAPSHOT/modules): java.lang.LinkageError: Failed to link com/mysql/jdbc/jdbc2/optional/MysqlXAConnection (Module "com.mysql:main" from local module loader @68e2918b (roots: /home/bruce/jboss-as-7.2.0.Alpha1-SNAPSHOT/modules))
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.Module.loadModuleClass(Module.java:527) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.3.GA]
at com.mysql.jdbc.jdbc2.optional.MysqlXADataSource.wrapConnection(MysqlXADataSource.java:74)
at com.mysql.jdbc.jdbc2.optional.MysqlXADataSource.getXAConnection(MysqlXADataSource.java:61)
at org.jboss.jca.adapters.jdbc.xa.XAManagedConnectionFactory.getXAManagedConnection(XAManagedConnectionFactory.java:441)
at org.jboss.jca.adapters.jdbc.xa.XAManagedConnectionFactory.createManagedConnection(XAManagedConnectionFactory.java:395)
at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.createConnectionEventListener(SemaphoreArrayListManagedConnectionPool.java:775) [ironjacamar-core-impl-1.0.14.Final.jar:1.0.14.Final]
at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.fillToMin(SemaphoreArrayListManagedConnectionPool.java:720) [ironjacamar-core-impl-1.0.14.Final.jar:1.0.14.Final]
at org.jboss.jca.core.connectionmanager.pool.mcp.PoolFiller.run(PoolFiller.java:97) [ironjacamar-core-impl-1.0.14.Final.jar:1.0.14.Final]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09-icedtea]
Caused by: java.lang.NoClassDefFoundError: javax/transaction/xa/XAResource
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_09-icedtea]
at java.lang.ClassLoader.defineClass(ClassLoader.java:791) [rt.jar:1.7.0_09-icedtea]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [rt.jar:1.7.0_09-icedtea]
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391) [jboss-modules.jar:1.1.3.GA]
... 16 more
Caused by: java.lang.ClassNotFoundException: javax.transaction.xa.XAResource from [Module "com.mysql:main" from local module loader @68e2918b (roots: /home/bruce/jboss-as-7.2.0.Alpha1-SNAPSHOT/modules)]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.3.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.3.GA]
... 21 more
BTW, previously on as 7.1.2 I deploy jdbc under standalone/deployments, but when I switch to as 7.2, it can't work.
So I deploy it as a module now.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/794017#794017]
Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 2 months
Re: [jboss-user] [JBoss Cache] - Intermittent cache invalidation failures
by Libor Krzyžanek
Libor Krzyžanek [https://community.jboss.org/people/lkrzyzanek] replied to the discussion
"Intermittent cache invalidation failures"
To view the discussion, visit: https://community.jboss.org/message/794044#794044
--------------------------------------------------------------
Hi, I'm geting regular but intermittent invaliation failures from my distributed JBoss Cache / Hibernate setup and I'm hoping someone can give me a few pointers on how to track down this problem.
I can easily recreate the problem in our live environment, by updating a cached entity on one node, then checking the same entity on another node. Approx 50% of the time, the cache hasn't invalidated on the 2nd node, so the older version of the entity is shown.
I'm using a TCP multicast (because this is on EC2 so I can't use UDP) and there are currently 8 nodes in the cache.
Debug logs aren't showing any messages that would indicate a problem and the logs are identical when the invalidation occurs and when it fails. Can anyone suggest suitable log setting that might show some more useful logs (switch all to trace level outputted far too much info to make sense of)?
Thanks in advance for any help or suggestions!
JBoss Cache v3.1.0
JGroups v2.6.7
Hibernate v3.3.2
The debug logs I get on the node that is updating the entity are a follows:
23 Jan 2013 17:04:38,536 [http-bio-8443-exec-8] DEBUG InvalidationInterceptor:244 - Is a CRUD method
23 Jan 2013 17:04:38,550 [http-bio-8443-exec-8] DEBUG InvalidationInterceptor:244 - Is a CRUD method
23 Jan 2013 17:04:38,550 [http-bio-8443-exec-8] DEBUG InvalidationInterceptor:381 - Cache [XX.XX.XX.XX:6800] replicating InvalidateCommand{fqn=/mbCache/configData/ENTITY/com.package.EntityName#4881}
My cache settings are:
<!-- A config appropriate for entity/collection caching that
uses pessimistic locking -->
<cache-config name="pessimistic-entity">
<!-- Node locking scheme -->
<attribute name="NodeLockingScheme">PESSIMISTIC</attribute>
<!--
READ_COMMITTED is as strong as necessary for most
2nd Level Cache use cases.
-->
<attribute name="IsolationLevel">READ_COMMITTED</attribute>
<!-- Mode of communication with peer caches.
INVALIDATION_SYNC is highly recommended as the mode for use
with entity and collection caches.
-->
<attribute name="CacheMode">INVALIDATION_SYNC</attribute>
<!-- Name of cluster. Needs to be the same for all members, in order
to find each other -->
<attribute name="ClusterName">pessimistic-entity</attribute>
<!-- Use a UDP (multicast) based stack. A udp-sync stack might be
slightly better (no JGroups FC) but we stick with udp to
help ensure this cache and others like timestamps-cache
that require FC can use the same underlying JGroups resources. -->
<attribute name="MultiplexerStack">tcp</attribute>
<!-- Whether or not to fetch state on joining a cluster. -->
<attribute name="FetchInMemoryState">false</attribute>
<!--
The max amount of time (in milliseconds) we wait until the
state (ie. the contents of the cache) are retrieved from
existing members at startup. Ignored if FetchInMemoryState=false.
-->
<attribute name="StateRetrievalTimeout">20000</attribute>
<!--
Number of milliseconds to wait until all responses for a
synchronous call have been received.
-->
<attribute name="SyncReplTimeout">20000</attribute>
<!-- Max number of milliseconds to wait for a lock acquisition -->
<attribute name="LockAcquisitionTimeout">15000</attribute>
<!--
Indicate whether to use marshalling or not. Set this to true if you
are running under a scoped class loader, e.g., inside an application
server.
-->
<attribute name="UseRegionBasedMarshalling">true</attribute>
<!-- Must match the value of "useRegionBasedMarshalling" -->
<attribute name="InactiveOnStartup">true</attribute>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/794044#794044]
Start a new discussion in JBoss Cache at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 2 months
[Beginner's Corner] - java.io.InvalidClassException: org.jboss.ejb3.remoting.BaseRemoteProxy; local class incompatible
by ifteqar ahmed
ifteqar ahmed [https://community.jboss.org/people/ifteqar2011] created the discussion
"java.io.InvalidClassException: org.jboss.ejb3.remoting.BaseRemoteProxy; local class incompatible"
To view the discussion, visit: https://community.jboss.org/message/725008#725008
--------------------------------------------------------------
Hi,
I am using Jboss-5.1.0 GA on client side and JBoss-EAP 4.3 as Remote Server.
First I brought up Jboss-4.3 EAP Remote Server and while bringing up the Client JBoss-5.1.0 GA i am getting the below ERROR Please help
1. Caused by: java.io.InvalidClassException: org.jboss.ejb3.remoting.BaseRemoteProxy; local class incompatible: stream classdesc serialVersionUID = 1126421850898582900, local cl
2. ass serialVersionUID = -2711693270411201590
3. at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:546)
4. at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
5. at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
6. at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
7. at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
8. at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
9. at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
10. at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
11. at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
12. at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
13. at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
14. at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
15. at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
16. at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
17. at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:769)
18. ... 90 more
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/725008#725008]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 2 months