Persistence Service

Hi,
did anyone try to save persistent object-references with an 1:n or n:m relationship?
I read the ABAP-Objects Book, 1:1 relation is no problem, but poor hints to 1:n.
There is a blog, that recommends to create a data-model object, that loads the 1-end-Objects first and then use the getItems-Method, to read the n-end objects.
Is it possible to map 1:n or n:m with object services? And if it is, should we use it in a productive environment? If it is possible, how to do it?
Thanks very much!
Ciao Björn Kibbel
innobis AG

cits wrote:
Hi
I use a persistence service, as in the example in http://java.sun.com/j2se/1.5.0/docs/guide/javaws/jnlp/javax/jnlp/PersistenceService.html
sorry I meant
http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/examples.html#PersistenceService

Similar Messages

  • JSF(front WebGUI)+Spring(Business Logic)+Hibernate(Persistence service)??

    To implement a well designed product with module decoupling,some friends suggest me to use the following architecture:
    JSF(front WebGUI)+Spring(Business Logic)+Hibernate(Persistence service)?
    I was puzzled that whether Spring needed or not??What's especial feature does Spring own that JSF does not have?What's the benefit of integration of JSF and Spring?
    Your reply will be appreciated greatly.
    Thanks a lot!

    Using Spring provides some major benefits; among these are:
    - Spring provides an abstraction layer for easy integration of different persistence layers (e.g. Hibernate, which comes integrated out of the box) and for easy database access
    - It provides an easy-to-use AOP framework based on dynamic proxying and byte code enhancing via CGLIB
    - IMHO most important: Spring provides an Inversion of Control container (see http://martinfowler.com/articles/injection.html) which enables you to remove references to implementation classes from your code and thus facilitates component based architectures.
    By the way, we developed a Spring/JSF integration solution (for source code, documentation and an example application see http://sourceforge.net/projects/jsf-spring). It wraps the JSF context into a Spring context and thus merges them. This way, the JSF context becomes part of Spring and vice versa. This is done in a implementation independent way so that it can be used with any JSF implementation.

  • Persistence Service Lock Concept

    Hi,
    I found this link thru search ...
    "http://help.sap.com/saphelp_nw04/helpdata/en/f5/a3682ebc6911d4b2e80050dadfb92b/content.htm".
    Part of it says...
    " At present, we have not implemented a Persistence Service lock concept, which would ensure that there was only one transient mapping for each persistent object. So ultimately, ABAP programmers are not really working with persistent objects as such; rather, the Persistence Service makes it appear as if they are."
    Is there already a lock concept in ERP7.0?
    Thanks,
    Huntr

    I found out that persistent object locking when using the persistence services can still be handled by using the classic "ENQUEUE" funtion module.

  • Persistence Service - Is there a ON_SAVE Event?

    Hi,
    I'm playing around with the persistence service in NW 2004s. What I want to do is: make some additional checks and modifications (e.g. changing last change timestamp) immediately before writing the data to the DB.
    Does anybody knows, what's the best way to do this? Unfortuanetely I didn't find any information about this.
    Can somebody help?
    Thanx a lot,
    Sascha

    Hi,
    I think you are having issue with Minimul Download Strategy (MDS). There's a feature - once it's activated your page doesn't get full reload - instead partial reload. You can disable the feature (will not recommend) which will reload page on every click.
    Other option is to wrap your function in a bit differnt way as described in
    http://blog.symprogress.com/2013/09/sharepoint-2013-execute-javascript-function-after-mds-load/.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DescriptorException

    We are upgrading various webservices to Weblogic 12c. We are running i a very annoying issue where the webservice can't be deployed on 12c whenever there is an element which is nillable and the type is an Enumartion. For example : <xsd:element name="adresType" type="bg:AdresType" nillable="true" minOccurs="0" /> where AdresType is :
        <xsd:simpleType name="AdresType">
            <xsd:restriction base="xsd:string">
                <xsd:enumeration value="DAILY" />
                <xsd:enumeration value="OFFICIAL" />
                <xsd:enumeration value="CORRESPONDENCE" />
            </xsd:restriction>
        </xsd:simpleType>
    Putting eclipselink 2.5.0 on the class path solves the problem. However, i am using a shared environment and they don't allow me to change the classpath ;-(
    I tried putting 'prefer-application-package', ' prefer-web-inf-classes' etcetera in the weblogic.xml. Doesn't work.
    Can anybody help me out?
    regards
    Johan van Kampen

    I've filed bug 382029 and checked in a fix into trunk (2.5) to fix the error you are getting so that it prints off the pk class causing the exception instead of 202 (which is the error code).
    The reason it seems to work is that the error occurs at the tail end of initializing the descriptor for PlanEffectiveData. When you continue on, it doesn't retry initializing this descriptor and will proceed. What hasn't been initialized are the fetch groups and the primary key class for the PlanEffectiveData; you will likely run into an issue if you attempt to use an em.find on the PlanEffectiveData class.
    I will have to test what the issue is, but I suspect it is a processing problem where the PersistableId IDClass isn't being replaced with the TemporalId class. Can you try removing the IDClass annotations from HistorySlice and seeing if you get this same exception? Presumably you will have to exclude any Entities that directly extend HistorySlice to test that it works correctly.
    Regards,
    Chris

  • Problem with persistence

    Hello,
    i followed this tutorial --> http://www.oracle.com/technology/obe/obe11jdev/bulldog/ejb_jpa_jsf/ejb.html
    It works on my desktop.
    I'd like to delploy this application on a weblogic server (other than my computer), but when I try, I have the following message :
    javax.ejb.EJBException: EJB Exception: ; nested exception is:
         javax.persistence.PersistenceException: Exception [EclipseLink-7060] (Eclipse Persistence Services - 1.1.1.v20090430-r4097): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Cannot acquire data source [java:/app/jdbc/jdbc/testconnectionDS].
    Internal Exception: javax.naming.NameNotFoundException: While trying to look up /app/jdbc/jdbc/testconnectionDS in /app/ejb/ejb1.jar#ConfigurationEJB.; remaining name '/app/jdbc/jdbc/testconnectionDS'; nested exception is: javax.persistence.PersistenceException: Exception [EclipseLink-7060] (Eclipse Persistence Services - 1.1.1.v20090430-r4097): org.eclipse.persistence.exceptions.ValidationException
    Exception Description: Cannot acquire data source [java:/app/jdbc/jdbc/testconnectionDS].
    Internal Exception: javax.naming.NameNotFoundException: While trying to look up /app/jdbc/jdbc/testconnectionDS in /app/ejb/ejb1.jar#ConfigurationEJB.; remaining name '/app/jdbc/jdbc/testconnectionDS'
    If I understood, I must change the persistence.xml, but what?
    Thanks
    Yves

    Hi,
    You can create a jdbc datasource on the server, using console (Services -> JDBC -> DataSources -> New....), and specify a jndi name for it, for example jdbc/MyAppDS.
    Then, change the persistence.xml accordingly, something like:
    <jta-data-source>jdbc/MyAppDS</jta-data-source>
    <property name="javax.persistence.jtaDataSource" value="jdbc/MyAppDS"/>And, that should be it.
    Pedja

  • Error while executing the proxy service

    Hi,
    I have a procedure which uses a database link to access my tables. And business service will invoke this procedure through JCA.
    We have created a datasource (Driver : non - XA for Service connections). However, while executing the proxy service it gives me below error.
    Do i need to change the type of driver. Can anybody please help me on this.
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header xmlns:com1="com:gm:vehicleengineering:engineeringworkorder:ewostatus:types:ewostatusschema:1:0" xmlns:com="com:gm:common:utilities:types:servicecontrol:1:0">
    <com:ServiceControl>
    <com:Service>EWOStatus</com:Service>
    <com:Version>1.0</com:Version>
    <com:ConsumerID>CID</com:ConsumerID>
    <com:MessageID>MID</com:MessageID>
    <com:SentTimeStamp>2008-09-28T21:49:45</com:SentTimeStamp>
    </com:ServiceControl>
    </soapenv:Header>
    <soapenv:Body>
    <soapenv:Body>
    <com:ServiceFault xmlns:com="com:gm:common:utilities:types:servicefault:1:0">
    <com:FaultCode>SOAFLT-999</com:FaultCode>
    <com:FaultString>GeneralError</com:FaultString>
    <com:FaultActor>Server</com:FaultActor>
    <com:FaultDetail>Invoke JCA outbound service failed with connection error, exception: com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/VehicleEngineering/EngineeringWorkOrder/EWOStatus/V1/WSDL/jcaEWOStatus_1_0_0 [ GetEWOStatus_ptt::GetEWOStatus(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'GetEWOStatus' failed due to: Interaction processing error.
    Error while processing the execution of the SP_GETEWOSTATUS API interaction.
    An error occurred while processing the interaction for invoking the SP_GETEWOSTATUS API. Cause: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Internal error: Cannot obtain XAConnection java.lang.ClassCastException: oracle.jdbc.driver.T4CConnection
         at weblogic.jdbc.jta.DataSource.getXAConnectionFromPool(DataSource.java:1684)
         at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:439)
         at weblogic.jdbc.jta.DataSource.connect(DataSource.java:396)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:355)
         at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:126)
         at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:94)
         at org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162)
         at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.connectInternal(DatasourceAccessor.java:327)
         at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.connectInternal(DatabaseAccessor.java:295)
         at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.reconnect(DatasourceAccessor.java:558)
         at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.reconnect(DatabaseAccessor.java:1437)
         at org.eclipse.persistence.internal.databaseaccess.DatasourceAccessor.incrementCallCount(DatasourceAccessor.java:303)
         at oracle.tip.adapter.db.DBConnection.getTopLinkSQLConnection(DBConnection.java:335)
         at oracle.tip.adapter.db.transaction.DBTransaction.beginInternal(DBTransaction.java:126)
         at oracle.tip.adapter.db.sp.SPInteraction.executeStoredProcedure(SPInteraction.java:93)
         at oracle.tip.adapter.db.DBInteraction.execute(DBInteraction.java:248)
         at oracle.tip.adapter.sa.impl.fw.wsif.jca.WSIFOperation_JCA.performOperation(WSIFOperation_JCA.java:534)
         at oracle.tip.adapter.sa.impl.JCABindingReferenceImpl.request(JCABindingReferenceImpl.java:257)
         at com.bea.wli.sb.transports.jca.binding.JCATransportOutboundOperationBindingServiceImpl.invoke(JCATransportOutboundOperationBindingServiceImpl.java:150)
         at com.bea.wli.sb.transports.jca.JCATransportEndpoint.sendRequestResponse(JCATransportEndpoint.java:209)
         at com.bea.wli.sb.transports.jca.JCATransportEndpoint.send(JCATransportEndpoint.java:170)
         at com.bea.wli.sb.transports.jca.JCATransportProvider.sendMessageAsync(JCATransportProvider.java:572)
         at sun.reflect.GeneratedMethodAccessor771.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.wli.sb.transports.Util$1.invoke(Util.java:83)
         at $Proxy142.sendMessageAsync(Unknown Source)
         at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageAsync(LoadBalanceFailoverListener.java:152)
         at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToServiceAsync(LoadBalanceFailoverListener.java:603)
         at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageToService(TransportManagerImpl.java:560)
         at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageAsync(TransportManagerImpl.java:426)
         at com.bea.wli.sb.pipeline.PipelineContextImpl.dispatch(PipelineContextImpl.java:501)
         at stages.routing.runtime.RouteRuntimeStep.processMessage(RouteRuntimeStep.java:128)
         at com.bea.wli.sb.stages.StageMetadataImpl$WrapperRuntimeStep.processMessage(StageMetadataImpl.java:346)
         at com.bea.wli.sb.pipeline.RouteNode.doRequest(RouteNode.java:106)
         at com.bea.wli.sb.pipeline.Node.processMessage(Node.java:67)
         at com.bea.wli.sb.pipeline.PipelineContextImpl.execute(PipelineContextImpl.java:922)
         at com.bea.wli.sb.pipeline.Router.processMessage(Router.java:214)
         at com.bea.wli.sb.pipeline.MessageProcessor.processRequest(MessageProcessor.java:99)
         at com.bea.wli.sb.pipeline.RouterManager$1.run(RouterManager.java:591)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at com.bea.wli.sb.security.WLSSecurityContextService.runAs(WLSSecurityContextService.java:55)
         at com.bea.wli.sb.pipeline.RouterManager.processMessage(RouterManager.java:590)
         at com.bea.wli.sb.transports.TransportManagerImpl.receiveMessage(TransportManagerImpl.java:375)
         at com.bea.wli.sb.transports.CoLocatedMessageContext$1.run(CoLocatedMessageContext.java:164)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.security.Security.runAs(Security.java:61)
         at com.bea.wli.sb.util.security.SecurityUtils.runAs(SecurityUtils.java:58)
         at com.bea.wli.sb.transports.CoLocatedMessageContext.send(CoLocatedMessageContext.java:157)
         at com.bea.wli.sb.transports.http.wls.HttpTransportProvider.sendMessageAsync(HttpTransportProvider.java:215)
         at sun.reflect.GeneratedMethodAccessor771.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.wli.sb.transports.Util$1.invoke(Util.java:83)
         at $Proxy122.sendMessageAsync(Unknown Source)
         at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageAsync(LoadBalanceFailoverListener.java:152)
         at com.bea.wli.sb.transports.LoadBalanceFailoverListener.sendMessageToServiceAsync(LoadBalanceFailoverListener.java:603)
         at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageToService(TransportManagerImpl.java:560)
         at com.bea.wli.sb.transports.TransportManagerImpl.sendMessageAsync(TransportManagerImpl.java:426)
         at com.bea.wli.sb.pipeline.PipelineContextImpl.dispatch(PipelineContextImpl.java:501)
         at stages.routing.runtime.RouteRuntimeStep.processMessage(RouteRuntimeStep.java:128)
         at com.bea.wli.sb.stages.StageMetadataImpl$WrapperRuntimeStep.processMessage(StageMetadataImpl.java:346)
         at com.bea.wli.sb.pipeline.RouteNode.doRequest(RouteNode.java:106)
         at com.bea.wli.sb.pipeline.Node.processMessage(Node.java:67)
         at com.bea.wli.sb.pipeline.PipelineContextImpl.execute(PipelineContextImpl.java:922)
         at com.bea.wli.sb.pipeline.Router.processMessage(Router.java:214)
         at com.bea.wli.sb.pipeline.MessageProcessor.processRequest(MessageProcessor.java:99)
         at com.bea.wli.sb.pipeline.RouterManager$1.run(RouterManager.java:591)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at com.bea.wli.sb.security.WLSSecurityContextService.runAs(WLSSecurityContextService.java:55)
         at com.bea.wli.sb.pipeline.RouterManager.processMessage(RouterManager.java:590)
         at com.bea.wli.sb.transports.TransportManagerImpl.receiveMessage(TransportManagerImpl.java:375)
         at com.bea.wli.sb.transports.http.generic.RequestHelperBase$1.run(RequestHelperBase.java:152)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at com.bea.wli.sb.transports.http.generic.RequestHelperBase.securedInvoke(RequestHelperBase.java:151)
         at com.bea.wli.sb.transports.http.wls.HttpTransportServlet.service(HttpTransportServlet.java:127)
         at weblogic.servlet.FutureResponseServlet.service(FutureResponseServlet.java:25)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3686)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Thanks,
    Chandana

    Make sure that you are using non-xa datasources and in DBAdapter outbound connection pool configuration provide the data source JNDI in "dataSourceName" property instead of "xADataSourceName" property. Update the DBAdapter after changing configuration.
    Regards,
    Anuj

  • 3.0 - Provisioning Service - excel upload error

    Just finished installing EID 3.0 and installed provisioning services on non-ssl / default settings (minus turning ssl off).
    I'm able to select an excel spreadsheet from the home page in Studio, when I click next, I get the following error.
    Looks like it's related to my jdbc settings. I'm using derby as a default, so not sure if I need to change any settings within a eid-ps file and not sure where to set this. Please let me know if anybody has advice. Thanks in advance.
    Error while uploading Excel file. EJB Exception: : javax.persistence.PersistenceException: Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.ValidationException\r\nException Description: Cannot acquire data source [jdbc/oracle.eid-ps].\r\nInternal Exception: javax.naming.NameNotFoundException: While trying to lookup 'jdbc.oracle.eid-ps' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/oracle/eid-ps'\r\n\tat org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:517)\r\n\tat org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getDatabaseSession(EntityManagerFactoryDelegate.java:188)\r\n\tat org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:277)\r\n\tat org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:294)\r\n\tat org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:272)\r\n\tat weblogic.deployment.TransactionalEntityManagerProxyImpl.newPersistenceContext(TransactionalEntityManagerProxyImpl.java:66)\r\n\tat weblogic.deployment.BasePersistenceContextProxyImpl.getPersistenceContext(BasePersistenceContextProxyImpl.java:178)\r\n\tat weblogic.deployment.BasePersistenceContextProxyImpl.invoke(BasePersistenceContextProxyImpl.java:106)\r\n\tat weblogic.deployment.TransactionalEntityManagerProxyImpl.invoke(TransactionalEntityManagerProxyImpl.java:78)\r\n\tat weblogic.deployment.BasePersistenceContextProxyImpl.invoke(BasePersistenceContextProxyImpl.java:92)\r\n\tat weblogic.deployment.TransactionalEntityManagerProxyImpl.invoke(TransactionalEntityManagerProxyImpl.java:18)\r\n\tat $Proxy131.persist(Unknown Source)\r\n\tat com.oracle.endeca.pdi.bean.manager.workflow.WorkflowManagerEjb.create(WorkflowManagerEjb.java:40)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\r\n\tat java.lang.reflect.Method.invoke(Method.java:597)\r\n\tat com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)\r\n\tat com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)\r\n\tat com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)\r\n\tat

    Hi Brett,
    The connection is working. But when I try to upload an Excel file (doesn't matter which one) I get an error:
    Error while uploading Excel file. EJB Exception: : javax.persistence.PersistenceException: Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.ValidationException\r\nException Description: Cannot acquire data source [jdbc/oracle.eid-ps].\r\nInternal Exception: javax.naming.NameNotFoundException: While trying to lookup 'jdbc.oracle.eid-ps' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/oracle/eid-ps'\r\n\tat org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:517)\r\n\tat org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getDatabaseSession(EntityManagerFactoryDelegate.java:188)\r\n\tat org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:277)\r\n\tat org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:294)\r\n\tat org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:272)\r\n\tat weblogic.deployment.TransactionalEntityManagerProxyImpl.newPersistenceContext(TransactionalEntityManagerProxyImpl.java:66)\r\n\tat weblogic.deployment.BasePersistenceContextProxyImpl.getPersistenceContext(BasePersistenceContextProxyImpl.java:178)\r\n\tat weblogic.deployment.BasePersistenceContextProxyImpl.invoke(BasePersistenceContextProxyImpl.java:106)\r\n\tat weblogic.deployment.TransactionalEntityManagerProxyImpl.invoke(TransactionalEntityManagerProxyImpl.java:78)\r\n\tat weblogic.deployment.BasePersistenceContextProxyImpl.invoke(BasePersistenceContextProxyImpl.java:92)\r\n\tat weblogic.deployment.TransactionalEntityManagerProxyImpl.invoke(TransactionalEntityManagerProxyImpl.java:18)\r\n\tat com.sun.proxy.$Proxy61.persist(Unknown Source)\r\n\tat com.oracle.endeca.pdi.bean.manager.workflow.WorkflowManagerEjb.create(WorkflowManagerEjb.java:40)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\r\n\tat java.lang.reflect.Method.invoke(Method.java:597)\r\n\tat com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)\r\n\tat com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)\r\n\tat com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)\r\n\tat com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)\r\n\tat com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)\r\n\tat com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)\r\n\tat com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)\r\n\tat weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)\r\n\tat com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)\r\n\tat com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)\r\n\tat com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)\r\n\tat com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)\r\n\tat com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)\r\n\tat com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)\r\n\tat com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)\r\n\tat com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)\r\n\tat com.sun.proxy.$Proxy142.create(Unknown Source)\r\n\tat com.oracle.endeca.pdi.bean.manager.workflow.WorkflowManagerEjb_96rafy_WorkflowManagerImpl.__WL_invoke(Unknown Source)\r\n\tat weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:39)\r\n\tat com.oracle.endeca.pdi.bean.manager.workflow.WorkflowManagerEjb_96rafy_WorkflowManagerImpl.create(Unknown Source)\r\n\tat com.oracle.endeca.pdi.service.UserDataImpl.beginWorkflow(UserDataImpl.java:218)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)\r\n\tat java.lang.reflect.Method.invoke(Method.java:597)\r\n\tat weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:92)\r\n\tat weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:74)\r\n\tat com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:151)\r\n\tat com.sun.xml.ws.server.sei.EndpointMethodHandlerImpl.invoke(EndpointMethodHandlerImpl.java:268)\r\n\tat com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:100)\r\n\tat com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:866)\r\n\tat com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:815)\r\n\tat com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:778)\r\n\tat com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:680)\r\n\tat com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:403)\r\n\tat com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:539)\r\n\tat com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:253)\r\n\tat com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:140)\r\n\tat weblogic.wsee.jaxws.WLSServletAdapter.handle(WLSServletAdapter.java:171)\r\n\tat weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:708)\r\n\tat weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)\r\n\tat weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)\r\n\tat weblogic.wsee.util.ServerSecurityHelper.authenticatedInvoke(ServerSecurityHelper.java:103)\r\n\tat weblogic.wsee.jaxws.HttpServletAdapter$3.run(HttpServletAdapter.java:311)\r\n\tat weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:336)\r\n\tat weblogic.wsee.jaxws.JAXWSServlet.doRequest(JAXWSServlet.java:99)\r\n\tat weblogic.servlet.http.AbstractAsyncServlet.service(AbstractAsyncServlet.java:99)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:820)\r\n\tat weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)\r\n\tat weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)\r\n\tat weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)\r\n\tat weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:184)\r\n\tat weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3732)\r\n\tat weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)\r\n\tat weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)\r\n\tat weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)\r\n\tat weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)\r\n\tat weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)\r\n\tat weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)\r\n\tat weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)\r\n\tat weblogic.work.ExecuteThread.run(ExecuteThread.java:221)\r\nCaused by: Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.ValidationException\r\nException Description: Cannot acquire data source [jdbc/oracle.eid-ps].\r\nInternal Exception: javax.naming.NameNotFoundException: While trying to lookup 'jdbc.oracle.eid-ps' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/oracle/eid-ps'\r\n\tat org.eclipse.persistence.exceptions.ValidationException.cannotAcquireDataSource(ValidationException.java:497)\r\n\tat org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:109)\r\n\tat org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162)\r\n\tat org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:584)\r\n\tat org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:206)\r\n\tat org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:488)\r\n\t... 77 more\r\nCaused by: javax.naming.NameNotFoundException: While trying to lookup 'jdbc.oracle.eid-ps' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/oracle/eid-ps'\r\n\tat weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)\r\n\tat weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:247)\r\n\tat weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)\r\n\tat weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)\r\n\tat weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)\r\n\tat weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:402)\r\n\tat javax.naming.InitialContext.lookup(InitialContext.java:396)\r\n\tat org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:103)\r\n\t... 81 more\r\n; nested exception is: javax.persistence.PersistenceException: Exception [EclipseLink-7060] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.ValidationException\r\nException Description: Cannot acquire data source [jdbc/oracle.eid-ps].\r\nInternal Exception: javax.naming.NameNotFoundException: While trying to lookup 'jdbc.oracle.eid-ps' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/oracle/eid-ps'
    The JDBC connection in the console is set to jdbc/oracle.eid-ps
    Marco

  • How to verify whether the persistence unit objects are persistent or not?

    How to verify whether the persistence unit objects are persistent or not?
    I have successfully configure and deploy the Employees object as a persistence unit in Oracle Coherence according to the guide of Chapter 6 of Tutorial for Oracle Coherence 3.5.
    Using the RunEmployeeExample script, I have got the right results. I can see that after the cache object is updated, the database table (Employees) is also updated accordingly. The following is the output:
    2009-11-05 11:09:55.043/53.467 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member(Id=2, Timestamp=2009-11-05 11:09:54.867, Add
    ress=192.168.8.80:8089, MachineId=24656, Location=process:1684, Role=OracleRunEmployeeExample) joined Cluster with senior member 1
    2009-11-05 11:09:55.604/54.028 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service Management with senior memb
    er 1
    2009-11-05 11:09:56.885/55.309 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): TcpRing: connecting to member 2 using TcpSocket{Sta
    te=STATE_OPEN, Socket=Socket[addr=/192.168.8.80,port=8089,localport=4084]}
    2009-11-05 11:09:57.847/56.281 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service JpaDistributedCache with se
    nior member 1
    2009-11-05 11:09:57.917/56.341 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:JpaDistributedCache, member=1): Service JpaDistributed
    Cache: sending ServiceConfigSync containing 258 entries to Member 2
    2009-11-05 11:10:04.086/62.510 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:JpaDistributedCache, member=1): Deferring the distribu
    tion due to 1 pending configuration updates
    [EL Info]: 2009-11-05 11:10:14.36--ServerSession(2883071)--EclipseLink, version: Eclipse Persistence Services - 1.1.1.v20090430-r4097
    [EL Info]: 2009-11-05 11:10:22.312--ServerSession(2883071)--file:/C:/JDeveloper/mywork/AppJPA/JPA/classes/-JPA login successful
    2009-11-05 11:10:24.305/82.729 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:JpaDistributedCache, member=1): 3> Transferring 128 ou
    t of 257 primary partitions to member 2 requesting 128
    2009-11-05 11:10:25.697/84.121 Oracle Coherence GE 3.5.2/463 <D4> (thread=DistributedCache:JpaDistributedCache, member=1): 1> Transferring 129 ou
    t of 129 partitions to a node-safe backup 1 at member 2 (under 129)
    2009-11-05 11:10:25.857/84.281 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:JpaDistributedCache, member=1): Transferring 0KB of ba
    ckup[1] for PartitionSet{128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151,
    152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180,
    181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209,
    210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238,
    239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256} to member 2
    2009-11-05 11:10:40.678/99.102 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): TcpRing: disconnected from member 2 due to a kill r
    equest
    2009-11-05 11:10:40.678/99.102 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 left service Management with senior member
    1
    2009-11-05 11:10:40.678/99.102 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 left service JpaDistributedCache with seni
    or member 1
    2009-11-05 11:10:40.708/99.132 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member(Id=2, Timestamp=2009-11-05 11:10:40.708, Add
    ress=192.168.8.80:8089, MachineId=24656, Location=process:1684, Role=OracleRunEmployeeExample) left Cluster with senior member 1
    2009-11-05 11:10:40.879/99.303 Oracle Coherence GE 3.5.2/463 <Info> (thread=DistributedCache:JpaDistributedCache, member=1): Restored from backup
    128 partitions
    2009-11-05 11:10:40.879/99.303 Oracle Coherence GE 3.5.2/463 <D4> (thread=DistributedCache:JpaDistributedCache, member=1): 0, 1, 2, 3, 4, 5, 6, 7
    , 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 4
    4, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80
    , 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 11
    3, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127,
    2009-11-05 11:28:39.800/1178.224 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member(Id=2, Timestamp=2009-11-05 11:28:39.635, A
    ddress=192.168.8.80:8089, MachineId=24656, Location=site:metsys.metex.com,machine:mw12,process:1752, Role=CoherenceConsole) joined Cluster with s
    enior member 1
    2009-11-05 11:28:40.231/1178.655 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service Management with senior me
    mber 1
    2009-11-05 11:28:41.633/1180.057 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): TcpRing: connecting to member 2 using TcpSocket{S
    tate=STATE_OPEN, Socket=Socket[addr=/192.168.8.80,port=8089,localport=4143]}
    2009-11-05 11:30:01.658/1260.082 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service DistributedCache with sen
    ior member 2But I cannot verify if the persistence unit is still persistent.
    Edited by: jetq on Nov 5, 2009 11:49 AM

    I start a Coherence Console in another Windows Command Prompt as the following:
    D:\coherence\bin>  coherence.cmd
    ** Starting storage disabled console **
    java version "1.6.0_11"
    Oracle Coherence Version 3.5.2/463
    Grid Edition: Development mode
    Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
    2009-11-05 11:57:22.167/9.734 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=n/a): Service Cluster joined th
    e cluster with senior service member n/a
    2009-11-05 11:57:22.197/9.764 Oracle Coherence GE 3.5.2/463 <Info> (thread=Cluster, member=n/a): Failed to satisfy the v
    ariance: allowed=16, actual=20
    2009-11-05 11:57:22.197/9.764 Oracle Coherence GE 3.5.2/463 <Info> (thread=Cluster, member=n/a): Increasing allowable va
    riance to 17
    2009-11-05 11:57:22.677/10.244 Oracle Coherence GE 3.5.2/463 <Info> (thread=Cluster, member=n/a): This Member(Id=3, Time
    stamp=2009-11-05 11:57:22.392, Address=192.168.8.80:8089, MachineId=24656, Location=process:460, Role=CoherenceConsole,
    Edition=Grid Edition, Mode=Development, CpuCount=1, SocketCount=1) joined cluster "cluster:0xD3FB" with senior Member(Id
    =1, Timestamp=2009-11-05 11:09:09.738, Address=192.168.8.80:8088, MachineId=24656, Location=process:1816, Role=Coherence
    Server, Edition=Grid Edition, Mode=Development, CpuCount=1, SocketCount=1)
    2009-11-05 11:57:22.737/10.304 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=n/a): Member 1 joined Service
    Management with senior member 1
    2009-11-05 11:57:22.737/10.304 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=n/a): Member 1 joined Service
    JpaDistributedCache with senior member 1
    2009-11-05 11:57:23.108/10.675 Oracle Coherence GE 3.5.2/463 <D5> (thread=Invocation:Management, member=3): Service Mana
    gement joined the cluster with senior service member 1
    2009-11-05 11:57:23.759/11.326 Oracle Coherence GE 3.5.2/463 <D5> (thread=TcpRingListener, member=3): TcpRing: connectin
    g to member 1 using TcpSocket{State=STATE_OPEN, Socket=Socket[addr=/192.168.8.80,port=4168,localport=8089]}
    SafeCluster: Name=cluster:0xD3FB
    Group{Address=224.3.5.2, Port=35463, TTL=4}The previous output shows that this Coherence console (the client side) has already joined the JPA server.
    But the following output shows us that this console cannot access the Employees cache and cannot get the object entry. Why?
    Map (?): cache Employees
    2009-11-05 12:11:41.653/869.220 Oracle Coherence GE 3.5.2/463 <Info> (thread=main, member=3): Loaded cache configuration
    from "jar:file:/D:/coherence/lib/coherence.jar!/coherence-cache-config.xml"
    2009-11-05 12:11:43.055/870.622 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache, member=3): Service Distribu
    tedCache joined the cluster with senior service member 3
    <distributed-scheme>
      <!--
      To use POF serialization for this partitioned service,
      uncomment the following section
      <serializer>
      <class-
      name>com.tangosol.io.pof.ConfigurablePofContext</class-
      name>
      </serializer>
      -->
      <scheme-name>example-distributed</scheme-name>
      <service-name>DistributedCache</service-name>
      <backing-map-scheme>
        <local-scheme>
          <scheme-ref>example-binary-backing-map</scheme-ref>
        </local-scheme>
      </backing-map-scheme>
      <autostart>true</autostart>
    </distributed-scheme>
    Map (Employees): list
    2009-11-05 12:11:48.402/875.969 Oracle Coherence GE 3.5.2/463 <Error> (thread=main, member=3):
    java.lang.RuntimeException: Storage is not configured
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BinaryMap.onMissing
    Storage(DistributedCache.CDB:9)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BinaryMap.ensureReq
    uestTarget(DistributedCache.CDB:33)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BinaryMap.sendParti
    tionedRequest(DistributedCache.CDB:31)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BinaryMap.size(Dist
    ributedCache.CDB:13)
            at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BinaryMap$EntrySet.
    size(DistributedCache.CDB:1)
            at com.tangosol.util.ConverterCollections$ConverterEntrySet.size(ConverterCollections.java:2720)
            at com.tangosol.coherence.component.application.console.Coherence.doList(Coherence.CDB:74)
            at com.tangosol.coherence.component.application.console.Coherence.processCommand(Coherence.CDB:442)
            at com.tangosol.coherence.component.application.console.Coherence.run(Coherence.CDB:39)
            at com.tangosol.coherence.component.application.console.Coherence.main(Coherence.CDB:3)
            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:597)
            at com.tangosol.net.CacheFactory.main(CacheFactory.java:1400)Edited by: jetq on Nov 5, 2009 12:18 PM

  • EJB Service and Eclipse Link marshalling error.

    Hi all. I have a problem with using EJB Service in BPEL.
    I have two JPA entities linked with @OneToMany association
    // RegistryItemBuffer
    @Entity
    @NamedQueries( { @NamedQuery(name =
    "RegistryItemBuffer.findRegItemsBufByRegId",
    query =
    "select o from RegistryItemBuffer o where o.registry.registryId = :registryId") })
    @Table(name = "PP_PERSON_ST_RG_ITEM_B")
    public class RegistryItemBuffer implements Serializable {
    private Long registryItemId;
    private Registry registry;
    private static final long serialVersionUID = 7526471155622776147L;
    public RegistryItemBuffer() {
    *@ManyToOne*
    *@JoinColumn(name = "PP_PERSON_ST_RG_ID")*
    *public Registry getRegistry() {*
    return registry;
    *public void setRegistry(Registry registry) {*
    this.registry = registry;
    //Registry
    @Entity
    @Table(name = "PP_PERSON_ST_RG")
    public class Registry implements Serializable {
    private Long registryId;
    private Set<RegistryItemBuffer> registryItemBufferSet;
    private static final long serialVersionUID = 7526471155622776100L;
    public Registry() {
    *@OneToMany(mappedBy = "registry", fetch = FetchType.EAGER)*
    *public Set<RegistryItemBuffer> getRegistryItemBufferSet() {*
    return registryItemBufferSet;
    *public void setRegistryItemBufferSet(Set<RegistryItemBuffer> registryItemBufferSet) {*
    this.registryItemBufferSet = registryItemBufferSet;
    In my stateless session bean I have a method which fetches registry items by registry id using named query:
    @SuppressWarnings("unchecked")
    public List<RegistryItemBuffer> getRegistryItems(Long registryId) {
    Query query =
    em.createNamedQuery("RegistryItemBuffer.findRegItemsBufByRegId");
    query.setParameter("registryId", registryId);
    List<RegistryItemBuffer> items = query.getResultList();
    return items;
    If I call this method from EJB Client it works fine.
    In my composite application I've add EJB Service. I have add a jar with EJB Remote Interface to SCA-INF/lib and specified JNDI path and remote interface in EJB Service Reference.
    When I invoking getRegistryItems method from BPEL it fetches all items by the EclipseLink Exception throws at the end:
    javax.xml.bind.MarshalException
    - with linked exception:
    [Exception [EclipseLink-7242] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.Val
    idationException
    Exception Description: An attempt was made to traverse a relationship using indirection that had a null Session. This often
    occurs when an entity with an uninstantiated LAZY relationship is serialized and that lazy relationship is traversed after
    serialization. To avoid this issue, instantiate the LAZY relationship prior to serialization.]
    at org.eclipse.persistence.jaxb.JAXBMarshaller.marshal(JAXBMarshaller.java:375)
    at org.eclipse.persistence.jaxb.JAXBMarshaller.marshal(JAXBMarshaller.java:401)
    Why EclipseLink cannot serialize fetched registry items ?
    I would be grateful to any advice.
    P.S. Sorry, If there is more appropriate forum.

    Any clues to this one?

  • Persistence.getPersistenceUtil().isLoaded method throws java.lang.NullPointerException

    Why the java.lang.NullPointerException exception occurs when J call Persistence.getPersistenceUtil().isLoaded(entityA, "list") method for multitenant entities?
    @Entity
    @Table(name = "entity_a")
    @Multitenant(MultitenantType.TABLE_PER_TENANT)
    @TenantTableDiscriminator(type= TenantTableDiscriminatorType.SCHEMA)
    public class EntityA implements Serializable {
        @OneToMany(cascade = CascadeType.ALL,
                mappedBy = "ea",
                fetch = FetchType.LAZY)
        private List<EntityB> list= new ArrayList<EntityB>();
    @Entity
    @Table(name = "entity_b")
    @Multitenant(MultitenantType.TABLE_PER_TENANT)
    @TenantTableDiscriminator(type= TenantTableDiscriminatorType.SCHEMA)
    public class EntityB implements Serializable {
    @JoinColumns({...})
        @ManyToOne
        private EntityA ea;
    Main.java
    EntityManager em = Persistence.createEntityManagerFactory("PersistenceUnit")
                    .createEntityManager();
            em.getTransaction().begin();
            em.setProperty(
                    EntityManagerProperties.MULTITENANT_PROPERTY_DEFAULT,
                    "schema"
        EntityA entityA = em.find(EntityA.class, "1");
            Persistence.getPersistenceUtil().isLoaded(entityA, "list");
            em.getTransaction().commit();
    Exception in thread "main" Local Exception Stack:
    Exception [EclipseLink-69] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.DescriptorException
    Exception Description: A NullPointerException was thrown while extracting a value from the instance variable [list] in the object [jpatest.EntityA].
    Internal Exception: java.lang.NullPointerException
    Mapping: org.eclipse.persistence.mappings.OneToManyMapping[otherTaxableIncomeItemList]
    Descriptor: RelationalDescriptor(jpatest.EntityA --> [DatabaseTable(entity_a)])
        at org.eclipse.persistence.exceptions.DescriptorException.nullPointerWhileGettingValueThruInstanceVariableAccessor(DescriptorException.java:1275)
        at org.eclipse.persistence.internal.descriptors.InstanceVariableAttributeAccessor.getAttributeValueFromObject(InstanceVariableAttributeAccessor.java:88)
        at org.eclipse.persistence.mappings.DatabaseMapping.getAttributeValueFromObject(DatabaseMapping.java:579)
        at org.eclipse.persistence.mappings.ForeignReferenceMapping.getAttributeValueFromObject(ForeignReferenceMapping.java:974)
        at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.isLoaded(EntityManagerFactoryImpl.java:172)
        at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.isLoaded(EntityManagerFactoryImpl.java:153)
        at org.eclipse.persistence.jpa.PersistenceProvider.isLoadedWithReference(PersistenceProvider.java:439)
        at javax.persistence.Persistence$1.isLoaded(Persistence.java:83)
        at jpatest.JPATest.main(JPATest.java:45)
    Caused by: java.lang.NullPointerException
        at org.eclipse.persistence.internal.descriptors.InstanceVariableAttributeAccessor.getAttributeValueFromObject(InstanceVariableAttributeAccessor.java:76)
        ... 7 more
    Java Result: 1
    Thank you, Dragan.

    I have found the bug. Thx ^o^

  • 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

  • Org.eclipse.persistence.exceptions.ConversionException with INTERVALSD

    I have this issue with eclipselink 1.2.0.v20091016-r5565 and Oracle 11gR2
    column is INTERVAL DAY(5) TO SECOND(1) in database
    in EJB has been generated as Integer
    any workaround ???
    thank u
    patrick
    [EL Warning]: Exception [EclipseLink-3002] (Eclipse Persistence Services - 1.2.0.v20091016-r5565): org.eclipse.persistence.exceptions.ConversionException
    Exception Description: The object [0 0:0:2.400000000], of class [class oracle.sql.INTERVALDS], from mapping [org.eclipse.persistence.mappings.DirectToFieldMapping[flushElapsed-->sys.WRM$_SNAPSHOT.FLUSH_ELAPSED]] with descriptor [RelationalDescriptor(org.eclipse.persistence.extension.dynamic.WrmSnapshot --> [DatabaseTable(sys.WRM$_SNAPSHOT)])], could not be converted to [class java.lang.Integer].
    Exception in thread "main" Local Exception Stack:
    Exception [EclipseLink-3002] (Eclipse Persistence Services - 1.2.0.v20091016-r5565): org.eclipse.persistence.exceptions.ConversionException
    Exception Description: The object [0 0:0:2.400000000], of class [class oracle.sql.INTERVALDS], from mapping [org.eclipse.persistence.mappings.DirectToFieldMapping[flushElapsed-->sys.WRM$_SNAPSHOT.FLUSH_ELAPSED]] with descriptor [RelationalDescriptor(org.eclipse.persistence.extension.dynamic.WrmSnapshot --> [DatabaseTable(sys.WRM$_SNAPSHOT)])], could not be converted to [class java.lang.Integer].
    at org.eclipse.persistence.exceptions.ConversionException.couldNotBeConverted(ConversionException.java:71)
    at org.eclipse.persistence.internal.helper.ConversionManager.convertObjectToInteger(ConversionManager.java:539
    package org.eclipse.persistence.extension.dynamic;
    import java.io.Serializable;
    import java.sql.Timestamp;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.IdClass;
    import javax.persistence.NamedQueries;
    import javax.persistence.NamedQuery;
    import javax.persistence.Table;
    @Entity
    @NamedQueries({
    @NamedQuery(name = "WrmSnapshot.findAll", query = "select o from WrmSnapshot o")
    @Table(name = "WRM$_SNAPSHOT")
    @IdClass(WrmSnapshotPK.class)
    public class WrmSnapshot implements Serializable {
    @Column(name="BEGIN_INTERVAL_TIME", nullable = false)
    private Timestamp beginIntervalTime;
    @Column(name="BL_MOVED")
    private Long blMoved;
    @Id
    @Column(nullable = false)
    private Long dbid;
    @Column(name="END_INTERVAL_TIME", nullable = false)
    private Timestamp endIntervalTime;
    @Column(name="ERROR_COUNT")
    private Long errorCount;
    @Column(name="FLUSH_ELAPSED")
    private Integer flushElapsed;
    @Id
    @Column(name="INSTANCE_NUMBER", nullable = false)
    private Long instanceNumber;
    @Column(name="SNAP_FLAG")
    private Long snapFlag;
    @Id
    @Column(name="SNAP_ID", nullable = false)
    private Long snapId;
    @Column(name="SNAP_LEVEL")

    It probably depends on which tool are you using to generate EJB's from tables, but i don't think it's possible to make it use String for INTERVAL fields.
    I don't have much experience with working with INTERVAL fields but my guess is that they are converted to Lob's instead of byte array (Lob actually make sense as a representation of byte array). My other guess is that if you choose String for your field then when read from DB it is first converted to Lob then to String, but proper mapping for INTERVAL field is Lob. Number field can be converted to String but its not a "proper" way to handle Number fields.

  • JPA Persistence loading issue - JBOSS 5

    Hello Every One!!
    I have two projects "ProjectA.war" and "ProjectB.war".
    In both projects, i am using Oracle 11g, JPA2 with EclipseLink 2.4.2.
    and i am using JBOSS 5.1.0 GA application server.
    Both have different persistence.xml files with different persistence-unit names, different data-source files.
    Here i am connecting same Oracle DB user for both projects.
    My Problem is...
    First i had deployed ProjectA.war in server. And it is working fine. and DB operations also working fine.
    Now i am deploying the ProjectB.war in server  besides of ProjectA.war.
    So, when i am trying to perform the db operations on ProjectA.war then jboss is searching the POJO classes in ProjectB.war's persistenece.xml file with the help of ProjectB's persistence-unit name.
    But actually it need to search in ProjectA.
    So, what can i do?
    My ProjectA.war Configurations as like below...
    ============ 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_2_0.xsd" version="2.0">
              <persistence-unit name="Entity" transaction-type="RESOURCE_LOCAL">
                        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
                        <non-jta-data-source>java:/projectADS</non-jta-data-source>
                        <class>env.model.authorization.IptUsersRoles</class>
                        <class>env.model.defaults.IptUsergroups</class>
                        <class>env.model.defaults.IptUsertype</class>
                        <class>env.model.authorization.IptUsers</class>
                            <properties>
                                  <property name="javax.persistence.jdbc.driver"
                                            value="oracle.jdbc.driver.OracleDriver" />
                                  <property name="javax.persistence.jdbc.url"
                                            value="jdbc:oracle:thin:@x.x.x.x:1521:TEST" />
                                  <property name="javax.persistence.jdbc.user" value="TEST" />
                                  <property name="javax.persistence.jdbc.password" value="TEST" />
                                  <property name="eclipselink.session.customizer" value="entity.jpa.JPAEclipseLinkSessionCustomizer"/>
                                  <property name="eclipselink.logging.level" value="FINEST"/>
                        </properties>
              </persistence-unit>
    </persistence>
    ================= jboss-classloading.xml ===================
    <?xml version="1.0" encoding="UTF-8"?>
    <classloading xmlns="urn:jboss:classloading:1.0"
                                  name="ProjectA.war"
                                  domain="DefaultDomain"
                                  top-level-classloader="true"
                                  parent-domain="Ignored"
                export-all="NON_EMPTY"
                import-all="true"
                parent-first="false">
    </classloading>
    ==================== jboss-web.xml ======================
    <?xml version="1.0" encoding="UTF-8"?>
    <jboss-web>
              <resource-ref>
                        <description>DB Connection</description>
                        <res-ref-name>ProjectADS</res-ref-name>
                        <res-type>javax.sql.DataSource</res-type>
                        <jndi-name>java:/ProjectADS</jndi-name>
                        <res-auth>Container</res-auth>
        </resource-ref>
    </jboss-web>
    My ProjectB.war Configurations as like below...
    ============ persistence.xml ==================
    <?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
        persistence_2_0.xsd" version="2.0">
              <persistence-unit name="IportIBEntity" transaction-type="RESOURCE_LOCAL">
                        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
                        <non-jta-data-source>java:/ProjectBDS</non-jta-data-source>
                        <class>env.model.IptRequestDataRecord</class>
                        <class>env.model.IptResponseDataRecord</class>
                        <properties>
                                  <property name="eclipselink.jdbc.driver"
                                            value="oracle.jdbc.driver.OracleDriver" />
                                  <property name="eclipselink.jdbc.url"
                                            value="jdbc:oracle:thin:@x.x.x.x:1521:TEST" />
                                  <property name="eclipselink.jdbc.user" value="TEST" />
                                  <property name="eclipselink.jdbc.password" value="TEST" />
                                  <property name="eclipselink.session.customizer"
                                            value="entity.jpa.JPAEclipseLinkSessionCustomizer" />
                                  <property name="eclipselink.logging.level" value="FINEST" />
                        </properties>
              </persistence-unit>
    </persistence>
    ================= jboss-classloading.xml ===================
    <?xml version="1.0" encoding="UTF-8"?>
    <classloading xmlns="urn:jboss:classloading:1.0"
                                  name="ProjectB.war"
                                  domain="DefaultDomain"
                                  top-level-classloader="true"
                                  parent-domain="Ignored"
                export-all="NON_EMPTY"
                import-all="true"
                parent-first="false">
    </classloading>
    ==================== jboss-web.xml ======================
    <?xml version="1.0" encoding="UTF-8"?>
    <jboss-web>
              <resource-ref>
                        <description>DB Connection</description>
                        <res-ref-name>ProjectBDS</res-ref-name>
                        <res-type>javax.sql.DataSource</res-type>
                        <jndi-name>java:/ProjectBDS</jndi-name>
                        <res-auth>Container</res-auth>
        </resource-ref>
    </jboss-web>
    And the console error like below ....
    13:26:34,068 INFO  [IportIBEntity] finding IptUsers instance with property: userCode, value: ADMIN
    13:26:34,709 SEVERE [IportIBEntity] find by property name failed
    java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
    Exception Description: Problem compiling [select model from IptUsers model where model.userCode= :propertyValue].
    [18, 26] The abstract schema type 'IptUsers' is unknown.
    [39, 53] The state field path 'model.userCode' cannot be resolved to a valid type.
              at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1512)
              at env.acegi.users.IptUsersDAO.findByProperty(IptUsersDAO.java:174)
              at env.acegi.users.IptUsersDAO.findByUserCode(IptUsersDAO.java:185)
              at env.acegi.security.AcegiAuthentication.loadUserByUsername(AcegiAuthentication.java:51)
              at org.acegisecurity.providers.dao.DaoAuthenticationProvider.retrieveUser(DaoAuthenticationProvider.java:99)
              at org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:122)
              at org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:200)
              at org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:47)
              at org.acegisecurity.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:74)
              at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:252)
              at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
              at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
              at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
              at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
              at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
              at org.acegisecurity.concurrent.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:95)
              at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
              at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
              at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Thread.java:662)
    Caused by: Exception [EclipseLink-0] (Eclipse Persistence Services - 2.4.2.v20130315-93567e3): org.eclipse.persistence.exceptions.JPQLException
    Exception Description: Problem compiling [select model from IptUsers model where model.userCode= :propertyValue].
    [18, 26] The abstract schema type 'IptUsers' is unknown.
    [39, 53] The state field path 'model.userCode' cannot be resolved to a valid type.
              at org.eclipse.persistence.internal.jpa.jpql.HermesParser.buildException(HermesParser.java:150)
              at org.eclipse.persistence.internal.jpa.jpql.HermesParser.validate(HermesParser.java:339)
              at org.eclipse.persistence.internal.jpa.jpql.HermesParser.populateQueryImp(HermesParser.java:270)
              at org.eclipse.persistence.internal.jpa.jpql.HermesParser.buildQuery(HermesParser.java:157)
              at org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:138)
              at org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:112)
              at org.eclipse.persistence.internal.jpa.EJBQueryImpl.<init>(EJBQueryImpl.java:98)
              at org.eclipse.persistence.internal.jpa.EJBQueryImpl.<init>(EJBQueryImpl.java:82)
              at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1510)
              ... 38 more
    13:26:34,711 ERROR [[default]] Servlet.service() for servlet default threw exception
    java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
    Exception Description: Problem compiling [select model from IptUsers model where model.userCode= :propertyValue].
    [18, 26] The abstract schema type 'IptUsers' is unknown.
    [39, 53] The state field path 'model.userCode' cannot be resolved to a valid type.
              at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1512)
              at env.acegi.users.IptUsersDAO.findByProperty(IptUsersDAO.java:174)
              at env.acegi.users.IptUsersDAO.findByUserCode(IptUsersDAO.java:185)
              at env.acegi.security.AcegiAuthentication.loadUserByUsername(AcegiAuthentication.java:51)
              at org.acegisecurity.providers.dao.DaoAuthenticationProvider.retrieveUser(DaoAuthenticationProvider.java:99)
              at org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:122)
              at org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:200)
              at org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:47)
              at org.acegisecurity.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:74)
              at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:252)
              at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
              at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
              at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
              at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
              at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
              at org.acegisecurity.concurrent.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:95)
              at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
              at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
              at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Thread.java:662)
    Caused by: Exception [EclipseLink-0] (Eclipse Persistence Services - 2.4.2.v20130315-93567e3): org.eclipse.persistence.exceptions.JPQLException
    Exception Description: Problem compiling [select model from IptUsers model where model.userCode= :propertyValue].
    [18, 26] The abstract schema type 'IptUsers' is unknown.
    [39, 53] The state field path 'model.userCode' cannot be resolved to a valid type.
              at org.eclipse.persistence.internal.jpa.jpql.HermesParser.buildException(HermesParser.java:150)
              at org.eclipse.persistence.internal.jpa.jpql.HermesParser.validate(HermesParser.java:339)
              at org.eclipse.persistence.internal.jpa.jpql.HermesParser.populateQueryImp(HermesParser.java:270)
              at org.eclipse.persistence.internal.jpa.jpql.HermesParser.buildQuery(HermesParser.java:157)
              at org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:138)
              at org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:112)
              at org.eclipse.persistence.internal.jpa.EJBQueryImpl.<init>(EJBQueryImpl.java:98)
              at org.eclipse.persistence.internal.jpa.EJBQueryImpl.<init>(EJBQueryImpl.java:82)
              at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1510)
              ... 38 more
    In above error description....
    "INFO  [IportIBEntity] finding IptUsers instance with property: userCode, value: ADMIN"
    Here IportIBEntity is the persistence-unit of ProjectB.war, but IptUsers pojo have in ProjectA.war.
    So, it is trying to search the POJO in ProjectB.war instead of ProjectA.war
    Please help me to solve the problem....

    Hello,
    More information is required to help you, and as James suggested, the best option would be to move to EclipseLink instead of TopLink Essentials as EclipseLink is actively being developed and is the JPA 2 RI.
    Running it on the latest EclipseLink ensures that you are not hitting an issue that has already been fixed, and both are based off TopLink.
    Are you deploying an Ear or an exploded directory? If the later, can you try using an Ear?
    Best Regards,
    Chris

  • Persistence choices

    In the URL http://otn.oracle.com/products/ias/toplink/addvalueover_ejb2.html I found an article showing Oracle 9i Application Server - TopLink Value Add Over EJB 1.1 and 2.0.
    Well I'm concern about the optimal use of persistence mechanism, and I have the following questions:
    1- I know that BC4J is a complete J2EE framework with persistence services, being that just one aspect of what it does, but how do the persistence and mapping facilities of BC4J and TopLink compare?,
    2- On what basis do you choose for BC4J or TopLink and why?,
    3- I know that application developer framework (ADF) offers the choice of TopLink as the persistence mechanism but, which is a better approach for a midsize transactional project -9iAS MVC with BC4J Persistence or 9iAS MVC with Toplink Persistence?

    Duh, forgot to joinTransaction in the app managed emf
    Edited by: edge1 on Aug 20, 2008 10:42 PM

