[rules-users] Facing severe issues while using Persistence

Mark Proctor mproctor at codehaus.org
Wed Apr 1 09:47:22 EDT 2009


I just saw your email, we tried to stick to the EJ3/JPA spec, is there 
something we have used that is beyond those specs that oracle or eclipse 
link don't support? Or is it you are using old eclipselink/oracle 
libraries that aren't fully ejb3/jpa compliant?

Unfortunately I know noting about EclipseLink. But if you figure all 
these things out, could you send in some notes for others users and also 
some suggestions on how we can improve things to make it easier to work 
across persistence impl.

Mark
Umesh Wankhede wrote:
>
> The root cause is java.util.NoSuchElementException as you can see in 
> the stack.
>
>  
>
> *From:* rules-users-bounces at lists.jboss.org 
> [mailto:rules-users-bounces at lists.jboss.org] *On Behalf Of *Anstis, 
> Michael (M.)
> *Sent:* Monday, March 30, 2009 6:07 PM
> *To:* Rules Users List
> *Subject:* RE: [rules-users] Facing severe issues while using Persistence
>
>  
>
> This looks like a JPA issue; have you configured your PersistenceUnit?
>
>  
>
> I haven't used EclipseLink but in other IDE's you can create a PU 
> graphically. There's always persistence.xml to fall back to as well.
>
>  
>
> Looks like EclipseLink can't find a PU definition.
>
>      
>
>     ------------------------------------------------------------------------
>
>     *From:* rules-users-bounces at lists.jboss.org
>     [mailto:rules-users-bounces at lists.jboss.org] *On Behalf Of *Umesh
>     Wankhede
>     *Sent:* 30 March 2009 13:10
>     *To:* Rules Users List
>     *Subject:* RE: [rules-users] Facing severe issues while using
>     Persistence
>
>     Hi Kris
>
>      
>
>     Thanks for the clues. But I have bigger problems when I try to use
>     the persistence with Oracle and EclipseLink(because of project
>     requirements).
>
>     I have mentioned in the below mail about the problems faced while
>     migrating from H2 to Oracle. After fixing these (Oracle with
>     Hibernate) issues, now I am facing quite a few issues while using
>     EclipseLink (in place of Hibernate), like use of temporal types
>     for dates, etc. I tried fixing these issues one by one, but got
>     stuck with this exception[1] and no clue how to fix it. Any help
>     would be appreciated.
>
>     Local Exception Stack:
>
>     Exception [EclipseLink-30005] (Eclipse Persistence Services -
>     1.0.2 (Build 20081024)):
>     _org.eclipse.persistence.exceptions.PersistenceUnitLoadingException_
>
>     Exception Description: An exception was thrown while searching for
>     persistence archives with ClassLoader:
>     sun.misc.Launcher$AppClassLoader at 133056f
>
>     Internal Exception: _javax.persistence.PersistenceException_:
>     Exception [EclipseLink-28018] (Eclipse Persistence Services -
>     1.0.2 (Build 20081024)):
>     _org.eclipse.persistence.exceptions.EntityManagerSetupException_
>
>     Exception Description: Predeployment of PersistenceUnit
>     [org.drools.task] failed.
>
>     Internal Exception: _java.util.NoSuchElementException_
>
>           at
>     org.eclipse.persistence.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceResources(_PersistenceUnitLoadingException.java:121_)
>
>           at
>     org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(_PersistenceProvider.java:117_)
>
>           at
>     org.eclipse.persistence.jpa.PersistenceProvider.createEntityManagerFactory(_PersistenceProvider.java:64_)
>
>           at
>     javax.persistence.Persistence.createEntityManagerFactory(_Persistence.java:83_)
>
>           at
>     javax.persistence.Persistence.createEntityManagerFactory(_Persistence.java:60_)
>
>           at com.sample.RuleFlowTest.main(_RuleFlowTest.java:51_)
>
>     Caused by: _javax.persistence.PersistenceException_: Exception
>     [EclipseLink-28018] (Eclipse Persistence Services - 1.0.2 (Build
>     20081024)):
>     _org.eclipse.persistence.exceptions.EntityManagerSetupException_
>
>     Exception Description: Predeployment of PersistenceUnit
>     [org.drools.task] failed.
>
>      
>
>     -Umesh
>
>      
>
>     *From:* rules-users-bounces at lists.jboss.org
>     [mailto:rules-users-bounces at lists.jboss.org] *On Behalf Of *Kris
>     Verlaenen
>     *Sent:* Thursday, March 26, 2009 8:32 PM
>     *To:* Rules Users List
>     *Subject:* Re: [rules-users] Facing severe issues while using
>     Persistence
>
>      
>
>     Umesh,
>
>      
>
>     Based on the error in the H2 log, it seems like you are trying to
>     assign tasks to a user that is not in your users database.  The
>     task component contains a list of possible users and methods to
>     add new users.  When creating a new task, possible actors must be
>     in the user list, otherwise the foreign key constraint cannot be
>     satisfied.  By default, there should always be an "Administrator"
>     user, as all tasks are by default assigned to this users.  On top
>     of that, you also need to add all possible users that you use in
>     your processes.
>
>      
>
>     It might be better to check for the existing users when trying to
>     create a task and give an appropriate error message if the user
>     cannot be found ... I would gladly apply a patch if you could find
>     the time.  Tasks are created in WSHumanTaskHandler, so that would
>     be the location to do these modifications.
>
>      
>
>     Kris
>
>      
>
>     ----- Original Message -----
>
>         *From:* Umesh Wankhede <mailto:umesh.wankhede at arisglobal.co.in>
>
>         *To:* Rules Users List <mailto:rules-users at lists.jboss.org>
>
>         *Sent:* Tuesday, March 24, 2009 2:07 PM
>
>         *Subject:* [rules-users] Facing severe issues while using
>         Persistence
>
>          
>
>         Hi
>
>          
>
>         While using workflow persistence feature (with human task
>         component), I am having quite a few problems. When I use
>         default db (H2), I get ConstraintViolationException [1]. Since
>         I have to ultimately integrate with Oracle, I modify the
>         config files to point to Oracle. But with that I started
>         getting lot of other issues, like invalid column names (size,
>         date), invalid table name (Comment), SQLGrammarException,
>         etc[2] (This is serious problem, if you use Oracle!)
>
>         I am struggling for quite a few days to get this work, but no
>         success, any help would be greatly appreciated.
>
>         I am attaching the source code also[3].
>
>          
>
>         [1]db-h2-errors.log
>
>         [2] db-oracle-errors.log
>
>         [3] RuleFlowTest.java, ruleflow.rf
>
>          
>
>         Regds
>
>         Umesh
>
>          
>
>          
>
>          Legal Notice: This transmission, including any attachments,
>         is confidential, proprietary, and may be privileged. It is
>         intended solely for the intended recipient. If you are not the
>         intended recipient, you have  received this transmission in
>         error and you are hereby advised that any review, disclosure,
>         copying, distribution, or use of this transmission, or any of
>         the information included therein, is unauthorized and
>         strictly prohibited. If you have received this transmission in
>         error, please immediately notify the sender by reply and
>         permanently delete all copies of this transmission and its
>         attachments
>
>          
>
>         ------------------------------------------------------------------------
>
>         _______________________________________________
>         rules-users mailing list
>         rules-users at lists.jboss.org
>         https://lists.jboss.org/mailman/listinfo/rules-users
>
>      Legal Notice: This transmission, including any attachments, is
>     confidential, proprietary, and may be privileged. It is intended
>     solely for the intended recipient. If you are not the intended
>     recipient, you have  received this transmission in error and you
>     are hereby advised that any review, disclosure, copying,
>     distribution, or use of this transmission, or any of the
>     information included therein, is unauthorized and
>     strictly prohibited. If you have received this transmission in
>     error, please immediately notify the sender by reply and
>     permanently delete all copies of this transmission and its attachments
>
>      
>
>  Legal Notice: This transmission, including any attachments, is 
> confidential, proprietary, and may be privileged. It is intended 
> solely for the intended recipient. If you are not the intended 
> recipient, you have  received this transmission in error and you are 
> hereby advised that any review, disclosure, copying, distribution, or 
> use of this transmission, or any of the information included therein, 
> is unauthorized and strictly prohibited. If you have received this 
> transmission in error, please immediately notify the sender by reply 
> and permanently delete all copies of this transmission and its attachments
>
>  
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090401/61ad491a/attachment.html 


More information about the rules-users mailing list