Wrong exception thrown by persistence provider

Hi.
I am using EclipseLink as persistence provider.
I am invoking getReference() on a non-existing entity.
Then the provider throws:
org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLIntegrityConstraintViolationException: INSERT on table 'TTTT' caused a violation of foreign key constraint 'CCCCC' for key (1000000).  The statement has been rolled back.I am expecting an EntityNotFoundException.
What is wrong here ?
Thanks

Hmmm.. you have a point..
but the getReference spec says raising that exception might be deffered to the end of transaction/on flush, if not being raised on the method invocation itself.
So isnt it legal the construct:
EntityInstance e = new EntityInstance();
e.setProperty(em.getReference(PropertyClass.class, id));
em.persist(e);How can I be sure if the reference is valid ?
Isnt the exception the proper mechanic to get informed about a problem ?

Similar Messages

  • Wrong exception being thrown on CMP bean error

    In OC4J Release 2 I'm getting the wrong exception thrown from a CMP bean error.
    Situation:
    Servlet calls an update method on a stateless session bean with trans-attribute of Required. This update method finds 2 entity beans by primary key and updates both of them (all with trans-attribute of Supports). When an error is thrown in the second entity bean (by trying to set a value to something that breaks a constraint), I get the following error:
    com.evermind.server.rmi.OrionRemoteException: Transaction was rolled back: Error preparing bean instance: com.evermind.transaction.MarshallingXAException
    at TestSession_StatefulSessionBeanWrapper3.updatebothtests(TestSession_StatefulSessionBeanWrapper3.java:1164)
    at __jspPage1_insertEntityTest_jsp._jspService(__jspPage1_insertEntityTest_jsp.java:224)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at com.evermind.server.http.HttpApplication.serviceJSP(HttpApplication.java:5680)
    at com.evermind.server.http.JSPServlet.service(JSPServlet.java:31)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:667)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:702)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:250)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    Nested exception is:
    com.evermind.transaction.MarshallingXAException
    at com.evermind.server.ejb.EntityEJBObject.prepare(EntityEJBObject.java:70)
    at com.evermind.server.ApplicationServerTransactionSynchronization.prepareComponentsSuccess(ApplicationServerTransactionSynchronization.java:403)
    at com.evermind.server.ApplicationServerTransactionSynchronization.beforeCompletion(ApplicationServerTransactionSynchronization.java:565)
    at com.evermind.server.ApplicationServerTransaction.beforeCompletion(ApplicationServerTransaction.java:1063)
    at com.evermind.server.ApplicationServerTransaction.commit(ApplicationServerTransaction.java:552)
    at com.evermind.server.ApplicationServerTransaction.end(ApplicationServerTransaction.java:834)
    at TestSession_StatefulSessionBeanWrapper3.updatebothtests(TestSession_StatefulSessionBeanWrapper3.java:1160)
    at __jspPage1_insertEntityTest_jsp._jspService(__jspPage1_insertEntityTest_jsp.java:224)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at com.evermind.server.http.HttpApplication.serviceJSP(HttpApplication.java:5680)
    at com.evermind.server.http.JSPServlet.service(JSPServlet.java:31)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:667)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:702)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:250)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    Nested exception is:
    java.lang.InternalError: Werent current caller, server stacktrace (to disable this message, use -Dejb.assert=false at startup): java.lang.Throwable: Werent current caller
    at Test2_EntityBeanWrapper5.setEntityBean(Test2_EntityBeanWrapper5.java:1496)
    at com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(EntityEJBHome.java:344)
    at com.evermind.server.ejb.EntityEJBObject.releaseContext(EntityEJBObject.java:378)
    at Test2_EntityBeanWrapper5.saveState(Test2_EntityBeanWrapper5.java:1442)
    at com.evermind.server.ejb.EntityEJBObject.prepare(EntityEJBObject.java:39)
    at com.evermind.server.ApplicationServerTransactionSynchronization.prepareComponentsSuccess(ApplicationServerTransactionSynchronization.java:403)
    at com.evermind.server.ApplicationServerTransactionSynchronization.beforeCompletion(ApplicationServerTransactionSynchronization.java:565)
    at com.evermind.server.ApplicationServerTransaction.beforeCompletion(ApplicationServerTransaction.java:1063)
    at com.evermind.server.ApplicationServerTransaction.commit(ApplicationServerTransaction.java:552)
    at com.evermind.server.ApplicationServerTransaction.end(ApplicationServerTransaction.java:834)
    at TestSession_StatefulSessionBeanWrapper3.updatebothtests(TestSession_StatefulSessionBeanWrapper3.java:1160)
    at __jspPage1_insertEntityTest_jsp._jspService(__jspPage1_insertEntityTest_jsp.java:224)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at com.evermind.server.http.HttpApplication.serviceJSP(HttpApplication.java:5680)
    at com.evermind.server.http.JSPServlet.service(JSPServlet.java:31)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:667)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:702)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:250)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62) at Test2_EntityBeanWrapper5.setEntityBean(Test2_EntityBeanWrapper5.java:1496)
    at com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(EntityEJBHome.java:344)
    at com.evermind.server.ejb.EntityEJBObject.releaseContext(EntityEJBObject.java:378)
    at Test2_EntityBeanWrapper5.saveState(Test2_EntityBeanWrapper5.java:1442)
    at com.evermind.server.ejb.EntityEJBObject.prepare(EntityEJBObject.java:39)
    at com.evermind.server.ApplicationServerTransactionSynchronization.prepareComponentsSuccess(ApplicationServerTransactionSynchronization.java:403)
    at com.evermind.server.ApplicationServerTransactionSynchronization.beforeCompletion(ApplicationServerTransactionSynchronization.java:565)
    at com.evermind.server.ApplicationServerTransaction.beforeCompletion(ApplicationServerTransaction.java:1063)
    at com.evermind.server.ApplicationServerTransaction.commit(ApplicationServerTransaction.java:552)
    at com.evermind.server.ApplicationServerTransaction.end(ApplicationServerTransaction.java:834)
    at TestSession_StatefulSessionBeanWrapper3.updatebothtests(TestSession_StatefulSessionBeanWrapper3.java:1160)
    at __jspPage1_insertEntityTest_jsp._jspService(__jspPage1_insertEntityTest_jsp.java:224)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at com.evermind.server.http.HttpApplication.serviceJSP(HttpApplication.java:5680)
    at com.evermind.server.http.JSPServlet.service(JSPServlet.java:31)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:667)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:702)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:250)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    Why am I getting a MarshallingXAException instead of a SQLException? In the old OC4J, I got a SQLException wrapped in an OrionRemoteException, with the details of what constraint was broken, instead of this.
    I've also duplicated this by doing the entity bean updates directly from the servlet wrapped in a UserTransaction.
    Jeff.

    Tell me whether your transaction has been rolled back or not....If it has been rolled back, then those messages, printed on your server console are debug messages...just ignore them...
    After this exception, can u able to execute other applications in OC4J?
    --Venky                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • (Persistance API) bo exception thrown from em.persist

    Hi,
    I am testing for various error conditions , and trying to write an entity which has column defined as unique, and there is already an instance with that value in table.
    Although the entity does not get persisted(because of the unique constraint) , there is no exception thrown , and the app does not have any way of knowing that something went wrong.
    What's is the best way of handling error in the persistence layer?
    Thanks,
    here is my code :
    @Table(name="SYSTEMUSER")
    public class SystemUser implements Serializable
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    @Column(unique=true, nullable= false)
    private String email;
    try
                   em.persist(user);
              } catch(Exception e)
              System.err.println(e.toString());
              }

    Try posting this on the EJB forum:
    http://forum.java.sun.com/forum.jspa?forumID=13

  • Exception thrown while calling back a DSC componentcom/adobe/edc/policy/APSDocumentServicesManagerHo

    Hi,
    on starting LC 8.2 Server I get this error,
    2009-04-02 09:40:00,031 ERROR [STDERR] 02.04.2009 09:40:00 com.adobe.idp.scheduler.callback.ServiceCallbackHandler execute
    SCHWERWIEGEND: Exception thrown while calling back a DSC componentcom/adobe/edc/policy/APSDocumentServicesManagerHome
    any ideas what went wrong?
    regards
    Johannes

    As am I,
    I manually installed LC ES2 into a new JBoss/mySQL instance following the manual install instructions here:
    http://help.adobe.com/en_US/livecycle/9.0/prepareinstallsingle.pdf
    http://help.adobe.com/en_US/livecycle/9.0/install_jboss.pdf
    Then, applied the SP1, now I get this exception every ten minutes on the dot.
    2010-09-24 00:00:00,038 ERROR [STDERR] 24/09/2010 00:00:00 com.adobe.idp.scheduler.callback.ServiceCallbackHandler execute
    SEVERE: Exception thrown while calling back a DSC componentcom.adobe.edc.common.EDCException
    2010-09-24 00:00:00,076 INFO  [org.quartz.core.JobRunShell] Job APS_PRINCIPALKEY_REKEY_JOB_GRP.APS_PRINCIPALKEY_REKEY_JOB threw a JobExecutionException:
    org.quartz.JobExecutionException: java.lang.Exception: ALC-DSC-003-000: com.adobe.idp.dsc.DSCInvocationException: Invocation error. [See nested exception: java.lang.Exception: ALC-DSC-003-000: com.adobe.idp.dsc.DSCInvocationException: Invocation error.]
    at com.adobe.idp.scheduler.callback.ServiceCallbackHandler.execute(ServiceCallbackHandler.ja va:102)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
    Caused by: java.lang.Exception: ALC-DSC-003-000: com.adobe.idp.dsc.DSCInvocationException: Invocation error.
    at com.adobe.idp.scheduler.callback.ServiceCallbackHandler.execute(ServiceCallbackHandler.ja va:101)
    ... 2 more
    Any suggestions on how to check the callback schedule for the misbehaving callback ?
    Jason.

  • JPA Error "No Persistence provider for EntityManager",using org.eclipse.per

    Hello Colleagues,
    I have created JPA project, with out any error have done mapping also. with orm.xml and persistense .xml
    I am getting No Persistence provider for EntityManager error when calling Entity Manager in Entity class
    Error >>> EntityManagerFactory emf = Persistence.createEntityManagerFactory("Personalization_JPA");
    { No Persistence provider for EntityManager named Personalization_JPA }
    Persistence Provider as "org.eclipse.persistence.jpa.PersistenceProvider
    In persistence.xml for my JPA project , I have included following in respective tabs
    1) GENERAL Tab of Persistence.xml
    a) Persistence Provider as "org.eclipse.persistence.jpa.PersistenceProvider"
    b) In Managed classes included my Entity class and test application that calls the entity manager
    c) orm.xml in xml mapping files
    2) Connections Tab of Persistence.xml
    a) Transaction Type as Resource Local, not using any JTA datasourse name in database field
    3) Properties Tab of Persistence.xml
    property name="driver" value="com.sap.dbtech.jdbc.DriverSapDB"
    property name="url" value="jdbc:sapdb://localhost/w15"
    property name="username" value="SAPW15DB"
    property name="password" value="sapsapr3"
    If anything wrong is specified please kindly inform me.

    Hello colleague,
    As per your suggestion I removed Persistence Provider as "org.eclipse.persistence.jpa.PersistenceProvider", made it blank in persistence.xml, but still I get the same error saying No Persistence provider for EntityManager, please have a look at other attributes of persistence.xml
    In persistence.xml for my JPA project , I have included following in respective tabs
    1) GENERAL Tab of Persistence.xml
    a) Persistence Provider as  blank or "org.eclipse.persistence.jpa.PersistenceProvider" makes no difference
    b) In Managed classes included my Entity class and test application that calls the entity manager
    c) orm.xml in xml mapping files
    2) Connections Tab of Persistence.xml
    a) Transaction Type as Resource Local, not using any JTA datasourse name in database field
    3) Properties Tab of Persistence.xml (connecting to maxdb, so is this necessary or not )
    property name="driver" value="com.sap.dbtech.jdbc.DriverSapDB"
    property name="url" value="jdbc:sapdb://localhost/w15"
    property name="username" value="SAPW15DB"
    property name="password" value="sapsapr3"
    If anything wrong is specified please kindly inform me.

  • WebChannel JPA Error "No Persistence provider for EntityManager"

    Hello Colleagues,
    In WebChannel  for Personalization, we are using Java Persistence API JPA project to connect to java stack Max DB .
    Here I have created JPA project, with out any error done mapping also. with orm.xml and persistense .xml
    I am getting No Persistence provider for EntityManager error when calling Entity Manager in Entity class
    > EntityManagerFactory emf = Persistence.createEntityManagerFactory("Personalization_JPA");
              EntityManager em = emf.createEntityManager();
              Attribute_entity ae = new Attribute_entity();
              ae.setEMPID(56);
              ae.setPreferences("Raghu");
              Transaction tx = (Transaction) em.getTransaction();
              em.persist(ae);
    I am using org.eclipse.persistence.jpa.PersistenceProvider as Persistence Provider
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
              <persistence-unit name="Personalization_JPA">
              <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
              <mapping-file>META-INF/orm.xml</mapping-file>
              <class>personalization.model.PersonalizationEntity</class>
              <class>personalization.model.Attribute_entity</class>
              <class>personalization.model.Test</class>
              </persistence-unit>
    </persistence>
    Can any one please tell me how to solve this issue.?

    Hello colleague,
    As per your suggestion I removed Persistence Provider as "org.eclipse.persistence.jpa.PersistenceProvider", made it blank in persistence.xml, but still I get the same error saying No Persistence provider for EntityManager, please have a look at other attributes of persistence.xml
    In persistence.xml for my JPA project , I have included following in respective tabs
    1) GENERAL Tab of Persistence.xml
    a) Persistence Provider as  blank or "org.eclipse.persistence.jpa.PersistenceProvider" makes no difference
    b) In Managed classes included my Entity class and test application that calls the entity manager
    c) orm.xml in xml mapping files
    2) Connections Tab of Persistence.xml
    a) Transaction Type as Resource Local, not using any JTA datasourse name in database field
    3) Properties Tab of Persistence.xml (connecting to maxdb, so is this necessary or not )
    property name="driver" value="com.sap.dbtech.jdbc.DriverSapDB"
    property name="url" value="jdbc:sapdb://localhost/w15"
    property name="username" value="SAPW15DB"
    property name="password" value="sapsapr3"
    If anything wrong is specified please kindly inform me.

  • No Persistence provider for EntityManager

    Hi everybody,
    this problem has been haunting me for days now.
    I have this JSE application that uses toplink essentias for his persistence layer.
    Everything works fine in Eclipse, but when i try to execute it outside eclipse i get the following error:
    javax.persistence.PersistenceException: No Persistence provider for EntityManager named analise: The following providers:
    oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
    oracle.toplink.essentials.PersistenceProvider
    Returned null to createEntityManagerFactory.
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:154)
         at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
         at synergia.persistencia.principal.CorretorPersistencia.<init>(CorretorPersistencia.java:87)
         at synergia.persistencia.principal.CorretorPersistencia.criarNovaInstancia(CorretorPersistencia.java:646)
         at synergia.persistencia.principal.CorretorPersistencia.getUnicaInstancia(CorretorPersistencia.java:223)
    my persistence.xml looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation=
    "http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
    version="1.0">
    <persistence-unit name="analise">
              <provider>
                   oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
              </provider>           
    classes
         <properties>
              <property name="toplink.jdbc.driver"
              value="oracle.jdbc.driver.OracleDriver"/>
              <property name="toplink.jdbc.user"
              value="usu_anual3"/>
              <property name="toplink.jdbc.password"
              value="usu_anual3siace01"/>
              <property name="toplink.jdbc.url"
              value="jdbc:oracle:thin:@172.30.9.66:1521:siace01"/>
                   <property name="toplink.weaving.lazy"
              value="true" />
                   <property name="toplink.weaving"
              value="static" />
                   <property name="toplink.logging.level"
              value="FINEST"/>
                   <property name="toplink.target-database"
         value="oracle.toplink.essentials.platform.oracle.OraclePlatform"/>
              </properties>
         </persistence-unit>
    </persistence>
    what i dont get is that the application finds the persistence.xml, and predeploy it or at least i think so.
    this is from the log:
    it starts like this:
    [TopLink Finest]: 2008.02.20 12:47:03.204--ServerSession(19864560)--Thread(Thread[main,5,main])--property=toplink.weaving; value=static
    [TopLink Finest]: 2008.02.20 12:47:03.250--ServerSession(19864560)--Thread(Thread[main,5,main])--property=toplink.orm.throw.exceptions; default value=true
    [TopLink Finer]: 2008.02.20 12:47:03.250--ServerSession(19864560)--Thread(Thread[main,5,main])--Searching for default mapping file in file:/C:/Arquivos%20de%20programas/SIACE%20PCA%20Análise%202007%20-%20ALPHA/lib/
    ...then does lots of stuff like this
    --The column name for element [private java.lang.String synergia.persistencia.principal.ObjetoPersistenteAbstrato.id] is being defaulted to: ID.
    ... Finally it ends like this
    12:47:10.031--ServerSession(19864560)--Thread(Thread[main,5,main])--end predeploying Persistence Unit analise; state Predeployed; factoryCount 0
    [TopLink Finer]: 2008.02.20 12:47:10.031--Thread(Thread[main,5,main])--cmp_init_transformer_is_null
    the log whe i run in eclipse is just like it
    but it adds this to the end
    [TopLink Finer]: 2008.02.19 09:03:17.710--Thread(Thread[main,5,main])--cmp_init_transformer_is_null
    [TopLink Finest]: 2008.02.19 09:03:17.710--ServerSession(30969271)--Thread(Thread[main,5,main])--begin predeploying Persistence Unit analise; state Predeployed; factoryCount 0
    [TopLink Finest]: 2008.02.19 09:03:17.710--ServerSession(30969271)--Thread(Thread[main,5,main])--end predeploying Persistence Unit analise; state Predeployed; factoryCount 1
    [TopLink Finest]: 2008.02.19 09:03:17.725--ServerSession(30969271)--Thread(Thread[main,5,main])--begin deploying Persistence Unit analise; state Predeployed; factoryCount 1
    [TopLink Finest]: 2008.02.19 09:03:18.632--ServerSession(30969271)--Thread(Thread[main,5,main])--property=toplink.session-name; value=teste
    [TopLink Finest]: 2008.02.19 09:03:18.632--ServerSession(30969271)--Thread(Thread[main,5,main])--property=toplink.logging.level; value=FINEST; translated value=FINEST
    [TopLink Finest]: 2008.02.19 09:03:18.632--ServerSession(30969271)--Thread(Thread[main,5,main])--property=toplink.logging.level; value=FINEST; translated value=FINEST
    [TopLink Finest]: 2008.02.19 09:03:18.632--ServerSession(30969271)--Thread(Thread[main,5,main])--property=toplink.jdbc.user; value=usu_anual3
    [TopLink Finest]: 2008.02.19 09:03:18.632--ServerSession(30969271)--Thread(Thread[main,5,main])--property=toplink.jdbc.password; value=xxxxxx
    [TopLink Finest]: 2008.02.19 09:03:20.413--ServerSession(30969271)--Thread(Thread[main,5,main])--property=toplink.jdbc.driver; value=oracle.jdbc.driver.OracleDriver
    [TopLink Finest]: 2008.02.19 09:03:20.413--ServerSession(30969271)--Thread(Thread[main,5,main])--property=toplink.jdbc.url; value=jdbc:oracle:thin:@172.30.9.66:1521:siace01
    [TopLink Info]: 2008.02.19 09:03:20.413--ServerSession(30969271)--Thread(Thread[main,5,main])--TopLink, version: Oracle TopLink Essentials - 2.0 (Build b58g-fcs (09/07/2007))
    [TopLink Finest]: 2008.02.19 09:03:21.460--Thread(Thread[main,5,main])--DBPlatform: oracle.toplink.essentials.platform.database.InformixPlatform, RegularExpression: (?i)informix.*.
    [TopLink Finest]: 2008.02.19 09:03:21.491--Thread(Thread[main,5,main])--DBPlatform: oracle.toplink.essentials.platform.database.PointBasePlatform, RegularExpression: (?i)pointbase.*.
    [TopLink Finest]: 2008.02.19 09:03:21.491--Thread(Thread[main,5,main])--DBPlatform: oracle.toplink.essentials.platform.database.DB2Platform, RegularExpression: (?i).*db2.*.
    [TopLink Finest]: 2008.02.19 09:03:21.491--Thread(Thread[main,5,main])--DBPlatform: oracle.toplink.essentials.platform.database.SQLServerPlatform, RegularExpression: (?i)microsoft.*.
    [TopLink Finest]: 2008.02.19 09:03:21.491--Thread(Thread[main,5,main])--DBPlatform: oracle.toplink.essentials.platform.database.PostgreSQLPlatform, RegularExpression: (?i)postgresql.*.
    [TopLink Finest]: 2008.02.19 09:03:21.491--Thread(Thread[main,5,main])--DBPlatform: oracle.toplink.essentials.platform.database.SybasePlatform, RegularExpression: (?i)(sybase.*)|(adaptive server enterprise.*)|(SQL Server).
    [TopLink Finest]: 2008.02.19 09:03:21.491--Thread(Thread[main,5,main])--DBPlatform: oracle.toplink.essentials.platform.database.JavaDBPlatform, RegularExpression: (?i).*derby.
    [TopLink Finest]: 2008.02.19 09:03:21.491--Thread(Thread[main,5,main])--DBPlatform: oracle.toplink.essentials.platform.database.oracle.OraclePlatform, RegularExpression: (?i)oracle.*.
    [TopLink Fine]: 2008.02.19 09:03:21.491--Thread(Thread[main,5,main])--Detected Vendor platform: oracle.toplink.essentials.platform.database.oracle.OraclePlatform
    Does anyone knows why this happen?
    currently im using the latest build from v2: V2_build_58g (V2 Final)
    but i used othes from v2.1 branch, and got the same results.
    thanks for the help.
    p.s.: Sorry for my bad english

    Hi,
    If you are having the same error as the first post where your PU was not found - even though you have all the correct jars in your classpath (and you don't have the problem with %20 spaces or unrecognized UTF-8 chars in the path to your persistence.xml - then you may have one of the following issues...
    - dependent jars like toplink*.jar are not visible to your application-managed EM's classloader - IE the TopLink library is lower
    - your server's classpath is incorrectly modified
    - you do not have references specified in one or all of your *application.xml, .MANIFEST, ejb-jar or web.xml reference descriptors.
    - another provider library is being loaded ahead of TopLink.
    - several other scenarios I still need to expand on....
    I am able to reproduce recently the same issue on demand on several application servers if I remove jars, hack the server's classpath or attempt to override a partial set of dependent jars via several application-managed scenarios.
    thank you
    /michael
    http://www.eclipselink.org

  • CORE4007: Internal error: Unexpected Java exception thrown (java.lang.NullP

    Hi,
    Currently we have a custom devoloped Java application deployed in oracle iplanet webserver 7 with JDK 1.6. I am receiving the below errors. The application is not stable. It gives a 500 internal error sometimes when browsing. When i checked the error log. Below is the message.
    CORE4007: Internal error: Unexpected Java exception thrown (java.lang.NullPointerException, no description), stack: java.lang.NullPointerException
    Could you please throw some light on this.

    You need to fix your custom developed app since it is causing the errors and instability. Tell the developers to properly verify the input data and improve their exception handling so you get better error messages that tells you what went wrong.

  • Exception thrown while calling back a DSC componentcom/adobe/edc/policy/APSDocumentServicesManager

    Hi All,
    I am getting this below error ever 10 min on JBoss server, LCES SP1.
    SEVERE: Exception thrown while calling back a DSC componentcom/adobe/edc/policy/APSDocumentServicesManagerHome
    2012-04-20 05:54:41,908 INFO  [org.quartz.core.JobRunShell] Job APS_PRINCIPALKEY_REKEY_JOB_GRP.APS_PRINCIPALKEY_REKEY_JOB threw a JobExecutionException:
    org.quartz.JobExecutionException: java.lang.Exception: java.lang.IllegalStateException [See nested exception: java.lang.Exception: java.lang.IllegalStateException]
              at com.adobe.idp.scheduler.callback.ServiceCallbackHandler.execute(ServiceCallbackHandler.ja va:102)
              at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
    Any idea about this error ??
    I refered this post but no luck --
    http://forums.adobe.com/message/4353924#4353924
    Any pointers to solve this issue ?????
    Regards --
    Chalukya.

    Hi Neerav,
    Thanks a lot for your reply ...
    Please find the server log file at -
    https://www.dropbox.com/s/ugc5zdavbobxj28/server.log
    Here is the complete error part in server log file -
    2012-08-03 03:03:21,764 INFO  [com.adobe.idp.scheduler.jobstore.DSCJobStoreTX] Removed 0 stale fired job entries.
    2012-08-03 03:03:21,764 INFO  [org.quartz.core.QuartzScheduler] Scheduler IDPSchedulerService_$_20 started.
    2012-08-03 03:03:21,795 INFO  [com.adobe.idp.dsc.impl.DSCManagerImpl] Started services which need post-dsc-initialization (Scheduler, docmanager purge) successfully
    2012-08-03 03:03:21,795 INFO  [com.adobe.idp.dsc.impl.DSCManagerImpl] Core Components started successfully
    2012-08-03 03:03:21,905 INFO  [com.adobe.idp.dsc.startup.DSCStartupServlet] Install and start of components complete. Now starting core asynchronous services ...
    2012-08-03 03:03:22,076 ERROR [STDERR] Aug 3, 2012 3:03:22 AM com.adobe.idp.scheduler.callback.ServiceCallbackHandler execute
    SEVERE: Exception thrown while calling back a DSC componentcom/adobe/edc/policy/APSDocumentServicesManagerHome
    2012-08-03 03:03:22,092 INFO  [org.quartz.core.JobRunShell] Job APS_PRINCIPALKEY_REKEY_JOB_GRP.APS_PRINCIPALKEY_REKEY_JOB threw a JobExecutionException:
    org.quartz.JobExecutionException: java.lang.Exception: java.lang.IllegalStateException [See nested exception: java.lang.Exception: java.lang.IllegalStateException]
              at com.adobe.idp.scheduler.callback.ServiceCallbackHandler.execute(ServiceCallbackHandler.ja va:102)
              at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
    Caused by: java.lang.Exception: java.lang.IllegalStateException
              at com.adobe.idp.scheduler.callback.ServiceCallbackHandler.execute(ServiceCallbackHandler.ja va:101)
              ... 2 more
    Caused by: java.lang.IllegalStateException
              at com.adobe.idp.dsc.clientsdk.ServiceClientFactory$1.handleThrowable(ServiceClientFactory.j ava:69)
              at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:220)
              at com.adobe.idp.scheduler.callback.ServiceCallbackHandler.execute(ServiceCallbackHandler.ja va:87)
              ... 2 more
    Caused by: java.lang.NoClassDefFoundError: com/adobe/edc/policy/APSDocumentServicesManagerHome
              at java.lang.Class.getDeclaredMethods0(Native Method)
              at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
              at java.lang.Class.getDeclaredMethods(Class.java:1791)
              at org.apache.commons.beanutils.MappedPropertyDescriptor$1.run(MappedPropertyDescriptor.java :342)
              at java.security.AccessController.doPrivileged(Native Method)
              at org.apache.commons.beanutils.MappedPropertyDescriptor.getPublicDeclaredMethods(MappedProp ertyDescriptor.java:337)
              at org.apache.commons.beanutils.MappedPropertyDescriptor.internalFindMethod(MappedPropertyDe scriptor.java:426)
              at org.apache.commons.beanutils.MappedPropertyDescriptor.findMethod(MappedPropertyDescriptor .java:500)
              at org.apache.commons.beanutils.MappedPropertyDescriptor.<init>(MappedPropertyDescriptor.jav a:103)
              at org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor(PropertyUtilsBean.ja va:822)
              at org.apache.commons.beanutils.PropertyUtilsBean.isWriteable(PropertyUtilsBean.java:1235)
              at org.apache.commons.beanutils.PropertyUtils.isWriteable(PropertyUtils.java:456)
              at com.adobe.idp.dsc.component.impl.DefaultPOJOServiceInstanceFactory.createInstance(Default POJOServiceInstanceFactory.java:132)
              at com.adobe.idp.dsc.invocation.impl.InstancePerRequestStrategy.getInstance(InstancePerReque stStrategy.java:56)
              at com.adobe.idp.dsc.invocation.impl.InstanceAccessorFactory.getInstanceForInvocation(Instan ceAccessorFactory.java:55)
              at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.allocateInstance(Invocat ionStrategyInterceptor.java:91)
              at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStra tegyInterceptor.java:54)
              at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
              at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)
              at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
              at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:188)
              at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
              at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
              at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
              at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)
              at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:129)
              at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessage Receiver.java:93)
              at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:22 5)
              at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:66)
              at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
              ... 3 more
    Caused by: java.lang.ClassNotFoundException: IDPSchedulerService_Worker-1Class name com.adobe.edc.policy.APSDocumentServicesManagerHome from package com.adobe.edc.policy not found.
              at com.adobe.idp.dsc.DSContainerSearchPolicy.searchClassUsingParentFirst(DSContainerSearchPo licy.java:245)
              at com.adobe.idp.dsc.DSContainerSearchPolicy.findClass(DSContainerSearchPolicy.java:198)
              at org.ungoverned.moduleloader.ModuleClassLoader.loadClass(ModuleClassLoader.java:161)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
              ... 33 more
    Thanks --
    Chalukya

  • ERROR: ProviderCaller.run(): exception thrown from IMChannel

    Not sure whether this is better addressed here or in the Instant Messaging forum.
    Basically we're having a problem with the presence service in Portal Server, and it throws a huge exception stack when you do anything except have a blank contact list with noone logged in.
    Portal Server, Access Manager, and IM Server are all installed on the same server in this configuration, and I've tried applying patches to the IM Server APIs to fix the problems to no avail.
    JES 2005Q1
    IM Server patched: 118787-01 118790-01
    Portal server unpatched
    Basically all of this is still a default install, with only minimal customization so customers don't have to configure anything.
    tail -f /var/opt/SUNWam/debug/desktop.debug says:
    07:34:25,192 INFO xmppd [com.sun.im.service.util.Worker 4] Authenticating using Identity Server SSO
    06/20/2005 07:34:25:310 AM PDT: Thread[Thread-677,5,main]
    ERROR: ProviderCaller.run(): exception thrown from IMChannel
    com.sun.portal.providers.ProviderException: JSPProvider.processJSPFile(): jsp=IMContent.jsp, java.lang.NoSuchMethodError: org.jaxen.BaseXPath.<init>(Ljava/lang/String;Lorg/jaxen/Navigator;)V
    at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:916)
    at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:810)
    at com.sun.portal.providers.jsp.JSPProvider.getContent(JSPProvider.java:579)
    at com.sun.im.portal.provider.IMProvider.getContent(IMProvider.java:94)
    at com.sun.portal.desktop.context.ReusableProviderCaller.run(ReusableProviderCaller.java:160)
    java.lang.NoSuchMethodError: org.jaxen.BaseXPath.<init>(Ljava/lang/String;Lorg/jaxen/Navigator;)V
    at net.outer_planes.jso.xpath.JSOXPath.<init>(JSOXPath.java:81)
    at net.outer_planes.jso.xpath.JSOXPath.<init>(JSOXPath.java:78)
    at net.outer_planes.jso.DataFactory.createXPath(DataFactory.java:128)
    at net.outer_planes.jso.DataFactory.createXPath(DataFactory.java:117)
    at net.outer_planes.jso.AbstractElement.getLocaleXPath(AbstractElement.java:175)
    at net.outer_planes.jso.AbstractElement.findElementsForLocale(AbstractElement.java:629)
    at net.outer_planes.jso.AbstractElement.findElementsForLocale(AbstractElement.java:626)
    at net.outer_planes.jso.PresencePacket.getStatus(PresencePacket.java:155)
    at net.outer_planes.jso.PresencePacket.getStatus(PresencePacket.java:152)
    at com.sun.im.service.xmpp.XMPPPresenceService.getPresence(XMPPPresenceService.java:374)
    at com.sun.im.service.xmpp.XMPPPresenceService.fetchPresence(XMPPPresenceService.java:164)
    at com.sun.im.service.xmpp.XMPPPresenceSession.fetch(XMPPPresenceSession.java:47)
    at com.sun.im.service.xmpp.XMPPPresenceSession.fetch(XMPPPresenceSession.java:55)
    at com.sun.im.portal.taglib.GetContactGroupTag.doStartTag(GetContactGroupTag.java:51)
    at jsps.etc._opt._SUNWps._desktop._sampleportal_en_US._IMChannel._html._IMContent_jsp._jspService(_IMContent_jsp.java:799)
    at com.sun.portal.providers.jsp.jasper3.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
    at com.sun.portal.providers.jsp.JspServletWrapper.service(JspServletWrapper.java:182)
    at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:896)
    at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:810)
    at com.sun.portal.providers.jsp.JSPProvider.getContent(JSPProvider.java:579)
    at com.sun.im.portal.provider.IMProvider.getContent(IMProvider.java:94)
    at com.sun.portal.desktop.context.ReusableProviderCaller.run(ReusableProviderCaller.java:160)
    We're looking to implement JES in the next month or so. I've seen mention of this error with other jaxen flavors, but none mentioning the JES Instant Messaging or Portal Servers

    Does every checkbox have the same name, i.e. "sel".
    In this case you're dealing with a checkbox group. Similar to a select-style dropdown or radio button group.
    I know I've had problems with dropdowns in Netscape where the select parameter was not being passed at all, so I'd get null values. I got around this by having the form submission re-assign the value from the select list to a hidden variable and then getting the value from the request.getParameter("hiddenFieldName") instead of the "dropdownFieldName".
    You could try to name each checkbox individually using an appended ID, such as sel1, sel2, etc. and then have these parameters picked up using a loop construct, request.getParameter("sel" + i) -- you may want to pass some value back that would also indicate how many total checkboxes you had so you could determine how many iterations of the loop to go through.
    On the form side, you could probably set the checkboxes up using a similar looping mechanism so that you wouldn't have to explicitly write each checkbox name.
    If this is in fact similar to the Netscape issue I was having with dropdowns, I'd be interested to hear if it'll work in IE.
    I got a bit off-topic, but hope it helps.

  • Error Occurred: Exception thrown is NOT a DSCException : UnExpected From DSC

    Hey Everybody ,
    In the context of my project. I was bring to use LiveCycle ES API  to identify with the server . so when i try to connect using the EJB proposed by livecycle i get this error :
    com.adobe.idp.um.api.UMException| [com.adobe.livecycle.usermanager.client.AuthenticationManagerServiceClient] errorCode:16385 errorCodeHEX:0x4001 message:Exception thrown is NOT a DSCException : UnExpected From DSC chainedException:ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.chainedExceptionMessage:Internal error. chainedException trace:ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.
    at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.doSend(EjbMessageDispatcher.java :175)
    at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:66)
    at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
    at com.adobe.livecycle.usermanager.client.AuthenticationManagerServiceClient.authenticate(Au thenticationManagerServiceClient.java:109)
    at com.gaselys.test.PurgeProcess.main(PurgeProcess.java:71)
    Caused by: java.rmi.RemoteException: Remote EJBObject lookup failed for 'ejb/Invocation'; nested exception is:
    org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://127.0.0.1:4446/?dataType=invocation&enableTcpNoDelay=true&marshaller=org.jboss. invocation.unified.marshall.InvocationMarshaller&socketTimeout=600000&unmarshaller=org.jbo ss.invocation.unified.marshall.InvocationUnMarshaller]
    at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.initialise(EjbMessageDispatcher. java:105)
    at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.doSend(EjbMessageDispatcher.java :141)
    ... 4 more
    Caused by: org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://127.0.0.1:4446/?dataType=invocation&enableTcpNoDelay=true&marshaller=org.jboss.invocation.unified.marshall .InvocationMarshaller&socketTimeout=600000&unmarshaller=org.jboss.invocation.unified.marsh all.InvocationUnMarshaller]
    at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientI nvoker.java:530)
    at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
    at org.jboss.remoting.Client.invoke(Client.java:1550)
    at org.jboss.remoting.Client.invoke(Client.java:530)
    at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.ja va:183)
    at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
    at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.j ava:63)
    at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
    at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
    at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
    at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
    at $Proxy0.create(Unknown Source)
    at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.initialise(EjbMessageDispatcher. java:95)
    ... 5 more
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketClientInvoker. java:187)
    at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketCli entInvoker.java:801)
    at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientI nvoker.java:526)
    ... 17 more
    NB:  The ejb is working well on my first environment <Dev>
    I'm using Livecycle ES 2 9.0
    JBoss_4_2_1_GA
    Oracle 10g
    Any proposal or suggestion will be useful
    Naoufal FAHEM

    Awsome I have no more error
    i had to make change on my  jboss-service.xml .
    change
    <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
    i changed the ${jboss.bind.address} with my server ip adress.
    now everything is working fine

  • Internal error: exception thrown from the servlet service function

    when i invoke the servlet in unix iplanet server i got the error
    Kindly let me get the solution .i am in 11th hour.
    [06/Jan/2006:09:30:28] info (10646): Internal Info: loading servlet
    /servlet/Ipl
    XmlServlet
    [06/Jan/2006:09:30:28] info (10646): /servlet/IplXmlServlet: init
    [06/Jan/2006:09:30:28] failure (10646): Internal error: exception thrown
    from the servlet service function (uri=/servlet/IplXmlServlet/):
    java.lang.NullPointerException, stack: java.lang.NullPointerException
    at IplXmlReqHandler.generateRsp(IplXmlReqHandler.java:452)
    at IplXmlReqHandler.processRequest(IplXmlReqHandler.java:168)
    at IplXmlServlet.processRequest(IplXmlServlet.java:219)
    at IplXmlServlet.doGet(IplXmlServlet.java:184)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:701)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
    at
    com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRun
    ner.java:513)
    Thanking you
    brindasanth

    you are in the wrong forum for this kind of question/product,
    goto:
    http://swforum.sun.com/jive/forum.jspa?forumID=16
    (in case you don't like "goto" - look at it like a "forward" :-) )
    additionally don't forget to mention
    - OS version
    - WebServer version + SP
    - .. the more the better
    rgds.
    /u

  • Why StorageFolder.CreateFileAsync(String) creates file fail without any exception thrown?

    I need to develop a windows phone store app to test file system. And I use
    StorageFolder.CreateFileAsync to create a file on ApplicationData.Current.LocalFolder path and write
    1MB text content, and read it, modify it, and re-write it. But after about 5000 times write/read.I found that the applicaition blocked at
    StorageFolder.CreateFileAsync through a test method of log. However, there isn't any exception thrown. Why did the
    StorageFolder.CreateFileAsync  fail? And how to solve this problem? We need to write/read about 150000 times.

    Hi jinchanglin,
    Have you ever tried with profiling the app while debug the app,
    Analyze app performance and
    Analyze memory usage (VB, C#, C++)
    Is it possible that CPU or memory usage reach to the limitation as you need execute the same code with nearly 150,000 times. Also you mentioned, 5000 times is ok, personally I think the code is fine, but you may need to care more about performance behavior.
    As I know if you are working with a Phone device, there is some limitation for memory usage, you cannot let your app use more memory set than that value, try to find the limitation from
    AppMemoryUsageLimit | appMemoryUsageLimit property
    --James
    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

  • EclipseLink persistence provider issue with weblogic 10.3

    Hi All,
    I have been trying to deploy and run an EAR in weblogic but when I run the application I get the following warning: WARNING: Found unrecognized persistence provider "org.eclipse.persistence.jpa.PersistenceProvider" in place of OpenJPA provider. This provider's properties will not be used.
    The following is my persistence.xml:
    <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0">
    <persistence-unit name="default" transaction-type="JTA">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <jta-data-source>DataSourceName</jta-data-source>
    <class>oracle.communications.platform.entity.impl.CharacteristicSpecificationDAO</class>
    <properties>
    <property name="eclipselink.logging.level" value="FINEST" />
    <property name="eclipselink.target-database" value="org.eclipse.persistence.platform.database.oracle.OraclePlatform" />
    <property name="eclipselink.target-server" value="WebLogic_10" />
    <property name="eclipselink.session-event-listener" value="oracle.communications.platform.persistence.impl.PomsSessionEventListener" />
    <property name="eclipselink.session.customizer" value="oracle.communications.platform.util.EclipseLinkSessionCustomizer" />
    <property name="poms.cache.coordination.implementation" value="jms" />
    <property name="poms.cache.coordination.ipaddress" value="10.178.139.64" />
    <property name="poms.cache.coordination.port" value="7101" />
    <property name="poms.cache.coordination.multicast.group.address" value="226.10.12.64" />
    <property name="poms.cache.coordination.multicast.port" value="3121" />
    <property name="poms.cache.coordination.topic.connection.factory.name" value="EclipseLinkTopicConnectionFactory" />
    <property name="poms.cache.coordination.topic.name" value="EclipseLinkTopic" />
    <property name="poms.cache.coordination.username" value="weblogic" />
    <property name="poms.cache.coordination.password" value="weblogic" />
    <property name="poms.cache.coordination.password.encrypted" value="false" />
    </properties>
    </persistence-unit>
    </persistence>
    I have written a session customizer that reads properties from the persistence.xml and initializes stuff. But because of the warning i mentioned earlier... I am getting null for all property entries.
    I moved the eclipselink jar entry up ahead of openjpa jar entry in weblogic.server.modules_10.3.1.0.xml and refcount.xml in /modules/features directory. I am still getting the same problem.
    I read in many posts for workarounds for this issue but didnt find anything which worked for me. I would be grateful if someone could provide me a hint as to how to make it work.
    Thanks in advance,
    Prashanth.

    Prashanth,
    Hi, there should be no issue running EclipseLink on WebLogic while you see this warning. If you are getting null properties it may be the result of another issue, could you post specific exceptions and the part of your client code that is having a problem.
    1) The warning below normally appears only when running your persistence unit with an "application managed" JTA datasource as opposed to a "globally defined server scoped datasource". Even then it can be ignored as there are still parts of WebLogic that depend on OpenJPA. Even though the warning states that properties are ignored - they are not and you should see your persistence unit loaded properly.
    I encountered this issue when running an "application managed" JTA - here is an extract of the log showing the warning and the full functioning of the pu later - the persistence unit and example code can be found on the weblogic tutorial examples link below
    "[EL Finer]: 2008.10.29 13:03:55.565--ClientSession(30346337)--Thread(Thread[[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--client released
    WARNING: Found unrecognized persistence provider "org.eclipse.persistence.jpa.PersistenceProvider" in place of OpenJPA provider. This provider's properties will not be used.
    [EL Info]: 2008.10.29 13:03:56.079--ServerSession(14772987)--EclipseLink, version: Eclipse Persistence Services - 1.1.0 (Build 20081023)
    [EL Info]: 2008.10.29 13:03:56.391--ServerSession(14772987)--file:/C:/view_w34r1a/examples/org.eclipse.persistence.example.jpa.server.weblogic.enterpriseEJB/build/classes/-exampleLocal login successful
    15 Entities in storage: 15
    [EL ExampleLocal EM]: enterprise: Object: [email protected]( id: 6 state: null parent: HashSet@15794734 references: HashSet@15794734)
    [EL ExampleLocal EM]: enterprise: Object: [email protected]( id: 26 state: null parent: HashSet@8800655 references: HashSet@8800655)
    I raised the following minor issue with our WebLogic Server team in Oct for reference - however this warning did not affect proper functioning of EclipseLink JPA.
    https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=7520161
    You may reference the following tutorial on running EclipseLink JPA on WebLogic 10.3, it details all the steps necessary to get a JTA container managed persistence unit running via a stateless session bean and a servlet client. It also details and links to application managed datasource configuration details.
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebLogic_Web_Tutorial
    2) eclipselink.jar location in WebLogic?
    The eclipselink.jar library should stay in the modules or patch_* directory depending on whether you are running a standalone WebLogic server or as part of a Fusion Middleware JDeveloper environment.
    See the following link that details deployment options for WebLogic and EclipseLink
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/WebLogic_Web_Tutorial#EclipseLink_JAR_location
    Note: I have not modified the load order of EclipseLink, OpenJPA or Kodo, I am running all including this version of OpenJPA in my modules directory. [org.apache.openjpa_1.0.0.0_1-1-1-SNAPSHOT.jar]
    3) I noticed that you are defining the target-database property in your persistence unti but you are running as JTA not RESOURCE_LOCAL. This property can be removed if your JTA datasource is defined as a Transactional server scoped datasource via the WebLogic console.
    thank you
    /michael
    http://www.eclipselink.org

  • JPA - PERSISTENCE PROVIDER NOT FOUND

    Hi,
    I am using JPA to connect to my SQL Database and using web logic 9.2 server..
    I get an No Persistence Provider exception
    any idea what this cud be
    Thanks
    Karthik

    Well, i've never worked with WebLogic, but you need a JPA implementation provider, like toplink-essentials or hibernate-entity-manager.
    You can also check your persistence.xml and look for some missing configuration.
    Here's an example from the hibernate documentation:
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
       version="1.0">
       <persistence-unit name="sample">
          <jta-data-source>java:/DefaultDS</jta-data-source>
          <properties>
             <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>
             <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
          </properties>
       </persistence-unit>
    </persistence>Hope it helps...

Maybe you are looking for

  • Safari 10.1.5 update

    Since software update 1 day ago Safari wont load pages properly. It makes several attempts and then boots me off. I can not launch Iphoto, bit defender, etc. from dock or anywhere else. Has anyone else expeirenced any problems since this update. I am

  • About printing reports in windows

    I have developed reports in ms-windows 98 , when i want to print the report i have to set the left/right top/bottom margins in the printer pagesetup dialog , is there any method to eliminate this setting and do the setting in the report builder only

  • 850E and P4C 2.4?!

    is it possible (fsb 800)

  • Duplicate delivery created against SA

    Hi all, We have peculier situation where in a duplicate outbound delivery got created with same item and same qty for schedulling agreement. The delivery was processed through VL10F. There is 2 min of diff in time for the original and duplicate deliv

  • Cannot print to a HP laserjet printer

    Running iMac OSX 10.4.11 with HP laserjet 1200. Printer selection in print dialog box will not change from PostScript file to Laserjet even tho laserjet 1200 is an option. Message box says selection failed. It will change to an Epson printer which I