![]() |
![]() |
|
| Index | Recent Threads | Unanswered Threads | Who's Online | User List | Help |
|
|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 5
|
|
| Author |
|
|
Newbie ![]() India Joined: Dec 28, 2006 Post Count: 3 Status: Offline |
Hi, Iam using jpox 1.1 in java as PoidManager poidManager = new PoidManager(); it arises the error as =============== java.lang.NoClassDefFoundError: javax/jdo/JDOException at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at com.jiva.global.Test.TestEx.main(TestEx.java:23) Exception in thread "main" |
||
|
|
Newbie ![]() India Joined: Dec 28, 2006 Post Count: 3 Status: Offline |
If using JPOX 1.1.0 alpha-4 then it gives error as java.lang.NoClassDefFoundError: org/apache/log4j/Category at com.jiva.global.Test.TestEx.main(TestEx.java:23) Exception in thread "main" so, please give suggestion to move forward. Thanks & regards Schooltiger |
||
|
|
Expert Belgium Joined: Mar 12, 2004 Post Count: 3114 Status: Offline |
some classloading issue. make sure you have all jars in classpath, and you dont have multiple versions of the same library ---------------------------------------- Erik Bengtson ![]() |
||
|
|
Newbie ![]() India Joined: Dec 28, 2006 Post Count: 3 Status: Offline |
some classloading issue. make sure you have all jars in classpath, and you dont have multiple versions of the same library Ok that is resolved but it arises another ie., My Code ----------- Properties props=new Properties(); props.put("COLUMN_NAME", "UserInfoID"); props.put("TABLE_NAME", "sequenceinfo"); PoidManager poidManager = new PoidManager(); poidManager.setPoidGeneratorName("org.jpox.poid.MaxPoidGenerator"); poidManager.setProperties(props); poidManager.setJDBCConnectionProvider(new ConProvider()); Poid poid=poidManager.getPoid();/*Error Occurs at this line*/ Long seq=(Long)poid.getOid(); System.out.println("Next :"+seq); Error is: ---------- org.jpox.poid.PoidException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'null' at line 1 at org.jpox.poid.MaxPoidGenerator.reserveBlock(MaxPoidGenerator.java:93) at org.jpox.poid.PoidManager.obtainPoidBlock(PoidManager.java:87) at org.jpox.poid.PoidManager.getPoidBlock(PoidManager.java:186) at org.jpox.poid.PoidManager.getPoid(PoidManager.java:56) at com.jiva.global.Test.TestEx.main(TestEx.java:27) Exception in thread "main" |
||
|
|
Expert UK Joined: Mar 13, 2004 Post Count: 5235 Status: Offline |
Ok that is resolved but it arises another ie., 1. You insist on using 1.1.0-alpha-4 (presumably since thats the only one you mention) .... which is now 2 years out of date 2. You insist on using internal JPOX classes when there is a JDO2 "Sequence" API which is what you should use. 3. You are supposed to use the log at DEBUG level when you have issues. ---------------------------------------- -Andy ![]() ![]() |
||
|
|
|
|
|
Current timezone is GMT Mar 12, 2010 6:28:46 PM |