[JBoss Cache] - Stuck thread issue in CacheMarshaller
by Mukund Sundararajan
Mukund Sundararajan [http://community.jboss.org/people/mukund_ipc] created the discussion
"Stuck thread issue in CacheMarshaller"
To view the discussion, visit: http://community.jboss.org/message/609446#609446
--------------------------------------------------------------
All,
I am using the following version of JBoss cache -
java -jar jbosscache-core.jar org.jboss.cache.Version
Version: 3.2.5.GA
Codename: Malagueta
History: (see http://jira.jboss.com/jira/browse/JBCACHE http://jira.jboss.com/jira/browse/JBCACHE for details)
We have been using the cache for a few months now. Of late I found an issue where a thread got stuck in the CacheMarshaller and never returned. Does anyone have informatoin on the following stack trace (of the stuck thread) ?
"[ACTIVE] ExecuteThread: '280' for queue: 'weblogic.kernel.Default (self-tuning)'" id=2736 idx=0x5d4 tid=26494 prio=5 alive, *native_blocked*, daemon
at java/io/ObjectOutputStream$BlockDataOutputStream.getUTFLength(Ljava/lang/String;)J(ObjectOutputStream.java)[optimized]
at java/io/ObjectOutputStream.writeString(ObjectOutputStream.java:1263)[inlined]
at java/io/ObjectOutputStream.writeObject0(ObjectOutputStream.java:1144)[inlined]
at java/io/ObjectOutputStream.writeObject(ObjectOutputStream.java:326)[optimized]
at java/util/concurrent/ConcurrentHashMap.writeObject(ConcurrentHashMap.java:1247)[inlined]
at sun/reflect/GeneratedMethodAccessor160.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Unknown Source)[optimized]
at sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[optimized]
at java/lang/reflect/Method.invoke(Method.java:597)[inlined]
at java/io/ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)[inlined]
at java/io/ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)[optimized]
at java/io/ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)[optimized]
at java/io/ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)[optimized]
at java/io/ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)[inlined]
at java/io/ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)[optimized]
at java/io/ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)[optimized]
at java/io/ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)[inlined]
at java/io/ObjectOutputStream.writeObject(ObjectOutputStream.java:326)[inlined]
*at org/jboss/cache/marshall/CacheMarshaller200.marshallObject(CacheMarshaller200.java:460)[inlined*]
at org/jboss/cache/marshall/CacheMarshaller300.marshallObject(CacheMarshaller300.java:47)[optimized]
at org/jboss/cache/marshall/CacheMarshaller200.marshallCommand(CacheMarshaller200.java:519)[inlined]
at org/jboss/cache/marshall/CacheMarshaller200.marshallObject(CacheMarshaller200.java:314)[inlined]
at org/jboss/cache/marshall/CacheMarshaller300.marshallObject(CacheMarshaller300.java:47)[optimized]
at org/jboss/cache/marshall/CacheMarshaller200.marshallCommand(CacheMarshaller200.java:519)[inlined]
at org/jboss/cache/marshall/CacheMarshaller200.marshallObject(CacheMarshaller200.java:314)[inlined]
at org/jboss/cache/marshall/CacheMarshaller300.marshallObject(CacheMarshaller300.java:47)[optimized]
at org/jboss/cache/marshall/CacheMarshaller200.objectToObjectStream(CacheMarshaller200.java:191)[optimized]
at org/jboss/cache/marshall/CacheMarshaller200.objectToObjectStream(CacheMarshaller200.java:136)[optimized]
at org/jboss/cache/marshall/VersionAwareMarshaller.objectToBuffer(VersionAwareMarshaller.java:183)[inlined]
at org/jboss/cache/marshall/VersionAwareMarshaller.objectToBuffer(VersionAwareMarshaller.java:52)[optimized]
at org/jboss/cache/marshall/CommandAwareRpcDispatcher$ReplicationTask.call(CommandAwareRpcDispatcher.java:383)[inlined]
at org/jboss/cache/marshall/CommandAwareRpcDispatcher$ReplicationTask.call(CommandAwareRpcDispatcher.java:355)[optimized]
at org/jboss/cache/util/concurrent/WithinThreadExecutor.submit(WithinThreadExecutor.java:82)[optimized]
at org/jboss/cache/marshall/CommandAwareRpcDispatcher.invokeRemoteCommands(CommandAwareRpcDispatcher.java:210)[inlined]
at org/jboss/cache/RPCManagerImpl.callRemoteMethods(RPCManagerImpl.java:744)[inlined]
at org/jboss/cache/RPCManagerImpl.callRemoteMethods(RPCManagerImpl.java:712)[inlined]
at org/jboss/cache/RPCManagerImpl.callRemoteMethods(RPCManagerImpl.java:717)[optimized]
at org/jboss/cache/interceptors/BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:161)[inlined]
at org/jboss/cache/interceptors/BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:135)[inlined]
at org/jboss/cache/interceptors/BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:107)[inlined]
at org/jboss/cache/interceptors/ReplicationInterceptor.handleCrudMethod(ReplicationInterceptor.java:160)[optimized]
at org/jboss/cache/interceptors/ReplicationInterceptor.visitPutKeyValueCommand(ReplicationInterceptor.java:107)
at org/jboss/cache/commands/write/PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:100)[optimized]
at org/jboss/cache/interceptors/base/CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)[inlined]
at org/jboss/cache/interceptors/base/CommandInterceptor.handleDefault(CommandInterceptor.java:131)[optimized]
at org/jboss/cache/commands/AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:65)[optimized]
at org/jboss/cache/commands/write/PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:100)[optimized]
at org/jboss/cache/interceptors/base/CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)[inlined]
at org/jboss/cache/interceptors/TxInterceptor.attachGtxAndPassUpChain(TxInterceptor.java:301)[inlined]
at org/jboss/cache/interceptors/TxInterceptor.handleDefault(TxInterceptor.java:283)[optimized]
at org/jboss/cache/commands/AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:65)[optimized]
at org/jboss/cache/commands/write/PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:100)[optimized]
at org/jboss/cache/interceptors/base/CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)[inlined]
at org/jboss/cache/interceptors/InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:178)[inlined]
at org/jboss/cache/interceptors/InvocationContextInterceptor.visitPutKeyValueCommand(InvocationContextInterceptor.java:82)[optimized]
at org/jboss/cache/commands/write/PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:100)[optimized]
at org/jboss/cache/interceptors/InterceptorChain.invoke(InterceptorChain.java:287)[optimized]
at org/jboss/cache/invocation/CacheInvocationDelegate.put(CacheInvocationDelegate.java:555)
at org/jboss/cache/invocation/NodeInvocationDelegate.put(NodeInvocationDelegate.java:377)[optimized]
I am trying to figure out the root cause for this issue. This thread was stuck forever,
Thanks
Mukund
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/609446#609446]
Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 10 months
[jBPM] - Process Instance Variable within WorkItemHandler
by Amin MC
Amin MC [http://community.jboss.org/people/aminmc] created the discussion
"Process Instance Variable within WorkItemHandler"
To view the discussion, visit: http://community.jboss.org/message/602066#602066
--------------------------------------------------------------
Hi
I have a custom work item handler and I would like to load the value of a process instance variable while executing the work item handler. Basically I have a service method which does the following:
public String getValue(Long processId, String variableName) {
session.getProcessInstance(..);
instance.getVariable(variableName);
//do something with the value...but not modify
}
When i call this service method within the execute method of the work item handler I get a nullpointerexception and the stacktrace indicates that the processinstancebytearray value of ProcessInstanceInfo is null. I guess this is because the process has not reached a safe point to persist. Is there another way to get the value of a variable defined in the process within the execution of the work item handler?
This is the final part of a POC I am currently working on demonstrating the use of JBPM 5 so any help on this would be extremely grateful.
Cheers
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/602066#602066]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 10 months
[Beginner's Corner] - Spring
by zzpprk
zzpprk [http://community.jboss.org/people/zzpprk] created the discussion
"Spring"
To view the discussion, visit: http://community.jboss.org/message/609215#609215
--------------------------------------------------------------
Hello again
Spring is giving me a headache! This is not strictly JBoss but one of you guys might know.
I am currently working on a WEB service and the deployment WAR has a spring-ws-servlet.xml file. I am also working on a regular WEB application and that has a spring-servlet.xml file. What is the difference between those two files? Can they contain the same things?
I wish to add an MBeam to my WEB service so I can dynamically change the log4j logging level. I have found at http://www.unicon.net/node/614 that I can add the following lines to a config file but it does not say which one!
<bean id="mbeanServer" class="org.springframework.jmx.support.MBeanServerFactoryBean">
<property name="defaultDomain" value="SRS Exstream"/>
<property name="registerWithFactory" value="true"/>
<property name="locateExistingServerIfPossible" value="true"/>
</bean>
<bean id="exporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false">
<property name="beans">
<map>
<entry key="bean:name=Log4jLevelChanger" value-ref="Log4jLevelChanger"/>
</map>
</property>
</bean>
<bean id="Log4jLevelChanger" class="com.hp.exstream.project.gmac.util.Log4jLevelChanger">
<property name="name" value="Log4jLevelChanger"/>
</bean>
I tried adding the above to my spring-ws-servlet.xml file but this has not worked because my MBean does not show-up in jConsole.
Any ideas how to get this to work?
Regards
Patrick
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/609215#609215]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 10 months
[JBoss Tools] - BIRT reports, oda driver throws NullPointerException
by klosskruemel
klosskruemel [http://community.jboss.org/people/klosskruemel] created the discussion
"BIRT reports, oda driver throws NullPointerException"
To view the discussion, visit: http://community.jboss.org/message/609171#609171
--------------------------------------------------------------
Hello JBoss Community,
I integrated BIRT into a portal application using the Report Engine API 2.6.2. The portal application uses Hibernate, Seam 2.2, GateIn, the JBoss Portletbridge among others.
All works fine with the customers.rptdesign you can find in the BIRT tutorials. But using the Hibernate Datasource for our own reports I had a lot of trouble along way. The Eclipse preview is fine, but not the report I create within the application.
This is the error I get:
06.06.2011 14:44:29 org.eclipse.birt.report.engine.api.impl.RunAndRenderTask doRun
SCHWERWIEGEND: An error happened while running the report. Cause:
java.lang.NullPointerException
at org.jboss.tools.birt.oda.impl.ConsoleConfigurationOdaFactory.getSessionFactory(ConsoleConfigurationOdaFactory.java:54)
at org.jboss.tools.birt.oda.impl.ConsoleConfigurationOdaFactory.<init>(ConsoleConfigurationOdaFactory.java:34)
at org.jboss.tools.birt.oda.impl.HibernateConnection.open(HibernateConnection.java:47)
at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaConnection.open(OdaConnection.java:250)
at org.eclipse.birt.data.engine.odaconsumer.ConnectionManager.openConnection(ConnectionManager.java:165)
at org.eclipse.birt.data.engine.executor.DataSource.newConnection(DataSource.java:224)
at org.eclipse.birt.data.engine.executor.DataSource.open(DataSource.java:212)
at org.eclipse.birt.data.engine.impl.DataSourceRuntime.openOdiDataSource(DataSourceRuntime.java:208)
at org.eclipse.birt.data.engine.impl.QueryExecutor.openDataSource(QueryExecutor.java:406)
at org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecution(QueryExecutor.java:316)
at org.eclipse.birt.data.engine.impl.PreparedQuery.doPrepare(PreparedQuery.java:455)
The last line in this code of the oda driver causes the NullPointerException:
public SessionFactory getSessionFactory(Properties properties) throws OdaException {
String configurationName = properties.getProperty(CONFIGURATION);
ConsoleConfiguration[] configurations = KnownConfigurations.getInstance().getConfigurations();
for (int i = 0; i < configurations.length; i++) {
if (configurations[i].getName().equals(configurationName)) {
consoleConfiguration=configurations[i];
break;
}
}
if (!isOpen()) {
try {
sessionFactory = consoleConfiguration.getSessionFactory();
The consoleConfiguration seems to be null. But why?
I have to add that I worked through this tutorial:
But i could not "run the Seam Generate Entities action" like said there. I got the message "Hibernate console configuration is empty" instead. So I just created a new Hibernate console configuration using this http://pastebin.com/BHvrCvGu seam-hibernate.cfg.xml and this http://pastebin.com/cXeBxH5X hibernate.properties file.
What can I do to bring my reports to work?
Regards
kloss
| %1,3% |
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/609171#609171]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 10 months