[Design of JBoss jBPM] - Error building 3.2.6.SP1
by osvaldo.pina
Hi all,
I'm trying ot build 3.2.6.SP1 and I'm getting the following tests on error:
Failed tests:
testTimerAction(org.jbpm.jbpm2036.JBPM2036Test)
Tests in error:
testReadLock(org.jbpm.jbpm1755.JBPM1755Test)
testUpgradeLock(org.jbpm.jbpm1755.JBPM1755Test)
testForceLock(org.jbpm.jbpm1755.JBPM1755Test)
testTaskMgmtDefinitionAddSwimlaneInverseReference(org.jbpm.taskmgmt.def.TaskMgmtDefinitionDbTest)
testTimerRepeat(org.jbpm.scheduler.exe.UnsafeSessionUsageTest)
testStartStateSwimlaneInitialization(org.jbpm.taskmgmt.exe.SwimlaneDbTest)
testSwimlaneActorId(org.jbpm.taskmgmt.exe.SwimlaneDbTest)
testSwimlanePooledActor(org.jbpm.taskmgmt.exe.SwimlaneDbTest)
testSwimlanePooledActorThenTaskInstanceAssignment(org.jbpm.taskmgmt.exe.SwimlaneDbTest)
testSwimlanePooledActorThenSwimlaneInstanceAssignment(org.jbpm.taskmgmt.exe.SwimlaneDbTest)
testSwimlanePooledActorsUpdate(org.jbpm.taskmgmt.exe.SwimlaneDbTest)
testSwimlanePoolInitialization(org.jbpm.taskmgmt.exe.SwimlaneDbTest)
this are the exception stack traces:
Running org.jbpm.jbpm1755.JBPM1755Test
org.jbpm.persistence.JbpmPersistenceException: transaction commit failed
at org.jbpm.persistence.db.DbPersistenceService.endTransaction(DbPersistenceService.java:137)
at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:198)
at org.jbpm.svc.Services.close(Services.java:243)
org.jbpm.JbpmException: event 'process-end' did not occur within 300000 ms
at org.jbpm.graph.def.EventCallback.waitForEvent(EventCallback.java:165)
at org.jbpm.graph.def.EventCallback.waitForEvent(EventCallback.java:154)
at org.jbpm.jbpm1755.JBPM1755Test.launchProcessInstances(JBPM1755Test.java:68)
Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.graph.exe.Token#2]
at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1769)
org.jbpm.JbpmException: could not delete ProcessDefinition(testStartStateSwimlaneInitialization)
at org.jbpm.db.GraphSession.deleteProcessDefinition(GraphSession.java:263)
at org.jbpm.db.GraphSession.deleteProcessDefinition(GraphSession.java:230)
at org.jbpm.taskmgmt.exe.SwimlaneDbTest.testStartStateSwimlaneInitialization(SwimlaneDbTest.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Caused by: org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [org.jbpm.graph.node.StartState#5]
at org.hibernate.impl.SessionFactoryImpl$1.handleEntityNotFound(SessionFactoryImpl.java:377)
at org.hibernate.proxy.AbstractLazyInitializer.checkTargetState(AbstractLazyInitializer.java:79)
at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:68)
at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:111)
...
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239202#4239202
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239202
16 years, 9 months
[Design of Messaging on JBoss (Messaging/JBoss)] - Re: maven2 dependency integration
by clebert.suconic@jboss.com
All the Examples are broken because of this:
>From queue for instance:
|
| [java] Jun 22, 2009 12:05:16 PM org.jboss.common.example.JBMExample run
| [java] INFO: jbm.example.runServer is true
| [java] Jun 22, 2009 12:05:16 PM org.jboss.common.example.JBMExample startServer
| [java] INFO: starting server with config 'server0' logServerOutput true
| [java] JBMServer_0 err:12:05:16,962 SEVERE [org.jboss.messaging.integration.bootstrap.JBMBootstrapServer] Failed to start server
| [java] JBMServer_0 err:java.lang.RuntimeException: Exception during Bootstrap
| [java] JBMServer_0 err: at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:93)
| [java] JBMServer_0 err: at org.jboss.messaging.integration.bootstrap.JBMBootstrapServer.run(JBMBootstrapServer.java:126)
| [java] JBMServer_0 err: at org.jboss.common.example.SpawnedJBMServer.main(SpawnedJBMServer.java:44)
| [java] JBMServer_0 err:Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: file:/work/projects/trunk/examples/jms/queue/server0/jbm-jboss-beans.xml@3,49
| [java] JBMServer_0 err: at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:177)
| [java] JBMServer_0 err: at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:147)
| [java] JBMServer_0 err: at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:86)
| [java] JBMServer_0 err: at org.jboss.messaging.integration.bootstrap.JBMBootstrapServer.deploy(JBMBootstrapServer.java:246)
| [java] JBMServer_0 err: at org.jboss.messaging.integration.bootstrap.JBMBootstrapServer.deploy(JBMBootstrapServer.java:215)
| [java] JBMServer_0 err: at org.jboss.messaging.integration.bootstrap.JBMBootstrapServer.bootstrap(JBMBootstrapServer.java:164)
| [java] JBMServer_0 err: at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:83)
| [java] JBMServer_0 err: ... 2 more
| [java] JBMServer_0 err:Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlNsForm
| [java] JBMServer_0 err: at org.jboss.xb.builder.JBossXBNoSchemaBuilder.<init>(JBossXBNoSchemaBuilder.java:164)
| [java] JBMServer_0 err: at org.jboss.xb.builder.JBossXBBuilder.build(JBossXBBuilder.java:288)
| [java] JBMServer_0 err: at org.jboss.xb.builder.JBossXBBuilder.build(JBossXBBuilder.java:181)
| [java] JBMServer_0 err: at org.jboss.xb.builder.JBossXBBuilder.build(JBossXBBuilder.java:160)
| [java] JBMServer_0 err: at org.jboss.xb.binding.resolver.AbstractMutableSchemaResolver.resolve(AbstractMutableSchemaResolver.java:261)
| [java] JBMServer_0 err: at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:274)
| [java] JBMServer_0 err: at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
| [java] JBMServer_0 err: at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)
| [java] JBMServer_0 err: at com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.startElement(XIncludeHandler.java:715)
| [java] JBMServer_0 err: at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:330)
| [java] JBMServer_0 err: at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:779)
| [java] JBMServer_0 err: at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1794)
| [java] JBMServer_0 err: at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
| [java] JBMServer_0 err: at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
| [java] JBMServer_0 err: at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
| [java] JBMServer_0 err: at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
| [java] JBMServer_0 err: at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1168)
| [java] JBMServer_0 err: at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:173)
| [java] JBMServer_0 err: ... 8 more
| [java] java.lang.RuntimeException: server failed to start
| [java] at org.jboss.common.example.SpawnedVMSupport.spawnVM(SpawnedVMSupport.java:155)
| [java] at org.jboss.common.example.JBMExample.startServer(JBMExample.java:165)
| [java] JBMServer_0 out:FAILED::Exception during Bootstrap
| [java] at org.jboss.common.example.JBMExample.startServers(JBMExample.java:182)
| [java] at org.jboss.common.example.JBMExample.run(JBMExample.java:78)
| [java] at org.jboss.jms.example.QueueExample.main(QueueExample.java:44)
| [java] java.lang.NullPointerException
| [java] at org.jboss.common.example.JBMExample.stopServer(JBMExample.java:199)
| [java] at org.jboss.common.example.JBMExample.stopServers(JBMExample.java:190)
| [java] at org.jboss.common.example.JBMExample.run(JBMExample.java:109)
| [java] at org.jboss.jms.example.QueueExample.main(QueueExample.java:44)
| [java]
| [java] #####################
| [java] ### FAILURE! ###
| [java] #####################
| [java] Java Result: 1
|
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239163#4239163
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239163
16 years, 9 months
[Design of Messaging on JBoss (Messaging/JBoss)] - Re: Server-side browser refactoring
by clebert.suconic@jboss.com
You always start a thread that will deliver to the client from the beggining of the queue.
When you call promptDelivery, you are supposed to resume where you left sending messages. And you are aways resuming from the beggining, what is creating order issues on the test.
You are also starting multiple senders as you receive credits. And that is duplicating sends also.
The server should send messages to the client as long as you have credits, when you are out of credits you should give up sending. Next time promptDelivery is called you should resume the process again.
That is not an exclusive problem on LargeMessages. (It's just that you run out of credits earlier with Large Messages).
You will have several problems with regular messages also if you run a test where you limit your credits.
The way the Consumer used to work was on a copy of a Queue, right?
Whey don't you create some sort of QueueIterator that encapsulates the iteration?
Maybe:
| class QueueIteratorImpl implements Queue
| {
| ... you encapsulate the iteration here to the main Queue
| }
|
|
|
And on ServerSessionImpl:
|
| private void doHandleCreateConsumer(final SessionCreateConsumerMessage packet)
| {
| ....
|
|
| if (browseOnly)
| {
| Queue theQueue = new QueueIteratorImpl(binding.getBindable());
| }
|
|
This way you won't need to change anything on ServerConsumerImpl, and I believe you won't need to create any threads to perform the delivery.
Just an idea.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239151#4239151
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239151
16 years, 9 months