[JBoss Cache] - Error while trying to acquire write lock
by Túlio Gomes Barbosa
Túlio Gomes Barbosa [https://community.jboss.org/people/tulio.barbosa] created the discussion
"Error while trying to acquire write lock"
To view the discussion, visit: https://community.jboss.org/message/757029#757029
--------------------------------------------------------------
Hi guys,
i'm a brazilian oss analyst facing with the following problem:
<Aug 28, 2012 10:15:22 AM BRT> <Notice> <Stdout> <BEA-000000> <AsyncClient: Response cannot be read!>
<8-28-2012 10:15:22.261> <JVMDAgent|jamagent.c:1472> <Error receiving data from console>
<Aug 28, 2012 10:15:32 AM BRT> <Notice> <Stdout> <BEA-000000> <<28-Aug-2012 10:15:32,483 BRT AM> <ERROR> <jboss.JBossOrderCacheManager> <ExecuteThread: '12'
for queue: 'oms.automation'> *<Caught exception adding value to cache fqn[/9976/root/0/Client_Details/1346158074198] value[null] nodeId[87386] nodeIndex[null]*
>
*org.jboss.cache.lock.TimeoutException: failure acquiring lock: fqn=/9976/root/0/Client_Details/1346158074198, caller=GlobalTransaction:<null>:887, lock=write*
*owner=GlobalTransaction:<null>:892 (org.jboss.cache.lock.LockStrategyReadCommitted@3fcbb918)*
Here's the situation:
We're using an oracle application that manages service orders life cycle. So we have specifics flows based at telecom industry business rules that access all time the same fqn.
In some flows we have integrations with others systems via webservices and jms queues who are responsible for allocating the equipment inventory. However, these integrations lasts 20 seconds on average.
Looking at the jboss cache configuration we observed that some parameters are not following the recommended configuration by the jboss specialists (please look at attached file omscache-config.xml ).
ps.: The parameter LockAcquisitionTimeout (30000 milliseconds) seems not to be sufficient.
Anyone have some ideas for the problem related?
ps2.: Sorry for the english :D
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/757029#757029]
Start a new discussion in JBoss Cache at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 7 months
[jBPM] - errors when starting up jbpm 5.4-SNAPSHOT release
by Satya Dhanushkodi
Satya Dhanushkodi [https://community.jboss.org/people/satyand] created the discussion
"errors when starting up jbpm 5.4-SNAPSHOT release"
To view the discussion, visit: https://community.jboss.org/message/757362#757362
--------------------------------------------------------------
I am getting the attached errors when deploying jbpm 5-4-SNAPSHOT and guvnor-distribution-wars-5.5.0-SNAPSHOT. I was trying to get around some of the issues related to userid and groupid in human-task-war by working with the snapshots.
Although at the startup, most of the errors are warnings about janino compiler or jaxb classes missing, ultimately when I try to import the "Employee Evaluation" example in guvnor and try to start the process, I am seeing the following message:
11:34:06,292 SEVERE [org.jboss.resteasy.core.SynchronousDispatcher] (http-localhost-127.0.0.1-8080-10) failed to execute: javax.ws.rs.WebApplicationException
at org.drools.guvnor.server.jaxrs.PackageResource.getAssetAsAtom(PackageResource.java:525) [guvnor-webapp-core-5.5.0-SNAPSHOT.jar:]
at org.drools.guvnor.server.jaxrs.PackageResource$Proxy$_$$_WeldClientProxy.getAssetAsAtom(PackageResource$Proxy$_$$_WeldClientProxy.java) [guvnor-webapp-core-5.5.0-SNAPSHOT.jar:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_05]
The process starts up - but the process form does not show up.
In addition, I see the following when jbpm-console starts and attempts to read from guvnor.
11:29:51,931 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) Caused by: java.io.InvalidClassException: org.drools.rule.MVELDialectRuntimeData; local class incompatible: stream classdesc serialVersionUID = 5166066541265170937, local class serialVersionUID = -2603821288794910940
11:29:51,931 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
11:29:51,931 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
I tried ensuring that the same version of drools-core is in both guvnor and jbpm-console - still same error.
Any ideas on what could be going wrong?
Thanks,
Satya
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/757362#757362]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 7 months
[Beginner's Corner] - InstantiationExceptionConstructorAccessorImpl when deploying simple web application
by Niklas Jansson
Niklas Jansson [https://community.jboss.org/people/jansson] created the discussion
"InstantiationExceptionConstructorAccessorImpl when deploying simple web application"
To view the discussion, visit: https://community.jboss.org/message/755967#755967
--------------------------------------------------------------
Hello,
First of all - I'm a complete newbie to jBoss, first time ever trying to get a test-enviroment up and running. I have the jboss-7.1.1-Final application server running on a Linux box. And as a first project just want to create a simple webservice using javax.ws but I can't get the application to deploy, I'm using ant to build a simple .war file and then copying into {JBOSS_HOME}\standalone\deployments. However I get the exception:
23:28:20,665 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/webservice]] (MSC service thread 1-1) Servlet /webservice threw load() exception: java.lang.InstantiationException
at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:48) [rt.jar:1.6.0_18]
at java.lang.reflect.Constructor.newInstance(Constructor.java:532) [rt.jar:1.6.0_18]
at org.jboss.msc.value.ConstructedValue.getValue(ConstructedValue.java:61)
at org.jboss.as.naming.ValueManagedReferenceFactory.getReference(ValueManagedReferenceFactory.java:49)
at org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:90) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:85) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.web.deployment.component.WebComponentInstantiator$1.<init>(WebComponentInstantiator.java:57) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.web.deployment.component.WebComponentInstantiator.getReference(WebComponentInstantiator.java:55) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.web.deployment.WebInjectionContainer.instantiate(WebInjectionContainer.java:99) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.web.deployment.WebInjectionContainer.newInstance(WebInjectionContainer.java:78) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.web.deployment.WebInjectionContainer.newInstance(WebInjectionContainer.java:72) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1156) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.6.0_18]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.6.0_18]
at java.lang.Thread.run(Thread.java:636) [rt.jar:1.6.0_18]
23:28:20,686 INFO [org.jboss.web] (MSC service thread 1-1) JBAS018210: Registering web context: /webservice
My web.xml:
<web-app xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance" xmlns=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee" xmlns:web=" http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>Helloworld</display-name>
<servlet>
<servlet-name>Jersey REST Service</servlet-name>
<servlet-class>javax.servlet.http.HttpServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Jersey REST Service</servlet-name>
<url-pattern>/rest/*</url-pattern>
</servlet-mapping>
</web-app>
My Helloworld.java:
import javax.ws.rs.GET;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
public class HelloWorld {
// This method is called if TEXT_PLAIN is request
@GET
@Produces(MediaType.TEXT_PLAIN)
public String sayPlainTextHello() {
return "Hello Jersey";
}
// This method is called if XML is request
@GET
@Produces(MediaType.TEXT_XML)
public String sayXMLHello() {
return "<?xml version=\"1.0\"?>" + "<hello> Hello World" + "</hello>";
}
// This method is called if HTML is request
@GET
@Produces(MediaType.TEXT_HTML)
public String sayHtmlHello() {
return "<html> " + "<title>" + "Hello World" + "</title>"
+ "<body><h1>" + "Hello World" + "</body></h1>" + "</html> ";
}
}
I'm a bit lost and googling all night haven't given me an answers, any pointers or ideas is much appreciated!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/755967#755967]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 7 months
[JBoss Web Services] - Which versions for eclipse + JBoss AS + JDK + JBossWS
by Giuliano Aparecido
Giuliano Aparecido [https://community.jboss.org/people/giuliano.rap] created the discussion
"Which versions for eclipse + JBoss AS + JDK + JBossWS"
To view the discussion, visit: https://community.jboss.org/message/757194#757194
--------------------------------------------------------------
Hi,
Where can I see the possible configuration supported to create web services?
Like eclipse, jdk, JBossWS, JBoss AS, etc...
I am asking because my company has a system in JBoss AS 4.2.2 with jdk 1.6.0_07 and I need to create a web service. But when I try to create the web service using the eclipse wizard, I get the message:
| Error: Could not generate. (use --show-traces to see full traces) |
|
| java.lang.NoClassDefFoundError: com/sun/codemodel/JExpression |
|
|
| at org.jboss.ws.tools.jaxws.impl.JBossWSProviderImpl.provide(JBossWSProviderImpl.java:89) |
|
|
| at org.jboss.ws.tools.jaxws.impl.JBossWSProviderImpl.provide(JBossWSProviderImpl.java:123) |
|
|
| at org.jboss.wsf.spi.tools.cmd.WSProvide.generate(WSProvide.java:184) |
|
|
| at org.jboss.wsf.spi.tools.cmd.WSProvide.main(WSProvide.java:77) |
|
| Caused by: java.lang.ClassNotFoundException: com.sun.codemodel.JExpression |
|
|
| at java.net.URLClassLoader$1.run(URLClassLoader.java:202) |
|
|
| at java.security.AccessController.doPrivileged(Native Method) |
|
|
| at java.net.URLClassLoader.findClass(URLClassLoader.java:190) |
|
|
| at java.lang.ClassLoader.loadClass(ClassLoader.java:306) |
|
|
| at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) |
|
|
| at java.lang.ClassLoader.loadClass(ClassLoader.java:247) |
|
|
| ... 4 more |
I am using the JBossWS from the JBoss AS, at JBossWS Preferences I just appointed to JBoss AS folder...
Any idea?
Thanks!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/757194#757194]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 7 months