[JBoss-user] [JBoss jBPM] - Re: HibernateException when calling ProcessInstance.getTaskM

2006-01-04 Thread plalloni
[EMAIL PROTECTED] wrote : I'm investigating the problem. In the meantime 
please tell me the version you are using.

JBPM 3.0.2

[EMAIL PROTECTED] wrote : Another question: does your code snippet work with 
Hypersonic?

With Hypersonic the same problem is reproduced

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3915490#3915490

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3915490


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: HibernateException when calling ProcessInstance.getTaskM

2006-01-04 Thread plalloni
Ok, we solved it!

The problem dissappeared by doing 2 changes to our code:

1. Persisting the process definition before saving the process instance

2. Putting calls to beginTransaction() and commitTransaction() around the 
saving of the process instance (and around the saving of the process definition)

We didn't do 1 before because we'll have just one process definition, no more 
than one version of it, and we didn't see the part of docs where it says that 
we must persist process definition before its instances.

We didn't do 2 because we were planning to put some transaction interceptor 
around those methods (which weren't in place yet).

So, is this the expected way of this stuff to work?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3915491#3915491

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3915491


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: HibernateException when calling ProcessInstance.getTaskM

2006-01-04 Thread [EMAIL PROTECTED]
plalloni wrote : Ok, we solved it!
Glad to hear it!
plalloni wrote : we didn't see the part of docs where it says that we must 
persist process definition before its instances.
This is a subtle one. The database example in Chapter 3 of the jBPM user guide 
starts with saving the definition... 
plalloni wrote : we were planning to put some transaction interceptor around 
those methods (which weren't in place yet)
Hibernate (and hence jBPM) can be made aware of managed transactions, in which 
case the calls to beginTransaction() or commitTransaction() need not be 
present. You must explicitly demarcate transactions in an unmanaged 
environment. If you want to move freely between both environments, just leave 
the demarcations. Hibernate will ignore them in the managed case.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3915607#3915607

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3915607


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: HibernateException when calling ProcessInstance.getTaskM

2006-01-03 Thread plalloni
I wonder if you solved this issue and how you did it since we're having the 
very same problem right now and we're completely lost... 

Have you?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3915302#3915302

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3915302


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: HibernateException when calling ProcessInstance.getTaskM

2006-01-03 Thread nawad980
Unfortunately I haven't, because we've abandoned the whole jBPM and Implemented 
our own workflow solution. Because it seems that the jBPM is still immature and 
bug infested.

Good luck

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3915306#3915306

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3915306


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: HibernateException when calling ProcessInstance.getTaskM

2006-01-03 Thread plalloni
Well... we really don't want to switch BPM engines ATM so here is my stack 
trace. As can be seen, the error occurs when I try to ask a ContextInstance 
from my just loaded ProcessInstance, obviously the problem refers to hibernate 
lazy loading but since I'm not familiar with JBPM hbm mappings I really can't 
figure it out.


  | org.hibernate.HibernateException: null index column for collection: 
org.jbpm.graph.exe.ProcessInstance.instances
  | at 
org.hibernate.persister.collection.AbstractCollectionPersister.readIndex(AbstractCollectionPersister.java:618)
  | at 
org.hibernate.collection.PersistentMap.readFrom(PersistentMap.java:197)
  | at org.hibernate.loader.Loader.readCollectionElement(Loader.java:674)
  | at org.hibernate.loader.Loader.readCollectionElements(Loader.java:370)
  | at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:314)
  | at org.hibernate.loader.Loader.doQuery(Loader.java:412)
  | at 
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:218)
  | at org.hibernate.loader.Loader.loadCollection(Loader.java:1434)
  | at 
org.hibernate.loader.collection.OneToManyLoader.initialize(OneToManyLoader.java:111)
  | at 
org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:488)
  | at 
org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:60)
  | at 
org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1430)
  | at 
org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:176)
  | at 
org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:48)
  | at org.hibernate.collection.PersistentMap.get(PersistentMap.java:123)
  | at 
org.jbpm.graph.exe.ProcessInstance.getInstance(ProcessInstance.java:136)
  | at 
org.jbpm.graph.exe.ProcessInstance.getContextInstance(ProcessInstance.java:163)
  | at 
yetem.teg.server.BrokerImplementation.execute(BrokerImplementation.java:121)
  | at 
yetem.teg.server.BrokerImplementation.execute(BrokerImplementation.java:114)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
aeglos.interceptors.MethodInterceptorFactory$MethodInvocationImpl.proceed(MethodInterceptorFactory.java:157)
  | at 
yetem.teg.security.TokenVerifierMethodInterceptor.invoke(TokenVerifierMethodInterceptor.java:43)
  | at 
$MethodInterceptor_1088db08cac.invoke($MethodInterceptor_1088db08cac.java)
  | at 
aeglos.interceptors.MethodInterceptorFactory$MethodInterceptorInvocationHandler.invoke(MethodInterceptorFactory.java:110)
  | at $Proxy0.execute(Unknown Source)
  | at $Broker_1088db08caf.execute($Broker_1088db08caf.java)
  | at $Broker_1088db08c96.execute($Broker_1088db08c96.java)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
com.caucho.hessian.server.HessianSkeleton.invoke(HessianSkeleton.java:157)
  | at 
net.sourceforge.hiveremoting.caucho.HessianRemoteServiceInvoker.invoke(HessianRemoteServiceInvoker.java:52)
  | at 
net.sourceforge.hiveremoting.caucho.AbstractRemoteServiceInvoker.invoke(AbstractRemoteServiceInvoker.java:78)
  | at 
net.sourceforge.hiveremoting.caucho.CauchoRemotingServlet.service(CauchoRemotingServlet.java:181)
  | at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
  | at 
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:832)
  | at 
net.sourceforge.hiveutils.web.HiveMindRegistryPublishFilter.doFilter(HiveMindRegistryPublishFilter.java:76)
  | at 
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:823)
  | at 
org.apache.hivemind.servlet.HiveMindFilter.doFilter(HiveMindFilter.java:172)
  | at 
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:823)
  | at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
  | at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:556)
  | at org.mortbay.http.HttpContext.handle(HttpContext.java:1563)
  | at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:623)
  | at org.mortbay.http.HttpContext.handle(HttpContext.java:1515)
  |

[JBoss-user] [JBoss jBPM] - Re: HibernateException when calling ProcessInstance.getTaskM

2006-01-03 Thread fmuhlenberg
I ran into a similar problem when using the Hypersonic database within jBoss 
and my temporary solution when saving a ProcessDefinition was to catch the 
exception that is generated during the commit.

As in:

jbpmSession.beginTransaction
jbpmSession.getGraphSession().saveProcessDefinition( pd )
try
{
jbpmSession.commitTransaction();
}
catch( Exception e )
{
  // Ignore
}
finally
{
jbpmSession.close();
}

I found that things gets persisted correctly even though the exception is 
generated.  I don't like ignoring the exception but I don't know enough about 
Hibernate and its configurations and I don't have a sufficient development 
environment to investigate further.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3915380#3915380

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3915380


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: HibernateException when calling ProcessInstance.getTaskM

2006-01-03 Thread [EMAIL PROTECTED]
I'm investigating the problem. In the meantime please tell me the version you 
are using.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3915388#3915388

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3915388


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: HibernateException when calling ProcessInstance.getTaskM

2006-01-03 Thread [EMAIL PROTECTED]
Another question: does your code snippet work with Hypersonic?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3915389#3915389

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3915389


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user