Iam Trying to acquire a Unit of Work but ... Exceptions !!! :(

This is my code :
package RENSPackage;
import java.io.File;
import oracle.toplink.threetier.Server;
import oracle.toplink.tools.sessionconfiguration.XMLLoader;
import oracle.toplink.tools.sessionmanagement.SessionManager;
public class Loader
protected Server server;
protected UnitOfWork uow;
protected ClientSession client;
public Loader()
XMLLoader xmlLoader = new XMLLoader("META-INF/sessions.xml");
ClassLoader classLoader = getClass().getClassLoader();
SessionManager manager = SessionManager.getManager();
server = (Server)manager.getSession(xmlLoader, "Rens", classLoader,true,true);
client = server.acquireClientSession();
uow = client.acquireUnitOfWork();
public static void main(String args[])
new Loader();
errors:
Exception in thread main
Local Exception Stack:
Exception Description: Several [1] SessionLoaderExceptions were thrown:
Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.SessionLoaderException
Exception Description: An exception was thrown while loading the <project-xml> file [C:/Program Files/JDeveloper 10.1.2/jdev/mywork/alghurair/toplink/classes/META-INF/toplink/toplink-deployment-descriptor.xml].
Internal Exception: Exception [TOPLINK-106] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.DescriptorException
Exception Description: The method [setPlatformClassName] on the object is throwing an exception.
Argument: [oracle.toplink.oraclespecific.Oracle9Platform]
Internal Exception: java.lang.reflect.InvocationTargetException
Target Invocation Exception: java.lang.NoClassDefFoundError: oracle.sql.TIMESTAMP
Mapping: oracle.toplink.mappings.DirectToFieldMapping[platform-->platform]
Descriptor: XMLDescriptor(oracle.toplink.sessions.DatabaseLogin --> [DatabaseTable(database-login)])
     at oracle.toplink.exceptions.SessionLoaderException.finalException(SessionLoaderException.java:89)
     at oracle.toplink.tools.sessionconfiguration.XMLLoader.load(XMLLoader.java:156)
     at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:219)
     at RENSPackage.Loader.<init>(Loader.java:19)
     at RENSPackage.Loader.main(Loader.java:24)
SessionLoaderExceptions:
Local Exception Stack:
Exception [TOPLINK-9005] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.SessionLoaderException
Exception Description: An exception was thrown while loading the <project-xml> file [C:/Program Files/JDeveloper 10.1.2/jdev/mywork/alghurair/toplink/classes/META-INF/toplink/toplink-deployment-descriptor.xml].
Internal Exception: Exception [TOPLINK-106] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.DescriptorException
Exception Description: The method [setPlatformClassName] on the object is throwing an exception.
Argument: [oracle.toplink.oraclespecific.Oracle9Platform]
Internal Exception: java.lang.reflect.InvocationTargetException
Target Invocation Exception: java.lang.NoClassDefFoundError: oracle.sql.TIMESTAMP
Mapping: oracle.toplink.mappings.DirectToFieldMapping[platform-->platform]
Descriptor: XMLDescriptor(oracle.toplink.sessions.DatabaseLogin --> [DatabaseTable(database-login)])
     at oracle.toplink.exceptions.SessionLoaderException.failedToLoadProjectXml(SessionLoaderException.java:74)
     at oracle.toplink.tools.sessionconfiguration.XMLLoader.process_project_xml_Tag(XMLLoader.java:948)
     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:324)
     at oracle.toplink.tools.sessionconfiguration.XMLLoader.process_session_Tag(XMLLoader.java:415)
     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:324)
     at oracle.toplink.tools.sessionconfiguration.XMLLoader.processRootTag(XMLLoader.java:223)
     at oracle.toplink.tools.sessionconfiguration.XMLLoader.load(XMLLoader.java:153)
     at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:219)
     at RENSPackage.Loader.<init>(Loader.java:19)
     at RENSPackage.Loader.main(Loader.java:24)
