[jBPM] - NPE in Payload2XML.convert for console "instance data"
by M M
M M [http://community.jboss.org/people/gubespam] created the discussion
"NPE in Payload2XML.convert for console "instance data""
To view the discussion, visit: http://community.jboss.org/message/547906#547906
--------------------------------------------------------------
Has anyone seen this before? It happens sometimes, sometimes not, when I click "Instance Data" in the console.
org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException
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:717)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
*root cause*
java.lang.NullPointerException
org.jboss.bpm.console.server.util.Payload2XML.convert(Payload2XML.java:57)
org.jboss.bpm.console.server.ProcessMgmtFacade.getInstanceData(ProcessMgmtFacade.java:209)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
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:717)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/547906#547906]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 10 months
[JBoss Cache] - exception from CacheJmxWrapperMBean.getCache()
by Peter Petrovics
Peter Petrovics [http://community.jboss.org/people/szerintedmi] created the discussion
"exception from CacheJmxWrapperMBean.getCache()"
To view the discussion, visit: http://community.jboss.org/message/547863#547863
--------------------------------------------------------------
I'm trying to reach the same cache from two different webapps running on the same Tomcat.
The first time it starts I'm registering with the following code:
{code}
jbossCache = new DefaultCacheFactory().createCache(configFile);
cacheJmxWrapper = new CacheJmxWrapper(jbossCache);
ObjectInstance oi = mBeanServer.registerMBean(cacheJmxWrapper, on);
// tryied this way too:
//JmxRegistrationManager jmxRegManager = new JmxRegistrationManager(mBeanServer, jbossCache, on);
//jmxRegManager.registerAllMBeans();
log.info("Cache started. MBean objName: " + oi.getObjectName());
{code}
I try to get a reference through JMX with this code:
{code}
mBeanServer = ManagementFactory.getPlatformMBeanServer();
cacheJmxWrapper =
(CacheJmxWrapperMBean) MBeanServerInvocationHandler.newProxyInstance(mBeanServer, on,
CacheJmxWrapperMBean.class, false);
Object o; // just to show the issue
o = cacheJmxWrapper.getCache();
{code}
I receive the following exception from the last line:
{code}
java.lang.ClassCastException: org.jboss.cache.invocation.CacheInvocationDelegate cannot be cast to org.jboss.cache.Cache
at $Proxy17.getCache(Unknown Source)
{code}
I tried several different methods to register/get reference.
Am I missing a point or is it a bug?
As I read JNDI would be a workaroun but can't find proper description how to setup (and setting on production server would be a bit complicated because of restricted access). I there any other way to reach the same cache from different webapps?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/547863#547863]
Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 10 months
[JBoss Cache] - Problem starting JbossCache in a cluster with nodes on different machines
by rajsoni
rajsoni [http://community.jboss.org/people/rajsoni] created the discussion
"Problem starting JbossCache in a cluster with nodes on different machines"
To view the discussion, visit: http://community.jboss.org/message/547861#547861
--------------------------------------------------------------
Hello Everyone!
Am trying to use the Jboss cache outside the Jboss container(As standalone Java program).
In my Java code,I just create and start the cache as:
CacheFactory factory = new DefaultCacheFactory();
Cache cache = factory.createCache("/usr/local/jbosscache/config-samples/test_total-replication.xml", false);
The configuration file test_total-replication.xml is as follows:
***********************************************************************************************************************
<?xml version="1.0" encoding="UTF-8"?>
<jbosscache xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.2">
<!-- Configure the TransactionManager -->
<transaction transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"/>
<clustering mode="replication" clusterName="testcluster">
<!-- JGroups protocol stack properties. -->
<jgroupsConfig>
<UDP discard_incompatible_packets="true" enable_bundling="false" enable_diagnostics="false" ip_ttl="2"
loopback="true" max_bundle_size="64000" max_bundle_timeout="30" mcast_addr="228.10.10.10"
bind_addr="10.9.10.164" mcast_port="45588" mcast_recv_buf_size="25000000" mcast_send_buf_size="640000"
oob_thread_pool.enabled="true" oob_thread_pool.keep_alive_time="10000" oob_thread_pool.max_threads="4"
oob_thread_pool.min_threads="1" oob_thread_pool.queue_enabled="true" oob_thread_pool.queue_max_size="10"
oob_thread_pool.rejection_policy="Run" thread_naming_pattern="pl" thread_pool.enabled="true"
thread_pool.keep_alive_time="30000" thread_pool.max_threads="25" thread_pool.min_threads="1"
thread_pool.queue_enabled="true" thread_pool.queue_max_size="10" thread_pool.rejection_policy="Run"
tos="8" ucast_recv_buf_size="20000000" ucast_send_buf_size="640000" use_concurrent_stack="true"
use_incoming_packet_handler="true"/>
<PING num_initial_members="3" timeout="2000"/>
<MERGE2 max_interval="30000" min_interval="10000"/>
<FD_SOCK/>
<FD max_tries="5" shun="true" timeout="10000"/>
<VERIFY_SUSPECT timeout="1500"/>
<pbcast.NAKACK discard_delivered_msgs="true" gc_lag="0" retransmit_timeout="300,600,1200,2400,4800"
use_mcast_xmit="false"/>
<UNICAST timeout="300,600,1200,2400,3600"/>
<pbcast.STABLE desired_avg_gossip="50000" max_bytes="400000" stability_delay="1000"/>
<pbcast.GMS join_timeout="5000" print_local_addr="true" shun="false" view_ack_collection_timeout="5000"
view_bundling="true"/>
<FRAG2 frag_size="60000"/>
<pbcast.STREAMING_STATE_TRANSFER/>
<pbcast.FLUSH timeout="0"/>
</jgroupsConfig>
<sync />
<!-- Alternatively, to use async replication, comment out the element above and uncomment the element below. -->
<!-- <async /> -->
</clustering>
</jbosscache>
********************************************************************************************************************************************************
Then in another Java program(node2) I do the same thing.
I see that if both my nodes are started on the same physical machine,then the nodes can see each other and join the cluster fine.If a node is started on a different physical machine,it starts fine but can not see the cluster(even though the cluster name is same).
We are using the 2.8.1 GA jgroups.jar and jboss cache is 3.2.5.
If I use the bind_addr attribute in UDP above to specify the respective machine names,then the two nodes come up fine on Machine1 but the third node can not be started on machine2.The machine1 in this case identifies machine2 node in this case though.
PS : With an older version of jgroups.jar,(2.6) the nodes were coming up fine on two separate machines(with bind_addr attribute specified in UDP configuration) and were able to see each other in cluster but I needed to upgrade the jgroups.jar due to issues with the third node in that case as mentioned in the link below,there was a fix in version 2.7 of jgroups.jar for that:
https://jira.jboss.org/browse/JGRP-845 https://jira.jboss.org/browse/JGRP-845
Have been struggling with this for quite some time now,please help if you know anything about this problem.
thanks!!!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/547861#547861]
Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 10 months
Re: [jboss-user] [EJB 3.0 Development] - Looking up no-interface views
by jaikiran pai
jaikiran pai [http://community.jboss.org/people/jaikiran] replied to the discussion
"Looking up no-interface views"
To view the discussion, visit: http://community.jboss.org/message/547855#547855
--------------------------------------------------------------
Hi Marius,
> Marius Bogoevici wrote:
>
> My only concern is the functionality gap between Weld-int and EJB3.1 in JBAS - i.e. developers can create no-interface views but then they cannot inject them, which gives way to the perception that "EJB injection doesn't work in CDI". If we can close the gap by M4, it would be great - so that's the main reason why this would be a "very good thing to have".
Yes, that would lead to obvious user deployment issues. And having that working would be certainly be a very good thing. Given the current priorities for EJB3.1 with AS 6.0 M4, I am not really sure when I'll be able to look into this, but I promise to spend time on this whenever I get some.
> Marius Bogoevici wrote:
>
> Btw, how do you plan on dealing with this? Supply the bean class as the "interface" of the EJB reference ?
>
Yes, that's the plan right now.
I'll update this thread once I am something ready around this.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/547855#547855]
Start a new discussion in EJB 3.0 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 10 months