[JBossCache] - Migrating from PojoCache 1.3 to 1.4
by irabinovitch
We are in the process of migrating from JBossCache 1.3.2 SP3 to 1.4.0GA and one some of our classes appears to no longer work with the new version of JBossCache. Moving back to 1.3.x resolves the issue.
Specifically, calling the notify method of the following class results in an exception in 1.4.0GA but not in 1.3.x.
Any ideas?
Thanks,
Ilan
Exception
=======
ERROR SessionService sendRemoteNotification - Can not send message remotely
com.intersolved.xmlserver.global_services.synchronizator.SynchronizationException: Can not notify
at com.intersolved.xmlserver.global_services.synchronizator.SynchronizationMetaData.notify(SynchronizationMetaData.java:197)
at com.intersolved.xmlserver.global_services.synchronizator.RemoteSynchronizationStorage.notify(RemoteSynchronizationStorage.java:51)
at com.intersolved.xmlserver.global_services.session.SessionService.sendRemoteNotification(SessionService.java:586)
at com.intersolved.xmlserver.global_services.session.SessionService.resetTimeout(SessionService.java:550)
at com.intersolved.xmlserver.global_services.session.SessionService.changeConnection(SessionService.java:339)
at com.intersolved.xmlserver.global_services.convertor.PacketConvertorService$4.processOwnCommands(PacketConvertorService.java:216)
at com.intersolved.xmlserver.global_services.convertor.PacketConvertorService$4.run(PacketConvertorService.java:161)
at com.intersolved.xmlserver.global_services.convertor.PacketConvertorService$5.run(PacketConvertorService.java:310)
at java.lang.Thread.run(Thread.java:595)
Caused by: com.intersolved.cluster.jsync.SynchronizeException: Can not notify
at com.intersolved.cluster.jsync.components.NotificationTreeCacheAOP.notify(NotificationTreeCacheAOP.java:48)
at com.intersolved.cluster.jsync.components.Synchronizer.notify(Synchronizer.java:420)
at com.intersolved.xmlserver.global_services.synchronizator.SynchronizationMetaData.notify(SynchronizationMetaData.java:195)
... 8 more
Caused by: java.lang.RuntimeException: failure to marshal argument(s)
at org.jgroups.blocks.RpcDispatcher.callRemoteMethods(RpcDispatcher.java:152)
at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:4159)
at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:4113)
at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:4221)
at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:4242)
at com.intersolved.cluster.jsync.components.NotificationTreeCacheAOP.notify(NotificationTreeCacheAOP.java:45)
... 10 more
Caused by: java.lang.IllegalArgumentException: MethodCall does not have a valid method id. Was this method call created with MethodCallFactory?
at org.jboss.cache.marshall.TreeCacheMarshaller140.marshallObject(TreeCacheMarshaller140.java:223)
at org.jboss.cache.marshall.TreeCacheMarshaller140.objectToStream(TreeCacheMarshaller140.java:94)
at org.jboss.cache.marshall.VersionAwareMarshaller.objectToByteBuffer(VersionAwareMarshaller.java:133)
at org.jgroups.blocks.RpcDispatcher.callRemoteMethods(RpcDispatcher.java:145)
... 15 more
CLASS
=========
public class NotificationTreeCacheAOP extends org.jboss.cache.aop.TreeCacheAop {
public void _notify(Serializable transport) {
fireNotification(transport);
}
public void notify(Serializable transport) throws SynchronizeException {
try {
callRemoteMethods(getMembers(), "_notify", new Class[]{Serializable.class}, new Object[]{transport}, false, true, getSyncReplTimeout());
} catch (Exception exp) {
throw new SynchronizeException("Can not notify", exp);
}
}
void fireNotification(Serializable transport) {
// Pass notification to listeners.
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961913#3961913
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961913
17 years, 8 months
[JBoss Seam] - Setting up hello wolrd remoting app in NetBean5.5 Dev
by klsateesh
Hi All,
I am trying to use NetBeans5.5 for Developing Seam Apps..
As an ex i tried examples/remoting/helloworld in NetBeans5.5 by folloiwng Brian's blog http://weblogs.java.net/blog/bleonard/archive/2006/05/trying_out_jbos_2.html
and everything went well except that i cannot see the first page..
It is trying to Save the page as a SEAM File and showing up the Save As Dialog..
It seems the Servlet Mapping got screwed up..
Here is the web.xml in the Web Project..
|
| <?xml version="1.0" encoding="UTF-8"?>
|
| <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
| version="2.4">
| <!--
| <session-config>
| <session-timeout>
| 30
| </session-timeout>
| </session-config>
| -->
| <welcome-file-list>
| <welcome-file>
| index.html
| </welcome-file>
| </welcome-file-list>
|
| <!-- Seam -->
|
| <listener>
| <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
| </listener>
|
|
| <!-- Propagate conversations across redirects -->
|
| <filter>
| <filter-name>Seam Redirect Filter</filter-name>
| <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>Seam Redirect Filter</filter-name>
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
|
| <!-- MyFaces -->
|
| <listener>
| <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
| </listener>
|
| <context-param>
| <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
| <param-value>client</param-value>
| </context-param>
|
| <context-param>
| <param-name>facelets.DEVELOPMENT</param-name>
| <param-value>true</param-value>
| </context-param>
|
| <context-param>
| <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
| <param-value>.xhtml</param-value>
| </context-param>
|
| <servlet>
| <servlet-name>Faces Servlet</servlet-name>
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
|
| <!-- Faces Servlet Mapping -->
|
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>*.seam</url-pattern>
| </servlet-mapping>
|
| <servlet>
| <servlet-name>Seam Remoting</servlet-name>
| <servlet-class>org.jboss.seam.remoting.SeamRemotingServlet</servlet-class>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Seam Remoting</servlet-name>
| <url-pattern>/seam/remoting/*</url-pattern>
| </servlet-mapping>
|
| </web-app>
|
|
Thanks
Sateesh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961908#3961908
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961908
17 years, 8 months
[EJB 3.0] - Oracle insert with SELECT missing
by srbox
Hello to all,
i'm working on some basic examples while using JBoss 4.0.4 with EJB3.0 and Oracle 10g as database. With a simple statement such as
| Location tmpLoc = new Location(street, number);
| em.persist(tmpLoc);
|
>From the client I'm getting this error:
anonymous wrote :
| Exception in thread "main" java.lang.RuntimeException: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=maric/25, BranchQual=, localId=25] status=STATUS_NO_TRANSACTION; - nested throwable: (javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update)
| at org.jboss.aspects.tx.TxPolicy.handleEndTransactionException(TxPolicy.java:198)
| at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:180)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
|
And on the server side this:
anonymous wrote :
| 17:06:08,147 WARN [JDBCExceptionReporter] SQL Error: 928, SQLState: 42000
| 17:06:08,147 ERROR [JDBCExceptionReporter] ORA-00928: missing SELECT keyword
|
| 17:06:08,147 WARN [JDBCExceptionReporter] SQL Error: 928, SQLState: 42000
| 17:06:08,147 ERROR [JDBCExceptionReporter] ORA-00928: missing SELECT keyword
|
This happened after the em.persist() method, judging by the logs, and object creation is also ok.
Why is there a SELECT keyword missing, when I'm using pure tables and this is a INSERT statment (just guessing, since the container is managing that part)
tnx
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961904#3961904
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961904
17 years, 8 months