Toplink 10.1.2.0/9.0.4.5 refuses to install on Oracle 10.1.0.2.0
Well, the subject line says it all... I tried to install Toplink 10.1.2.0/9.0.4.5 on a windows xp system running Oracle 10.1.0.2.0.
Different then 9.0.3 which is simply a set of libraries, toplink 9.0.4 is an *.exe file which executes the oracle-installer. Well, the oracle installer told me that some component on the standard oracle directory were old. Now, what could it be that is too old?
Which version of Oracle DB works with which version of Toplink?
I could not find any newer version of Oracle 10g than the one I have installed.
Thanks a lot in advance for helping.
Xenofon
The TopLink installer is looking for application server components. It should have no overlap with a database installation. Additionally, I would not typically install TopLink or any other application server components into an Oracle database home.
If you wish to simply apply the 9.0.4.5 patch-set onto your existing 9.0.4 installation I would recommend the zip patch-set available on metalink.oracle.com. It is patch #3941343.
Doug
Similar Messages
-
TopLink issues using Weblogic Server 8.1 SP3 and MAC OS X with Oracle 9i
Hi, I have successfully deployed my EJB (entity bean) on WLS 8.1 (the generic version) on Mac OS X. I also have installed Apple jdk 1.4.2 and everything seems to be ok. The server came up without any problem and can connect to my Oracle DB. I verify this from Weblogic console. However, when I try to access the bean (create/find), I got this AbstractMethodError exception. Can anyone help ?
Thanks for any help/pointer you can provide.
Regards,
Message = Could not create network. javax.ejb.TransactionRolledbackLocalExceptio
n: EJB Exception: : java.lang.AbstractMethodError: oracle.toplink.internal.ejb.c
mp.wls.Wls81BeanManager.localCreate(Lweblogic/ejb20/internal/InvocationWrapper;L
java/lang/reflect/Method;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljavax/ej
b/EJBLocalObject;
at weblogic.ejb20.internal.EntityEJBLocalHome.create(EntityEJBLocalHome.
java:170)
at com.maranti.msm.server.objectRepository.Network_kmp5vn_LocalHomeImpl.
create(Network_kmp5vn_LocalHomeImpl.java:151)
at com.maranti.msm.server.topologyManagement.TopologyManagerEJB.createNe
tworkBean(TopologyManagerEJB.java:157)
at com.maranti.msm.server.topologyManagement.TopologyManagerEJB.getRootN
etwork(TopologyManagerEJB.java:347)
at com.maranti.msm.server.topologyManagement.TopologyManager_363sal_EOIm
pl.getRootNetwork(TopologyManager_363sal_EOImpl.java:1558)
at com.maranti.msm.server.topologyManagement.TopologyManager_363sal_EOIm
pl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
ef.java:108)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)Any idea, anyone ?
-
Deadlock in TopLink when using JMS listener on WebLogic
I am experiencing a deadlock in TopLink 10.1.3 on WebLogic 9 in code that previously worked on TopLink 9.0.4 with WebLogic 8.1. As such, I'm not sure if it's due to the TopLink change, the WebLogic change or both. Anyway, we have a JMS listener (note, NOT a MessageDrivenBean) that is updating an existing TopLink cached domaing object. The JMS listener thread gets stuck when attempting to commit the transaction. The thread-dump shows that there is another thread which is blocked in the ConcurrencyManager waiting to obtain the lock on an object which is being updated by the listener thread. It appears to me that the root cause is that the Synchronization.afterCompletion() listener is running on a different thread than the one which owns the locks which were obtained beforeCompletion.
See stack traces.
First, the message listener thread which is waiting for participants in the transaction to commit:
"[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'" daemon prio=9 tid=0x3a4a4728 nid=0xa48 in Object.wait() [0x3a0cf000..0x3a0cfbec]
at java.lang.Object.wait(Native Method)
- waiting on <0x0c7a0908> (a weblogic.transaction.internal.ServerTransactionImpl)
at weblogic.transaction.internal.ServerTransactionImpl.globalRetryCommit(ServerTransactionImpl.java:2665)
- locked <0x0c7a0908> (a weblogic.transaction.internal.ServerTransactionImpl)
at weblogic.transaction.internal.ServerTransactionImpl.globalCommit(ServerTransactionImpl.java:2570)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:277)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:226)
at weblogic.ejb.container.internal.BaseEJBObject.postInvoke1(BaseEJBObject.java:539)
at weblogic.ejb.container.internal.StatelessEJBObject.postInvoke1(StatelessEJBObject.java:72)
at weblogic.ejb.container.internal.BaseEJBObject.postInvokeTxRetry(BaseEJBObject.java:374)
at com.avinamart.BusinessLogic.Bean.JobService.JobService_u1ylwo_EOImpl.submitJobAndRun(JobService_u1ylwo_EOImpl.java:1388)
at com.avinamart.Framework.Event.Task.OptimizationTaskListener._submitAsAJob(OptimizationTaskListener.java:253)
at com.avinamart.Framework.Event.Task.OptimizationTaskListener._submitAsAJob(OptimizationTaskListener.java:217)
at com.avinamart.Framework.Event.Task.OptimizationTaskListener.processMessage(OptimizationTaskListener.java:344)
at com.emptoris.base.event.EPASSMessageBaseListener.onMessage(EPASSMessageBaseListener.java:722)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:3824)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:3738)
at weblogic.jms.client.JMSSession.pushMessage(JMSSession.java:3253)
at weblogic.jms.client.JMSSession.invoke(JMSSession.java:4195)
at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:674)
at weblogic.messaging.dispatcher.DispatcherServerRef.invoke(DispatcherServerRef.java:262)
at weblogic.messaging.dispatcher.DispatcherServerRef.handleRequest(DispatcherServerRef.java:134)
at weblogic.messaging.dispatcher.DispatcherServerRef.access$000(DispatcherServerRef.java:36)
at weblogic.messaging.dispatcher.DispatcherServerRef$1.run(DispatcherServerRef.java:105)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
Next, the other thread which is participating in the transaction which is stuck:
"[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'" daemon prio=5 tid=0x3adb80a0 nid=0xb30 in Object.wait() [0x3c7af000..0x3c7afd6c]
at java.lang.Object.wait(Native Method)
- waiting on <0x0c7a0000> (a oracle.toplink.internal.helper.ConcurrencyManager)
at java.lang.Object.wait(Object.java:474)
at oracle.toplink.internal.helper.ConcurrencyManager.acquire(ConcurrencyManager.java:76)
- locked <0x0c7a0000> (a oracle.toplink.internal.helper.ConcurrencyManager)
at oracle.toplink.internal.identitymaps.CacheKey.acquire(CacheKey.java:80)
at oracle.toplink.internal.identitymaps.FullIdentityMap.remove(FullIdentityMap.java:164)
at oracle.toplink.internal.identitymaps.HardCacheWeakIdentityMap.remove(HardCacheWeakIdentityMap.java:82)
at oracle.toplink.internal.helper.WriteLockManager.releaseAllAcquiredLocks(WriteLockManager.java:363)
at oracle.toplink.publicinterface.UnitOfWork.afterTransaction(UnitOfWork.java:2123)
at oracle.toplink.transaction.AbstractSynchronizationListener.afterCompletion(AbstractSynchronizationListener.java:135)
at oracle.toplink.transaction.JTASynchronizationListener.afterCompletion(JTASynchronizationListener.java:66)
at weblogic.transaction.internal.ServerSCInfo.callAfterCompletions(ServerSCInfo.java:862)
at weblogic.transaction.internal.ServerTransactionImpl.callAfterCompletions(ServerTransactionImpl.java:2913)
at weblogic.transaction.internal.ServerTransactionImpl.afterCommittedStateHousekeeping(ServerTransactionImpl.java:2806)
at weblogic.transaction.internal.ServerTransactionImpl.setCommittedUnsync(ServerTransactionImpl.java:2857)
at weblogic.transaction.internal.ServerTransactionImpl.ackCommit(ServerTransactionImpl.java:1097)
- locked <0x0c7a0908> (a weblogic.transaction.internal.ServerTransactionImpl)
at weblogic.transaction.internal.CoordinatorImpl.ackCommit(CoordinatorImpl.java:211)
at weblogic.transaction.internal.CoordinatorImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:517)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:407)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:403)
at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:56)
at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:934)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
Is this the same concurrency bug which was fixed in 10.1.3.1??? As I am writing this, I am attempting to build the application with the updated TopLink jar to test for myself. Has anyone else seen this scenario with WebLogic? I should also point out that the problem only occurs when the listener is running on a separate server than the one hosting the JMS queue it reads from. It may be that when the listener runs on the same server, it does not use multiple threads in the transaction.
Any ideas are greatly appreciated.
- BrunoWe've got the same kind of issue with toplink 10.1.3.0.0 and bea weblogic 8.1 SP5.
I 've not tried with 10.1.3.1.0, did you?
Do you have a new status for this issue.
Chris -
How to upgrade mapping files of TOPLink 2.5.1 to the latest?
We are planning to update our TOPLink 2.5.1 to the latest,but we don't know whether Oracle has some tools or new features in TOPLink 9.0.3 that directly migrate the mapping files of TOPLink 2.5.1 to the TOPLink 9.0.3?
Thanks very much!Hi, Mr Smith
I have same problem as Mr. Tai .
I want to contact you with email, but the mail box [email protected] or [email protected] are invalid with my outlook report.
So below is my email contents, and my mail address is [email protected] .
Mr Smith:
I met some confusions in upgrading our system from TOPLINK2.5.1 to TOPLINK Release 2(Oracle9.0.3).
And because I didn't use TOPLINK tools before this project, I spent one week to know the structure of our system. Unfortunately, Our company isn't a supported Oracle customer. We just bought Oracle product, didn't buy support service.
First of all, I'll describ our system structure. The system is Weblogic5.1 + Toplink 2.5.1 + Oracle8.1 .Using Toplink we mapping our EJB to Oracle. The results of this procedure aremany .table, .descriptor, .topclass under the mapping forlder, and weblogic-ejb-jar.xml, topling-cmp-XX.xml, ejb-jar.xml under the deploy forlder. That's all.
So, after our ant-build, we copy these results to Weblogic server directory, and compile with EJB, deploy them. It's correct?
OK, as my considering, I install TOPLINK Release 2 , use Renamer tool to rename my source code from old TOPLINK library to oracle.toplink, complie them again. And create new project in TOPLINK 9.0.3 , import classes, login Database correctly. Do mapping as in TOPLINK2.5.1. Generate packagename.ClassDescriptor.xml under Descriptor, forlder ClassRepository, Class, Table, Database generate xml files also.
Do the above process correct? OK, let's assume it' correct. But how can I modify my ant-build , you know the structure is difference between Weblogic 5.1 and Weblogic 6 or 7. Additionally, I don't know where should I copy new TOPLINK library to Weblogic directory. Yes, I know old TOPLINK library location, but I think it has difference.
So , please tell me I can use Weblogic5.1 + TOPLINK 9.0.3 + Oracle 8.1 , is it right? I will be appreciated if you can give me some detail steps in upgrading TOPLINK.
And perhaps we need to upgrade out system from TOPLINK 2.5.1 to TOPLINK 4.x first?
Thanks for your view.
Yours
Denver Yang
Software Engineer
E-MA Logistics Systems (Shanghai) Limited
Tel: 86-21-6361-1177 Ext.140 -
We are trying to use TopLink (version 9.0.4.3) in a cluster of Oracle 10g application servers (9.0.4.0.0) but we are having a number of issues getting it to work. When I add the following into the sessions.xml file I get a number of toplink errors on startup:
<cache-synchronization-manager>
<clustering-service>
oracle.toplink.remote.rmi.RMIJNDIClusteringService
</clustering-service>
<jndi-user-name>userName</jndi-user-name>
<jndi-password>password</jndi-password>
<naming-service-initial-context-factory-name>
oracle.com.evermind.server.rmi.RMIInitialContextFactory
</naming-service-initial-context-factory-name>
<naming-service-url>ormi://hostname:23791/appName</naming-service-url>
</cache-synchronization-manager>
The errors that we get are:
Exception Description: Several [5] SessionLoaderExceptions were thrown:
Exception [TOPLINK-9003] (OracleAS TopLink - 10g (9.0.4) (Build 031126)): oracle.toplink.exceptions.SessionLoaderException
Exception Description: Unable to process XML tag [clustering-service] with value [
oracle.toplink.remote.rmi.RMIJNDIClusteringService
Internal Exception: java.lang.ClassNotFoundException:
oracle.toplink.remote.rmi.RMIJNDIClusteringService
Exception [TOPLINK-9003] (OracleAS TopLink - 10g (9.0.4) (Build 031126)): oracle.toplink.exceptions.SessionLoaderException
Exception Description: Unable to process XML tag [jndi-user-name] with value [admin].
Internal Exception: java.lang.NullPointerException
Exception [TOPLINK-9003] (OracleAS TopLink - 10g (9.0.4) (Build 031126)): oracle.toplink.exceptions.SessionLoaderException
Exception Description: Unable to process XML tag [jndi-password] with value [XXX].
Internal Exception: java.lang.NullPointerException
Exception [TOPLINK-9003] (OracleAS TopLink - 10g (9.0.4) (Build 031126)): oracle.toplink.exceptions.SessionLoaderException
Exception Description: Unable to process XML tag [naming-service-initial-context-factory-name] with value [
oracle.com.evermind.server.rmi.RMIInitialContextFactory
Internal Exception: java.lang.NullPointerException
Exception [TOPLINK-9003] (OracleAS TopLink - 10g (9.0.4) (Build 031126)): oracle.toplink.exceptions.SessionLoaderException
Exception Description: Unable to process XML tag [naming-service-url] with value [ormi://localhost:23791/XXX].
Internal Exception: java.lang.NullPointerException
All feedback is appreciated,
MarcThere was a recent thread on this issue,
Missing Descriptor in Servlet
Basically TopLink does not get notified of the undeployment of an app, so cannot remove the session from the SessionManager. (unless you are using CMP)
If you can receive notification of the deploy/undeploy you could remove or refresh the session from the session manager.
A simple way to do this would be to keep a static boolean variable in your apps class that accesses the session from the session manager. The first time you access the session refresh it and set the static to true.
To refresh a session from the session manager use the API,
SessionManager.getSession(XMLSessionConfigLoader/XMLLoader xmlLoader, String sessionName, ClassLoader classLoader, boolean shouldLoginSession, boolean shouldRefreshSession)
i.e.
SessionManager.getManager().getSession(new XMLSessionConfigLoader/XMLLoader("sessions.xml/or your file name/path"), "yourSessionName", yourClassLoader, true, true);
Only use this API the first time you access the session from the app.
You can also use the following code to remove a session,
SessionManager.getManager().getSessions().remove("yourSessionName");
I have logged this issue internally, hopefully a better solution will be provided in the 10.1.3 release. -
I understand that ADF BC is currently covered by the jdeveloper license, but toplink is licensed seperately.
Will the persistance layer of ADF BC be replaced by toplink in the future, and what effect will that have on licenses?Morten,
The TopLink runtime is licensed separately from ADF. If you are using the Oracle Application Server (Enterprise, Standard, or Java Edition) then TopLink is already included. Otherwise it is licensed separately under the same cost and terms as the Java Edition of the application server.
TopLink is currently a persistence layer option within ADF as an alternative to BC. The ADF model layer is being enhanced to support non-persistence features of BC so that they can be used in conjunction with any persistence layer. Going forward you will have a rich ADF solution with any of the persistence solutions, including EJB 3.0 (which is implemented using TopLink).
Doug -
Problem updating a date field via UnitOfWork - TopLink 9.0.3
Hello,
we want to change an exisiting application that employs TopLink 9.0.3, Build 423.
The data is stored in an Oracle 9.2.0.6.
The specific table has a composite primary key consisting of four fields.
I can easily create a new Object (foo)
uow.registerNewObject(foo)
uow.commit()
and see the results in the database.
If I obtain an exising Object (bar) and change an integer
bar = (Bar) Session.readObject(Bar.class, expr);
cloneBar = (Bar) uow.registerObject(bar);
cloneBar.setSomething(42);
uow.commit()
everything is fine.
But if I dare to change a Date field
cloneBar.setSomethingElse(cal.getTime());
then
uow.hasChanges()
returns true
but the update does not happen. It is neither logged nor is the data changed in the database.
Is this a known bug?
What have I done wrong?
How can I avoid using hard-coded SQL to update my Bar object?
Bye,
StephanHello,
it is very disturbing, but I finally found the reason for this problem.
After decompiling the Project class file (we have no source code of this third-party library), I saw that the mapping for this specific field is set to "readOnly".
I did not know that TopLink is able to have specific fields "readOnly" and others "readWrite", but it can handle this!
So it seems that the behaviour is not a bug but a feature :-(
We can change the mapping before creating the session, with the result that the field is updatable.
Have a nice day. -
hi all,
I need to fetch single row from table and have to print it on JSF page in outputText and inputputText boxes....
what should be the procedure???
how to write the query?
and the resultset that is retrieved is in the form of vector how to put their values in outputText boxes?Hello,
Your questions are pretty broad, but let me address the TopLink aspects of your questions. Once you have an object retrieved via TopLink, then you can consider your JSF presentation of the data that is housed within the object.
Lets say you have a java class named X, and you want instances of X persisted to a table that is also named X. Now you are interested in using TopLink to hydrate an instance of X so that you can render some information for that instance, which contains of course data from table X.
In general, you TopLink map X.class to the table named X with all of the columns in the table mapped to instance attributes defined on X.java or one of its superclasses.
Now the question is how to locate the row of interest from table X? Since you are interested in only one row, it is most likely that you are interested in identifying that row of interest by its primary key, which is likely some numeric surrogate key.
Lets assume you are interested in retrieval by primary key. Lets also assume that the X_ID column on the X table is its primary key. Lets also assume the id instance attribute on X.java (or from one of its superclasses) is TopLink mapped and is simply a direct to field mapping, so the id instance attribute on X.java would take on the value housed in X.X_ID. Lets further assume you want to find the instance of X where X_ID = 123.
The resultset that is retrieved via TopLink does not have to be a Vector (List) of objects. You can express to TopLink that you are only interested in retrieving one object by use of oracle.toplink.queryframework.ReadObjectQuery or oracle.toplink.sessions.Session.readObject().
If you choose the Session.readObject() approach, here is how you obtain the reference to the instance of X that represents the row where X.X_ID = 123:
obtain reference to Session via SessionManager.getManager().getSession(sessionName);
ExpressionBuilder builder = new ExpressionBuilder();
Expression selectionCriteria = builder.get("id").equal(123);
X foundInstance = (X) session.readObject(X.class,selectionCriteria);
If you choose the ReadObjectQuery approach, here is how you obtain the reference:
ReadObjectQuery query = new ReadObjectQuery();
query.setReferenceClass(X.class);
query.setSelectionCriteria(selectionCriteria); // defined above
X foundInstance = (X) session.executeQuery(query);
Once you have a handle to the X instance of interest, you can then go about rendering information about it to an end user via a JSP or JSF JSP page. Typically the queries that I show above are written as part of the implementation of an operation on a Session EJB, but it can be done without a Session EJB as well.
I suggest you take a look at the TopLink Developer's Guide : http://download-west.oracle.com/docs/cd/B31017_01/web.1013/b28218/toc.htm as well as the TopLink API Reference from Javadoc : http://download-west.oracle.com/docs/cd/B31017_01/web.1013/b28219/index.html. Both of these documents are for TopLink 10.1.3.1, but you probably want to find the documentation for the version of TopLink you are using just in case.
Hope that helps,
Doug -
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. -
Toplink storedProcedure/funtion + PL/SQL Procedure with cursor
Hi,
I am working on Toplink storedProcedure but, I am not getting any output. I go through the Oracle Tutorial but, still I am not getting any alternative.
please, anyone help out....
Thanking You,
regards,
sufianHello Sufian,
You seem to have a few threads trying to get a Stored proc working. In How to work with Toplink + PL/SQL Procedure + Cursor
you mention you get an error when executing, have you gotten past this exception? You may want to turn on TopLink logging to see the statement TopLink is creating and sending to the driver. Please see
http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/sescfg004.htm
If you are not familar with how to turn on logging.
Also, are you able to get results from a stored procedure that returns data instead of a cursor?
Best Regards,
Chris -
Deploying Toplink to Oracle AS 10g 10.1.2
We are deploying our application developed in JDeveloper 10.1.3.3.0 and which includes TopLink, ADF Faces. What setups/libraries are specifically required to deploy to Oracle AS 10g 10.1.2
Thanks in advance
RaamWe are deploying our application developed in JDeveloper 10.1.3.3.0 and which includes TopLink, ADF Faces. What setups/libraries are specifically required to deploy to Oracle AS 10g 10.1.2
Thanks in advance
Raam -
Create toplink ofline db objects fails over jdbc-odbc bridge to MSAccess db
Hi, using JDev 10.1.3.0.4 in an EJB , Toplink, JSF application I cannot create Toplink Objects from tables , I get every time a null pointer exception in the last step when I click on the Finalize button.
I have seen other threads the recomend to rebuild the Data Model Project using the Run Menu, that didnt work, Checking unchecking Tools/Preference/Show Compile Progress , didnt help neither.
If the problem is that toplink is incompatible with the jdb-odbc bridge, then where I can get/download a jdbc ms access cappable driver that toplink will work with?
Thanks,
Omar
Exception below:
java.lang.NullPointerException
at oracle.jdeveloper.offlinedb.handler.AbstractTransferHandler.getTargetSchema(AbstractTransferHandler.java:864)
at oracle.jdeveloper.offlinedb.handler.AbstractTransferHandler.findExistingObject(AbstractTransferHandler.java:826)
at oracle.jdeveloper.offlinedb.handler.ImportHandler.findExistingObject(ImportHandler.java:814)
at oracle.jdeveloper.offlinedb.handler.AbstractTransferHandler.copyObjectsForTransfer(AbstractTransferHandler.java:935)
at oracle.jdeveloper.offlinedb.handler.ImportHandler.copyObjectsForTransfer(ImportHandler.java:974)
at oracle.jdeveloper.offlinedb.handler.AbstractTransferHandler.run(AbstractTransferHandler.java:352)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
at java.lang.Thread.run(Thread.java:595)Look under http://www.oracle.com/technology/products/jdev/htdocs/10.1.3.1/install.html#supported_db to check whether your database is supported (see Offline Database Support column in the table).
Also you can do the following to check whether importing offline tables is causing an issue. See " Importing Tables from a Database Connection" under http://www.oracle.com/technology/obe/obe1013jdev/dbdevelopment/obe_%20dbasedevmt.htm
Hope this helps.
Anuj -
Querying the toplink cache under high-load
We've had some interesting experiences with "querying" the TopLink Cache lately.
It was recently discovered that our "read a single object" method was incorrectly
setting query.checkCacheThenDB() for all ReadObjectQueries. This was brought to light
when we upgraded our production servers from 4 cores to 8. We immediatly started
experiencing very long response times under load.
We traced this down to the following stack: (TopLink version 10.1.3.1.0)
at java.lang.Object.wait(Native Method)
- waiting on <0x00002aab08fd26d8> (a oracle.toplink.internal.helper.ConcurrencyManager)
at java.lang.Object.wait(Object.java:474)
at oracle.toplink.internal.helper.ConcurrencyManager.acquireReadLock(ConcurrencyManager.java:179)
- locked <0x00002aab08fd26d8> (a oracle.toplink.internal.helper.ConcurrencyManager)
at oracle.toplink.internal.helper.ConcurrencyManager.checkReadLock(ConcurrencyManager.java:167)
at oracle.toplink.internal.identitymaps.CacheKey.checkReadLock(CacheKey.java:122)
at oracle.toplink.internal.identitymaps.IdentityMapKeyEnumeration.nextElement(IdentityMapKeyEnumeration.java:31)
at oracle.toplink.internal.identitymaps.IdentityMapManager.getFromIdentityMap(IdentityMapManager.java:530)
at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.checkCacheForObject(ExpressionQueryMechanism.java:412)
at oracle.toplink.queryframework.ReadObjectQuery.checkEarlyReturnImpl(ReadObjectQuery.java:223)
at oracle.toplink.queryframework.ObjectLevelReadQuery.checkEarlyReturn(ObjectLevelReadQuery.java:504)
at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:564)
at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:779)
at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:388)
We moved the query back to the default, query.checkByPrimaryKey() and this issue went away.
The bottleneck seemed to stem from the read lock on the CacheKey from IdenityMapKeyEnumeration
public Object nextElement() {
if (this.nextKey == null) {
throw new NoSuchElementException("IdentityMapKeyEnumeration nextElement");
// CR#... Must check the read lock to avoid
// returning half built objects.
this.nextKey.checkReadLock();
return this.nextKey;
We had many threads that were having contention while searching the cache for a particular query.
From the stack we know that the contention was limited to one class. We've since refactored that code
not to use a query in that code path.
Question:
Armed with this better knowledge of how TopLink queries the cache, we do have a few objects that we
frequently read by something other than the primary key. A natural key, but not the oid.
We have some other caching mechanisms in place (JBoss TreeCache) to help eliminate queries to the DB
for these objects. But the TreeCache also tries to acquire a read lock when accessing the cache.
Presumably a read lock over the network to the cluster.
Is there anything that can be done about the read lock on CacheKey when querying the cache in a high load
situation?CheckCacheThenDatabase will check the entire cache for a match using a linear search. This can be efficient if the cache is very large. Typically it is more efficient to access the database if your cache is large and the field you are querying in the database is indexed in the table.
The cache concurrency was greatly improved in TopLink 11g/EclipseLink, so you may wish to try it out.
Supporting indexes in the TopLink/EclipseLink cache is something desirable (feel free to log the enhancement request on EclipseLink). You can simulate this to some degree using a named query and a query cache.
-- James : http://www.eclipselink.org -
NullPointerException during export or validate of toplink map file
Hi,
I'm working on an Oracle/Toplink 10.1.3 project (similar to say SR Demo). I'm trying to write ant scripts
to build and deploy everything.
All is working except for one step. When you build the model in JDeveloper, it creates a data map XML file. E.g. in the
SR DEmo it produces SRMap.xml from SRMap.mwp.
There is a good document explaining the steps here...
http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/mw008.htm
When I implemented these steps in the build.xml file, I get a NullPointerException during the validate or export.
I tried implementing the steps in SR DEmo's build.xml file and seem to get the same problem. Here's what I'm doing...
I created a new file, toplink-ant-lib.xml
<?xml version="1.0"?>
<antlib>
<taskdef name="mappings.export" classname="oracle.toplink.workbench.ant.taskdefs.ExportDeploymentXMLTask"/>
<taskdef name="mappings.validate" classname="oracle.toplink.workbench.ant.taskdefs.MappingsValidateTask"/>
<taskdef name="session.validate" classname="oracle.toplink.workbench.ant.taskdefs.SessionValidateTask"/>
<typedef name="ignoreerror" classname="oracle.toplink.workbench.ant.typedefs.IgnoreError"/>
<typedef name="ignoreerrorset" classname="oracle.toplink.workbench.ant.typedefs.IgnoreErrorSet"/>
<typedef name="loginspec" classname="oracle.toplink.workbench.ant.typedefs.LoginSpec"/>
</antlib>
I then added the following targets to build.xml in the SR Demo...
<target name="init">
<property file="build.properties"/>
<property name = "toplink.mwp.dir" value = "${srdemo.home}/DataModel/toplink/SRMap"/>
<property name = "toplink.sessions.dir" value = "${srdemo.home}/DataModel/src/META-INF"/>
<path id = "database.classpath">
<pathelement path = "${toplink.home}/jlib/dms.jar"/>
<pathelement path = "${toplink.home}/jlib/OracleThinJDBC.jar"/>
</path>
<path id = "toplink.classpath">
<pathelement path = "${toplink.home}/jlib/toplink.jar"/>
<pathelement path = "${j2ee.lib}/ejb.jar"/>
<pathelement path = "${jdeveloper.home}/lib/xmlparserv2.jar"/>
<pathelement path = "${toplink.home}/jlib/antlr.jar"/>
</path>
<path id = "mw.classpath">
<pathelement path = "${toplink.home}/jlib/tlmwcore.jar"/>
<pathelement path = "${toplink.home}/jlib/toplinkmw.jar"/>
</path>
<path id = "mwplatforms.classpath">
<pathelement path = "${toplink.home}/config"/>
</path>
<typedef file = "toplink-ant-lib.xml"
classpathref = "mw.classpath"
uri = "toplinklib" />
</target>
<!-- ===================================================== -->
<!-- Define task parameter -->
<!-- ===================================================== -->
<target name="parameter.definition" depends="init">
<toplink:ignoreerrorset id = "ignoreErrors">
<toplink:ignoreerror code = "0233" />
</toplink:ignoreerrorset>
<toplink:loginspec id = "loginSpec"
url = "jdbc:cloudscape:stagedb;create=true"
driverclass = "COM.cloudscape.core.JDBCDriver"
user = "scott"
password="tiger" />
</target>
<!-- ==================================================== -->
<!-- Validate the MW Project -->
<!-- ===================================================== -->
<target name="validate.project" depends="parameter.definition">
<toplink:mappings.validate
projectfile = "${toplink.mwp.dir}/SRMap.mwp"
reportfile = "${toplink.mwp.dir}/problem-report.html"
reportformat = "html"
property = "mw-valid"
classpathref = "mwplatforms.classpath" >
<toplink:classpath refid = "mw.classpath" />
<toplink:classpath refid = "toplink.classpath" />
<toplink:ignoreerrorset refid = "ignoreErrors"/>
</toplink:mappings.validate>
</target>
I've left out the actual export target as the validate seems to throw the same exception. Here's what I get when I switch on verbose
[toplink:mappings.validate] An error occured while validating project: java.lang
.NullPointerException
BUILD FAILED
C:\apps\JDeveloper\jdev\samples\SRDemoSample\BuildAndDeploy\build.xml:147: An er
ror occured while validating project: java.lang.NullPointerException
at oracle.toplink.workbench.ant.taskdefs.ProjectTask.execute(ProjectTask
.java:69)
at oracle.toplink.workbench.ant.taskdefs.MappingsValidateTask.execute(Ma
ppingsValidateTask.java:51)
at oracle.toplink.workbench.ant.taskdefs.MappingsValidateTask.execute(Ma
ppingsValidateTask.java:36)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Caused by: An error occured while validating project: java.lang.NullPointerExcep
tion
at oracle.toplink.workbench.ant.ProjectValidator.execute(ProjectValidato
r.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at oracle.toplink.workbench.ant.taskdefs.ProjectTask$TaskRunner.execute(
ProjectTask.java:214)
at oracle.toplink.workbench.ant.taskdefs.ProjectTask$TaskRunner.access$1
00(ProjectTask.java:154)
at oracle.toplink.workbench.ant.taskdefs.ProjectTask.execute(ProjectTask
.java:65)
... 12 more
Caused by: java.lang.NullPointerException
at oracle.toplink.workbench.mappingsmodel.mapping.relational.MWCollectio
nMapping.legacy50PostPostProjectBuild(MWCollectionMapping.java:517)
at oracle.toplink.workbench.mappingsmodel.MWModel.legacy50PostPostProjec
tBuild(MWModel.java:503)
at oracle.toplink.workbench.mappingsmodel.descriptor.MWMappingDescriptor
.legacy50PostPostProjectBuild(MWMappingDescriptor.java:1081)
at oracle.toplink.workbench.mappingsmodel.descriptor.relational.MWTableD
escriptor.legacy50PostPostProjectBuild(MWTableDescriptor.java:1376)
at oracle.toplink.workbench.mappingsmodel.MWModel.legacy50PostPostProjec
tBuild(MWModel.java:503)
at oracle.toplink.workbench.mappingsmodel.project.MWProject.legacy50Post
ProjectBuild(MWProject.java:1337)
at oracle.toplink.workbench.mappingsio.ProjectReader.readLegacyProject(P
rojectReader.java:246)
at oracle.toplink.workbench.mappingsio.ProjectReader.read(ProjectReader.
java:102)
at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOMa
nager.java:59)
at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOMa
nager.java:55)
at oracle.toplink.workbench.ant.ProjectValidator.execute(ProjectValidato
r.java:40)
... 19 more
--- Nested Exception ---
An error occured while validating project: java.lang.NullPointerException
at oracle.toplink.workbench.ant.ProjectValidator.execute(ProjectValidato
r.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at oracle.toplink.workbench.ant.taskdefs.ProjectTask$TaskRunner.execute(
ProjectTask.java:214)
at oracle.toplink.workbench.ant.taskdefs.ProjectTask$TaskRunner.access$1
00(ProjectTask.java:154)
at oracle.toplink.workbench.ant.taskdefs.ProjectTask.execute(ProjectTask
.java:65)
at oracle.toplink.workbench.ant.taskdefs.MappingsValidateTask.execute(Ma
ppingsValidateTask.java:51)
at oracle.toplink.workbench.ant.taskdefs.MappingsValidateTask.execute(Ma
ppingsValidateTask.java:36)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Caused by: java.lang.NullPointerException
at oracle.toplink.workbench.mappingsmodel.mapping.relational.MWCollectio
nMapping.legacy50PostPostProjectBuild(MWCollectionMapping.java:517)
at oracle.toplink.workbench.mappingsmodel.MWModel.legacy50PostPostProjec
tBuild(MWModel.java:503)
at oracle.toplink.workbench.mappingsmodel.descriptor.MWMappingDescriptor
.legacy50PostPostProjectBuild(MWMappingDescriptor.java:1081)
at oracle.toplink.workbench.mappingsmodel.descriptor.relational.MWTableD
escriptor.legacy50PostPostProjectBuild(MWTableDescriptor.java:1376)
at oracle.toplink.workbench.mappingsmodel.MWModel.legacy50PostPostProjec
tBuild(MWModel.java:503)
at oracle.toplink.workbench.mappingsmodel.project.MWProject.legacy50Post
ProjectBuild(MWProject.java:1337)
at oracle.toplink.workbench.mappingsio.ProjectReader.readLegacyProject(P
rojectReader.java:246)
at oracle.toplink.workbench.mappingsio.ProjectReader.read(ProjectReader.
java:102)
at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOMa
nager.java:59)
at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOMa
nager.java:55)
at oracle.toplink.workbench.ant.ProjectValidator.execute(ProjectValidato
r.java:40)
... 19 more
--- Nested Exception ---
java.lang.NullPointerException
at oracle.toplink.workbench.mappingsmodel.mapping.relational.MWCollectio
nMapping.legacy50PostPostProjectBuild(MWCollectionMapping.java:517)
at oracle.toplink.workbench.mappingsmodel.MWModel.legacy50PostPostProjec
tBuild(MWModel.java:503)
at oracle.toplink.workbench.mappingsmodel.descriptor.MWMappingDescriptor
.legacy50PostPostProjectBuild(MWMappingDescriptor.java:1081)
at oracle.toplink.workbench.mappingsmodel.descriptor.relational.MWTableD
escriptor.legacy50PostPostProjectBuild(MWTableDescriptor.java:1376)
at oracle.toplink.workbench.mappingsmodel.MWModel.legacy50PostPostProjec
tBuild(MWModel.java:503)
at oracle.toplink.workbench.mappingsmodel.project.MWProject.legacy50Post
ProjectBuild(MWProject.java:1337)
at oracle.toplink.workbench.mappingsio.ProjectReader.readLegacyProject(P
rojectReader.java:246)
at oracle.toplink.workbench.mappingsio.ProjectReader.read(ProjectReader.
java:102)
at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOMa
nager.java:59)
at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOMa
nager.java:55)
at oracle.toplink.workbench.ant.ProjectValidator.execute(ProjectValidato
r.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at oracle.toplink.workbench.ant.taskdefs.ProjectTask$TaskRunner.execute(
ProjectTask.java:214)
at oracle.toplink.workbench.ant.taskdefs.ProjectTask$TaskRunner.access$1
00(ProjectTask.java:154)
at oracle.toplink.workbench.ant.taskdefs.ProjectTask.execute(ProjectTask
.java:65)
at oracle.toplink.workbench.ant.taskdefs.MappingsValidateTask.execute(Ma
ppingsValidateTask.java:51)
at oracle.toplink.workbench.ant.taskdefs.MappingsValidateTask.execute(Ma
ppingsValidateTask.java:36)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Total time: 6 seconds
C:\apps\JDeveloper\jdev\samples\SRDemoSample\BuildAndDeploy>
The problem seems similar to the one described in the toplink forums here...
NullPointerException while trying to export project in workbench
I tried opening SRMap.mwp in Toplink Workbench, and I get an exception on load...
oracle.toplink.workbench.framework.OpenException: java.lang.NullPointerException
at oracle.toplink.workbench.mappingsplugin.MappingsPlugin.open(MappingsPlugin.java:290)
at oracle.toplink.workbench.framework.internal.FrameworkApplication.open(FrameworkApplication.java:687)
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: java.lang.NullPointerException
at oracle.toplink.workbench.mappingsmodel.mapping.relational.MWCollectionMapping.legacy50PostPostProjectBuild(MWCollectionMapping.java:517)
at oracle.toplink.workbench.mappingsmodel.MWModel.legacy50PostPostProjectBuild(MWModel.java:503)
at oracle.toplink.workbench.mappingsmodel.descriptor.MWMappingDescriptor.legacy50PostPostProjectBuild(MWMappingDescriptor.java:1081)
at oracle.toplink.workbench.mappingsmodel.descriptor.relational.MWTableDescriptor.legacy50PostPostProjectBuild(MWTableDescriptor.java:1376)
at oracle.toplink.workbench.mappingsmodel.MWModel.legacy50PostPostProjectBuild(MWModel.java:503)
at oracle.toplink.workbench.mappingsmodel.project.MWProject.legacy50PostProjectBuild(MWProject.java:1337)
at oracle.toplink.workbench.mappingsio.ProjectReader.readLegacyProject(ProjectReader.java:246)
at oracle.toplink.workbench.mappingsio.ProjectReader.read(ProjectReader.java:102)
at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOManager.java:59)
at oracle.toplink.workbench.mappingsplugin.MappingsPlugin.open(MappingsPlugin.java:286)
... 5 more
That's using Toplink Workbench 10g Release 3 (10.1.3.0.0)
I'm using 10.1.3 JDeveloper with the latest (SU3) patch.
Any ideas would be apprecated!!!
Kind regards,
Ciaran.Hi Karen,
Thanks for the response.
So are you saying we cannot build/deploy our project outside of the JDeveloper IDE?
What we were trying to do is to automate the build and deployment using ant scripts. Then we could run say nightly checkout/build/deploy script to a test machine as part of a continious integration process.
We can build all the code and even remote deploy it fine using ant, however we cannot build this data map XML file outside of the JDeveloper environment. I guess a workaround would be to check-in the generated XML file into our source code control. This sounds risky to me and also, our SCC system sets non checked-out files to be read-only and JDeveloper gives an error if it cannot write to that file.
Any ideas?
Cheers,
Ciaran. -
Toplink - java.lang.NullPointerException
I am running 11g DB Server
JDeveloper 10.1.3.3
When I following this article:
http://www.oracle.com/technology/obe/obe1013jdev/10131/10131_adftoplink/master-detail-edit_page_adf_toplink.htm
Come to step 9 of Building the Data Model with TopLink. I keep on hitting the following error:
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)
Any help?
Ming ManHi,
I am looking into this error, but so far have not been able to reproduce the stack trace that you're seeing. I've run through the steps in the linked article several times, but have been able to generate POJOs without error each time. Can you think of any additional details that might help to reproduce the error condition? Also, have you made any changes to or noticed any errors related to the log window or JNDI?
Thanks,
-Billy
Maybe you are looking for
-
My iphone storage is full due to my large photo library. As I want to go on taking more photos, if I back up my phone to icloud, can I then delete all my photos from my iphone to make room for new photos? Or will the next time I back up lose all thos
-
How to create a view object and attach with extended AM
Hi, I tried to create new vo and attach this vo with the extended AM. But it is throwing error like 'PC.NAME : invalid identifier' (Actually this PC.NAME is exiting one). Now i want to know how to create a view object similar like seeded one but with
-
Making text in a PDF darker???
Is the only way to make text in a PDF darker to use Document-->OCR Text Recognition-->Recognize Text Using OCR and then use the ClearScan PDF Output Style?
-
I have a rather large Numbers spreadsheet. I have used a formula to create a new column of information. I now want to replace the formula with the actual results calculated by that formula for each cell in that column, so that I can delete some of
-
Problems with images with a drop shadow in muse 3.0
When I updated to Muse 3.0, all of my images with drop shadows moved all over the place on my website. HELP!?!