Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need help to resolve an error in project

 
Rajeish Mittal
Ranch Hand
Posts: 36
Firefox Browser Hibernate MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Need help to resolve an error in the project. i have com.springsource.javax.jdo-2.1.0.jar in my build path. There are 3 error that i am trying to resolve.

1st one in Sequence annotations
:The attribute allocationSize is undefined for the annotation type Sequence

2nd one in in PersistenceCapable annotation
:The attribute cacheable is undefined for the annotation type PersistenceCapable

3rd one in Order annotation
The attribute extensions is undefined for the annotation type Order


I've checked the jar file. PersistenceCapable and Order annotation have the respective attribute and Sequence doesn't. We are using datanucleus.

Please let me know whats the probable cause of the issue if anyone has come across this issue.

Thanks

 
Rajeish Mittal
Ranch Hand
Posts: 36
Firefox Browser Hibernate MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've found the error occurs because the Sequence annotation is getting resolved to a springsource jdo jar file in which the Sequence interface doesn't have allocationSize attribute. It should be getting resolved to a another datanucleus jdo jar file in which Sequence annotation declares allocationSize as valid attribute.

Anybody knows how to prioritize the order of jdo jar file higher than the springsource jdo jar file? help is very much appreciated.


Thanks
 
Rajeish Mittal
Ranch Hand
Posts: 36
Firefox Browser Hibernate MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was able to find a solution to this issue. Seems to have been very trivial. Now resolved.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic