[Persistence, JBoss/CMP, Hibernate, Database] - "main" java.lang.RuntimeException: Could not resolve beanCla
by thepoineer
Suddenly I have noticed that when I try to invoke a bean method declared in remote I am facing this problem for the new method added .
I tried to test the existing method invocations and there is no problem..
I see this with new method additions.,. I am confused why I am suddenly facing this problem.
To verify I have decomplied the class file using jad form the jar to see the
method in remote interface and bean are matching with the calling method
invocation
We are using JBOSS -4.0.3 SP1
and EJB 3.0
Exception in thread "main" java.lang.RuntimeException: Could not resolve beanClass method from proxy call
at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:166)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:69)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:566)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:436)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:247)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:285)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:169)
Any help is greatly appreciated
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170599#4170599
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170599
17 years, 11 months
[Persistence, JBoss/CMP, Hibernate, Database] - howto persist byte[] as varbinary?
by bbernie
I'm using Jboss 4.2.2 with Hibernate 3.2.4.sp1. I have a few data types to persist from my entity which are of java type byte[].
Hibernate, by default, is using mysql type tinyblob for these. How do I override this and get Hibernate to use the type varbinary instead?
After hibernate creates the database schema, I am able to change this manually by altering the tables, and everything appears to function fine, but I would prefer to have this done automatically.
Besides, if I change the hdm2ddl behavior from update to validate, hibernate will fail to validate the schema because the columns are of type varbinary instead of tinyblobs.
Any help with this would be greatly appreciated. I've tried using the @Type annotation, but I have no idea what type I should place in there for this to work. My database is mysql 5.0.44 with the InnoDB table engine, I am using the org.hibernate.dialect.MySQL5InnoDBDialect as my hibernate dialect.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170594#4170594
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170594
17 years, 11 months