aspose file tools*
The moose likes Object Relational Mapping and the fly likes Need help to resolve an error in project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Need help to resolve an error in project" Watch "Need help to resolve an error in project" New topic
Author

Need help to resolve an error in project

Rajeish Mittal
Ranch Hand

Joined: May 24, 2012
Posts: 36

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
SCJP 5
Rajeish Mittal
Ranch Hand

Joined: May 24, 2012
Posts: 36

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

Joined: May 24, 2012
Posts: 36

I was able to find a solution to this issue. Seems to have been very trivial. Now resolved.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help to resolve an error in project