Caused by: Exception [TOPLINK-106] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.DescriptorException
Exception Description: The method [setPlatformClassName] on the object is throwing an exception.
Argument: [oracle.toplink.oraclespecific.Oracle9Platform]
Internal Exception: java.lang.reflect.InvocationTargetException
Target Invocation Exception: java.lang.NoClassDefFoundError: oracle.sql.TIMESTAMP
Mapping: oracle.toplink.mappings.DirectToFieldMapping[platform-->platform]
Descriptor: XMLDescriptor(oracle.toplink.sessions.DatabaseLogin --> [DatabaseTable(database-login)])
     at oracle.toplink.exceptions.DescriptorException.targetInvocationWhileSettingValueThruMethodAccessor(DescriptorException.java:1433)
     at oracle.toplink.internal.descriptors.MethodAttributeAccessor.setAttributeValueInObject(MethodAttributeAccessor.java:152)
     at oracle.toplink.mappings.DatabaseMapping.setAttributeValueInObject(DatabaseMapping.java:950)
     at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:862)
     at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:164)
     at oracle.toplink.sdk.SDKAggregateObjectMapping.valueFromRow(SDKAggregateObjectMapping.java:124)
     at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:860)
     at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:164)
     at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:322)
     at oracle.toplink.queryframework.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:242)
     at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:368)
     at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:493)
     at oracle.toplink.queryframework.ReadQuery.execute(ReadQuery.java:125)
     at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1958)
     at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086)
     at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1038)
     at oracle.toplink.tools.workbench.XMLProjectReader.readWithClassLoader(XMLProjectReader.java:61)
     at oracle.toplink.tools.workbench.XMLProjectReader.read(XMLProjectReader.java:39)
     at oracle.toplink.tools.sessionconfiguration.XMLLoader.process_project_xml_Tag(XMLLoader.java:937)
     ... 14 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:324)
     at oracle.toplink.internal.descriptors.MethodAttributeAccessor.setAttributeValueInObject(MethodAttributeAccessor.java:125)
     ... 31 more
Caused by: java.lang.NoClassDefFoundError: oracle.sql.TIMESTAMP
     at oracle.toplink.oraclespecific.Oracle9Platform.class$(Oracle9Platform.java:36)
     at oracle.toplink.oraclespecific.Oracle9Platform.<clinit>(Oracle9Platform.java:40)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:141)
     at oracle.toplink.sessions.DatabaseLogin.setPlatformClassName(DatabaseLogin.java:1623)
     ... 36 more
Process exited with exit code 1.

The Oracle 9 Platform requires the Oracle JDBC driver to be on the classpath. If you are trying to use the Oracle JDBC driver, then likely your driver is not on the classpath.
If you are using another driver to access the oracle database then you will need to use OraclePlatform. OraclePlatform does not make any reference to Oracle Driver specific classes.
Peter

