[jboss-user] [EJB 3.0] - Re: $Proxy200 error & Invalid (i.e. remote) invocation of lo

ezanih do-not-reply at jboss.com
Thu Jan 8 04:35:46 EST 2009


I've just narrowed my problem down to this error (see console output below) where my client app always shows that I am using Hibernate Annotations 3.2.1.GA no matter what HA version I'm adding to the client classpath in Eclipse or directly to the JBoss's server/default/lib. It's pretty strange and stubborn too. This first line below always comes out in black and the rest in red in the console output:

Client Side Console Output:

  | - Hibernate Annotations 3.2.1.GA
  | Jan 8, 2009 5:11:11 PM org.hibernate.cfg.Environment <clinit>
  | INFO: Hibernate 3.3.0.SP1
  | Jan 8, 2009 5:11:11 PM org.hibernate.cfg.Environment <clinit>
  | INFO: hibernate.properties not found
  | Jan 8, 2009 5:11:11 PM org.hibernate.cfg.Environment buildBytecodeProvider
  | INFO: Bytecode provider name : javassist
  | Jan 8, 2009 5:11:11 PM org.hibernate.cfg.Environment <clinit>
  | INFO: using JDK 1.4 java.sql.Timestamp handling
  | Jan 8, 2009 5:11:12 PM org.hibernate.ejb.Version <clinit>
  | INFO: Hibernate EntityManager 3.4.0.GA
  | Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.cfg.AnnotationConfiguration.setProperty(Ljava/lang/String;Ljava/lang/String;)Lorg/hibernate/cfg/AnnotationConfiguration;
  | 	at org.hibernate.ejb.Ejb3Configuration.setProperty(Ejb3Configuration.java:535)
  | 	at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:165)
  | 	at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:253)
  | 	at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:125)
  | 	at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
  | 	at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
  | 	at BidClient.main(BidClient.java:54)
  | 
  | 

Strangely enough, for the server-side output (when I start JBoss from Eclipse), it seems to correctly show that I am using Hibernate Annotations 3.4.0.GA (see below):

Server-Side Console output:

  | 17:34:39,562 INFO  [Version] Hibernate Annotations 3.4.0.GA
  | 17:34:39,578 INFO  [Environment] Hibernate 3.3.0.SP1
  | 17:34:39,593 INFO  [Environment] hibernate.properties not found
  | 17:34:39,593 INFO  [Environment] Bytecode provider name : javassist
  | 17:34:39,593 INFO  [Environment] using JDK 1.4 java.sql.Timestamp handling
  | 17:34:39,718 INFO  [Version] Hibernate Commons Annotations 3.1.0.GA
  | 17:34:39,718 INFO  [Version] Hibernate EntityManager 3.4.0.GA
  | 17:34:39,968 INFO  [AnnotationBinder] Binding entity from annotated class: my.com.eperolehan.entities.Bidder
  | 17:34:40,015 INFO  [EntityBinder] Bind entity my.com.eperolehan.entities.Bidder on table BIDDER
  | 17:34:40,109 INFO  [Version] Hibernate Validator 3.0.0.GA
  | 

What could be the problem ?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200273#4200273

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200273



More information about the jboss-user mailing list