Maybe you are looking for

  • Adobe Media Encoder stopped working in this project, works in others

    Adobe Media Encoder just stopped working in my current project (in PPRO CS3). I'd output several MPEG2-DVD and Windows Media Files. Then I went to make one more MPEG2-DVD file, and when I clicked OK in AME, nothing happened. It should open a window t

  • International characters in filenames on FAT32

    Hi folks, I have recently replaced nearly all the computers in my home office with a spiffy new iMac dual-booted to Windows Vista with Linux sitting in a Parallels space. In the course of doing this, I purchased two external WD 500 Gb drives, which a

  • How to remove items from my reading lists on my ipad?

    how to remove items from my reading lists on my ipad?

  • DNG converter 6.4 and DNG codec 1.1 for Win7 32 & 64bits released!

    The DNG converter 6.4 has been released, http://www.adobe.com/products/dng/  with support for many new cameras, including: Canon EOS 600D (Rebel T3i / Kiss X5 Digital) Canon EOS 1100D (Rebel T3 / Kiss X50 Digital) Fuji FinePix S200 EXR Fuji FinePix F

  • Phone restarting on its own

    Hi,   I bought a new Nokia 5530 xpress Music phone. I have updated the latest firmware (V2). Even after updating, my phone is switching off on its own. Some times, it never restarts. Any updates for this problem. Thanks Hari