[JBoss Cache Users] - Re: Invalidation-only cache
by adamw
Hello,
well, from what I've seen in CacheHelper Hibernate is simply calling get() and put(). However in my case this doesn't work, as I run the cache in INVALIDATION_SYNC mode. This means that when I call put() on node1, an invalidation message is sent to other nodes. Then, when node 2 wants to retrieve the object, it sees that there's no value, so it calculates the value and calls put(), which invalidates the node on node1, and so on. In fact, what I would need are three operations: invalidation of a node in a cluster, local-get and local-put (without invalidating).
Using cacheloader (well, I admin, hacking around it ;) ) allowed me to get a local-put. Maybe I'll see what the CL are doing behind the scenes :)
Adam
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256778#4256778
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256778
16 years, 7 months
[jBPM Users] - Re: jbpm 4.1 - Task assignment
by makarandk502
Hi,
Thanks for the reply.
I have tried exactly same fork/join approach using jBPM 4.1, JBOSS 5.0 etc
Can you please guide me in this ?
I am getting following error
org.jboss.resteasy.spi.UnhandledException: org.hibernate.LazyInitializationException: could not initialize proxy - no Session
| org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)
| org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230)
| org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206)
| org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)
| org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
| org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
| org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
|
| root cause
|
| org.hibernate.LazyInitializationException: could not initialize proxy - no Session
| org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:86)
| org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:140)
| org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:190)
| org.jbpm.pvm.internal.model.ExecutionImpl_$$_javassist_4.getId(ExecutionImpl_$$_javassist_4.java)
| org.jbpm.integration.console.ModelAdaptor.adoptTask(ModelAdaptor.java:147)
| org.jbpm.integration.console.TaskManagementImpl.adoptTasks(TaskManagementImpl.java:69)
| org.jbpm.integration.console.TaskManagementImpl.getAssignedTasks(TaskManagementImpl.java:49)
| org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:99)
| sun.reflect.GeneratedMethodAccessor278.invoke(Unknown Source)
| sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| java.lang.reflect.Method.invoke(Method.java:597)
| org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
| org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
| org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
| org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
| org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
| org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
| org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
| org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
| org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
|
| note The full stack trace of the root cause is available in the JBoss Web/2.1.1.GA logs.
|
|
| --------------------------------------------------------------------------------
|
| JBoss Web/2.1.1.GA
|
|
jpdl attached :
| <?xml version="1.0" encoding="UTF-8" ?>
| - <process name="SubProcessFill" xmlns="http://jbpm.org/4.0/jpdl">
| - <start g="214,171,31,24" name="start1">
| <transition g="-43,-18" name="to fork1" to="fork1" />
| </start>
| - <fork g="215,273,44,34" name="fork1">
| <transition g="-44,-18" name="to task1" to="task1" />
| <transition g="-44,-18" name="to task2" to="task2" />
| <transition g="-44,-18" name="to task3" to="task3" />
| </fork>
| <end g="229,568,33,16" name="end1" />
| - <task assignee="peter" form="tcs/com/java/giveAppDetails.ftl" g="101,379,66,29" name="task1">
| <transition g="-41,-18" name="to join1" to="join1" />
| </task>
| - <task assignee="peter" form="tcs/com/java/giveAppDetails.ftl" g="222,378,47,27" name="task2">
| <transition g="-41,-18" name="to join1" to="join1" />
| </task>
| - <task assignee="peter" form="tcs/com/java/giveAppDetails.ftl" g="342,378,63,26" name="task3">
| <transition g="-41,-18" name="to join1" to="join1" />
| </task>
| - <join g="227,465,39,35" name="join1">
| <transition g="-42,-18" name="to end1" to="end1" />
| </join>
| </process>
|
----
-Regards
Makarand
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256762#4256762
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256762
16 years, 7 months
[Installation, Configuration & Deployment] - Problem Retrieving Hibernate SessionFactory from JNDI
by cdub
I am having a very peculiar problem retrieving a Hibernate SessionFactory from JNDI. I am using JBOSS 5.1.0, Hibernate 3.3.1, and Netbeans 6.7.1.
Following is the code that I use to attempt to retrieve the SessionFactory from JNDI: (The lookup method below returns a null value)
| InitialContext ctx = new InitialContext();
| _session_factory = (SessionFactory) ctx.lookup("java:/hibernate/GGGoMobileSessionFactory");
|
>From looking at the server logs, I can see the SessionFactory being created and bound to JNDI (see below).
| SessionFactory successfully built and bound into JNDI [java:/hibernate/GGGoMobileSessionFactory]
|
If I use the JNDIView MBean to look at objects in JNDI, I clearly see the HibernateSessionFactory present in the JNDI. (see below)
| java: Namespace
| ...
|
| +- hibernate (class: org.jnp.interfaces.NamingContext)
| | +- GGGoMobileSessionFactory (class: org.hibernate.impl.SessionFactoryImpl)
|
| ...
|
Following are the contents of the gggomobile-hibernate.xml that is used to define the parameters of the Hibernate SessionFactory so it can automatically be started by JBOSS.
| <hibernate-configuration xmlns="urn:jboss:hibernate-deployer:1.0">
| <session-factory name="java:/hibernate/GGGoMobileSessionFactory" bean="jboss.gggomobile:name=GGGoMobileSessionFactory">
| <property name="datasourceName">java:/GGGoMobileDS</property>
| <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
| <depends>jboss:service=Naming</depends>
| <depends>jboss:service=TransactionManager</depends>
| </session-factory>
| </hibernate-configuration>
|
Does anyone have an idea on this issue ? Very very very strange !!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4256760#4256760
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4256760
16 years, 7 months
JBoss 4.2.3 Deployment Issue
by Aggarwal, Pranav
Hi List,
I am trying to deploy an application on JBoss 4.2.3 AS and am getting
following error messages:
2009-09-24 08:01:14,454 ERROR [org.jboss.system.server.Server] Root
deployment has missing dependencies; continuing
Incomplete Deployment listing:
--- MBeans waiting for other MBeans ---
ObjectName: jboss:service=invoker,type=jrmp
State: FAILED
Reason: java.lang.AbstractMethodError:
org.jboss.invocation.jrmp.server.JRMPInvoker.jbossInternalLifecycle(Ljav
a/lang/String;)V
I Depend On:
jboss:service=TransactionManager
ObjectName: jboss:service=invoker,type=http
State: FAILED
Reason: java.lang.NoSuchMethodError:
org.jboss.util.Strings.replaceProperties(Ljava/lang/String;)Ljava/lang/S
tring;
ObjectName: jboss:service=invoker,type=httpHA
State: FAILED
Reason: java.lang.NoSuchMethodError:
org.jboss.util.Strings.replaceProperties(Ljava/lang/String;)Ljava/lang/S
tring;
ObjectName: jboss:service=invoker,type=http,target=Naming
State: FAILED
Reason: java.lang.NoSuchMethodError:
org.jboss.util.Strings.replaceProperties(Ljava/lang/String;)Ljava/lang/S
tring;
ObjectName: jboss:service=invoker,type=http,target=Naming,readonly=true
State: FAILED
Reason: java.lang.NoSuchMethodError:
org.jboss.util.Strings.replaceProperties(Ljava/lang/String;)Ljava/lang/S
tring;
ObjectName: jboss.jca:service=LocalTxCM,name=hsqldbDS
State: CONFIGURED
I Depend On:
jboss.jca:service=LocalTxDS,name=hsqldbDS
jboss.jca:service=LocalTxPool,name=hsqldbDS
jboss.jca:service=CachedConnectionManager
jboss.security:service=JaasSecurityManager
jboss.jca:service=RARDeployer
ObjectName: jboss.jca:service=LocalTxDS,name=hsqldbDS
State: CONFIGURED
I Depend On:
jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC
Wrapper
jboss:service=Hypersonic
Depends On Me:
jboss.jca:service=LocalTxCM,name=hsqldbDS
ObjectName: jboss.jca:service=XaTxCM,name=jmsra
State: CONFIGURED
I Depend On:
jboss.jca:service=RARDeployer
jboss.jca:service=XaTxDS,name=jmsra
jboss.jca:service=XaTxPool,name=jmsra
jboss.jca:service=CachedConnectionManager
jboss.security:service=JaasSecurityManager
ObjectName: jboss.jca:service=XaTxDS,name=jmsra
State: CONFIGURED
I Depend On:
jboss.jca:service=RARDeployment,name=JMS Adapter
Depends On Me:
jboss.jca:service=XaTxCM,name=jmsra
ObjectName:
jboss.j2ee:service=EjbModule,url=file%/D%/Java/jboss-4.2.3.GA/server/grm
bs/deploy/ejb-management.jar
State: FAILED
Reason: java.lang.NoSuchFieldError: ucl
ObjectName:
jboss.j2ee:service=EjbModule,url=file%/D%/Java/jboss-4.2.3.GA/server/grm
bs/deploy/jmx-ejb-adaptor.jar
State: FAILED
Reason: java.lang.NoSuchFieldError: ucl
ObjectName:
jboss.j2ee:service=EjbModule,url=file%/D%/Java/jboss-4.2.3.GA/server/grm
bs/deploy/notification-listener.jar
State: FAILED
Reason: java.lang.NoSuchFieldError: ucl
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName:
jboss.j2ee:service=EjbModule,url=file%/D%/Java/jboss-4.2.3.GA/server/grm
bs/deploy/notification-listener.jar
State: FAILED
Reason: java.lang.NoSuchFieldError: ucl
ObjectName: jboss:service=invoker,type=jrmp
State: FAILED
Reason: java.lang.AbstractMethodError:
org.jboss.invocation.jrmp.server.JRMPInvoker.jbossInternalLifecycle(Ljav
a/lang/String;)V
I Depend On:
jboss:service=TransactionManager
ObjectName: jboss.jca:service=RARDeployment,name=JMS Adapter
State: NOTYETINSTALLED
Depends On Me:
jboss.jca:service=XaTxDS,name=jmsra
ObjectName: jboss.jca:service=RARDeployment,name=JBoss LocalTransaction
JDBC Wrapper
State: NOTYETINSTALLED
Depends On Me:
jboss.jca:service=LocalTxDS,name=hsqldbDS
ObjectName: jboss:service=invoker,type=http,target=Naming
State: FAILED
Reason: java.lang.NoSuchMethodError:
org.jboss.util.Strings.replaceProperties(Ljava/lang/String;)Ljava/lang/S
tring;
ObjectName: jboss:service=invoker,type=httpHA
State: FAILED
Reason: java.lang.NoSuchMethodError:
org.jboss.util.Strings.replaceProperties(Ljava/lang/String;)Ljava/lang/S
tring;
ObjectName:
jboss.j2ee:service=EjbModule,url=file%/D%/Java/jboss-4.2.3.GA/server/grm
bs/deploy/jmx-ejb-adaptor.jar
State: FAILED
Reason: java.lang.NoSuchFieldError: ucl
ObjectName: jboss:service=invoker,type=http,target=Naming,readonly=true
State: FAILED
Reason: java.lang.NoSuchMethodError:
org.jboss.util.Strings.replaceProperties(Ljava/lang/String;)Ljava/lang/S
tring;
ObjectName: jboss:service=invoker,type=http
State: FAILED
Reason: java.lang.NoSuchMethodError:
org.jboss.util.Strings.replaceProperties(Ljava/lang/String;)Ljava/lang/S
tring;
ObjectName:
jboss.j2ee:service=EjbModule,url=file%/D%/Java/jboss-4.2.3.GA/server/grm
bs/deploy/ejb-management.jar
State: FAILED
Reason: java.lang.NoSuchFieldError: ucl
at
org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDeploye
r.java:1385)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:785)
at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.
java:155)
at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.jav
a:264)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at
org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at
org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Unknown Source)
Can any one please suggest inputs to fix this?
Thanks,
Pranav
Please help Logica to respect the environment by not printing this email / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu sch�tzen. / Por favor ajude a Logica a respeitar o ambiente nao imprimindo este correio electronico.
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
16 years, 7 months