Similar Messages

  • HT4356 My iPad does not find the printer. I have tried the HP app and it works, but in any other app the printer is not seen. How do I get this printer visible to the iPad. All my other network computers find and print with out a problem.

    My iPad does not find the printer. I have tried the HP app and it works, but in any other app the printer is not seen. How do I get this printer visible to the iPad. All my other network computers find and print with out a problem.

    hi
    could you tell us what the other app is please

  • Since the latest apple update, voice navigation has gone away.  Tried the Airplane mode fix, which worked, but now my bluetooth won't work in my vehicle.  What's up?

    Since the latest apple update, voice navigation has gone away.  Tried the Airplane mode fix, which worked, but now my bluetooth won't work in my vehicle.  What's up?

    Well Bababooey if you're comparing yourself to a Apple Genius Bar then you should already know my answer, your snarky remark get a snarky reply.  Why would I go to a salesperson to fix my computer problem when I can go directly go to the source itself.  I used to sell Apple computers over 8 years ago and was apple certified before the Genius bar existed. If I am to go about fixing an issue I can't fix on my own I will go to the source itself meaning Apple's programmers and developers - being UI UX Developer myself I know they should have QA'd all platforms and troubleshooted any arising issues. 
    This was also the first time in the 20 years I've been using a Mac that I even attempted to go on this forum which i thought would put me in connection with a certified Apple representative.  This turned out to be a complete waste of time just being a public forum with no Apple employee involved.  I was hoping to find a quick fix but in turn I was only frustrated with stupid responses such as yours that were in no way an answer to my original question. 
    BTW I fixed the issue on my own and without your help or Apples help. I'm glad if all forums point here regarding this issue because I now have the answer. The answer I was looking for from someone earlier was as simple as this {Download Maverick and reinstall the platform - it will take an hour to do but afterward 10.9.2 was installed and my computer is now able to shutdown and restart without having to do a hard boot.}  No more software update bar at top and no problems with my drive which I told both you and Grant - I know my computer better than you and I've probably been using them longer than you. 
    So again Babowa you were so wrong...... and I am right.
    Again anyone having the same problem, I suggest reinstalling Maverick and you'll be suprised 10.9.2 will work fine.

  • Unable to work with songs.  Says computer is not authorized, it is.  Have tried deauthorizing and then reauthorizing, that works, but still get the msg that computer is not authorized.  What to do?  Thanks!

    I have an older pc with itune songs on it.  Trying to burn to disk.  Tells me that the computer is not authorized to do this, it is.  Have tried de-authorizing it and re-authorizing it and I'm able to do that.  Then if I try to authorize it, it says it already is, but still won't allow me to work with my songs, still says not authorized.  The songs I'm trying to burn were purchased from the itunes store, but don't show up on my purchased songs on my new iMac, not sure how to find them.  Any ideas?  Thanks!

    Thanks for trying to help!
    Tried it without much success though.
    Looked good at first. I was able to unauthorize it and after rebooting all I went in under "store" and authorized it again, witch it did without a hassle.
    But, when I had restarted everything again and tried to sync with me iPhone I still got "Part of the programs in the iTunes library, for instance 'yadda-yadda-app' was not installed on the iPhone unit 'The name of my iPhone' because you are not authorized for them on this computer. You can authorize this computer for purchases by choosing store - Authorize this computer"
    (Translation to english might include minor errors...
    So... Any other ideas on how to sync my iPhone with my iTunes?
    (Oh, and my iPhone has never been jailbroken or anything like that.)

  • The sound on my iPhone isn't working I tried putting headphones in and it worked, but as soon as I take th out and the sound countinues playing the sound stops help please

    The sound on my iPhone isn't working I don't understand why it was working fine an hour ago I haven't dropped it or anything simply just out it on silent... The music I was trying to listen to didn't want to make a sound when I turned it in , I put a pair of headphones in and and it worked as soon as I took it off it completely stopped the music was playing still I could see it in the top column that  the play button was on ... Then I made a call an the same thing happened I turned it on speaker and then I could hear them... The sound is completely off even tho i looked at the seettings and put the volume on high noting is sounding on its own not even when i tap the buttons... I took it off the silent before I tried this stuff I don't understand please help !!!

    make sure that your head phones are not attached to the phone then use the volume buttons on the side, if when using them you see a pic of headphones on the screen, then you have some lint in the headphone jack, use some compressed air and blow it out.
    If you dont see that then try to reset the phone, hold down the home and power buttons for 20 seconds or untill you see the silver apple.
    If you are still having a problem restore the phone and set up as new to see if that clears it up.
    http://support.apple.com/kb/ht1414

  • I have installed Creative Cloud but it was not working so I tried to uninstall it - thought this worked but does not seem to?

    Creative Cloud Download & Install

    You haven't provided any information regarding in what way the software was not working.  If you can explain what you encountered when you tried to use it then it might be possible to point you to some helpful information.  If you uninstalled then you should try using the Cleaner tool before reinstalling.
    Adobe Creative Suite Cleaner Tool
    helps resolve installation problems for CS3 thru CS6 and for Creative Cloud
    http://www.adobe.com/support/contact/cscleanertool.html

  • New ipad - trying to get yahoo mail to work but it keeps saying yahoo server unavailable.....any ideas?

    I have set up my yahoo email account on my new ipad but can't get it to work - the error message says yahoo server unavailable which I find hard to believe! Can anyone help me please?

    I checked the settings as per your link above and I have them set up correctly on my ipad (I have yahoo plus). That is to say I have added the plus.stmp.mail.yahoo.com as an outgoing server with the server port 465 but it still doesn't work.
    Annoyingly, I also took the advice of some earlier posts and changed my yahoo password and now I can't get email on my iphone 4 either - it was working perfectly before. I put in the new password and now both the ipad and iphone give me the "server unavailable" message.  Grrrrrr....

  • Hi iam trying to sincro i tunes with ipad but says a mess that there is a new version for ipad is that ok if i download the new version???

    hi im tryingo to sincro itunes with ipad but says a mess that there is a new update for ipad 434 should i download new update??? thks

    It is entirely up to the user whether they download and install the latest version of iOS for their device.
    Personally, I have never found a reason to not run the latest version of iOS on my device.
    Whether that latest version is installed or not has no bearing on the ability to sync the device to iTunes.

  • Insertion using objects and update using queries in a single unit of work

    HI All,
    I have a set of objects that i want to insert and then perform some update queries ( direct queries ) on the inserted data in the same transaction. but when i register the objects and execute the update SQL's on the same data in a same unit of work, the update statements are executed first and then the inserts are happening, I've also tried with child unit of work and parent unit of work but the result is the same.
    Can any one suggest a way to do object insertion and sql updates in a single transaction, Thanks in advance
    Regards,
    Sai Krishna

    The UnitOfWork is an abstraction for the physical database query. By default nothing is actually written into the database until the UnitOfWork commits. This means making updates to new objects involves modifying them in-memory and then the updated values will be included in the INSERT during commit.
    If you are having difficulty finding the newly created objects you can enable the query conforming capabilities to have modified and new objects included in query comparisons without requiring them to first be written to the database.
    Doug

  • Wake on Lan (works, but not always)

    Iam trying to get Wak on Lan working on my iMac. It works, but not always. When I put my mac to sleep en send the magic package, my mac turns back on. But when my mac turns to sleep and I wait a few hours (the next morning), my Mac doesn't respond to the same magic packag. When I wake up the Mac by hand, and put it back to sleep again, the magic package works again en turns the mac on.
    It almost looks like the mac goes into a deeper sleep mode after a few hours. Does anyone knows what could ben the reazon.

    mmm, It seems like my mac doesn't always turns to sleep mode. Most of the time it only turns off the screen (solid light). My energy settings are 10 minutes for the screen and 15 minutes for the mac. But after turning of the screen it never turns to sleepmode. Ecxept when I put it to sleep manualy.
    Strange thing is: when the screen is turned of, shouldn't I be able to get tot my files... (I can't actualy).

  • I am trying to setup my new time capsule but it is not working. after entering the airport utility and locating the TC, after I tell the program to continue, the unit just disappear and the setup menu says there is an error. Any idea of what is happening?

    I am trying to setup my new time capsule but it is not working. after entering the airport utility and locating the TC, after I tell the program to continue, the unit just disappear from the menu and the setup menu says there is an error. I tried using the wireless connection, and also the cable, but none worked. Any idea of what could be happening?

    What are you setting it up as.. join wireless network .. the very worst setup, it will disappear.. reboot the whole network in order modem. router TC.. clients and it will likely reappear.
    Tell us what network setup you are using..
    If you setup with cable to a computer completely isolated from the network with TC also isolated.. finish the setup of everything you want. .before update.. then plug it into the network. .then restart everything in correct order.. it will work most of the time.

  • TS2756 iam using iphone 4S with win 7 PC and i cannot connect to the internet through my phone but i tried with my other 4S and it works but what should i do for the first iphone 4S???

    iam using iphone 4S with win 7 PC and i cannot connect to the internet through my phone but i tried with my other 4S and it works but what should i do for the first iphone 4S???
    as i said i have two iphone 4S,,,,,
    1st one --- has os 5.1
    2nd one has os 6.0
    i tried 2nd one with carrier reliance gsm nd it works with that personal hotspot setting using USB...
    but i want to connect the first 4S with carrier TATA DOCOMO GSM but its not working with the same USB feature????
    plz reply asap...!!!
    thnxxx in advance!!!

    If not this:
    iOS: Wi-Fi or Bluetooth settings grayed out or dim
    One user reported that placing the iPod in the freezer fixed the problem.
    Also heating sometimes works. See:
    Why can't I select my wifi settings?
    A trick that works frequently with iPhones:
    Settings > AirPlane Mode ON, Do Not Disturb ON
    Power down and wait 5-10 minutes
    Power up
    Settings > AirPlane Mode OFF, Do Not Disturb OFF
    If not successful, an appointment at the Genius Bar of an Apple store is usually in order.
    Apple Retail Store - Genius Bar
    Then:
    Does the iOS device connect to other networks? See other networks? If yes that tends to indicate a problem with your network.
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect before?
    Try the following to rule out a software problem:                
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network      
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem and it does not connect to any networks make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • Airplay icon on ipad is gone, trying to play spotify on my ipad and use airplay  to the Bose unit, it worked yesterday, but today the airplay icon is gone , how do I get it back

    airplay icon on ipad is gone, trying to play spotify on my ipad and use airplay  to the Bose unit, it worked yesterday, but today the airplay icon is gone , how do I get it back

    I just had the same problem. Took the first unit back and the problem is still occuring on the second one. I solved it by setting up again with the USB, but it keeps dropping out every few days.

  • Jrew.exe has stopped working when iam trying to install oracle on vista

    hi,
    iam gettin an error stating that jrew.exe has stopped working when iam trying to install oracle 9i on windows vista cam anyone help me in resolving it

    Duplicate post. Please stick to Re: jrew.exe has stopped working when iam tryin to install oracle9i on vista

  • Regarding after updating my iphone4 with itunes in laptop after completing,when iam trying to use apps on my iphone4 they are not working

    Hi everybody,
    From last week when iam syncing my iphone with my laptop and updating songs or apps iam facing some problems.
    1) While iam trying to update my iphone with itunes for updating songs.First in library in itunes i will remove old songs and will update new songs,then after syncing with itunes my iphone4 it must show in music only new songs not old songs.but for me both mix it showing for me old and new songs.I tried in manual option also then also it showing same mix songs.please tell me how to over come this problem.I tried my removing update backup also then also it is not showing any advantage in it.
    2) Another problem is while iam updating my iphone4 with itunes it automatically sync the apps also but after completing the update when iam trying to use apps in my iphone they are not working.
    Please help me how to solve from these problems.

    No NAS other than an Apple one includes native support for AFP. They all use an open source package called Netatalk that is junk. Many years ago Apple deprecated the old security modules that Netatalk uses.
    The easiest solution is to hack up Lion so that it will connect with the old security protocol. Do a search for "lion dhx2" or something like that. Another option is to update your NAS to a version of Netatalk that includes support for DHX2. That is easier said than done. Netatlk isn't as "open" as other open source packages.

Maybe you are looking for

  • How do I import video from my new Canon FX300?

    How do I import video from my Canon FX300 into FCP?

  • OPC SERVER

    Hi. Because when I do an OPC server and I want to link the variables I get a message"Program stopped working" and closes all I hope your help and thank you very much.

  • Iphone wont sync

    So I had my iPhone 4 stolen and I had it replaced with an iPhone4s. I synced it with my icloud and everything came back perfectly. When I plugged it into itunes though, it at first said 'Disk cannot be found'. Now it is giving me no option to sync my

  • Oracle Net Configuration Assistant failed - 10G Client Install

    Trying to install the 10g client on a Windows 2003 Itanium based server, the following command is run by the configuration assistants and fails D:\oracle\product\10.2.0\client_1\jdk\jre\bin/java.exe -Dsun.java2d.noddraw=true -Duser.dir=D:\oracle\prod

  • How to build formula?

    Hi, Maybe someone of you can help me in such issue. I have data in that form: City, salesman, revenue. In Webi I want to create report wich shows revenue per number of salesmen in city. F.e. In City_1 there are 4 salesmen and sum of their revenue is