[Javassist Users] - Stack trace
by sacauskis
I'm using javassist 3.3 with jms 1.4.5GA and jboos4.2.3ga. I'm running a simple example program to use queues in JMS and I get the following stack trace: It that it's missing a constructor.
Exception in thread "main" java.lang.NoSuchMethodError: javassist.scopedpool.ScopedClassPool.(Ljava/lang/ClassLoader;Ljavassist/ClassPool;Ljavassist/scopedpool/ScopedClassPoolRepository;Z)V
at org.jboss.aop.classpool.AOPClassPool.(AOPClassPool.java:66)
at org.jboss.aop.classpool.AOPClassPool.(AOPClassPool.java:56)
at org.jboss.aop.classpool.AOPClassPoolFactory.create(AOPClassPoolFactory.java:40)
at javassist.scopedpool.ScopedClassPoolRepositoryImpl.createScopedClassPool(ScopedClassPoolRepositoryImpl.java:99)
at javassist.scopedpool.ScopedClassPoolRepositoryImpl.registerClassLoader(ScopedClassPoolRepositoryImpl.java:125)
at org.jboss.aop.classpool.AOPClassPoolRepository.registerClassLoader(AOPClassPoolRepository.java:129)
at org.jboss.aop.AspectManager.registerClassLoader(AspectManager.java:657)
at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:270)
at org.jboss.aop.AspectManager.initialiseClassAdvisor(AspectManager.java:591)
at org.jboss.aop.AspectManager.getAdvisor(AspectManager.java:579)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.(ClientConnectionFactoryDelegate.java)
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
at java.lang.reflect.Field.getLong(Field.java:528)
at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1614)
at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)
at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:425)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.(ObjectStreamClass.java:413)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310)
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:547)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at java.rmi.MarshalledObject.get(MarshalledObject.java:142)
at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:710)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.gdit.listener.JMSExample.testMessage(JMSExample.java:35)
at com.gdit.listener.JMSExample.main(JMSExample.java:20)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267113#4267113
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267113
14 years, 11 months
[jBPM Users] - How does one create new instance with process variables thro
by schechtere
I'm trying to use Rest interface to create new instance. It's working, but Its not assigning process variables to the new instance.
Here's the URL to view an instance created through the console (rather than through a direct Rest call), and the data it returns:
http://localhost:8080/gwt-console-server/rs/process/instance/VacationRequ...
{dataset ref="VacationRequest.10023"}
{data key="Done" javaType="java.lang.String"}
{value xsi:type="xs:string">Submit</value}
{/data}
{data key="number_of_days" javaType="java.lang.String"}
{value xsi:type="xs:string"}5{/value}
{/data}
{data key="employee_name" javaType="java.lang.String"}
{value xsi:type="xs:string"}Hank{/value}
{/data}
{/dataset}
And here's the entire HTML member I'm using to create a new process:
{form method='post' enctype="multipart/form-data" action="http://localhost:8080/gwt-console-server/rs/process/definition/VacationRe..."}
{p}Days: {input type="text" name='number_of_days' id='number_of_days' /}
{p}Name: {input type="text" name='employee_name' id='employee_name' /}
{p}
{/form}
When I submit this form, with values entered, I am redirected to
http://localhost:8080/gwt-console-server/rs/process/definition/VacationRe...
And see data:
{
"id": "VacationRequest.90046",
"definitionId": "VacationRequest-1",
"startDate": "2009-11-23 11:24:13",
"suspended": false,
"rootToken": {
"id": "VacationRequest.90046",
"currentNodeName": "verify_request",
"children": [],
"availableSignals": [],
"canBeSignaled": true
}
}
Finally, when I look at the new instance using
http://localhost:8080/gwt-console-server/rs/process/instance/VacationRequ...
I see
{dataset ref="VacationRequest.90046"/}
Any insights on why I'm not seeing the number_of_days and employee_name process variables?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267099#4267099
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267099
14 years, 11 months
[JBoss Messaging Users] - Exception running queue example
by sacauskis
When I try running the queue example I get the following exception
F:\jboss-messaging-1.4.5.GA\examples\queue>ant
Buildfile: build.xml
identify:
[echo] ####################################################################
#######
[echo] # Running the QUEUE example
#
[echo] ####################################################################
#######
[echo] The queue: testQueue
[echo] The client jar: ../..//jboss-messaging-client.jar
sanity-check:
init:
compile:
run:
[java] Queue /queue/testQueue exists
[java] org.jboss.jms.exception.MessagingJMSException: Failed to invoke
[java] at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable
(DelegateSupport.java:271)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate
.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionD
elegate$aop(ClientConnectionFactoryDelegate.java:198)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate
$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactor
yDelegate$createConnectionDelegate_N3019492359065420858.java)
[java] at org.jboss.jms.client.container.StateCreationAspect.handleCrea
teConnectionDelegate(StateCreationAspect.java:80)
[java] at org.jboss.aop.advice.org.jboss.jms.client.container.StateCrea
tionAspect0.invoke(StateCreationAspect0.java)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate
$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactor
yDelegate$createConnectionDelegate_N3019492359065420858.java)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate
.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
[java] at org.jboss.jms.client.JBossConnectionFactory.createConnectionI
nternal(JBossConnectionFactory.java:205)
[java] at org.jboss.jms.client.JBossConnectionFactory.createConnection(
JBossConnectionFactory.java:87)
[java] at org.jboss.jms.client.JBossConnectionFactory.createConnection(
JBossConnectionFactory.java:82)
[java] at org.jboss.example.jms.queue.QueueExample.example(QueueExample
.java:72)
[java] at org.jboss.example.jms.common.ExampleSupport.run(ExampleSuppor
t.java:148)
[java] at org.jboss.example.jms.queue.QueueExample.main(QueueExample.ja
va:134)
[java] Caused by: java.lang.NoSuchMethodError: org.jboss.remoting.Client.co
nnect(Lorg/jboss/remoting/ConnectionListener;Ljava/util/Map;)V
[java]
[java] at org.jboss.jms.client.remoting.JMSRemotingConnection$1.run(JMS
RemotingConnection.java:374)
[java] Please verify if you have access to the server. If you are using JBo
ssEAP maybe you don't have security access
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMS
RemotingConnection.java:368)
[java] at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate
.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionD
elegate$aop(ClientConnectionFactoryDelegate.java:165)
[java] ... 11 more
[java]
[java] #####################
[java] ### FAILURE! ###
[java] #####################
BUILD FAILED
F:\jboss-messaging-1.4.5.GA\examples\queue\build.xml:79: Java returned: 1
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267096#4267096
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267096
14 years, 11 months
[Clustering] - Re: Forcing a certain node to become master
by FrankTheTank
Supposing I have to make the modifications myself:
* Use a LoadBalancer like FirstAvailableIdenticalAllProxies but with a 'always use first one' pattern and have the cluster give me the targets in the correct order. (i.e. master first)
setting my new class in the cluster-service.xml
(though the client will need a copy of the class as well)
* HAPartitionImpl.viewAccepted() is looks like the central place where the logic of the cluster view is kept, updated and events sent out.
Though I still need to figure out how I might be able to change this.
Q: is there a config xml somewhere I can use to set this?
I think it would be possible to just sort the view by a certain logic, though I still have to figure out how to share this info on the cluster (prob. something with JGroups.
* anything else I would have to watch out for?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267092#4267092
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267092
14 years, 11 months
[JBoss Messaging Users] - Exception DynamicAOPStrateg
by sacauskis
I get the following exception when I try to run a simple JMS client example. I've googled various phrases in attempt to find required jar files to no avail. I currently have the following in my environment:
F:\jboss-messaging-1.4.5.GA\jboss-messaging.jar
F:\jboss-4.2.3.GA\client\jboss-j2ee.jar
F:\jboss-4.2.3.GA\client\jbossall-client.jar
F:\jboss-4.2.3.GA\client\jboss-client.jar
F:\javassist-3.3\javassist.jar
F:\jboss-4.2.3.GA\client\jboss-ejb3-client.jar
F:\jboss-4.2.3.GA\client\jboss-aop-jdk50-client.jar
F:\jboss-4.2.3.GA\client\jboss-aspect-jdk50-client.jar
What are the others that I need and where can I find them?
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/aop/DynamicAOPStrategy
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.(ClientConnectionFactoryDelegate.java)
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
at java.lang.reflect.Field.getLong(Field.java:528)
at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1614)
at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)
at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:425)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.(ObjectStreamClass.java:413)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310)
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:547)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at java.rmi.MarshalledObject.get(MarshalledObject.java:142)
at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:710)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.gdit.listener.JMSExample.testMessage(JMSExample.java:35)
at com.gdit.listener.JMSExample.main(JMSExample.java:20)
Caused by: java.lang.ClassNotFoundException: org.jboss.aop.DynamicAOPStrategy
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 30 more
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267091#4267091
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267091
14 years, 11 months