TopLink Exception(TOPLINK-6075)
Warning: Unhandled Exception thrown: class oracle.toplink.exceptions.QueryException
[TopLink 警告]: 2009.11.20 03:25:53.917--ClientSession(8035327)--异常状况 [TOPLINK-6075] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.QueryException
异常状况说明: 对象比较仅能使用 equal() 或 notEqual() 运算子. 其它比较则必须透过查询索引键或直接属性层次比较完成.
表示式: [
Relation operator LIKE
Query Key coordinaid
Base model.ACoordinator
Constant D%]
查询: ReadAllQuery(model.ACoordinator)
Hello,
Without more information, I can't determine what the problem is. This exception's english wording is "Object comparisons can only use the equal() or notEqual() operators. Other comparisons must be done through query keys or direct attribute level comparisons.", and implies that the query expression is using a Like operator where atleast one side of the comparison is an entity instead of a string value. Entity/object comparisons are only supported with the equal or notEqual comparisons.
Best Regards,
Chris
Similar Messages
-
Exception [TOPLINK-4002]
Hi,I have no idea,help.thanks
javax.ejb.EJBException: nested exception is: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: null; nested exception is:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/20/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: java.net.ConnectException: Error Code: 0
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: null; nested exception is:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/20/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: java.net.ConnectException:Connection refused: connect。
Error Code: 0
at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:191)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:176)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:123)
at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:196)
at org.acrowise.RCP.__SessionEJB_Remote_DynamicStub.getEmail(__SessionEJB_Remote_DynamicStub.java)
at org.acrowise.RCP._SessionEJB_Wrapper.getEmail(org.acrowise.RCP._SessionEJB_Wrapper.java)
at org.acrowise.client.testClient.main(testClient.java:21)
Caused by: java.rmi.RemoteException: null; nested exception is:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/20/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: java.net.ConnectException: Connection refused: connect。
Error Code: 0
at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:237)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1337)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1267)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:197)
at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:104)
at $Proxy82.getEmail(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:125)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:658)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:198)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1821)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1681)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:1063)
at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:179)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:781)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:538)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2542)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:502)
Caused by: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/20/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: java.net.ConnectException: Connection refused: connect。
Error Code: 0
at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:290)
at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:135)
at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:170)
at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:537)
at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:206)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:212)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:78)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:111)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:84)
at com.sun.enterprise.util.EntityManagerWrapper._getDelegate(EntityManagerWrapper.java:335)
at com.sun.enterprise.util.EntityManagerWrapper.createNamedQuery(EntityManagerWrapper.java:733)
at org.acrowise.RCP.SessionEJBBean.getEmail(SessionEJBBean.java:98)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1055)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:163)
at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2846)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3930)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:190)
... 17 more
Caused by: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: java.net.ConnectException: Connection refused: connect。
at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:102)
at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:130)
... 36 more
javax.ejb.EJBException: nested exception is: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: null; nested exception is:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0 (Build b40-rc (03/20/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: java.net.ConnectException Connection refused: connect。
Error Code: 0
at org.acrowise.RCP._SessionEJB_Wrapper.getEmail(org.acrowise.RCP._SessionEJB_Wrapper.java)
at org.acrowise.client.testClient.main(testClient.java:21)TopLink Essentials is attempting to connect to a data source within your container and failing. Does the data source name provided in your persistence.xml match what is configured in the container?
Doug -
While scheduling I am getting the Exception [TOPLINK-4002] Error
Dear All,
While scheduling I am getting the following Error
Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException Internal Exception: java.sql.SQLException: No more data to read from socketError Code: 17410 Call:UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT + 1 WHERE SEQ_NAME = 'SUBSCRIPTION_ID_SEQ' Query:DataModifyQuery()
Error Detail
I am Using BI Publisher 10.1.3.3.1Yes, Please I need your support
I have this issue related to this subject.
But I have two databases Oracle 10g release 2 and the toplink have thi url jdbc
jdbc:oracle:thin:@
(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.33.12.38)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.33.12.39)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = MITDB)
(FAILOVER_MODE =(TYPE = SELECT)(METHOD = BASIC)(RETRIES = 180)(DELAY = 5))
for connecting two databases, now when i try to submit button this message was thrown, i need to apply RAC
[TopLink Warning]: 2008.03.24 06:56:40.101--ClientSession(27665811)--Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: No more data to read from socketError Code: 17410
Call:UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT + 1 WHERE SEQ_NAME = 'IND_REG_REQ_SEQ'
Query:DataModifyQuery()
[TopLink Warning]: 2008.03.24 06:56:40.101--ClientSession(27665811)--Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: OALL8 is in an inconsistent state.Error Code: 0
Call:SELECT SEQ_COUNT FROM SEQUENCE WHERE SEQ_NAME = 'IND_REG_REQ_SEQ'
Query:ValueReadQuery()
[TopLink Warning]: 2008.03.24 06:56:40.101--ClientSession(27665811)--Exception [TOPLINK-4011] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException
Exception Description: Error preallocating sequence numbers. The sequence table information is not complete.
[TopLink Warning]: 2008.03.24 06:56:40.101--ClientSession(27665811)--Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Io exception: Software caused connection abort: socket write errorError Code: 17002
Call:UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT + 1 WHERE SEQ_NAME = 'MITREQUEST_SEQ'
Query:DataModifyQuery()
[TopLink Warning]: 2008.03.24 06:56:40.101--ClientSession(27665811)--Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Closed ConnectionError Code: 17008
Call:SELECT SEQ_COUNT FROM SEQUENCE WHERE SEQ_NAME = 'MITREQUEST_SEQ'
Query:ValueReadQuery()
[TopLink Warning]: 2008.03.24 06:56:40.101--ClientSession(27665811)--Exception [TOPLINK-4011] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException
Exception Description: Error preallocating sequence numbers. The sequence table information is not complete.
[TopLink Warning]: 2008.03.24 06:56:40.101--ClientSession(27665811)--Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Closed ConnectionError Code: 17008
Message was edited by:
Mohammed Amr. -
In our project, we have made an upgrade to TopLink version 10.1.3.0.0. After replacing as much as possible deprecated Classes/methods, we get TopLink Exceptions when accessing attributes which are mapped via indirection. When TopLink tries to retrieve the reference records from the database, a [TOPLINK-6029] exception occurs. We do not execute a query with "readObject" but we only acces the attribute which is mapped via indirection.
Exception-Stack:
Exception [TOPLINK-6029] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.QueryException
Exception-Beschreibung: Eine Referenzklasse muss angegeben werden.
Abfrage: ReadObjectQuery()
at oracle.toplink.exceptions.QueryException.referenceClassMissing(QueryException.java:858)
at oracle.toplink.queryframework.ReadObjectQuery.checkDescriptor(ReadObjectQuery.java:198)
at oracle.toplink.queryframework.ObjectLevelReadQuery.checkPrePrepare(ObjectLevelReadQuery.java:562)
at oracle.toplink.queryframework.ObjectLevelReadQuery.isLockQuery(ObjectLevelReadQuery.java:1407)
at oracle.toplink.internal.remote.RemoteValueHolder.isPessimisticLockingValueHolder(RemoteValueHolder.java:192)
at oracle.toplink.internal.indirection.UnitOfWorkValueHolder.instantiateImpl(UnitOfWorkValueHolder.java:133)
at oracle.toplink.internal.indirection.UnitOfWorkValueHolder.instantiate(UnitOfWorkValueHolder.java:217)
at oracle.toplink.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:61)
at oracle.toplink.indirection.IndirectList.buildDelegate(IndirectList.java:184)
at oracle.toplink.indirection.IndirectList.getDelegate(IndirectList.java:307)
at oracle.toplink.indirection.IndirectList.toArray(IndirectList.java:646)
at java.util.Collections.sort(Collections.java:158)
With TopLink versio 9.0.4.5 everything works correctly.
What could be the cause of this problem and what can we do to correct it.
Regards,
Hans.Hello James,
Thanks for the quick answer!
I have tested our program with the new TopLink version without making any change in the code, so definitely there a change in the behaviour in both TopLink versions. I have added the code where the descriptor and the onetomany mapping is created. I think the descriptor is ok, but the problem could have to do with the fact that in our program the business object is already registered in a unit of work.
When I debug the situation in Eclipse and expand the IndirectList first on the original and afterwards on the clone, no exception occurs. When I directly expand the IndirectList in the clone the excpetion comes.
// Descriptor creation
private static Descriptor buildRentFunctionDescriptor()
Descriptor desc = DescriptorLib.makeListDescriptor(RentFunction.class, RFU_TAB, RFU_TAB_KEY, RFU_PREFIX);
DescriptorLib.addDirectToFieldMapping(desc, PropM.RentFun.KEY, RFU_TAB_KEY);
DescriptorLib.addDirectToFieldMapping(desc, PropM.RentFun.NAME, RFU_TAB_NAME);
DescriptorLib.addDirectToFieldMapping(desc, PropM.RentFun.ORDER, RFU_TAB_ORDER);
DescriptorLib.addDirectToFieldMapping(desc, PropM.RentFun.RENT, RFU_TAB_RENT);
DescriptorLib.addDirectToFieldMapping(desc, PropM.RentFun.ATYPE, RFU_TAB_ATYPE);
DescriptorLib.addOneToManyMapping(desc, PropM.RentFun.HRENT, HistRent.class, HRE_TAB_LINK, true, true);
DescriptorLib.addOneToOneMapping(desc, PropM.RentFun.PER, Period.class, RFU_TAB_PER, false, false);
DescriptorLib.addOneToOneMapping(desc, PropM.RentFun.LEV, LocationLevel.class, RFU_TAB_LEV, false, false);
DescriptorLib.addOneToOneMapping(desc, PropM.RentFun.ACC, Account.class, RFU_TAB_ACC, false, false);
return desc;
//Mapping creation
public static OneToManyMapping addOneToManyMapping(Descriptor descriptor,
String attributeName,
Class referenceClass,
String targetForeignKey,
boolean useIndirection,
boolean enableCascadingDelete)
OneToManyMapping mapping = new OneToManyMapping();
mapping.setAttributeName(attributeName);
mapping.setReferenceClass(referenceClass);
mapping.setTargetForeignKeyFieldName(targetForeignKey);
if (useIndirection)
mapping.useTransparentCollection();
mapping.useCollectionClass(IndirectList.class);
else
mapping.dontUseIndirection();
if (enableCascadingDelete)
mapping.privateOwnedRelationship();
descriptor.addMapping(mapping);
return mapping;
Maybe you could give some tips about how to deal with registering the business object in the unit of work in combination with attributes that use indirection.
Regards,
Hans
Message was edited by:
lammers1 -
EXCEPTION [TOPLINK-7056] The wrong object was registered into the UnitOfWor
Hello,
I am using Toplink 9.0.3.4. I have a one to many relationship defined. One DTOStep can have several DTOStepTexte. The XML descriptions for the relationship are:
DTOStep:
<database-mapping>
<attribute-name>texteList</attribute-name>
<read-only>false</read-only>
<reference-class>com.bnpparibas.bfi.ttk.dto.DTOStepTexte</reference-class>
<is-private-owned>true</is-private-owned>
<uses-batch-reading>true</uses-batch-reading>
<indirection-policy>
<mapping-indirection-policy>
<type>oracle.toplink.internal.indirection.NoIndirectionPolicy</type>
</mapping-indirection-policy>
</indirection-policy>
<container-policy>
<mapping-container-policy>
<container-class>java.util.ArrayList</container-class>
<type>oracle.toplink.internal.queryframework.ListContainerPolicy</type>
</mapping-container-policy>
</container-policy>
<ascending-order-by-query-key>noSeq</ascending-order-by-query-key>
<source-key-fields>
<field>BATCH_SP2.ID_BATCH</field>
</source-key-fields>
<target-foreign-key-fields>
<field>BATCH_SP2_TEXTE.ID_BATCH</field>
</target-foreign-key-fields>
<type>oracle.toplink.mappings.OneToManyMapping</type>
</database-mapping>
DTOStepTexte:
<database-mapping>
<attribute-name>step</attribute-name>
<read-only>false</read-only>
<reference-class>com.bnpparibas.bfi.ttk.dto.DTOStep</reference-class>
<is-private-owned>true</is-private-owned>
<uses-batch-reading>true</uses-batch-reading>
<indirection-policy>
<mapping-indirection-policy>
<type>oracle.toplink.internal.indirection.NoIndirectionPolicy</type>
</mapping-indirection-policy>
</indirection-policy>
<uses-joining>true</uses-joining>
<foreign-key-fields>
<field>BATCH_SP2_TEXTE.ID_BATCH</field>
</foreign-key-fields>
<source-to-target-key-field-associations>
<association>
<association-key>BATCH_SP2_TEXTE.ID_BATCH</association-key>
<association-value>BATCH_SP2.ID_BATCH</association-value>
</association>
</source-to-target-key-field-associations>
<type>oracle.toplink.mappings.OneToOneMapping</type>
</database-mapping>
I do the following:
- A DTOStep containing 4 DTOStepTexte is read from the Oracle database in a session bean and sent to a swing client.
- The DTOStep is modified on the client.
- The modified DTOStep is sent back to the session bean where the following code is executed:
public DTOStep modifyStep(DTOStep step) throws TTKDataNotFoundException
Session session = null;
try
// Récupération de la session.
session = getSession();
// Récupération de l'unité de travail.
UnitOfWork uow = session.getActiveUnitOfWork();
uow.performFullValidation();
// Vérification que le step existe. Lecture sur clé primaire.
if (!session.doesObjectExist(step))
throw new TTKDataNotFoundException();
// Registration du step à modifier en incorporant les modifs utilisateur.
m_logger.debug("step = " + FmkCommonUtilities.toStringFromGetters(step));
DTOStep stepClone = (DTOStep) uow.mergeCloneWithReferences(step);
m_logger.debug("stepClone = " + FmkCommonUtilities.toStringFromGetters(stepClone));
// Mise à jour des champs techniques.
Date date = new Date(System.currentTimeMillis());
stepClone.setCUtiMaj(getCUti());
stepClone.setDMaj(date);
// Renvoi du step tel que dans la base.
// Une copie en est faite puisque le clone ne doit pas être
// utilisé en dehors de la transaction.
DTOUtilities.setFromGetters(stepClone, step);
return step;
catch (TTKDataNotFoundException e)
context.setRollbackOnly();
throw e;
catch (EJBException e)
context.setRollbackOnly();
throw e;
catch (Throwable t)
context.setRollbackOnly();
m_logger.error("Error in " + FmkCommonUtilities.getCurrentMethodName(), t);
throw new EJBException(t.toString());
finally
// On libère la session.
if (session != null)
session.release();
I have the folowing behaviour:
- if the list of DTOStepTexte is not modified, everything is ok.
- if a new DTOStepTexte is added, everything is ok.
- if a DTOStepTexte is removed, I have the following exception on the mergeCloneWithReferences() call:
EXCEPTION [TOPLINK-7056] (TopLink - 9.0.3.4 (Build 432)): oracle.toplink.exceptions.ValidationException
EXCEPTION DESCRIPTION: The wrong object was registered into the UnitOfWork. The object [com.bnpparibas.bfi.ttk.dto.DTOStep@1a772d] should be the object from the parent cache [com.bnpparibas.bfi.ttk.dto.DTOStep@2cfd62].
at oracle.toplink.exceptions.ValidationException.wrongObjectRegistered(Unknown Source)
at oracle.toplink.publicinterface.UnitOfWork.checkExistence(Unknown Source)
at oracle.toplink.publicinterface.UnitOfWork.internalRegisterObject(Unknown Source)
at oracle.toplink.internal.sessions.MergeManager.getTargetVersionOfSourceObject(Unknown Source)
at oracle.toplink.mappings.ObjectReferenceMapping.mergeIntoObject(Unknown Source)
at oracle.toplink.internal.descriptors.ObjectBuilder.mergeIntoObject(Unknown Source)
at oracle.toplink.internal.sessions.MergeManager.mergeChangesOfCloneIntoWorkingCopy(Unknown Source)
at oracle.toplink.internal.sessions.MergeManager.mergeChanges(Unknown Source)
at oracle.toplink.mappings.CollectionMapping.mergeIntoObject(Unknown Source)
at oracle.toplink.internal.descriptors.ObjectBuilder.mergeIntoObject(Unknown Source)
at oracle.toplink.internal.sessions.MergeManager.mergeChangesOfCloneIntoWorkingCopy(Unknown Source)
at oracle.toplink.internal.sessions.MergeManager.mergeChanges(Unknown Source)
at oracle.toplink.publicinterface.UnitOfWork.mergeCloneWithReferences(Unknown Source)
at com.bnpparibas.bfi.ttk.server.ejb.TestToplinkServiceBean.modifyStep(TestToplinkServiceBean.java:795)
at TestToplinkService_StatelessSessionBeanWrapper2.modifyStep(TestToplinkService_StatelessSessionBeanWrapper2.java:2032)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:119)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:48)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:479)
Can someone please tell me what is wrong in the way I use toplink ?
Thank you in advance for your answer.
Best regards.
Pierre LarocheWhat does the method DTOUtilities.setFromGetters(stepClone, step); do? If you are copying from step into stepClone you must ensure that all of the references from step are registered first. You should not need to perform this copy anyway as the mergeCloneWithReferences would have copied the data from step.
--Gordon -
Toplink Exception in BPEL process
Hi All,
We get the attached error while running a BPEL process which uses a DBAdapter (which uses Toplink under the covers). Can you provide any pointers on why this exception might be happening.
Exception Description: java.sql.SQLException: invalid arguments
in call
Internal Exception: java.sql.SQLException: invalid arguments
in call
Error Code: 17433.
at
oracle.tip.adapter.db.exceptions.DBResourceException.createEISException(DBResourceException.java:310)
at
oracle.tip.adapter.db.exceptions.DBResourceException.couldNotCreateTopLinkSessionException(DBResourceException.java:174)
at
oracle.tip.adapter.db.DBManagedConnectionFactory.acquireClientSession(DBManagedConnectionFactory.java:512)
at oracle.tip.adapter.db.DBManagedConnection.getSession(DBManagedConnection.java:208)
at oracle.tip.adapter.db.transaction.DBCciLocalTransaction.getSession(DBCciLocalTransaction.java:149)
at oracle.tip.adapter.db.DBConnection.getSession(DBConnection.java:143)
at oracle.tip.adapter.db.DBInteraction.executeStoredProcedure(DBInteraction.java:528)
at oracle.tip.adapter.db.DBInteraction.execute(DBInteraction.java:164)
at
oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeRequestResponseOperation(WSIFOperation_JCA.java:458)
at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:452)
at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:327)
at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:189)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:601)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:317)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.expire(BPELInvokeWMP.java:120)
at com.collaxa.cube.engine.CubeEngine.expireActivity(CubeEngine.java:3868)
at com.collaxa.cube.engine.CubeEngine.expireActivity(CubeEngine.java:2228)
at com.collaxa.cube.ejb.impl.ActivityManagerBean.expireActivity(ActivityManagerBean.java:145)
at com.collaxa.cube.ejb.impl.ActivityManagerBean.expireActivity(ActivityManagerBean.java:116)
at
IActivityManagerLocalBean_StatelessSessionBeanWrapper52.expireActivity(IActivityManagerLocalBean_StatelessSessionBeanWrapper52.java:645)
at
com.collaxa.cube.engine.dispatch.message.instance.ExpirationMessageHandler.handle(ExpirationMessageHandler.java:43)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:125)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123)
at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:755)
at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:928)
at
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:568)
Caused by: Exception [TOPLINK-4002] (OracleAS TopLink - 10g
(9.0.4.5) (Build 040930)): oracle.toplink.exceptions.DatabaseException
Exception Description: java.sql.SQLException: invalid arguments
in call
Internal Exception: java.sql.SQLException: invalid arguments
in call
Error Code: 17433
at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:221)
at oracle.toplink.jndi.JNDIConnector.connect(JNDIConnector.java:105)
at oracle.toplink.sessions.DatabaseLogin.connect(DatabaseLogin.java:218)
at oracle.toplink.internal.databaseaccess.DatabaseAccessor.connect(DatabaseAccessor.java:398)
at oracle.toplink.internal.databaseaccess.DatabaseAccessor.connect(DatabaseAccessor.java:423)
at oracle.toplink.threetier.ConnectionPool.buildConnection(ConnectionPool.java:90)
at oracle.toplink.threetier.ExternalConnectionPool.startUp(ExternalConnectionPool.java:114)
at oracle.toplink.threetier.ServerSession.connect(ServerSession.java:447)
at oracle.toplink.publicinterface.DatabaseSession.login(DatabaseSession.java:531)
at
oracle.tip.adapter.db.DBManagedConnectionFactory.createServerSession(DBManagedConnectionFactory.java:648)
at
oracle.tip.adapter.db.DBManagedConnectionFactory.acquireClientSession(DBManagedConnectionFactory.java:329)
... 26 more
Caused by: java.sql.SQLException: invalid arguments in call
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java(Compiled
Code))
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:174)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:239)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:205)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:433)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:150)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:31)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:571)
at com.evermind.sql.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:160)
at oracle.toplink.jndi.JNDIConnector.connect(JNDIConnector.java:100)
... 35 more
<2007-05-22 12:47:15,075> <ERROR> <default.collaxa.cube.ws>
<AdapterFramework::Outbound>
file:/oracle/crp1/BPEL/integration/orabpel/domains/default/tmp/.bpel_BPEL_XXP4UHRADRV_1.0.jar/ReceiveRequest.wsdl
[ ReceiveRequest_ptt::ReceiveRequest(InputParameters,OutputParameters)
] - Rolling back JCA LocalTransaction
<2007-05-22 12:47:15,075> <DEBUG> <default.collaxa.cube.ws>
<AdapterFramework::Outbound>
file:/oracle/crp1/BPEL/integration/orabpel/domains/default/tmp/.bpel_BPEL_XXP4UHRADRV_1.0.jar/ReceiveRequest.wsdl
[ ReceiveRequest_ptt::ReceiveRequest(InputParameters,OutputParameters)
] - Marking this exception as Retriable
<2007-05-22 12:47:15,076> <DEBUG> <default.collaxa.cube.ws>
<WSIFInvocationHandler::invoke> invoke failed
org.collaxa.thirdparty.apache.wsif.WSIFException:
file:/oracle/crp1/BPEL/integration/orabpel/domains/default/tmp/.bpel_BPEL_XXP4UHRADRV_1.0.jar/ReceiveRequest.wsdl
[ ReceiveRequest_ptt::ReceiveRequest(InputParameters,OutputParameters)
] - WSIF JCA Execute of operation 'ReceiveRequest' failed due
to: Could not create/access the TopLink Session.
This session is used to connect to the datastore.
; nested exception is:
ORABPEL-11622
Could not create/access the TopLink Session.
This session is used to connect to the datastore.
See root exception for the specific exception. You may need
to configure the connection settings in the deployment descriptor
(i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml)
and restart the server. Caused by Exception [TOPLINK-4002]
(OracleAS TopLink - 10g (9.0.4.5) (Build 040930)):
oracle.toplink.exceptions.DatabaseException
Exception Description: java.sql.SQLException: invalid arguments
in call
Internal Exception: java.sql.SQLException: invalid arguments
in call
Error Code: 17433.
at
oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeRequestResponseOperation(WSIFOperation_JCA.java:570)
at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:452)
at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:327)
at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:189)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:601)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:317)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.expire(BPELInvokeWMP.java:120)
at com.collaxa.cube.engine.CubeEngine.expireActivity(CubeEngine.java:3868)
at com.collaxa.cube.engine.CubeEngine.expireActivity(CubeEngine.java:2228)
at com.collaxa.cube.ejb.impl.ActivityManagerBean.expireActivity(ActivityManagerBean.java:145)
at com.collaxa.cube.ejb.impl.ActivityManagerBean.expireActivity(ActivityManagerBean.java:116)
at
IActivityManagerLocalBean_StatelessSessionBeanWrapper52.expireActivity(IActivityManagerLocalBean_StatelessSessionBeanWrapper52.java:645)
at
com.collaxa.cube.engine.dispatch.message.instance.ExpirationMessageHandler.handle(ExpirationMessageHandler.java:43)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:125)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123)
at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:755)
at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:928)
at
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:568)
Caused by: ORABPEL-11622
Could not create/access the TopLink Session.
This session is used to connect to the datastore.
See root exception for the specific exception. You may need
to configure the connection settings in the deployment descriptor
(i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml)
and restart the server. Caused by Exception [TOPLINK-4002]
(OracleAS TopLink - 10g (9.0.4.5) (Build 040930)):
oracle.toplink.exceptions.DatabaseException
Exception Description: java.sql.SQLException: invalid arguments
in call
Internal Exception: java.sql.SQLException: invalid arguments
in call
Error Code: 17433.
at
oracle.tip.adapter.db.exceptions.DBResourceException.createEISException(DBResourceException.java:310)
at
oracle.tip.adapter.db.exceptions.DBResourceException.couldNotCreateTopLinkSessionException(DBResourceException.java:174)
at
oracle.tip.adapter.db.DBManagedConnectionFactory.acquireClientSession(DBManagedConnectionFactory.java:512)
at oracle.tip.adapter.db.DBManagedConnection.getSession(DBManagedConnection.java:208)
at oracle.tip.adapter.db.transaction.DBCciLocalTransaction.getSession(DBCciLocalTransaction.java:149)
at oracle.tip.adapter.db.DBConnection.getSession(DBConnection.java:143)
at oracle.tip.adapter.db.DBInteraction.executeStoredProcedure(DBInteraction.java:528)
at oracle.tip.adapter.db.DBInteraction.execute(DBInteraction.java:164)
at
oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeRequestResponseOperation(WSIFOperation_JCA.java:458)
... 20 more
Caused by: Exception [TOPLINK-4002] (OracleAS TopLink - 10g
(9.0.4.5) (Build 040930)): oracle.toplink.exceptions.DatabaseException
Exception Description: java.sql.SQLException: invalid arguments
in call
Internal Exception: java.sql.SQLException: invalid arguments
in call
Error Code: 17433
at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:221)
at oracle.toplink.jndi.JNDIConnector.connect(JNDIConnector.java:105)
at oracle.toplink.sessions.DatabaseLogin.connect(DatabaseLogin.java:218)
at oracle.toplink.internal.databaseaccess.DatabaseAccessor.connect(DatabaseAccessor.java:398)
at oracle.toplink.internal.databaseaccess.DatabaseAccessor.connect(DatabaseAccessor.java:423)
at oracle.toplink.threetier.ConnectionPool.buildConnection(ConnectionPool.java:90)
at oracle.toplink.threetier.ExternalConnectionPool.startUp(ExternalConnectionPool.java:114)
at oracle.toplink.threetier.ServerSession.connect(ServerSession.java:447)
at oracle.toplink.publicinterface.DatabaseSession.login(DatabaseSession.java:531)
at
oracle.tip.adapter.db.DBManagedConnectionFactory.createServerSession(DBManagedConnectionFactory.java:648)
at
oracle.tip.adapter.db.DBManagedConnectionFactory.acquireClientSession(DBManagedConnectionFactory.java:329)
... 26 more
Caused by: java.sql.SQLException: invalid arguments in call
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java(Compiled
Code))
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:174)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:239)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:205)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:433)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:150)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:31)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:571)
at com.evermind.sql.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:160)
at oracle.toplink.jndi.JNDIConnector.connect(JNDIConnector.java:100)
... 35 more
<2007-05-22 12:47:15,082> <DEBUG> <default.collaxa.cube.ws>
<WSIFInvocationHandler::invoke> Fault happened:
file:/oracle/crp1/BPEL/integration/orabpel/domains/default/tmp/.bpel_BPEL_XXP4UHRADRV_1.0.jar/ReceiveRequest.wsdl
[ ReceiveRequest_ptt::ReceiveRequest(InputParameters,OutputParameters)
] - WSIF JCA Execute of operation 'ReceiveRequest' failed due
to: Could not create/access the TopLink Session.
This session is used to connect to the datastore.
; nested exception is:
ORABPEL-11622
Could not create/access the TopLink Session.
This session is used to connect to the datastore.
See root exception for the specific exception. You may need
to configure the connection settings in the deployment descriptor
(i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml)
and restart the server. Caused by Exception [TOPLINK-4002]
(OracleAS TopLink - 10g (9.0.4.5) (Build 040930)):
oracle.toplink.exceptions.DatabaseException
Exception Description: java.sql.SQLException: invalid arguments
in call
Internal Exception: java.sql.SQLException: invalid arguments
in call
Error Code: 17433.
<2007-05-22 12:47:16,119> <DEBUG> <default.collaxa.cube.ws>
<WSInvocationManager::invoke> operation: ReceiveRequest,
partnerLink: <partnerLink name="DBReceiveRequest"
partnerLinkType="{http://xmlns.oracle.com/pcbpel/adapter/db/ReceiveRequest/}ReceiveRequest_plt">
<myRole name="null">
<ServiceName>null</ServiceName>
<PortType>null</PortType>
<Address>null</Address>
</myRole>
<partnerRole name="ReceiveRequest_role">
<ServiceName>{http://xmlns.oracle.com/pcbpel/adapter/db/ReceiveRequest/}ReceiveRequest</ServiceName>
<PortType>{http://xmlns.oracle.com/pcbpel/adapter/db/ReceiveRequest/}ReceiveRequest_ptt</PortType>
<Address>null</Address>
</partnerRole>
<conversationId>bpel://localhost/default/BPEL_XXP4UHRADRV~1.0/601-BpInv1-BpSeq2.6-1</conversationId>
<properties>{}</properties>
</partnerLink>
<2007-05-22 12:47:16,120> <DEBUG> <default.collaxa.cube.ws>
<WSInvocationManager::invoke> def is
file:/oracle/crp1/BPEL/integration/orabpel/domains/default/tmp/.bpel_BPEL_XXP4UHRADRV_1.0.jar/ReceiveRequest.wsdl
<2007-05-22 12:47:16,120> <DEBUG> <default.collaxa.cube.ws>
<WSIFInvocationHandler::invoke> opName=ReceiveRequest,
parnterLink=<partnerLink name="DBReceiveRequest"
partnerLinkType="{http://xmlns.oracle.com/pcbpel/adapter/db/ReceiveRequest/}ReceiveRequest_plt">
<myRole name="null">
<ServiceName>null</ServiceName>
<PortType>null</PortType>
<Address>null</Address>
</myRole>
<partnerRole name="ReceiveRequest_role">
<ServiceName>{http://xmlns.oracle.com/pcbpel/adapter/db/ReceiveRequest/}ReceiveRequest</ServiceName>
<PortType>{http://xmlns.oracle.com/pcbpel/adapter/db/ReceiveRequest/}ReceiveRequest_ptt</PortType>
<Address>null</Address>
</partnerRole>
<conversationId>bpel://localhost/default/BPEL_XXP4UHRADRV~1.0/601-BpInv1-BpSeq2.6-1</conversationId>
<properties>{}</properties>
</partnerLink>
<2007-05-22 12:47:16,120> <DEBUG> <default.collaxa.cube.ws>
<WSIFInvocationHandler::doShortCut> Parner Property optShortCut
<2007-05-22 12:47:16,126> <INFO> <default.collaxa.cube.ws>
<AdapterFramework::Outbound>
file:/oracle/crp1/BPEL/integration/orabpel/domains/default/tmp/.bpel_BPEL_XXP4UHRADRV_1.0.jar/ReceiveRequest.wsdl
[ ReceiveRequest_ptt::ReceiveRequest(InputParameters,OutputParameters)
] - Using JCA Connection Pool - max size = <unbounded>
<2007-05-22 12:47:16,127> <DEBUG> <default.collaxa.cube.ws>
<AdapterFramework::Outbound>
file:/oracle/crp1/BPEL/integration/orabpel/domains/default/tmp/.bpel_BPEL_XXP4UHRADRV_1.0.jar/ReceiveRequest.wsdl
[ ReceiveRequest_ptt::ReceiveRequest(InputParameters,OutputParameters)
] - Looking up Resource Adapter JDNI location 'eis/DB/APPS'
<2007-05-22 12:47:16,127> <DEBUG> <default.collaxa.cube.ws>
<AdapterFramework::Outbound> Instantiating outbound JCA
interactionSpec oracle.tip.adapter.db.DBStoredProcedureInteractionSpec
<2007-05-22 12:47:16,127> <DEBUG> <default.collaxa.cube.ws>
<AdapterFramework::Outbound> Populating outbound JCA interactionSpec
oracle.tip.adapter.db.DBStoredProcedureInteractionSpec with
properties: {ProcedureName=DEQ_REQ_MSG, PackageName=XXP4U_HRADRV_BPEL_PKG,
SchemaName=APPS}
<2007-05-22 12:47:16,139> <DEBUG> <default.collaxa.cube.ws>
<AdapterFramework::Outbound>
file:/oracle/crp1/BPEL/integration/orabpel/domains/default/tmp/.bpel_BPEL_XXP4UHRADRV_1.0.jar/ReceiveRequest.wsdl
[ ReceiveRequest_ptt::ReceiveRequest(InputParameters,OutputParameters)
] - No XMLRecord headers provided
<2007-05-22 12:47:16,139> <DEBUG> <default.collaxa.cube.ws>
<AdapterFramework::Outbound>
file:/oracle/crp1/BPEL/integration/orabpel/domains/default/tmp/.bpel_BPEL_XXP4UHRADRV_1.0.jar/ReceiveRequest.wsdl
[ ReceiveRequest_ptt::ReceiveRequest(InputParameters,OutputParameters)
] - Starting JCA LocalTransaction
<2007-05-22 12:47:16,139> <DEBUG> <default.collaxa.cube.ws>
<AdapterFramework::Outbound>
file:/oracle/crp1/BPEL/integration/orabpel/domains/default/tmp/.bpel_BPEL_XXP4UHRADRV_1.0.jar/ReceiveRequest.wsdl
[ ReceiveRequest_ptt::ReceiveRequest(InputParameters,OutputParameters)
] - Invoking JCA outbound Interaction
<2007-05-22 12:47:16,154> <DEBUG> <default.collaxa.cube.ws>
<Database Adapter::Outbound> <oracle.tip.adapter.db.DBManagedConnectionFactory
createServerSession> create a new ServerSession
<2007-05-22 12:47:16,155> <DEBUG> <default.collaxa.cube.ws>
<Database Adapter::Outbound> <oracle.tip.adapter.db.DBManagedConnectionFactory
createServerSession> The platform class name was specified as:
oracle.toplink.internal.databaseaccess.Oracle9Platform
<2007-05-22 12:47:16,156> <DEBUG> <default.collaxa.cube.ws>
<Database Adapter::Outbound> <oracle.tip.adapter.db.DBManagedConnectionFactory
createServerSession> Using an app server connection pool. DataSource name is jdbc/OracleHRAppsDataSourceDS
<2007-05-22 12:47:16,158> <DEBUG> <default.collaxa.cube.ws>
<Database Adapter::Outbound> <oracle.tip.adapter.db.TopLinkLogger
log> TopLink, version: OracleAS TopLink - 10g (9.0.4.5) (Build
040930)
<2007-05-22 12:47:16,159> <DEBUG> <default.collaxa.cube.ws>
<Database Adapter::Outbound> <oracle.tip.adapter.db.TopLinkLogger
log> connecting session: Not named
<2007-05-22 12:47:16,159> <DEBUG> <default.collaxa.cube.ws>
<Database Adapter::Outbound> <oracle.tip.adapter.db.TopLinkLogger
log> connecting(DatabaseLogin(
platform=>Oracle9Platform
datasource name=>jdbc/OracleHRAppsDataSourceDS
<2007-05-22 12:47:16,161> <ERROR> <default.collaxa.cube.ws>
<Database Adapter::Outbound> <oracle.tip.adapter.db.DBManagedConnectionFactory
acquireClientSession> unable to build the TopLink Session
<2007-05-22 12:47:16,162> <DEBUG> <default.collaxa.cube.ws>
<Database Adapter::Outbound> <oracle.tip.adapter.db.DBManagedConnectionFactory
acquireClientSession>
Exception Description: java.sql.SQLException: invalid arguments
in call
Internal Exception: java.sql.SQLException: invalid arguments
in call
Error Code: 17433
<2007-05-22 12:47:16,165> <ERROR> <default.collaxa.cube.ws>
<AdapterFramework::Outbound>
file:/oracle/crp1/BPEL/integration/orabpel/domains/default/tmp/.bpel_BPEL_XXP4UHRADRV_1.0.jar/ReceiveRequest.wsdl
[ ReceiveRequest_ptt::ReceiveRequest(InputParameters,OutputParameters)
] - Could not invoke operation 'ReceiveRequest' against the
'Database Adapter' due to:
ORABPEL-11622
Could not create/access the TopLink Session.
This session is used to connect to the datastore.
See root exception for the specific exception. You may need
to configure the connection settings in the deployment descriptor
(i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml)
and restart the server. Caused by Exception [TOPLINK-4002]
(OracleAS TopLink - 10g (9.0.4.5) (Build 040930)):
oracle.toplink.exceptions.DatabaseException
Exception Description: java.sql.SQLException: invalid arguments
in call
Internal Exception: java.sql.SQLException: invalid arguments
in call
Error Code: 17433.
at
oracle.tip.adapter.db.exceptions.DBResourceException.createEISException(DBResourceException.java:310)
at
oracle.tip.adapter.db.exceptions.DBResourceException.couldNotCreateTopLinkSessionException(DBResourceException.java:174)
at
oracle.tip.adapter.db.DBManagedConnectionFactory.acquireClientSession(DBManagedConnectionFactory.java:512)
at oracle.tip.adapter.db.DBManagedConnection.getSession(DBManagedConnection.java:208)
at oracle.tip.adapter.db.transaction.DBCciLocalTransaction.getSession(DBCciLocalTransaction.java:149)
at oracle.tip.adapter.db.DBConnection.getSession(DBConnection.java:143)
at oracle.tip.adapter.db.DBInteraction.executeStoredProcedure(DBInteraction.java:528)
at oracle.tip.adapter.db.DBInteraction.execute(DBInteraction.java:164)
at
oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeRequestResponseOperation(WSIFOperation_JCA.java:458)
at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:452)
at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:327)
at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:189)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:601)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:317)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.expire(BPELInvokeWMP.java:120)
at com.collaxa.cube.engine.CubeEngine.expireActivity(CubeEngine.java:3868)
at com.collaxa.cube.engine.CubeEngine.expireActivity(CubeEngine.java:2228)
at com.collaxa.cube.ejb.impl.ActivityManagerBean.expireActivity(ActivityManagerBean.java:145)
at com.collaxa.cube.ejb.impl.ActivityManagerBean.expireActivity(ActivityManagerBean.java:116)
at
IActivityManagerLocalBean_StatelessSessionBeanWrapper52.expireActivity(IActivityManagerLocalBean_StatelessSessionBeanWrapper52.java:645)
at
com.collaxa.cube.engine.dispatch.message.instance.ExpirationMessageHandler.handle(ExpirationMessageHandler.java:43)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:125)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123)
at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:755)
at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:928)
at
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:568)
Caused by: Exception [TOPLINK-4002] (OracleAS TopLink - 10g
(9.0.4.5) (Build 040930)): oracle.toplink.exceptions.DatabaseException
Exception Description: java.sql.SQLException: invalid arguments
in call
Internal Exception: java.sql.SQLException: invalid arguments
in call
Error Code: 17433
at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:221)
at oracle.toplink.jndi.JNDIConnector.connect(JNDIConnector.java:105)
at oracle.toplink.sessions.DatabaseLogin.connect(DatabaseLogin.java:218)
at oracle.toplink.internal.databaseaccess.DatabaseAccessor.connect(DatabaseAccessor.java:398)
at oracle.toplink.internal.databaseaccess.DatabaseAccessor.connect(DatabaseAccessor.java:423)
at oracle.toplink.threetier.ConnectionPool.buildConnection(ConnectionPool.java:90)
at oracle.toplink.threetier.ExternalConnectionPool.startUp(ExternalConnectionPool.java:114)
at oracle.toplink.threetier.ServerSession.connect(ServerSession.java:447)
at oracle.toplink.publicinterface.DatabaseSession.login(DatabaseSession.java:531)
at
oracle.tip.adapter.db.DBManagedConnectionFactory.createServerSession(DBManagedConnectionFactory.java:648)
at
oracle.tip.adapter.db.DBManagedConnectionFactory.acquireClientSession(DBManagedConnectionFactory.java:329)
... 26 more
Caused by: java.sql.SQLException: invalid arguments in call
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java(Compiled
Code))
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:174)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:239)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:205)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:433)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:150)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:31)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:571)
at com.evermind.sql.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:160)
at oracle.toplink.jndi.JNDIConnector.connect(JNDIConnector.java:100)
... 35 more
<2007-05-22 12:47:16,165> <ERROR> <default.collaxa.cube.ws>
<AdapterFramework::Outbound>
file:/oracle/crp1/BPEL/integration/orabpel/domains/default/tmp/.bpel_BPEL_XXP4UHRADRV_1.0.jar/ReceiveRequest.wsdl
[ ReceiveRequest_ptt::ReceiveRequest(InputParameters,OutputParameters)
] - Rolling back JCA LocalTransaction
<2007-05-22 12:47:16,165> <DEBUG> <default.collaxa.cube.ws>
<AdapterFramework::Outbound>
file:/oracle/crp1/BPEL/integration/orabpel/domains/default/tmp/.bpel_BPEL_XXP4UHRADRV_1.0.jar/ReceiveRequest.wsdl
[ ReceiveRequest_ptt::ReceiveRequest(InputParameters,OutputParameters)
] - Marking this exception as Retriable
<2007-05-22 12:47:16,165> <DEBUG> <default.collaxa.cube.ws>
<WSIFInvocationHandler::invoke> invoke failed
org.collaxa.thirdparty.apache.wsif.WSIFException:
file:/oracle/crp1/BPEL/integration/orabpel/domains/default/tmp/.bpel_BPEL_XXP4UHRADRV_1.0.jar/ReceiveRequest.wsdl
[ ReceiveRequest_ptt::ReceiveRequest(InputParameters,OutputParameters)
] - WSIF JCA Execute of operation 'ReceiveRequest' failed due
to: Could not create/access the TopLink Session.
This session is used to connect to the datastore.
; nested exception is:
ORABPEL-11622
Could not create/access the TopLink Session.
This session is used to connect to the datastore.
See root exception for the specific exception. You may need
to configure the connection settings in the deployment descriptor
(i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml)
and restart the server. Caused by Exception [TOPLINK-4002]
(OracleAS TopLink - 10g (9.0.4.5) (Build 040930)):
oracle.toplink.exceptions.DatabaseException
Exception Description: java.sql.SQLException: invalid arguments
in call
Internal Exception: java.sql.SQLException: invalid arguments
in call
Error Code: 17433.
at
oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeRequestResponseOperation(WSIFOperation_JCA.java:570)
at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:452)
at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:327)
at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:189)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:601)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:317)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.expire(BPELInvokeWMP.java:120)
at com.collaxa.cube.engine.CubeEngine.expireActivity(CubeEngine.java:3868)
at com.collaxa.cube.engine.CubeEngine.expireActivity(CubeEngine.java:2228)
at com.collaxa.cube.ejb.impl.ActivityManagerBean.expireActivity(ActivityManagerBean.java:145)
at com.collaxa.cube.ejb.impl.ActivityManagerBean.expireActivity(ActivityManagerBean.java:116)
at
IActivityManagerLocalBean_StatelessSessionBeanWrapper52.expireActivity(IActivityManagerLocalBean_StatelessSessionBeanWrapper52.java:645)
at
com.collaxa.cube.engine.dispatch.message.instance.ExpirationMessageHandler.handle(ExpirationMessageHandler.java:43)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:125)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123)
at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:755)
at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:928)
at
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:568)
Caused by: ORABPEL-11622
Could not create/access the TopLink Session.
This session is used to connect to the datastore.
See root exception for the specific exception. You may need
to configure the connection settings in the deployment descriptor
(i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml)
and restart the server. Caused by Exception [TOPLINK-4002]
(OracleAS TopLink - 10g (9.0.4.5) (Build 040930)):
oracle.toplink.exceptions.DatabaseException
Exception Description: java.sql.SQLException: invalid arguments
in call
Internal Exception: java.sql.SQLException: invalid arguments
in call
Error Code: 17433.It looks like you are not providing a username or password in your DataSource.
-
Hi,
I am using TopLink for simple Department-Employee relation, i have my project xml configured, But i am facing the problem with following exception
Descriptor Exceptions:
Exception [TOPLINK-46] (OracleAS TopLink - 10g (9.0.4) (Build 031126)): oracle.toplink.exceptions.DescriptorException
Exception Description: There should be one non-read-only mapping defined for the primary key field [emp.empno].
Descriptor: Descriptor(com.oracle.mssql.emp.toplink.EmpTopLinkBean --> [DatabaseTable(emp)])
Runtime Exceptions:
What could be the reason?
Thanks
MadhuMy best guess would be that you have a 1:1 mapping from Employee to Department. This mapping represents part of the primary key.
Make sure that your 1:1 mapping is not configured as read-only. Another issue is that you may have set the relationship as target foreign key. This has the same effect as read-only and is not applicable in the 1:1 returning from a 1:M.
Doug -
Exceptions while Opening a older toplink map in toplink 11g workbench
Hi
I have a toplink map used with toplink 10g. Now that after moving to toplink 11g I am unable to open the map using workbench. I am getting the following exception while opening.
Inputs to solve this probelm are welcomed.
oracle.toplink.workbench.framework.OpenException: Exception [TOPLINK-106] (Oracle TopLink - 11g (11.1.1.0.1) (Build 081030)): oracle.toplink.exceptions.DescriptorException
Exception Description: The method [legacySetDatabasePlatformNameForTopLink] on the object is throwing an exception.
Argument: [null]
Internal Exception: java.lang.reflect.InvocationTargetException
Target Invocation Exception: java.lang.IllegalArgumentException: missing database platform named: null
Mapping: oracle.toplink.mappings.DirectToFieldMapping[databasePlatformName-->platform-name]
Descriptor: XMLDescriptor(oracle.toplink.workbench.mappingsmodel.db.MWDatabase --> [DatabaseTable(database)])
at oracle.toplink.workbench.mappingsplugin.MappingsPlugin.open(MappingsPlugin.java:293)
at oracle.toplink.workbench.framework.internal.FrameworkApplication.open(FrameworkApplication.java:689)
at oracle.toplink.workbench.framework.internal.FrameworkNodeManager.openCallback(FrameworkNodeManager.java:341)
at oracle.toplink.workbench.framework.internal.RunnableProjectLoader.run2(RunnableProjectLoader.java:76)
at oracle.toplink.workbench.framework.internal.RunnableProjectLoader.run(RunnableProjectLoader.java:63)
at java.lang.Thread.run(Thread.java:595)
Caused by: Exception [TOPLINK-106] (Oracle TopLink - 11g (11.1.1.0.1) (Build 081030)): oracle.toplink.exceptions.DescriptorException
Exception Description: The method [legacySetDatabasePlatformNameForTopLink] on the object is throwing an exception.
Argument: [null]
Internal Exception: java.lang.reflect.InvocationTargetException
Target Invocation Exception: java.lang.IllegalArgumentException: missing database platform named: null
Mapping: oracle.toplink.mappings.DirectToFieldMapping[databasePlatformName-->platform-name]
Descriptor: XMLDescriptor(oracle.toplink.workbench.mappingsmodel.db.MWDatabase --> [DatabaseTable(database)])
at oracle.toplink.exceptions.DescriptorException.targetInvocationWhileSettingValueThruMethodAccessor(DescriptorException.java:1702)
at oracle.toplink.internal.descriptors.MethodAttributeAccessor.setAttributeValueInObject(MethodAttributeAccessor.java:202)
at oracle.toplink.mappings.DatabaseMapping.setAttributeValueInObject(DatabaseMapping.java:1228)
at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1118)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:277)
at oracle.toplink.sdk.SDKAggregateObjectMapping.buildCompositeObject(SDKAggregateObjectMapping.java:58)
at oracle.toplink.mappings.foundation.AbstractCompositeObjectMapping.valueFromRow(AbstractCompositeObjectMapping.java:231)
at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1117)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:277)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:582)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:439)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:389)
at oracle.toplink.queryframework.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:511)
at oracle.toplink.queryframework.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:433)
at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:874)
at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:674)
at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:835)
at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:397)
at oracle.toplink.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2260)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1074)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1058)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1017)
at oracle.toplink.internal.sessions.AbstractSession.readObject(AbstractSession.java:2822)
at oracle.toplink.workbench.mappingsio.legacy.PersistenceTools50.readMWProjectNamed(PersistenceTools50.java:323)
at oracle.toplink.workbench.mappingsio.legacy.LegacyIOFacade.read50Project(LegacyIOFacade.java:21)
at oracle.toplink.workbench.mappingsio.ProjectReader.readLegacyProject(ProjectReader.java:248)
at oracle.toplink.workbench.mappingsio.ProjectReader.read(ProjectReader.java:104)
at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOManager.java:59)
at oracle.toplink.workbench.mappingsplugin.MappingsPlugin.open(MappingsPlugin.java:289)
... 5 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at oracle.toplink.internal.descriptors.MethodAttributeAccessor.setAttributeValueInObject(MethodAttributeAccessor.java:174)
at oracle.toplink.mappings.DatabaseMapping.setAttributeValueInObject(DatabaseMapping.java:1228)
at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1118)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:277)
at oracle.toplink.sdk.SDKAggregateObjectMapping.buildCompositeObject(SDKAggregateObjectMapping.java:58)
at oracle.toplink.mappings.foundation.AbstractCompositeObjectMapping.valueFromRow(AbstractCompositeObjectMapping.java:231)
at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1117)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:277)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:582)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:439)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:389)
at oracle.toplink.queryframework.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:511)
at oracle.toplink.queryframework.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:433)
at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:874)
at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:674)
at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:835)
at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:397)
at oracle.toplink.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2260)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1074)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1058)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1017)
at oracle.toplink.internal.sessions.AbstractSession.readObject(AbstractSession.java:2822)
at oracle.toplink.workbench.mappingsio.legacy.PersistenceTools50.readMWProjectNamed(PersistenceTools50.java:323)
at oracle.toplink.workbench.mappingsio.legacy.LegacyIOFacade.read50Project(LegacyIOFacade.java:21)
at oracle.toplink.workbench.mappingsio.ProjectReader.readLegacyProject(ProjectReader.java:248)
at oracle.toplink.workbench.mappingsio.ProjectReader.read(ProjectReader.java:104)
at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOManager.java:59)
Caused by: java.lang.IllegalArgumentException: missing database platform named: null
at oracle.toplink.workbench.platformsmodel.DatabasePlatformRepository.platformNamed(DatabasePlatformRepository.java:334)
at oracle.toplink.workbench.mappingsmodel.db.MWDatabase.setDatabasePlatformNameForTopLink(MWDatabase.java:1013)
at oracle.toplink.workbench.mappingsmodel.db.MWDatabase.legacySetDatabasePlatformNameForTopLink(MWDatabase.java:1133)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at oracle.toplink.internal.descriptors.MethodAttributeAccessor.setAttributeValueInObject(MethodAttributeAccessor.java:174)
at oracle.toplink.mappings.DatabaseMapping.setAttributeValueInObject(DatabaseMapping.java:1228)
at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1118)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:277)
at oracle.toplink.sdk.SDKAggregateObjectMapping.buildCompositeObject(SDKAggregateObjectMapping.java:58)
at oracle.toplink.mappings.foundation.AbstractCompositeObjectMapping.valueFromRow(AbstractCompositeObjectMapping.java:231)
at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1117)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:277)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:582)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:439)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:389)
at oracle.toplink.queryframework.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:511)
at oracle.toplink.queryframework.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:433)
at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:874)
at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:674)
at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:835)
at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:397)
at oracle.toplink.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2260)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1074)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1058)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1017)
at oracle.toplink.internal.sessions.AbstractSession.readObject(AbstractSession.java:2822)
at oracle.toplink.workbench.mappingsio.legacy.PersistenceTools50.readMWProjectNamed(PersistenceTools50.java:323)
at oracle.toplink.workbench.mappingsio.legacy.LegacyIOFacade.read50Project(LegacyIOFacade.java:21)
at oracle.toplink.workbench.mappingsio.ProjectReader.readLegacyProject(ProjectReader.java:248)
at oracle.toplink.workbench.mappingsio.ProjectReader.read(ProjectReader.java:104)
at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOManager.java:59)
at oracle.toplink.workbench.mappingsplugin.MappingsPlugin.open(MappingsPlugin.java:289)
at oracle.toplink.workbench.framework.internal.FrameworkApplication.open(FrameworkApplication.java:689)
at oracle.toplink.workbench.framework.internal.FrameworkNodeManager.openCallback(FrameworkNodeManager.java:341)
at oracle.toplink.workbench.framework.internal.RunnableProjectLoader.run2(RunnableProjectLoader.java:76)
at oracle.toplink.workbench.framework.internal.RunnableProjectLoader.run(RunnableProjectLoader.java:63)
at java.lang.Thread.run(Thread.java:595)
SreeHi Sree,
If you could email me a copy of the whole mapping workbench project, I can probably fix this issue for you.
Thanks,
Les -
JPA Toplink, class cast exception when casting class A to class A
I get a really strange exception from Toplink JPA. I used netbeans to create a persistence.xml and I generated a class (entity) from the table in a DB. Everything works fine, when I create a select query, I get the list of objects and the list is correctly typed. I can the objects in the list in debug mode with every field correctly set. But then I need to start working with the list, so I iterate through the list. And then I get ClassCastException from class A to class A (when A is the canonical name of the entity class).
I was working with JPA for some time but never seen that. I am using glassfish v2, mysql, netbeans 6.1. I could post the classes and persistence xml, but persistence.xml is really simple (no class definitions) and the class is annotated by netbeans. Every field is annotated like this:
@Column(name = "name", nullable = false)
And Date columns have
@Temporal(TemporalType.TIMESTAMP)
The whole class is annotated with @Table.
Does anyone has any idea, what can be wrong?DrClap wrote:
Make sure your URLClassLoader cannot load the IAdapter class.
That is not exactly correct. He needs to make sure his URLClassloader has access to the IAdapter class. Sure, it should not load it on its own, but if requested the URLClassloader should be able to ask a parent to load IAdapter. Which in the end looks the same. But is not the same.
So set the parent classloader of your URLClassloader to a classloader capable of loading IAdapter. -
Exception [TOPLINK-4002] : A lock could not be obtained within the time req
Hi,
i am using Toplink bundled with Netbeans 5.5.1.
I have 2 projects : one with common objects and one with business objects. When a business session bean calls a common session bean in order to create and persist a common object used in business part, we have the following errors :
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: A lock could not be obtained within the time requested
Error Code: -1
Call: SELECT ID FROM IMAGESOWNER WHERE (ID = ?)
bind => [2]
Query: DoesExistQuery()
at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:304)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:551)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:437)
at oracle.toplink.essentials.threetier.ServerSession.executeCall(ServerSession.java:465)
at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:213)
at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:199)
at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.selectRowForDoesExist(DatasourceCallQueryMechanism.java:642)
at oracle.toplink.essentials.queryframework.DoesExistQuery.executeDatabaseQuery(DoesExistQuery.java:243)
at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:609)
at oracle.toplink.essentials.queryframework.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:536)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2219)
at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:937)
at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:894)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.checkForUnregisteredExistingObject(UnitOfWorkImpl.java:516)
at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork$1.iterate(RepeatableWriteUnitOfWork.java:123)
at oracle.toplink.essentials.internal.descriptors.DescriptorIterator.internalIterateReferenceObject(DescriptorIterator.java:174)
at oracle.toplink.essentials.internal.descriptors.DescriptorIterator.iterateReferenceObjectForMapping(DescriptorIterator.java:281)
at oracle.toplink.essentials.mappings.ObjectReferenceMapping.iterateOnRealAttributeValue(ObjectReferenceMapping.java:254)
at oracle.toplink.essentials.internal.indirection.IndirectionPolicy.iterateOnAttributeValue(IndirectionPolicy.java:207)
at oracle.toplink.essentials.mappings.ForeignReferenceMapping.iterate(ForeignReferenceMapping.java:571)
at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.iterate(ObjectBuilder.java:2061)
at oracle.toplink.essentials.internal.descriptors.DescriptorIterator.iterateReferenceObjects(DescriptorIterator.java:296)
at oracle.toplink.essentials.internal.descriptors.DescriptorIterator.startIterationOn(DescriptorIterator.java:469)
at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.discoverUnregisteredNewObjects(RepeatableWriteUnitOfWork.java:145)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.discoverAllUnregisteredNewObjects(UnitOfWorkImpl.java:1278)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.assignSequenceNumbers(UnitOfWorkImpl.java:368)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.collectAndPrepareObjectsForCommit(UnitOfWorkImpl.java:707)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithChangeSet(UnitOfWorkImpl.java:1098)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.issueSQLbeforeCompletion(UnitOfWorkImpl.java:2429)
at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.issueSQLbeforeCompletion(RepeatableWriteUnitOfWork.java:186)
at oracle.toplink.essentials.transaction.AbstractSynchronizationListener.beforeCompletion(AbstractSynchronizationListener.java:116)
at oracle.toplink.essentials.transaction.JTASynchronizationListener.beforeCompletion(JTASynchronizationListener.java:76)
at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:406)
at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:358)
at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3736)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3515)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1305)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1267)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:197)
at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:104)
at $Proxy190.createAMember(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:204)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:123)
at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:196)
at ppcobjectssessionbeans.__PpcMemberSessionRemote_Remote_DynamicStub.createAMember(__PpcMemberSessionRemote_Remote_DynamicStub.java)
at ppcobjectssessionbeans._PpcMemberSessionRemote_Wrapper.createAMember(ppcobjectssessionbeans._PpcMemberSessionRemote_Wrapper.java)
at polyplastoclub.admin.addMember_action(admin.java:630)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.el.parser.AstValue.invoke(AstValue.java:174)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:284)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
at com.sun.rave.web.ui.appbase.faces.ActionListenerImpl.processAction(ActionListenerImpl.java:57)
at javax.faces.component.UICommand.broadcast(UICommand.java:383)
at com.sun.webui.jsf.component.WebuiCommand.broadcast(WebuiCommand.java:160)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:258)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:189)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:193)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:255)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:93)
Caused by: java.sql.SQLException: A lock could not be obtained within the time requested
at org.apache.derby.client.am.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
at org.apache.derby.client.am.ResultSet.next(Unknown Source)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:502)
... 97 more
Caused by: org.apache.derby.client.am.SqlException: A lock could not be obtained within the time requested
at org.apache.derby.client.am.ResultSet.completeSqlca(Unknown Source)
at org.apache.derby.client.net.NetResultSetReply.parseFetchError(Unknown Source)
at org.apache.derby.client.net.NetResultSetReply.parseCNTQRYreply(Unknown Source)
at org.apache.derby.client.net.NetResultSetReply.readFetch(Unknown Source)
at org.apache.derby.client.net.ResultSetReply.readFetch(Unknown Source)
at org.apache.derby.client.net.NetResultSet.readFetch_(Unknown Source)
at org.apache.derby.client.am.ResultSet.flowFetch(Unknown Source)
at org.apache.derby.client.net.NetCursor.getMoreData_(Unknown Source)
at org.apache.derby.client.am.Cursor.stepNext(Unknown Source)
at org.apache.derby.client.am.Cursor.next(Unknown Source)
at org.apache.derby.client.am.ResultSet.nextX(Unknown Source)
... 99 more
If i persist the common object in business part, i have no problem : is it a toplink limit or there is something to do ?
Best regards
H. DeslandesHi,
I am getting same error code but with different error details.
Whenever my BPEL process is idle for a long time and then if I execute the BPEL process, it gives me an error from db adapter as shown here:
<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
-<part name="code">
<code>17002
</code>
</part>
-<part name="summary">
<summary>
file:/oracle/product/Oracle_SOA_10.1.3/bpel/domains/default/tmp/.bpel_IHCloseTaskResponse_1.0_aaa6a3e5c7a3340eff9954dbeaf1e374.tmp/InsertIHCloseDB.wsdl [ InsertIHCloseDB_ptt::write(IhCloseMainCollection) ] - WSIF JCA Execute of operation 'write' failed due to: DBWriteInteractionSpec Execute Failed Exception.
write failed. Descriptor name: [InsertIHCloseDB.IhCloseMain]. [Caused by: Io exception: Broken pipe]
; nested exception is:
ORABPEL-11616
DBWriteInteractionSpec Execute Failed Exception.
write failed. Descriptor name: [InsertIHCloseDB.IhCloseMain]. [Caused by: Io exception: Broken pipe]
Caused by Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070608)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Io exception: Broken pipeError Code: 17002
Call:SELECT TIH_REFERENCE_NUMBER FROM IH_CLOSE_MAIN WHERE (TIH_REFERENCE_NUMBER = ?)
bind => [IH1107100305]
Query:DoesExistQuery().
</summary>
</part>
-<part name="detail">
<detail>
Internal Exception: java.sql.SQLException: Io exception: Broken pipeError Code: 17002
Call:SELECT TIH_REFERENCE_NUMBER FROM IH_CLOSE_MAIN WHERE (TIH_REFERENCE_NUMBER = ?)
bind => [IH1107100305]
Query:DoesExistQuery()
</detail>
</part>
</remoteFault>
Can any body help me to sort out this problem, please?
Many thanks in advance. -
Getting exception TOPLINK-2004
We are trying insert a single record to a table and getting following error:
We are at very crucial stage of testing , Pl help us to resolve the issue.
Thanks in advance for your help
<2006-12-21 21:58:42,547> <DEBUG> <default.collaxa.cube.ws> <Database Adapter::Outbound> <oracle.tip.adapter.db.TopLinkLogger log> INSERT INTO CAH1.INTERFACE_CONTROL (SQ_RECORD_ID, INTERFACE_NAME, INTERFACE_STATUS) VALUES (?, ?, ?)
bind => [null, JOBCODE, RECEIVED]
<2006-12-21 21:58:42,557> <DEBUG> <default.collaxa.cube.ws> <AdapterFramework::Outbound> file:/data/app/oracle/soa/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_JobcodeMain_1.0_ecd4926cbc8cc8c94cea022b5a9d0120.tmp/INTF_CLR_DBA.wsdl [ INTF_CLR_DBA_ptt::insert(InterfaceControlCollection) ] - Committing JCA LocalTransaction
<2006-12-21 21:58:42,559> <DEBUG> <default.collaxa.cube.ws> <Database Adapter::Outbound> <oracle.tip.adapter.db.TopLinkLogger log> commit transaction
<2006-12-21 21:58:42,583> <ERROR> <default.collaxa.cube.ws> <AdapterFramework::Outbound> file:/data/app/oracle/soa/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_JobcodeMain_1.0_ecd4926cbc8cc8c94cea022b5a9d0120.tmp/INTF_CLR_DBA.wsdl [ INTF_CLR_DBA_ptt::insert(InterfaceControlCollection) ] - Could not invoke operation 'insert' against the 'Database Adapter' due to:
ORABPEL-11616
DBWriteInteractionSpec Execute Failed Exception.
unknown failed. Descriptor name: [unknown].
Caused by Exception [TOPLINK-2004] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.ConcurrencyException
Exception Description: A signal was attempted before wait() on ConcurrencyManager. This normally means that an attempt was made to
commit or rollback a transaction before it was started, or to rollback a transaction twice..
at oracle.tip.adapter.db.exceptions.DBResourceException.createEISException(DBResourceException.java:369)
at oracle.tip.adapter.db.exceptions.DBResourceException.outboundWriteException(DBResourceException.java:410)
at oracle.tip.adapter.db.transaction.DBTransaction.commit(DBTransaction.java:230)
at oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeRequestResponseOperation(WSIFOperation_JCA.java:509)
at oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeInputOnlyOperation(WSIFOperation_JCA.java:726)
at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:425)
at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:416)
at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:222)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:736)
at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:371)
at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:195)
at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3271)
at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1697)
at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:184)
at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:269)
at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5244)
at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1083)
at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:530)
at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:333)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:396)
at com.evermind.server.ThreadState.runAs(ThreadState.java:622)
at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at CubeDeliveryBean_LocalProxy_4bin6i8.handleInvoke(Unknown Source)
at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:138)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
at java.lang.Thread.run(Thread.java:595)BTW, are you sure you aren't calling any of the individual sessions (apart from the session broker)?
Do you have a simple reproducable test case? -
hi guys,
I really need ur help with this.
I have a remote session bean that retrieves a list of books from the database using entity class and I call the session bean from a web service. The problem is that when i display the books in a jsp directly from the session bean everything works ok but the problem comes when I call the session bean via the web service than it throws this:
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 oracle.toplink.essentials.exceptions.ValidationException.instantiatingValueholderWithNullSession(ValidationException.java:887)
at oracle.toplink.essentials.internal.indirection.UnitOfWorkValueHolder.instantiate(UnitOfWorkValueHolder.java:233)
at oracle.toplink.essentials.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:105)
at oracle.toplink.essentials.indirection.IndirectList.buildDelegate(IndirectList.java:208)
at oracle.toplink.essentials.indirection.IndirectList.getDelegate(IndirectList.java:330)
at oracle.toplink.essentials.indirection.IndirectList$1.<init>(IndirectList.java:425)
at oracle.toplink.essentials.indirection.IndirectList.iterator(IndirectList.java:424)
at com.sun.xml.bind.v2.runtime.reflect.Lister$CollectionLister.iterator(Lister.java:278)
at com.sun.xml.bind.v2.runtime.reflect.Lister$CollectionLister.iterator(Lister.java:265)
at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:129)
at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:681)
at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:65)
at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:168)
at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:681)
at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:277)
at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:100)
at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:141)
at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:315)
at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:142)
at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:108)
at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
at com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:320)
at com.sun.xml.ws.transport.http.HttpAdapter.access$100(HttpAdapter.java:93)
at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:454)
at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:176)
... 29 more
This happens when I test the web service using netbeans 6.5.
here's my code:
session bean:
ArrayList bookList = null;
public ArrayList retrieveBooks()
try
List list = em.createNamedQuery("Book.findAll").getResultList();
bookList = new ArrayList(list);
catch (Exception e)
e.getCause();
return bookList;
web service:
@WebMethod(operationName = "retrieveBooks")
public Book[] retrieveBooks()
ArrayList list = ejbUB.retrieveBooks();
int size = list.size();
Book[] bookList = new Book[size];
Iterator it = list.iterator();
int i = 0;
while (it.hasNext())
Book book = (Book) it.next();
bookList[i] = book;
i++;
return bookList;
Please help guys, it's very urgentYes i have a relationship but i didnt want it to be directly. Maybe this is a design problem but in my case I dont expect any criminals to be involved in lawsuit. My tables are like that:
CREATE TABLE IF NOT EXISTS Criminal(
criminal_id INTEGER NOT NULL AUTO_INCREMENT,
gender varchar(1),
name varchar(25) NOT NULL,
last_address varchar(100),
birth_date date,
hair_color varchar(10),
eye_color varchar(10),
weight INTEGER,
height INTEGER,
PRIMARY KEY (criminal_id)
ENGINE=INNODB;
CREATE TABLE IF NOT EXISTS Lawsuit(
lawsuit_id INTEGER NOT NULL AUTO_INCREMENT,
courtName varchar(25),
PRIMARY KEY (lawsuit_id),
FOREIGN KEY (courtName) REFERENCES Court_of_Law(courtName) ON DELETE NO ACTION
ENGINE=INNODB;
CREATE TABLE IF NOT EXISTS Rstands_trial(
criminal_id INTEGER,
lawsuit_id INTEGER,
PRIMARY KEY (criminal_id, lawsuit_id),
FOREIGN KEY (criminal_id) REFERENCES Criminal(criminal_id) ON DELETE NO ACTION,
FOREIGN KEY (lawsuit_id) REFERENCES Lawsuit(lawsuit_id) ON DELETE CASCADE
ENGINE=INNODB;So I couldnt get it. -
EXCEPTION [TOPLINK-108]
Hi,
Did anyone run into this exception? I am getting
EXCEPTION [TOPLINK-108] (TopLink (WLS CMP) - 9.0.3 (Build 423)): oracle.top
link.exceptions.DescriptorException
EXCEPTION DESCRIPTION: Cannot find value in class indicator mapping in pare
nt descriptor [Descriptor(com.hbo.slmk.sams.element.SmMktgElement --> [Data
baseTable(SM_MKTG_ELEMENT)])].
DESCRIPTOR: Descriptor(com.hbo.slmk.sams.element.SmWebsite --> [DatabaseTab
le(SM_MKTG_ELEMENT), DatabaseTable(SM_WEBSITE)])
when deploying to WebLogic Server 7.0 SP1. The troubleshooting guide says:
Error code: 108
VALUE_NOT_FOUND_IN_CLASS_INDICATOR_MAPPING
Cause: The indicator value is not found in the class indicator mapping in the parent descriptor for the class.
Action: Check addClassIndicator(Class childClass, Object typeValue) on the inheritance policy.
But the inheritance policy in project java source looks ok.
public Descriptor buildSmMktgElementDescriptor() {
Descriptor descriptor = new Descriptor();
descriptor.setJavaClass(com.hbo.slmk.sams.element.SmMktgElement.class);
descriptor.addTableName("SM_MKTG_ELEMENT");
descriptor.addPrimaryKeyFieldName("SM_MKTG_ELEMENT.MKTG_ELEMENT_TKEY");
// Inheritance properties.
descriptor.getInheritancePolicy().addClassIndicator(com.hbo.slmk.sams.element.SmWebsite.class, "SmWebsite");
Would appreciate any suggestions to identify what is causing the exception.
Thanks,
SuhrobI included just a section of the code. Here is the inheritance policy in its entirety. I am getting error 108 for each of the subclasses.
Thanks,
Suhrob
public Descriptor buildSmMktgElementDescriptor() {
Descriptor descriptor = new Descriptor();
descriptor.setJavaClass(com.hbo.slmk.sams.element.SmMktgElement.class);
descriptor.addTableName("SM_MKTG_ELEMENT");
descriptor.addPrimaryKeyFieldName("SM_MKTG_ELEMENT.MKTG_ELEMENT_TKEY");
// Inheritance properties.
descriptor.getInheritancePolicy().setClassIndicatorFieldName("SM_MKTG_ELEMENT.ELEMENT_CLASS_NAME");
descriptor.getInheritancePolicy().addClassIndicator(com.hbo.slmk.sams.element.SmListElement.class, "SmListElement");
descriptor.getInheritancePolicy().addClassIndicator(com.hbo.slmk.sams.element.SmDateElement.class, "SmDateElement");
descriptor.getInheritancePolicy().addClassIndicator(com.hbo.slmk.sams.element.SmOrganization.class, "SmOrganization");
descriptor.getInheritancePolicy().addClassIndicator(com.hbo.slmk.sams.element.SmIndicia.class, "SmIndicia");
descriptor.getInheritancePolicy().addClassIndicator(com.hbo.slmk.sams.element.SmTextElement.class, "SmTextElement");
descriptor.getInheritancePolicy().addClassIndicator(com.hbo.slmk.sams.element.SmWebsite.class, "SmWebsite");
descriptor.getInheritancePolicy().addClassIndicator(com.hbo.slmk.sams.element.SmSalesPhoneListElement.class, "SmSalesPhoneListElement");
descriptor.getInheritancePolicy().addClassIndicator(com.hbo.slmk.sams.element.SmContact.class, "SmContact");
descriptor.getInheritancePolicy().addClassIndicator(com.hbo.slmk.sams.element.SmAddress.class, "SmAddress");
// Descriptor properties.
descriptor.useSoftCacheWeakIdentityMap();
descriptor.setIdentityMapSize(100);
descriptor.useRemoteSoftCacheWeakIdentityMap();
descriptor.setRemoteIdentityMapSize(100);
descriptor.setAlias("SmMktgElement");
-
When I am adding a new object to the existing Toplink map and while creating Java objects from existing tables, I am getting the following exception and Java object creation process is stuck and I have to exit the Jdeveloper by terminating the process. Is this bug or any issue with Toplink map, I mean is the TopLink map got corrupted? If so, is there any solution to fix Toplink map. I will higly appreciate if someone respond quickly.
Thanks in Advance
java.lang.NullPointerException
at oracle.ideimpl.log.TabbedLogManager.getMsgPage(TabbedLogManager.java:101)
at oracle.toplink.addin.log.POJOGenerationLoggingAdapter.updateTask(POJOGenerationLoggingAdapter.java:42)
at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.fireTaskUpdated(MappingCreatorImpl.java:1102)
at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.generateMappedDescriptorsForTables(MappingCreatorImpl.java:269)
at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.generateMappedDescriptorsForTables(MappingCreatorImpl.java:206)
at oracle.toplink.addin.wizard.jobgeneration.JobWizard$1.construct(JobWizard.java:401)
at oracle.ide.util.SwingWorker$1.run(SwingWorker.java:119)
at java.lang.Thread.run(Thread.java:595)
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:787)
at java.util.HashMap$EntryIterator.next(HashMap.java:829)
at java.util.HashMap$EntryIterator.next(HashMap.java:827)
at oracle.ideimpl.controls.SwitchablePanel.getTabPageForComponent(SwitchablePanel.java:556)
at oracle.ideimpl.controls.FlatTabbedWindow.getTabPageForComponent(FlatTabbedWindow.java:304)
at oracle.ideimpl.log.TabbedPage.getTabPageForLogPage(TabbedPage.java:238)
at oracle.ideimpl.log.TabbedLogManager.getMsgPage(TabbedLogManager.java:100)
at oracle.toplink.addin.log.POJOGenerationLoggingAdapter.updateTask(POJOGenerationLoggingAdapter.java:42)
at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.fireTaskUpdated(MappingCreatorImpl.java:1102)
at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.generateMappedDescriptorsForTables(MappingCreatorImpl.java:269)
at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.generateMappedDescriptorsForTables(MappingCreatorImpl.java:206)
at oracle.toplink.addin.wizard.jobgeneration.JobWizard$1.construct(JobWizard.java:401)
at oracle.ide.util.SwingWorker$1.run(SwingWorker.java:119)
at java.lang.Thread.run(Thread.java:595)Hi,
My web application configured on jdeveloper, jsf, toplink has already a data base configured, i am trying to connect to another database which leads to multiple data bases through session broker. But i am not using session manager to acquire session rather using Session factory which takes Environment.getTopLinkSessionName() to locate session. I am getting below exception when deployed.
Internal Exception: java.sql.SQLException: ORA-00942: table or view does not exist
at com.evermind.server.ejb.EJBUtils.getLocalUserException(EJBUtils.java:317)
at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:67)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at CSFacade_LocalProxy_59gcb4h.findAcctHouseholdClaims(Unknown Source)
at com.allstate.amc.view.delegates.AMCLookups.findAcctHouseholdClaims(AMCLookups.java:495)
at com.allstate.amc.view.backing.MyMembership.getClaims(MyMembership.java:113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585) -
Toplink Exception: caused by EXCEPTION [TOPLINK-125]
Hi,
Sorry i can't provide much info at the moment, but this has just been passed on from a colleague at work.
The following error has occurred now that we have temporarily set all descriptors to use noIdentityMap().
It does not happen when caching is switched on.
Jul 01, 2003 06:32:36 PM com.aon.ame.quotation.ejb.QuotationBean updateSectionQuotation
INFO: Toplink Exception: caused by EXCEPTION [TOPLINK-125] (3.6.4 (build 245)): TOPLink.Public.Exceptions.DescriptorException
EXCEPTION DESCRIPTION: The mapping for the attribute [underwritingCompany] uses indirection, and so must be initialized to a new ValueHolder. Currently the value is: [null].
MAPPING: TOPLink.Public.Mappings.OneToOneMapping[underwritingCompany]
DESCRIPTOR: Descriptor(com.aon.ame.entities.UnderwritingBranch --> [DatabaseTable(AME2DATA.UNDERWRITING_BRANCH)]):
EXCEPTION DESCRIPTION: The mapping for the attribute [underwritingCompany] uses indirection, and so must be initialized to a new ValueHolder. Currently the value is: [null].
MAPPING: TOPLink.Public.Mappings.OneToOneMapping[underwritingCompany]
DESCRIPTOR: Descriptor(com.aon.ame.entities.UnderwritingBranch --> [DatabaseTable(AME2DATA.UNDERWRITING_BRANCH)])
LOCAL EXCEPTION STACK:
EXCEPTION [TOPLINK-125] (3.6.4 (build 245)): TOPLink.Public.Exceptions.DescriptorException
EXCEPTION DESCRIPTION: The mapping for the attribute [underwritingCompany] uses indirection, and so must be initialized to a new ValueHolder. Currently the value is: [null].
MAPPING: TOPLink.Public.Mappings.OneToOneMapping[underwritingCompany]
DESCRIPTOR: Descriptor(com.aon.ame.entities.UnderwritingBranch --> [DatabaseTable(AME2DATA.UNDERWRITING_BRANCH)])
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at TOPLink.Public.Exceptions.TOPLinkException.<init>(Compiled Code)
at TOPLink.Public.Exceptions.ValidationException.<init>(Compiled Code)
at TOPLink.Public.Exceptions.DescriptorException.<init>(DescriptorException.java:176)
at TOPLink.Public.Exceptions.DescriptorException.<init>(DescriptorException.java:183)
at TOPLink.Public.Exceptions.DescriptorException.valueHolderInstantiationMismatch(DescriptorException.java:1363)
at TOPLink.Private.Indirection.BasicIndirectionPolicy.validateAttributeOfInstantiatedObject(Compiled Code)
at TOPLink.Public.Mappings.ForeignReferenceMapping.getAttributeValueFromObject(Compiled Code)
at TOPLink.Public.Mappings.ForeignReferenceMapping.buildClone(Compiled Code)
at TOPLink.Private.Descriptors.ObjectBuilder.populateAttributesForClone(Compiled Code)
at TOPLink.Public.PublicInterface.UnitOfWork.cloneAndRegisterObject(Compiled Code)
at TOPLink.Public.PublicInterface.UnitOfWork.checkExistence(Compiled Code)
at TOPLink.Public.PublicInterface.UnitOfWork.internalRegisterObject(Compiled Code)
at TOPLink.Public.PublicInterface.UnitOfWork.registerObject(Compiled Code)
at com.aon.ame.quotation.ejb.QuotationBean.updateSectionQuotation(Compiled Code)
at com.aon.ame.quotation.ejb.EJSRemoteQuotation.updateSectionQuotation(EJSRemoteQuotation.java:2418)
at com.aon.ame.quotation.ejb._Quotation_BaseStub.updateSectionQuotation(_Quotation_BaseStub.java:4146)
at com.aon.ame.quotation.ejb._Quotation_Stub.updateSectionQuotation(Compiled Code)
at com.aon.ame.quotation.struts.action.ViewSpecialEndorsementsAction.doUpdateBrokerSpecialEndorsement(Compiled Code)
at com.aon.ame.quotation.struts.action.ViewSpecialEndorsementsAction.doUpdateWording(ViewSpecialEndorsementsAction.java:551)
at com.aon.ame.quotation.struts.action.ViewSpecialEndorsementsAction.amePerform(ViewSpecialEndorsementsAction.java:127)
at com.aon.ame.struts.action.AmeBaseAction.aonPerform(AmeBaseAction.java:48)
at com.aon.struts.action.BaseAction.perform(Compiled Code)
at org.apache.struts.action.ActionServlet.processActionPerform(Compiled Code)
at org.apache.struts.action.ActionServlet.process(Compiled Code)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(Compiled Code)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(Compiled Code)
at com.ibm.servlet.engine.webapp.IdleServletState.service(Compiled Code)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(Compiled Code)
at com.ibm.servlet.engine.webapp.ServletInstance.service(Compiled Code)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(Compiled Code)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(Compiled Code)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(Compiled Code)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(Compiled Code)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(Compiled Code)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(Compiled Code)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(Compiled Code)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(Compiled Code)
at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Compiled Code)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(Compiled Code)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(Compiled Code)
at com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(Compiled Code)
at com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(Compiled Code)
at com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(Compiled Code)
at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(Compiled Code)
at com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(Compiled Code)
at com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
Jul 01, 2003 06:32:36 PM com.aon.struts.action.BaseAction perform
SEVERE: com.aon.ame.quotation.struts.action.ViewSpecialEndorsementsAction.aonPerform() threw an exception: RemoteException occurred in server thread; nested exception is:
com.ibm.ejs.container.UncheckedException: ; nested exception is:
EXCEPTION [TOPLINK-125] (3.6.4 (build 245)): TOPLink.Public.Exceptions.DescriptorException
EXCEPTION DESCRIPTION: The mapping for the attribute [underwritingCompany] uses indirection, and so must be initialized to a new ValueHolder. Currently the value is: [null].
Can anyone shed any light on why this might have happened?
Many thanks.I don't see how caching is affected by this, but the exception is complaining that you have a relationship that uses indirection and have not instantiated the value holders.
I.e.,
Customer has 1-1 to Address, and you're using ValueHolderInterface for the type. Either in the constructor or in the declaration of the attribute, you need to init the value holder. You should do the same for 1-M's also (unless you're using transparent indirection) For example:
public class Customer {
String name;
String title;
ValueHolderInterface address = new ValueHolder();
ValueHolderInterface orders = new ValueHolder(new Vector());
Maybe you are looking for
-
I just bought a new HP OfficeJet Pro 8600 printer. I have been unable to download the installation for wireless connection even though have had the assistance of Costco tech, HP tech and some advice from Apple. Because the system is MacOs 10.5.8 th
-
Dell Precision T5810 Core options and GPU config? Running CC on virtual desktops?
Hi, two questions really but didn't want to start multiple threads. I tried searching for answers to my questions but was not very successful so am trying to post. I am looking at buying some computers for our office which will be using the CC subscr
-
Hi, I am new to the FI Extraction.i need FI-AP,FIAR,FI-GL Standard reoprts. I found AP haveing only one standard report is available "Vendor overview"i used 0FI_AP_1 data source, but this ds info package shows only full update.their is no delta...wh
-
Stopping iMovie HD from opening a project automatically
Hello, Is there a way to stop iMovie HD from automatically opening the last project worked on? I work at a college and am in charge of an editing station where I don't want students accidently removing someone's project. -Matt
-
Enterprise Structure(Deletion of Storage Locations)
Hi Gurus I am new to SAP MM module. I have created 5 storage locations in which i need to delete 3 locations. What all precautions shouls i keep in mind before deleting the 3 storage locations. Kindly explain in details. Regards Bhupesh