[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Undeploying multiple wars inside an ear causes NameAlrea

2009-01-07 Thread chip_schoch
Has anyone any idea what the fix is to this?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200208#4200208

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200208
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Undeploying multiple wars inside an ear causes NameAlrea

2009-01-07 Thread chip_schoch
Has anyone any idea what the fix is to this?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200207#4200207

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200207
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: [4.2.2] NameAlreadyBoundException on deploy when binding

2009-01-07 Thread chip_schoch
Did you ever get this solved.  This is happening to me except I have 1 ejb jar 
and 3 wars and I get this when the second war tries to start.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4200190#4200190

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4200190
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - PropertyAccessException trying to deploy ProcessDefinition

2008-12-22 Thread chip_schoch
JBossAS 4.2.2 JBM 3.3.0.GA

I am trying to deploy a ProcessDefinition from within my code and I get a 
PropertyAccessException.

ProcessDefinition processDefinition = 
ProcessDefinition.parseParZipInputStream (zis);
  | jbpmContext.deployProcessDefinition (processDefinition);

I get:


 org.hibernate.PropertyAccessException: could not get a field value by 
reflection getter of org.jbpm.graph.def.ProcessDefinition.events
  | at 
org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(DirectPropertyAccessor.java:58)
  | at 
org.hibernate.tuple.entity.AbstractEntityTuplizer.getPropertyValue(AbstractEntityTuplizer.java:300)
  | at 
org.hibernate.persister.entity.AbstractEntityPersister.getPropertyValue(AbstractEntityPersister.java:3609)
  | at org.hibernate.engine.Cascade.cascade(Cascade.java:153)
  | at 
org.hibernate.event.def.AbstractSaveEventListener.cascadeBeforeSave(AbstractSaveEventListener.java:454)
  | at 
org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:288)
  | at 
org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:204)
  | at 
org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:130)
  | at 
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:210)
  | at 
org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:56)
  | at 
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:195)
  | at 
org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:50)
  | at 
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
  | at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:562)
  | at org.hibernate.impl.SessionImpl.save(SessionImpl.java:550)
  | at org.hibernate.impl.SessionImpl.save(SessionImpl.java:546)
  | at 
org.jbpm.db.GraphSession.deployProcessDefinition(GraphSession.java:77)
  | at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)
  | at 
com.eLynx.Controller.ProcessController.loadDefinition(ProcessController.java:230)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at com.eLynx.Dispatch.XmlDispatcher.dispatch(XmlDispatcher.java:236)
  | at com.eLynx.Dispatch.XmlDispatcher.dispatch(XmlDispatcher.java:120)
  | at com.eLynx.Servlet.XmlWebappServlet.doPost(XmlWebappServlet.java:118)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
com.eLynx.Filter.ELynxRedirectFilter.doFilter(ELynxRedirectFilter.java:85)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  | at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
  | at 
org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:419)
  | at 
org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:378)
  | at 
o

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Connection Pool Question JBoss 4.2.x

2008-12-19 Thread chip_schoch
Thanks.  This looks pretty interesting.  However, we are trying to track down 
an issue where we are getting too many connections opened.  We want to log when 
gets and puts to the connection pool happen.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197718#4197718

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197718
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Connection Pool Question JBoss 4.2.x

2008-12-19 Thread chip_schoch
I would like to implement the connection pool interface to wrap the current 
connection pool implementation in order get better logging.  This is driven by 
deficiencies in the DBMS (Sybase) auditing features.  Can anyone point me to 
where I can find information on where to start.  For instance, where is the 
connection manager MBean deployment configured, etc;?

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197672#4197672

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197672
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Cannot do lookup from client program

2008-11-22 Thread chip_schoch
JBossAS 4.2.2

I have written a JUnit test program that I want to post a message to a JMS 
queue.  I am attempting to do a JNDI lookup to obtain the connection factory 
and I get the following exception.

java.lang.NoClassDefFoundError: org/jboss/aop/classpool/AOPClassPoolRepository
  | at org.jboss.aop.AspectManager$2.run(AspectManager.java:277)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at org.jboss.aop.AspectManager.instance(AspectManager.java:262)
  | at org.jboss.aop.AspectManager.instance(AspectManager.java:255)
  | at 
org.jboss.jms.client.delegate.ClientClusteredConnectionFactoryDelegate.(ClientClusteredConnectionFactoryDelegate.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:917)
  | at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
  | at java.lang.reflect.Field.getLong(Field.java:527)
  | at 
java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1586)
  | at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)
  | at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:408)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at java.io.ObjectStreamClass.(ObjectStreamClass.java:400)
  | at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:297)
  | at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:531)
  | at 
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
  | at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
  | at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
  | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
  | at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
  | at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
  | at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
  | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
  | at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
  | at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
  | 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:351)
  | at com.eLynx.Test.Utilities.JMSQueuer.(JMSQueuer.java:68)
  | at 
com.eLynx.Test.JbpmEventTest.test_1_queueEmcitStatusEvent(JbpmEventTest.java:91)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
  | at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
  | at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
  | at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
  | at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
  | at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
  | at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
  | at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
  | at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
  | at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
  | at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
  | at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
  | at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
  | at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
  | at org.junit.runners.Suite.runChild(Suite.java:115)
  | at org.junit.runners.Suite.runChild(Suite.java:23)
  | at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
  | at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
  | at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
  | at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
  | at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31

[jboss-user] [JBoss jBPM] - Re: Combining my hibernate with jbpm

2008-11-21 Thread chip_schoch
Yes, I realize that I can inject my hibernate session into the jbpmContext.  
The question is what is the best way to combine my mappings with jbpm and still 
be able to deploy it as an MBean service.  The jmx HibernateService class does 
not have any apparent way to do that.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191259#4191259

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191259
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Combining my hibernate with jbpm

2008-11-20 Thread chip_schoch
I am currently deploying my hibernate classes in an MBean using 
org.hibernate.jmx.HibernateService.  My Sybase database is not configured with 
distributed transaction management, so I cannot use xa-datasource.  I would 
like to add jbpm to my hibernate service so I can have access to it from all my 
apps and services and have it share the transaction, but it is not clear to me 
what the best way to do that is.

Currently my mappings are in the jboss-service.xml file.  Should I just add the 
jbpm mappings to that file and the jbpnm-jpdl.jar to my .sar?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191050#4191050

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191050
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: One-to-Many mapping issue

2008-10-15 Thread chip_schoch
Dude, you're a genius!  That is what it was.

Thanks alot.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182388#4182388

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4182388
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - One-to-Many mapping issue

2008-10-14 Thread chip_schoch
I have a situation where I have a one-to-many:

Document 1 ---> m DocumentVersion.

The document version has a composite-id.


  | 
  | 
  | 
  |
 
  |
  |   
 
  | 
  |   
  |   
  |
  |   
  | 
  | 
  | 
  |   
  | 

The Document class is a subclass:


  | 
  | 
  | 
  |   
  | 
  |
  |
  |  
  | 
  | 

I have test data where a document has one version.  When I do the load from:

   
  | Document root = (Document) session.load (Document.class, 146L);
  | List versions = root.getDocumentVersions();
  | 

then examine the list in the debugger I see:

  | [null, [EMAIL PROTECTED]

I cannot, for the life of me, figure out why I have that null in the first 
position.  Anyone have any ideas?  Thanks in advance.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182233#4182233

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4182233
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Jboss tools seam views dont work in Ganymede

2008-06-30 Thread chip_schoch
It looks like gfe 3.4.0 changed the package for 
anonymous wrote : org.eclipse.gef.internal.ui.palette.editparts.PaletteEditPart 
to
anonymous wrote :  org.eclipse.gef.ui.palette.editparts.PaletteEditPart.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161569#4161569

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4161569
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP] - Re: Maybe I just don't get it

2008-05-13 Thread chip_schoch
Yeah, I tried that also but it makes no difference.  I also turned on hotSwap 
and that did not make any difference.  There is something fundamental that I am 
just not getting here.

Shouldn't I be able to deploy my interceptor in the .aop file and have it 
intercept?  Is there something else I need to do?  Because I am using 
loadTime/hoitSwap I don't need to run aopc on my classes, correct?

I also got rid of the annotations and changed jboss-aop.xml to:


  | 
  | 
com.eLynx:loader=PackageProcessingService
  | 
  | 
  | 
  | 
  | 
  |   
  |  
  | 
  | 

But that did not make any difference either.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150412#4150412

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150412
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP] - Maybe I just don't get it

2008-05-13 Thread chip_schoch
I have a service that I want to instrument to do some diagnostics.  I thought 
that this presented a good opportunity to come up to speed on AOP.

1.  I created an interceptor class .

@InterceptorDef
  | @Bind (pointcut = "execution(public Boolean 
com.eLynx.Service.PackageProcessing.PackageProcessingMessageHandler->processMessage(..))")
  | public class ProcessMessageInterceptor implements Interceptor
  | {
  | 
  | /**
  |  * Method: getName
  |  *
  |  *
  |  * @return
  |  */
  | 
  | public String getName ()
  | {
  | return "ProcessMessageInterceptor";
  | }
  | 
  | public Object invoke (Invocation invocation) throws Throwable
  | {
  | try
  | {
  | System.out.println ("<<< Entering ProcessMessageInterceptor");
  | return invocation.invokeNext ();
  | }
  | finally
  | {
  | System.out.println (">>> Leaving ProcessMessageInterceptor");
  | }
  | }
  | }

2.  I enabled loadTime weaving and added the pluggable-instrumentor.jar

3.  I scoped my interceptor deployment to the same as the service with the 
method I want to intercept.

  | 
  | 
  | 
com.eLynx:loader=PackageProcessingService
  | 
  | 

4.  I packaged up my interceptor class and -aop.xml file in a jar with .aop 
extension.  The xml file is in a META-INF directory.

5.  I deploy the .aop file and the deployer picks it up.  It logs that it is 
using the class loader I expect.

6.  I invoke the method I want intercepted and noting happens.

The method I want intercepted is:

  | @Override public boolean processMessage (Message aMessage,
  |  MessageReceiver 
aMessageReceiver)
  | {
  |   ...
  |  }

I don't really now what to do now.  Any ideas?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150363#4150363

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150363
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Unable to login to jbpm-console

2008-04-30 Thread chip_schoch
JBoss 4.2.2.GA, Jpdl-3.2.2

I changed the dialect to Sybase and deployed jbpm-console.  I am able to deploy 
processes through the workbench but I cannot login to the jbpm-console.  I 
commented out the identity stuff in the hibernate config and I changed the jaas 
security domain in jboss-web.xml to my own (one that I use for another 
application.  When I attempt to login I get a 403 error.

type Status report
  | 
  | message Access to the requested resource has been denied
  | 
  | description Access to the specified resource (Access to the requested 
resource has been denied) has been forbidden.

Now if I try to login with a bad username I get a bad username message.  When I 
login with a valid username (valid in my domain) I get the access violation.  
Does anyone know where page access is configured?  I looken in 
access.properties and even added my role to it but it did not make any 
difference.  Any ideas?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147928#4147928

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147928
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How is JBPM connected with JBoss Messaging?

2008-04-30 Thread chip_schoch
Without more detail I can only suggest that you create an actionhandler that is 
invoked by processA, which posts a message to your destination.  Also, create 
an MDB that listens on that destination.  That MDB should create the ProcessB 
instance and signal it to start.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147871#4147871

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147871
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Failure instantiating custom ActionHandler

2008-04-21 Thread chip_schoch
I found that I had moved jbpm-jpdl.jar into the server lib dir and also had it 
in my service archive.  The jbpm code tries to load the handler class using the 
same loader that loaded the jbpm lib, which was the root loader, not my 
services loader which was a descendant of that one.  When it did not find it it 
tried to get it from the database.  When I removed the jar from the server lib 
directory then it found my code because the same class loader loaded jbpm that 
loaded mine.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145598#4145598

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145598
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Clustered server preference

2008-04-21 Thread chip_schoch
Thank you Andy and Clebert for taking the time to explain this in detail.  To 
reiterate, what you are saying is that if I need to have multiple consumers 
processing messages from a clustered queue in FIFO order, than I should have 
all my client consumers connect to the same node in the cluster.

I assume this means the MessageSucker will be pulling message from the nodes 
that have no consumers, to the node that has consumers.

Got it.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145596#4145596

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145596
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Failure instantiating custom ActionHandler

2008-04-18 Thread chip_schoch
JBossAs 4.2.2.GA, jpdl 3.2.2

Each time try to run my process it cannot load my action class.  Looking at it 
in the debugger and it is trying to load it from the db.  I included the action 
classes in a jar in the service archiveI deployed, not in the process 
definition.  (Although when I added it to the process definition deployer it 
did not instantiate it either).

I am not how to proceed.  It used to work and now it doesn't and I don't know 
why.

2008-04-18 15:12:40,097 ERROR [org.jbpm.instantiation.Delegation] couldn't load 
delegation class 'com.eLynx.jbpm.handler.MdbNodeHandler'
  | java.lang.ClassNotFoundException: class 
'com.eLynx.jbpm.handler.MdbNodeHandler' could not be found by the process 
classloader
  | at 
org.jbpm.instantiation.ProcessClassLoader.findClass(ProcessClassLoader.java:118)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
  | at org.jbpm.instantiation.Delegation.instantiate(Delegation.java:140)
  | at org.jbpm.instantiation.Delegation.getInstance(Delegation.java:125)
  | at sun.reflect.GeneratedMethodAccessor181.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
  | at 
org.jbpm.instantiation.Delegation_$$_javassist_12.getInstance(Delegation_$$_javassist_12.java)
  | at org.jbpm.graph.def.Action.execute(Action.java:121)
  | at sun.reflect.GeneratedMethodAccessor180.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
  | at 
org.jbpm.graph.def.Action_$$_javassist_69.execute(Action_$$_javassist_69.java)
  | at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264)
  | at org.jbpm.graph.def.Node.execute(Node.java:339)
  | at org.jbpm.graph.def.Node.enter(Node.java:319)
  | at sun.reflect.GeneratedMethodAccessor177.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
  | at 
org.jbpm.graph.def.Node_$$_javassist_55.enter(Node_$$_javassist_55.java)
  | at org.jbpm.graph.def.Transition.take(Transition.java:151)
  | at org.jbpm.graph.def.Node.leave(Node.java:394)
  | at org.jbpm.graph.node.StartState.leave(StartState.java:70)
  | at sun.reflect.GeneratedMethodAccessor174.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
  | at 
org.jbpm.graph.def.Node_$$_javassist_55.leave(Node_$$_javassist_55.java)
  | at org.jbpm.graph.exe.Token.signal(Token.java:195)
  | at org.jbpm.graph.exe.Token.signal(Token.java:140)
  | at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:271)
  | at 
com.eLynx.jbpm.mdb.JbpmProcessBean.beginProcess(JbpmProcessBean.java:111)
  | at 
com.eLynx.jbpm.mdb.JbpmProcessBean.onMessage(JbpmProcessBean.java:269)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
  | at 
org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:495)
  | at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
  | at 
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
  | at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
  | at 
org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:173)
  | at 
org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT.invoke(MessageDrivenTxInterceptorBMT.java:47)
  | at 
org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:116)
  | at 
org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:109)
  | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.

[jboss-user] [JBoss Messaging] - Re: Clustered server preference

2008-04-18 Thread chip_schoch
I certainly appreciate your taking the time to participate in this discussion.  
It seems we have a permanent miscommunication.  I am aware that setting 
DefaultPreserveOrdering will preserve the ordering of the message consumption 
but after numerous tests, some of which the results are posted in this thread, 
this clear that when that is set all the messages from the producer go to only 
one consumer.  My question was how can I make it preserve the order of 
consumption when there are is more than one consumer.  

Refer back to my bank line anecdote.  All the people in the single line 
represent the messages in the queue.  Each teller window represents a consumer. 
 The first person in line goes to the next available teller.  That person may 
successfully conduct their business or they may not.  Irregardless, the 
following person in the line goes to the next available teller.  That is the 
proper function of a queue.  People don't randomly leave the line to race for 
the next available teller.  The head of the queue goes next.  

I don't understand why this concept seems so difficult to communicate.  Either 
JBM can be configured to function like this or it cannot.  Thus far my testing 
has shown it cannot.  If there is a way to configure it so that it can please 
enlighten me.  When I set DefaultPreserveOrdering to true all my messages go to 
one consumer.  To employ my metaphor, all persons in line go to the same teller 
while the other teller sits there and does nothing.  This is not optimal 
behavior.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145151#4145151

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145151
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Clustered server preference

2008-04-17 Thread chip_schoch
>From 4.4.10.1 JMS 1.1 Spec
anonymous wrote : JMS defines that messages sent by a session to a destination 
must be received
  | in the order in which they were sent (see Section 4.4.10.2 ”Order of 
Message
  | Sends,” for a few qualifications). This defines a partial ordering 
constraint on a
  | session’s input message stream.


>From 4.4.10.2 of JMS 1.1. Spec:

anonymous wrote : The only ordering that is visible to receiving clients is the 
order of messages a session sends to a particular destination.
  | 

Bar priority messages etc. this tells me that my consumers should be consuming 
my messages in the order they were produced.

>From the sun jms faq:

anonymous wrote : Note that in order to prevent duplicate delivery of a message 
from a durable subscription or queue, a message that can still be acknowledged 
by a session cannot be redelivered to another message consumer. The message can 
only be redelivered to another message consumer when it can no longer be 
acknowledged by the session that initially received the message.

Nothing to preclude sending the next message in the queue to a different 
consumer before receiving the ack form the first one.

>From 5.8 in the JMS 1.1 Spec 

anonymous wrote : Only QueueReceivers without a
  | message selector will read messages in message producer order
  | 

My test program has one producer that produces messages that are consumed by 2 
consumers.  I use no priority fetch and no message selectors.  Everything I 
read convinces me that the order that the messages are consumed should be the 
order that they were produced.  Now it may be that you cannot guarantee order 
of delivery because if message 1 failed then that would preclude you from being 
able to deliver message 2 until message 1 was finally delivered and 
acknowledged.  But one would think that bar any failures, the order of delivery 
would be the order the messages were received by the queue, not some absolutely 
random order.

The point is academic, however, because the JBM implementation dos not do this.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144956#4144956

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144956

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Clustered server preference

2008-04-17 Thread chip_schoch
anonymous wrote : Remember using queues is point to point so you should only 
have one receiver.

I am assuming that by receiver you mean consumer, in JMS parlance.  If that is 
the case I don't know how you can make this assertion.  The whole point of 
using queues in a load balanced environment is so that you can have a single 
work queue (or virtual single queue as in a clustered queue) and be able to 
scale up your workers to meet the load.  In my case that means bringing more 
hardware on line to process messages in the queue.

If I have completely misunderstood you in this context I apologize.  I have 
been writing business systems that employ queues for a long time and the 
paradigm has always been FIFO behavior, allowing an unlimited number of worker 
processes to pull messages off the queue in the order that they were put on.  
The idea of a queue having only one process that can pull messages off is 
absurd.  Surely I am misunderstanding what you are saying.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144908#4144908

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144908
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Clustered server preference

2008-04-17 Thread chip_schoch
I hate to belabor the point but it seems you are not quite understanding what I 
am after.  Let me try again.

Here is what I see.

My producer is connected to appserver1.  Here is the serverLocatorURI from the 
factory via the debugger:

bisocket://172.17.20.60:4457/?clientLeasePeriod=1&clientMaxPoolSize=200&clientSocketClass=org.jboss.jms.client.remoting.ClientSocketWrapper&dataType=jms&marshaller=org.jboss.jms.wireformat.JMSWireFormat&numberOfCallRetries=1&numberOfRetries=10&pingFrequency=214748364&pingWindowFactor=10&socket.check_connection=false&timeout=0&unmarshaller=org.jboss.jms.wireformat.JMSWireFormat

Consumer 1 is connected to appserver1:
bisocket://172.17.20.60:4457/?clientLeasePeriod=1&clientMaxPoolSize=200&clientSocketClass=org.jboss.jms.client.remoting.ClientSocketWrapper&dataType=jms&marshaller=org.jboss.jms.wireformat.JMSWireFormat&numberOfCallRetries=1&numberOfRetries=10&pingFrequency=214748364&pingWindowFactor=10&socket.check_connection=false&timeout=0&unmarshaller=org.jboss.jms.wireformat.JMSWireFormat
Consumer 2 is connected to appserver2:
bisocket://172.17.20.61:4457/?clientLeasePeriod=1&clientMaxPoolSize=200&clientSocketClass=org.jboss.jms.client.remoting.ClientSocketWrapper&dataType=jms&marshaller=org.jboss.jms.wireformat.JMSWireFormat&numberOfCallRetries=1&numberOfRetries=10&pingFrequency=214748364&pingWindowFactor=10&socket.check_connection=false&timeout=0&unmarshaller=org.jboss.jms.wireformat.JMSWireFormat

All are using this connectionfactory:


  |
  |   jboss.messaging:service=ServerPeer
  |   jboss.messaging:service=Connector,transport=bisocket
  |   jboss.messaging:service=PostOffice
  | 
  |   
  |  
  | /NoLoadBalanceConnectionFactory
  | /XANoLoadBalanceConnectionFactory
  | java:/NoLoadBalanceConnectionFactory
  | java:/XANoLoadBalanceConnectionFactory
  |  
  |   
  |   1 
  |   true 
  |   false
  |   false
  |

Set DefaultPreserveOrdering=true on the servers
   
Post 5 messages:
[2008-04-17 09:18:54,613] INFO  - Queueing message: Test_Message_0 
  | [2008-04-17 09:18:54,660] INFO  - Queueing message: Test_Message_1 
  | [2008-04-17 09:18:54,675] INFO  - Queueing message: Test_Message_2 
  | [2008-04-17 09:18:54,691] INFO  - Queueing message: Test_Message_3 
  | [2008-04-17 09:18:54,722] INFO  - Queueing message: Test_Message_4 
  | [2008-04-17 09:20:39,393] INFO  - Listener_2 received message: 
Test_Message_0 
  | [2008-04-17 09:20:40,440] INFO  - Listener_2 received message: 
Test_Message_1 
  | [2008-04-17 09:20:41,456] INFO  - Listener_2 received message: 
Test_Message_2 
  | [2008-04-17 09:20:42,487] INFO  - Listener_2 received message: 
Test_Message_3 
  | [2008-04-17 09:20:43,519] INFO  - Listener_2 received message: 
Test_Message_4
  | 
  | 
  | I get message ordering but no client load balancing, as expected.  
  | But why is Listener_2 getting the messages and not Listener_1?  I verified 
that the messages were put on appserver1 by stopping before creating the 
consumers and using the jmx-console to see the message count.  I also verified 
that after creating the consumers each appserver had one consumer.
  | 
  | My desired result is that I get message ordering and both listeners consume 
the messages.
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144852#4144852

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144852
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Clustered server preference

2008-04-16 Thread chip_schoch
I certainly appreciate your trying to keep me happy, as that is the prime 
objective.  Perhaps you could speak to my wife about that.  And in all 
seriousness, I do appreciate the time you have spent.

Requiring the producer of the messages to be cognizant of how many nodes are in 
the cluster in order to distribute them round robin is IMHO not a very good 
solution.  Any process producing messages to a clustered queue should not care 
how many nodes are in the queue.

Furthermore, absent any configuration (MsgSelector, priority etc;)  to the 
contrary, messages should get consumed in the order they were produced.  That 
just makes sense.  It's called a Queue.  It should act like a queue.  To have a 
queue, that has multiple consumers, have the messages pulled off it in a 
haphazard order just doesn't make sense to me.  

If I am waiting in line (i.e. the queue for our english friends) for a teller 
at the bank I don't want to see someone (say, the manager) grabbing anyone in 
the line to go to the next available teller.  I would expect that the person 
who has been in line the longest (i.e. the front of the line) gets the next 
available teller.

Now of course if I was at the Movies it would be different.  There, when I go 
to get some snacks there are six registers and six lines and I have to pick the 
line I want.  If I get in the shortest line and then the person in front of me 
has a big order and I end up standing there while the other longer lines go 
faster, well then I get pissed.  I much prefer the single line feeding into all 
six registers so the person who was there first gets serviced first, regardless 
of which register it is.  Get my drift?

:)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144648#4144648

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144648
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Clustered server preference

2008-04-16 Thread chip_schoch
Let me clear up some things.  First, I am not using 1.3.0.  I am using JBoss AS 
4.2.2.ga, JBM1.4.0.SP1, as stated in the intial post.  I simply made the 
mistake of referencing a paragraph in the 1.3 documentation.  My bad.

I have been running numerous tests using the program I included, although I 
found a few bugs that I fixed, and it is clear that the the consumption on a 
distributed queue is not FIFO.  And as I look at the JMS spec I see that FIFO 
is not guaranteed.  One wonders why they use the term MessageQueue instead of 
MessageBag.  So, I will ask my question again.  Is there a way to configure 
JBossMessaging (1.4.0SP1) such that I can get FIFO from a particular 
destination regardless of the number of consumers of that destination?

Finally, my singleton service is a service that monitors a directory on a SAN 
for incoming files and queues a message when a file comes in.  I really don't 
want the service running on multiple nodes monitoring a shared directory.  It 
is not a "singleton cluster".  It is a singleton service that runs in the 
cluster.  

The only reason I am trying to understand this stuff is that we are about ready 
to deploy our new architecture in production (3 linux app servers clustered and 
4 windows app servers running a jms client service) and we are not seeing the 
load balanced across them like we should.  Apparently my misunderstanding of 
how distributed queues work is a major contributing factor.

Here is the last 3 runs of my program with 2 client listeners using:

   
  |   jboss.messaging:service=ServerPeer
  |   jboss.messaging:service=Connector,transport=bisocket
  |   jboss.messaging:service=PostOffice
  | 
  |   
  |  
  | /LoadBalanceConnectionFactory
  | /LoadBalanceConnectionFactory
  | java:/LoadBalanceConnectionFactory
  | java:/LoadBalanceConnectionFactory
  |  
  |   
  | 
  |   1 
  |   true 
  |   false
  |   true
  |
  | 

[2008-04-16 13:44:26,266] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_0 
  | [2008-04-16 13:44:26,313] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_1 
  | [2008-04-16 13:44:26,313] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_2 
  | [2008-04-16 13:44:26,329] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_3 
  | [2008-04-16 13:44:26,344] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_4 
  | [2008-04-16 13:44:26,360] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_5 
  | [2008-04-16 13:44:26,376] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_6 
  | [2008-04-16 13:44:26,391] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_7 
  | [2008-04-16 13:44:26,407] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_8 
  | [2008-04-16 13:44:26,422] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_9 
  | [2008-04-16 13:44:26,438] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_10 
  | [2008-04-16 13:44:26,454] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_11 
  | [2008-04-16 13:44:26,469] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_12 
  | [2008-04-16 13:44:26,485] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_13 
  | [2008-04-16 13:44:26,501] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_14 
  | [2008-04-16 13:44:26,516] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_15 
  | [2008-04-16 13:44:26,532] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_16 
  | [2008-04-16 13:44:26,547] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_17 
  | [2008-04-16 13:44:26,563] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_18 
  | [2008-04-16 13:44:26,579] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_19 
  | [2008-04-16 13:44:26,594] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_20 
  | [2008-04-16 13:44:26,610] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_21 
  | [2008-04-16 13:44:26,626] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_22 
  | [2008-04-16 13:44:26,641] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_23 
  | [2008-04-16 13:44:26,657] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_24 
  | [2008-04-16 13:44:27,016] INFO  - com.eLynx.Utility.test.TestListener - 
Listener_1 received message: Test_Message_0 
  | [2008-04-16 13:44:27,016] INFO  - com.eLynx.Utility.test.TestListener - 
Listener_2 received message: Test_Message_1 
  | [2008-04-16 13:44:28,032] INFO  - com.eLynx.Utility.t

[jboss-user] [JBoss Messaging] - Re: Clustered server preference

2008-04-16 Thread chip_schoch
That was Chapter 3.1 and Chapter 1.2.2 respectively.  Here is the link 
http://www.jboss.org/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.3.0.GA/html/c_overview.html

It looks like it was the 1.3 UserGuide.  I did initially set this stuff up last 
year.  It is only now that I have begun taking a closer look at how the load 
balancing is working.  

To that end I have written a test program based in the distributed queue 
example.  It posts 50 messages to a distributed queue then creates 2 listeners 
and consumes the messages.  I was suprised to see that the message consumption 
was so random.  I would have expected FIFO consumption.  I tried setting 
DefaultPreserveOrdering=true but that caused all the message to be consumed by 
one listener.  Essentially, it defeated load balancing.  Is there a way to get 
FIFO consumption and load balancing?  The Random House Unabridged dictionary 
defines Queue As:

anonymous wrote : 3.Computers. a FIFO-organized sequence of items, as data, 
messages, jobs, or the like, waiting for action.

Below is my test log output.

  | [2008-04-16 11:41:11,249] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_0 
  | [2008-04-16 11:41:11,311] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_1 
  | [2008-04-16 11:41:11,327] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_2 
  | [2008-04-16 11:41:11,343] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_3 
  | [2008-04-16 11:41:11,358] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_4 
  | [2008-04-16 11:41:11,374] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_5 
  | [2008-04-16 11:41:11,390] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_6 
  | [2008-04-16 11:41:11,405] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_7 
  | [2008-04-16 11:41:11,421] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_8 
  | [2008-04-16 11:41:11,436] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_9 
  | [2008-04-16 11:41:11,452] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_10 
  | [2008-04-16 11:41:11,468] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_11 
  | [2008-04-16 11:41:11,483] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_12 
  | [2008-04-16 11:41:11,499] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_13 
  | [2008-04-16 11:41:11,515] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_14 
  | [2008-04-16 11:41:11,530] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_15 
  | [2008-04-16 11:41:11,546] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_16 
  | [2008-04-16 11:41:11,561] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_17 
  | [2008-04-16 11:41:11,577] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_18 
  | [2008-04-16 11:41:11,593] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_19 
  | [2008-04-16 11:41:11,608] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_20 
  | [2008-04-16 11:41:11,624] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_21 
  | [2008-04-16 11:41:11,655] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_22 
  | [2008-04-16 11:41:11,671] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_23 
  | [2008-04-16 11:41:11,686] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_24 
  | [2008-04-16 11:41:11,702] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_25 
  | [2008-04-16 11:41:11,718] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_26 
  | [2008-04-16 11:41:11,733] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_27 
  | [2008-04-16 11:41:11,749] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_28 
  | [2008-04-16 11:41:11,765] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_29 
  | [2008-04-16 11:41:11,780] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_30 
  | [2008-04-16 11:41:11,796] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_31 
  | [2008-04-16 11:41:11,811] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_32 
  | [2008-04-16 11:41:11,811] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_33 
  | [2008-04-16 11:41:11,843] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_34 
  | [2008-04-16 11:41:11,843] INFO  - com.eLynx.Utility.test.JBMTest - Queueing 
message: Test_Message_35 
  | [2008-04-16 11:41:11,874] INFO  - com.eLynx.Utility.

[jboss-user] [JBoss Messaging] - Re: Clustered server preference

2008-04-16 Thread chip_schoch
By the way.

>From the JBoss Messaging Documentation 3.1 
anonymous wrote : A JMS client uses HA JNDI to lookup the connection factory. 
When creating connections using that connection factory a client side load 
balancing policy will automatically chose a node to connect to.

>From the Clustering Guide 1.2.2   

anonymous wrote : The JNDI client needs to be aware of the HA-JNDI cluster. You 
can pass a list of JNDI servers (i.e., the nodes in the HA-JNDI cluster) to the 
java.naming.provider.url JNDI setting in the jndi.properties file. Each server 
node is identified by its IP address and the JNDI port number. The server nodes 
are separated by commas (see Section 1.2.3, JBoss configuration on how to 
configure the servers and ports).
  | java.naming.provider.url=server1:1100,server2:1100,server3:1100,server4:1100


My use of the JMSProviderLoader in my client

 // Get local InitialContext and look up the ProviderLoader
  | InitialContext ic   = ConnectionManager.getInitialContext ();
  | JNDIProviderAdapter adapter = (JNDIProviderAdapter) ic.lookup 
("ConversionJMSProvider");
  | 
  | // Get the properties that we need for our target context and
  | // then create the target InitialContext
  | ic= new InitialContext (adapter.getProperties ());
  | 
  | // Use the queue factory ref name from the JMSProviderLoader for the lookup 

  | ConnectionFactory factory = (ConnectionFactory) ic.lookup 
(adapter.getQueueFactoryRef ());
  | 

Doing it this way essentially dereferences which connection factory I use based 
on the environment my service is running in.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144497#4144497

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144497
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Clustered server preference

2008-04-16 Thread chip_schoch
Clearly I have been having some serious misunderstandings on how this works.

1.  My clients use the JCA adapter because we develop on windows machines that 
can run a windows only conversion library, so the "ConversionJMSProvider" is 
defined to connect to localhost on our machines and to connect to a cluster on 
the deployment environment.  Our deployment environment has only the conversion 
service running on a windows JBoss, which connects to a cluster of linux JBoss 
AS.  I thought this was the way to do that.

2. anonymous wrote : 
java.naming.provider.url=jnp://devapp2.qa.cin.int:1100,jnp://devapp1.qa.cin.int:1100

I was under the (mis) understanding that this was how you specified the servers 
in the cluster.  We were initially having issues with discovery.  I think that 
it was related to firewall settings or something. 

3.  I (mistakenly, apparently) thought that a producer that uses the 
ClusteredConnectionFactory would round robin the messages as they were posted.  
We have a service that runs as a singleton that produces messages and we want 
them to be round-robined to the consumers running on each node.  It seemed 
reasonable to me.

After running a series of tests I see that virtually all of my assumptions were 
ass-backward.  Time to rethink my strategy.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144479#4144479

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144479
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Clustered server preference

2008-04-15 Thread chip_schoch
JBoss AS 4.2.2.ga, JBM1.4.0.SP1.

I several clients that connect to a 2 machine cluster (devapp1 and devapp2).  
Below is the JMSProvider I use.  On one machine I have the naming provider with 
devapp1 first in the list.  On the second I have devapp2, as shown here.  The 
second machine always connects to devapp1 unless I completely remove the 
reference to devapp1 from the list.  Then it it will connect to devapp2.  I 
thought it was supposed to try to connect in the order that they are listed in 
java.naming.provider.url.  Is this an incorrect assumption?  

I am able to determine which machine it has connection by looking at the number 
of consumers the app servers have connected to them.

  
  | ConversionJMSProvider
  | 
  |   org.jboss.jms.jndi.JNDIProviderAdapter
  | 
  | 
  | ClusteredXAConnectionFactory
  | ClusteredXAConnectionFactory
  | ClusteredXAConnectionFactory 
  | 
  | 
  |java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  |java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  |
java.naming.provider.url=jnp://devapp2.qa.cin.int:1100,jnp://devapp1.qa.cin.int:1100
 
  |jnp.disableDiscovery=true
  |jnp.partitionName=dev.application
  |jnp.discoveryGroup=228.1.2.4
  |jnp.discoveryPort=1102
  |jnp.discoveryTTL=16
  |jnp.discoveryTimeout=5000
  |jnp.maxRetries=1
  | 
  |   



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144247#4144247

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144247
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Messaging gets hung up getting sockey

2008-04-02 Thread chip_schoch
Isn't what I posted a stack trace?  We have been looking into this and it seems 
that there is a firewall that is between the client and the server that drops 
connections that are inactive for a certain period of time.

I am not sure what other stack trace you are asking for.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141112#4141112

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141112
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Messaging gets hung up getting sockey

2008-03-31 Thread chip_schoch
JBossAS 4.2.2.GA, JBM 1.4.0.SP1 with remoting 2.2.2.SP5

We have several environments set up with 2 linux severs clustered and two 
windows servers that run a jms client program.  In one environment we are 
consistently getting the system to hang when running a load test.  Below is a 
stack trace.  Once it gets hung up wating for a thread nothing else process 
messages because of the locks being held.  Any ideas about what this means?

Thread: Thread-126 : priority:5, demon:true, threadId:325, 
threadState:TIMED_WAITING, lockName:[EMAIL PROTECTED]
  | 
  | java.lang.Object.wait(Native Method)
  | 
org.jboss.remoting.transport.bisocket.BisocketClientInvoker.createSocket(BisocketClientInvoker.java:473)
  | 
org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:801)
  | 
org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:551)
  | 
org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:418)
  | 
org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
  | org.jboss.remoting.Client.invoke(Client.java:1634)
  | org.jboss.remoting.Client.invoke(Client.java:548)
  | org.jboss.remoting.Client.invokeOneway(Client.java:598)
  | 
org.jboss.remoting.callback.ServerInvokerCallbackHandler.handleCallback(ServerInvokerCallbackHandler.java:826)
  | 
org.jboss.remoting.callback.ServerInvokerCallbackHandler.handleCallbackOneway(ServerInvokerCallbackHandler.java:697)
  | 
org.jboss.jms.server.endpoint.ServerSessionEndpoint.performDelivery(ServerSessionEndpoint.java:1490)
  | 
org.jboss.jms.server.endpoint.ServerSessionEndpoint.handleDelivery(ServerSessionEndpoint.java:1375)
  | 
org.jboss.jms.server.endpoint.ServerConsumerEndpoint.handle(ServerConsumerEndpoint.java:307)
  | 
org.jboss.messaging.core.impl.RoundRobinDistributor.handle(RoundRobinDistributor.java:119)
  | 
org.jboss.messaging.core.impl.MessagingQueue$DistributorWrapper.handle(MessagingQueue.java:582)
  | 
org.jboss.messaging.core.impl.ClusterRoundRobinDistributor.handle(ClusterRoundRobinDistributor.java:79)
  | 
org.jboss.messaging.core.impl.ChannelSupport.deliverInternal(ChannelSupport.java:476)
  | 
org.jboss.messaging.core.impl.MessagingQueue.deliverInternal(MessagingQueue.java:505)
  | 
org.jboss.messaging.core.impl.ChannelSupport.handleInternal(ChannelSupport.java:628)
  | 
org.jboss.messaging.core.impl.ChannelSupport.handle(ChannelSupport.java:144)
  | 
org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.routeInternal(MessagingPostOffice.java:2195)
  | 
org.jboss.messaging.core.impl.postoffice.MessagingPostOffice.route(MessagingPostOffice.java:489)
  | 
org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendMessage(ServerConnectionEndpoint.java:720)
  | 
org.jboss.jms.server.endpoint.ServerSessionEndpoint.send(ServerSessionEndpoint.java:401)
  | 
org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$send$aop(SessionAdvised.java:87)
  | 
org.jboss.jms.server.endpoint.advised.SessionAdvised$send_7280680627620114891.invokeNext(SessionAdvised$send_7280680627620114891.java)
  | 
org.jboss.jms.server.container.SecurityAspect.handleSend(SecurityAspect.java:157)
  | sun.reflect.GeneratedMethodAccessor929.invoke(Unknown Source)
  | 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | java.lang.reflect.Method.invoke(Method.java:585)
  | 
org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121)
  | 
org.jboss.jms.server.endpoint.advised.SessionAdvised$send_7280680627620114891.invokeNext(SessionAdvised$send_7280680627620114891.java)
  | 
org.jboss.jms.server.endpoint.advised.SessionAdvised.send(SessionAdvised.java)
  | 
org.jboss.jms.wireformat.SessionSendRequest.serverInvoke(SessionSendRequest.java:90)
  | 
org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)
  | org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:809)
  | org.jboss.remoting.ServerInvoker$1.run(ServerInvoker.java:1815)
  | 
org.jboss.jms.server.remoting.DirectThreadPool.run(DirectThreadPool.java:63)
  | 
org.jboss.remoting.ServerInvoker.handleOnewayInvocation(ServerInvoker.java:1826)
  | org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:758)
  | 
org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:101)
  | org.jboss.remoting.Client.invoke(Client.java:1634)
  | org.jboss.remoting.Client.invoke(Client.java:548)
  | org.jboss.remoting.Client.invokeOneway(Client.java:598)
  | org.jboss.remoting.Client.invokeOneway(Client.java:786)
  | org.jboss.remoting.Client.invokeOneway(Client.java:776)
  | 
org.jboss.jms.client.delegate.DelegateSupp

[jboss-user] [JBoss Messaging] - Unable to send message

2008-03-03 Thread chip_schoch
JBossAS 4.2.2.GA, JBM 1.4.0.SP3

Sometimes when I start my message processing service and it trys to post a 
message to the queue I get the following, and I don't know what causes it or 
what it means.

javax.jms.IllegalStateException: The object is closed
  | at 
org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:157)
  | at 
org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
  | at 
org.jboss.jms.client.delegate.ClientSessionDelegate$createTextMessage_4391803803118822775.invokeNext(ClientSessionDelegate$createTextMessage_4391803803118822775.java)
  | at 
org.jboss.jms.client.delegate.ClientSessionDelegate.createTextMessage(ClientSessionDelegate.java)
  | at 
org.jboss.jms.client.JBossSession.createTextMessage(JBossSession.java:149)
  | at 
com.eLynx.Messaging.MessageSender.sendXmlRequest(MessageSender.java:480)
  | at com.eLynx.Messaging.XmlMessageSender.post(XmlMessageSender.java:147)
  | at 
com.eLynx.BPM.Process.ProcessManager.initiateProcess(ProcessManager.java:103)
  | at 
com.eLynx.USign.USignPackageHandler.process(USignPackageHandler.java:182)
  | at 
com.eLynx.USign.USignPackageHandler.execute(USignPackageHandler.java:219)
  | at 
com.dev.Router.PackageHandlers.AbstractPackageHandler.processPackageFile0(AbstractPackageHandler.java:1140)
  | at 
com.dev.Router.PackageHandlers.AbstractPackageHandler.processPackageFile(AbstractPackageHandler.java:1036)
  | at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
com.dev.Router.PackageRouter.PackageProcessor.processPackageFile(PackageProcessor.java:544)
  | at 
com.dev.Router.PackageRouter.PackageProcessor.preparePackage(PackageProcessor.java:367)
  | at 
com.dev.Router.PackageRouter.WebPostPoll.process(WebPostPoll.java:385)
  | at 
com.eLynx.Service.PackageProcessing.PackageProcessingMessageHandler.processMessage(PackageProcessingMessageHandler.java:153)
  | at 
com.eLynx.Messaging.MessageReceiverHandler.onMessage(MessageReceiverHandler.java:147)
  | at 
org.jboss.jms.client.container.ClientConsumer.callOnMessage(ClientConsumer.java:157)
  | at 
org.jboss.jms.client.container.ClientConsumer$ListenerRunner.run(ClientConsumer.java:965)
  | at 
EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExecutor.java:89)
  | at java.lang.Thread.run(Thread.java:595)

Ant ideas?

Thanks


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133646#4133646

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133646
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Is there a user guide?

2008-02-26 Thread chip_schoch
I have been using Eclipse 3.1 and the JBossIDE 1.6 for some time now and it has 
been woeking pretty good.  Generally I use the remote debugging to debug my 
JBoss services, instead of running JBoss within Eclipse.

 The 1.6 version has a feature where you set up a deployer so that you can 
right click the archive and selct deploy to...  This feature does not seem to 
be present in the JBoss Tools.  When I go to the Preferences and try to select 
Deployer, under JBoss Tools, I get a dialog that says "The currently displayed 
page contains invalid values".  

Does this feature no longer work?

Is there a definitive guide somewhere that gives a step-by-step explanation of 
how to configure Eclipse to debug JBoss services, including redeploying them?

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132249#4132249

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132249
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Threads not being cleaned up when clustered

2008-02-06 Thread chip_schoch
So, I modified my code to reuse the same jms connection and temporary queue 
within each process that posts messages, and now the thread leakage is gone.

While this change admittedly optimizes the processing, I would still consider 
it as a work around for a bug that does not dispose of the thread created by 
the use of a temporary queue.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127173#4127173

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127173
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Threads not being cleaned up when clustered

2008-02-06 Thread chip_schoch
Deleting the TemporaryQueue has no effect.  The JMS API spec for 
createTemporaryQueue() says:

"Create a temporary queue. It's lifetime will be that of the QueueConnection 
unless deleted earlier."

I create a connection make the call and close the connection so I should not 
need to delete the queue.  That said, I put in code to delete it anyway and it 
makes no difference.  Also, I created a temporary queue then stopped execution 
in my debugger and went to jmx-console.  The JNDIView does not list any 
temporary queues.  Go Figure.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127113#4127113

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127113
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Threads not being cleaned up when clustered

2008-02-05 Thread chip_schoch
Tim,
I emailed a thread dump to [EMAIL PROTECTED]

I have been able to narrow my parameters and get a reproducible environment for 
this issue.

I wrote a webapp program that queues up messages to the clustered queue.  It 
uses the default provider so it is always queueing to its partial queue.  This 
is executed on AppSvr1.

The consumers are connected to AppSvr2, so all messages posted get sucked from 
AppSvr1 to AppSvr2.  In this configuration both servers leak the same number of 
threads, one for each message.

However, when I changed the request message to not specify a temporary queue 
for the return message I get no leakage.  My consumer has a default queue to 
send responses if a response queue is not specified in the message.  All the 
response messages end up on the default response queue.

So to summarize:
  Cluster has 2 JBoss servers AppSrv1 & AppSrv2.
  |   AppSrvr1 posts messages to [partial queue 1] requestQueue.
  |   Messages are sucked over to AppSvr2 [partial queue 2] requestQueue
  |   Consumers consumes from [partial queue 2] requestQueue
  |   
  |   a)  When a temporary response queue is specified, all response
  |messages end up back on AppSvr1, but both servers leak one 
  |thread per message.
  |   
  |   b)  When no response queue is specified then all responses end up on
  |AppSvr2 [partial queue 2] responseQueue (the default) and no 
  |threads are leaked.
  |   
It would appear that the issue is somewhere in the code that deals with the 
temporary queues.
  
I hope this helps to resolve this. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126682#4126682

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126682
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Threads not being cleaned up when clustered

2008-02-01 Thread chip_schoch
Clustered App servers.  JBossAS 4.2.2.GA, JBM 1.4.0SP3
 --
  | |  Appserver1  |  <== ConvServer1
  | |  Appserver2  |  <== ConvServer2
  |  --
  |  
 My configuration is a shown above.  I have 2 linux JBoss servers clustered and 
two windows jboss servers not clustered that act as clients to the clustered 
queues on the app servers.  The conv servers connect using the 
ClusteredXAConnection factory.  When I run a bunch of messages through in this 
configuration the thread count on both appservers continually increases until 
eventually I run out of memory.
 
 When I shut down one of the app servers and perform the same test the thread 
count on the other app server decreases initially then remains steady .  It 
does not increase when I run a bunch of messages through it.
  --
  | |  |  <== ConvServer1
  | |  Appserver2  |  <== ConvServer2
  |  --
  |DevApp1 ThreadCount  DevApp2 
ThreadCount
  | Cluster with queuing started on devapp2 
  | Start  158  200
  | After 4 usign packages 167  206
  | After 4 usign packages 173  208
  | After 4 usign packages 179  208
  | After hundred events   177  212
  | After 10 WPS packages  178  212
  | After 10 WPS packages  180  212
  | 
  | DevApp2 Only
  | 
  | Before shutting down Devapp1   212
  | After shutting down DevApp1187
  | After 4 usign packages 187
  | After 6 usign packages 187
  | 
  | Restarted with each conv server 
  | connecting to different appserver (no message sucking)
  | 
  | Start155225
  | After 4 usign packages   169228
  | After 4 usign packages   174232
  | After 3 packages one at a time   175235*
  | After 20 uSign packages  187256
  | 
  | 
 
Without belaboring the point, in our system a package causes a series of
messages to be posted to various queues as it moves through the processing 
chain.

The packages called usign require that a conversion be performed by a service
running on the windows (conv) servers.  These are the ones that cause the 
increase
in the thread count.  I am convinced that it is not my code that is leaving the 
threads
around because it only happens when the cluster has more than one server 
running.

* I observed that appserver one processed the message, but the thread count 
increased
  on appserver2 anyway.
  
  
  Here are a couple of the stranded threads from the jmx-console view.
  
  Thread: Thread-1562 : priority:5, demon:true, threadId:4470, 
threadState:WAITING, lockName:[EMAIL PROTECTED]
  | 
  | java.lang.Object.wait(Native Method)
  | java.lang.Object.wait(Object.java:474)
  | EDU.oswego.cs.dl.util.concurrent.LinkedQueue.take(LinkedQueue.java:122)
  | 
EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExecutor.java:83)
  | java.lang.Thread.run(Thread.java:595)
  | 
  | Thread: Thread-1568 : priority:5, demon:false, threadId:4478, 
threadState:WAITING, lockName:[EMAIL PROTECTED]
  | 
  | java.lang.Object.wait(Native Method)
  | java.lang.Object.wait(Object.java:474)
  | EDU.oswego.cs.dl.util.concurrent.LinkedQueue.take(LinkedQueue.java:122)
  | 
EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExecutor.java:83)
  | java.lang.Thread.run(Thread.java:595)
  | 
  | Thread: Thread-1569 : priority:5, demon:true, threadId:4479, 
threadState:WAITING, lockName:[EMAIL PROTECTED]
  | 
  | java.lang.Object.wait(Native Method)
  | java.lang.Object.wait(Object.java:474)
  | EDU.oswego.cs.dl.util.concurrent.LinkedQueue.take(LinkedQueue.java:122)
  | 
EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExecutor.java:83)
  | java.lang.Thread.run(Thread.java:595)
  | 
  | 
  | 
  | 

Has anyone seen anything like this before?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125664#4125664

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125664
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Sybase char(1) causes exception

2008-01-15 Thread chip_schoch
I have several columns that are char(1) in sybase.  If I set then to a space 
the try to fetch I get:


  | java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  | at java.lang.String.charAt(String.java:558)
  | at org.hibernate.type.CharacterType.get(CharacterType.java:29)
  | at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:163)
  | at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:154)
  | at org.hibernate.type.AbstractType.hydrate(AbstractType.java:81)
  | at 
org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2096)
  | at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1380)
  | at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1308)
  | at org.hibernate.loader.Loader.getRow(Loader.java:1206)
  | at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:580)
  | at org.hibernate.loader.Loader.doQuery(Loader.java:701)
  | at 
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
  | at org.hibernate.loader.Loader.doList(Loader.java:2220)
  | at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
  | at org.hibernate.loader.Loader.list(Loader.java:2099)
  | at 
org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94)
  | at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)
  | at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
  | at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:305)
  | at 
com.eLynx.Authentication.CustomerPrincipal.(CustomerPrincipal.java:57)
  | at 
com.eLynx.Authentication.WebappAuthenticationHandler.handle(WebappAuthenticationHandler.java:94)
  | at 
javax.security.auth.login.LoginContext$SecureCallbackHandler$1.run(LoginContext.java:955)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at 
javax.security.auth.login.LoginContext$SecureCallbackHandler.handle(LoginContext.java:951)
  | at 
com.eLynx.Authentication.CustAdminLoginModule.login(CustAdminLoginModule.java:113)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
  | at 
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
  | at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at 
javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
  | at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
  | at 
com.eLynx.Controller.USignAdmin.AuthenticationController.login(AuthenticationController.java:324)
  | at 
com.eLynx.Controller.USignAdmin.AuthenticationController.loginAdminUser(AuthenticationController.java:453)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at com.eLynx.Dispatch.XmlDispatcher.dispatch(XmlDispatcher.java:191)
  | at com.eLynx.Dispatch.XmlDispatcher.dispatch(XmlDispatcher.java:105)
  | at com.eLynx.Servlet.XmlWebappServlet.doPost(XmlWebappServlet.java:108)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
com.eLynx.Filter.ELynxRedirectFilter.doFilter(ELynxRedirectFilter.java:77)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.

[jboss-user] [JBoss Messaging] - Re: Delayed Message Sucking

2007-12-07 Thread chip_schoch
Tim,

Thanks once again for your help.  Using the Temporary Queue cleared up all my 
issues.  It works great now.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111248#4111248

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111248
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Delayed Message Sucking

2007-12-06 Thread chip_schoch

anonymous wrote : 
  | If the messages are on Q2 on L1 the consumer on L1 should receive them all. 
A clustered queue *always* favours local consumers. I wouldn't expect the 
consumer on L2 to receive any of them 

Hmm...  Sometimes it receives all, sometimes some messages.  I have been 
testing by sending 10 messages at a time, 5 are queued to L1-Q1 and 5 are 
queued to L2-Q1.  Each L server has a service that has a local thread pool in 
which each thread sends a message then calls MessageConsumer.receive() on Q2.  
All the response messages are queued to L1-Q2 but only half of them are 
comsumed by the L1 MessageConsumer.receive() threads.  The others get consumed 
by L2-Q2 MessageConsumer.receive().  In the cases when they are not being 
consumed there is no consumers on L1-Q2 but 5 consumers on L2-Q2.  I assumed 
they should be getting sucked over to L2-Q2.  I wonder why they are sometimes.

Could you elaborate on you suggested solution a bit?  When you suggest using a 
clustered temporary queue then aren't I losing my persistence on the response 
message?  Maybe I don't need it?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110989#4110989

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110989
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Delayed Message Sucking

2007-12-06 Thread chip_schoch
 -
  | |   L1 L2 | <-- linux cluster, 2 nodes, with clustered Queues, Q1 and Q2
  |  -
  |   ^^
  |   ||
  |   W1  W2
  | 
  | L == linux JBossAS 4.2.2.GA with JBM 1.4.0.SP1
  | W == Windows JBossAS 4.2.2.GA. Not clustered , running consumer service
  | 
  | 

Identical services running on L1 and L2 each post request messages to a 
clustered queue (Q1).  The thread that posted a message then calls 
MessageConsumer.receive() on a response queue (Q2).  

Both W1 and W2 are connected to L1 using ClusteredConnectionFactory.  
Therefore, all messages posted to L2 are sucked over to L1 and consumed by W1 
and W2.  W1 and W2 post response messages to response queue (Q2) on L1.  The 
MessageConsumer.receive() called by the L1 service receives the response 
messages it is waiting for.  The MessageConsumer.receive() called by the L2 
service never returns.  The response messages that L2 is waiting for are stuck 
on L1-Q2.  Eventually, they are sucked over to L2-Q2 and L2 finally receives 
them.

  

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110977#4110977

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110977
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Delayed Message Sucking

2007-12-06 Thread chip_schoch
One other thing.  My consumer services are running 5-10 user threads each so 
they will process 5-10 messages simultaneously.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110954#4110954

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110954
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Delayed Message Sucking

2007-12-06 Thread chip_schoch
JBossSS 4.2.2.GA, JBM 1.4.0.SP1

Topography:
2 Node linux cluster running JBM. (L1, L2)
2 Unclustered windown JBoss servers with services that consume from linux 
cluster JBM. (W1, W2)

Using ClusteredConnectionFactory definition on W1, W2 such that both machines 
are connecting to partial queue on L1.  Posting messages to clustered (partial) 
queues in round-robin fashion such that all messages posted to partial queue L2 
are sucked to L1 for consumption by W1, W2.

Each message posted contains a correlation id that the consumer puts in a 
response message that is posted to an output queue.

I post 10 messages and I receive 5 responses.  Using a combination of logging 
and eclipse debugger I have determined that the 5 missing responses are stuck 
in a loop on L2 in ClientConsumer.getMessage().  Meanwhile, the 5 response 
messages are sitting in the output queue on L1.  (verified by jmx-console). 
Posting another message causes all 5 messages to then get sucked from L1 to L2 
and the processing completes.  Also, after some indeterminate amount of time, 
without posting additional messages, the messages seem to be eventually sucked 
over from L1 to L2 and processing completes.

Is there any way to stop these messages from getting hung up on L1.  Is there 
tuning for the MessageSucker.

Thanks,

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110943#4110943

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110943
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Message stranded in cluster

2007-11-20 Thread chip_schoch
Apparently I started one of my nodes the first time before I set the clustered 
flag in the queue definition because when I looked at the jbm_postoffice 
records one node had clustered set to false.  By deleting the records then 
restarting the queue is set to clustered and it appears that everything is 
working as expected.

I guess changing that flag after a queue has been established does not have any 
effect.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106521#4106521

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106521
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Message stranded in cluster

2007-11-20 Thread chip_schoch
Ok, I finally got everything up and running on JBAS 4.2.2.GA and JBM 1.4.0.SP1. 
 

I use a ClusteredConnectionFactory to push messages to a clustered queue, and 
it is round-robining them to the partial queues as expected.  

Each of the services consuming these messages pushes another message on to 
another clustered queue using XAConnectionFactory, which results in each node 
pushing the message to its own partial queue.  

The consumers of these messages are non-clustered windows servers that are both 
connected to one of the nodes in the cluster using the 
ClusteredConnectionFactory available through ha-jndi.  

I expected the messagesucker to move messages from the node with no consumer to 
the node with consumers but it is not.  Is this because those message were 
pushed using the XAConnectionFactory instead of the ClusteredConnectionFactory?

Thanks



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106420#4106420

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106420
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Message stranded in cluster

2007-11-15 Thread chip_schoch
We use the windows servers to run some conversion services that use third party 
libs that are only available on windows.  As the load increases we will be 
adding more conversion instances, so it really will be assymetrical.  

It seems a bit self defeating if we need to manually manage which linux server 
in the cluster a windows converter connects to.  It seems that we would be 
better off running jms as an ha-singleton in the cluster to avoid the 
unnecessary redistribution you describe. 

I will try the latest release.  As for the other questions.

1.  Yes the queues have the 'Clustered' attribute set to true.
2.  The clusters are seeing each other.

I actually have a singleton service that is running on one of the linux servers 
that queues messages to a clustered queue.  It uses the 
ClustereXAConnectionFactory and appears to be round-robining the messages it 
queues, which would indicate that the cluster is working correctly.  It is the 
consumers that are only getting messages off one of the partial queues.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105153#4105153

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105153
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Message stranded in cluster

2007-11-13 Thread chip_schoch
Thanks Tim.  I changed to XAConnectionFactory for the services that consume 
from the local node and that works fine.  However, my cluster is running under 
RedHat but I have two non clustered JBoss servers running under windows.  These 
are each running a service that is a consumer of messages that are posted to 
the clustered queue running under redhat.  They are connecting use the 
following:


  
  | ConversionJMSProvider
  | 
  |   org.jboss.jms.jndi.JNDIProviderAdapter
  | 
  | 
  | ClusteredXAConnectionFactory
  | ClusteredXAConnectionFactory
  | ClusteredXAConnectionFactory 
  | 
  | 
  |java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  |java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  |java.naming.provider.url=172.17.20.60:1100, 172.17.20.61:1100   
  |jnp.disableDiscovery=false
  |jnp.partitionName=dev.application
  |jnp.discoveryGroup=228.1.2.4
  |jnp.discoveryPort=1102
  |jnp.discoveryTTL=16
  |jnp.discoveryTimeout=5000
  |jnp.maxRetries=1
  | 
  |   

It appears that both of these windows servers is connecting to the first 
provider in the list.  Messages that are posted to the second provider (i.e. 
the partial queue on server 172.17.20.61)  are never getting consumed.  

I thought that clients of the clustered queue could connect to whichever node 
they found first and they would get messages from any partial queue.  Is this 
incorrect?

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104319#4104319

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104319
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Message stranded in cluster

2007-11-13 Thread chip_schoch
JBoss As 4.2.1, JBM 1.4.0.CR2.

I have a two node cluster with distributed a queue.  Each node is running a 
service that is a consumer of the queue.   I have client applications that 
connect to the clustered queue and post messages.  The messages appear to be 
distributed between the [partial] queues on each node, however only the 
messages on one of the nodes are getting consumed.  From my logging I can see 
that the messages that are getting consumed are being consumed by the services 
running on both nodes.  Listing messages from jmx-console shows a bunch of 
unconsumed messages sitting in the queue on one of the nodes.

Is there some configuration that turns on the balancing between nodes.  
Shouldn't they all be getting consumed?  My consumer service uses the following 
to connect to the queue.

  
  | DefaultJMSProvider
  | 
  |   org.jboss.jms.jndi.JNDIProviderAdapter
  | 
  | 
  | ClusteredXAConnectionFactory
  | 
  | ClusteredXAConnectionFactory
  | 
  | ClusteredXAConnectionFactory
  | 
  | 
  |java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  |java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  |java.naming.provider.url=${jboss.bind.address:localhost}:1100
  |jnp.disableDiscovery=false
  |jnp.partitionName=${jboss.partition.name:DefaultPartition}
  |jnp.discoveryGroup=${jboss.partition.udpGroup:230.0.0.4}
  |jnp.discoveryPort=1102
  |jnp.discoveryTTL=16
  |jnp.discoveryTimeout=5000
  |jnp.maxRetries=1
  | 
  |   
  | 



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4104288#4104288

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4104288
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - General clustering question

2007-11-05 Thread chip_schoch
This question was asked of my by a co-worker and I had no answer.

When parameters for a clustered service are modified manually [as through 
jmx-console] on one node, are the modifications supposed to propagate to all 
the nodes in the cluster?

Could anyone provide a definitive answer?

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101787#4101787

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101787
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Messaging bridge question

2007-09-05 Thread chip_schoch
DOH!!

I traced through the code with the debugger and found that I had overlooked the 
parameters in the xml.  I had MaxBatchSize set to 5 and MaxBatchTime set to -1. 
 I never had more than 4 messages on my queue at a time.  When I changed these 
it worked.

Sorry to waste your time.  I appreciate the feedback.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081321#4081321

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081321
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Messaging bridge question

2007-09-04 Thread chip_schoch
OK.  I set up two servers, JBossAs 4.2.0.GA with JBM 1.4.0.CR2.  

I configured a bridge that successfully deployed.  

I posted a message to server1 then listed all messaged from server1 
jmx-console.  No messages listed.  

I listed all messages from server2 jmx-console.  No messages listed.  

I undeployed my bridge ( removed the service xml).  Then I listed all messages 
from server1 jmx-console.  My message listed.  

I restratesd the bridge and listed the server1 messages.  No message listed. 
 
Shut down the bridge.  The message listed.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081078#4081078

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081078
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Messaging bridge question

2007-09-04 Thread chip_schoch
The error code for Sybase ASE for the duplicate key exception is S1000.  
Setting DUPLICATE_KEY_STATE value to S1000 eliminates the problem with restarts.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080872#4080872

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080872
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Messaging bridge question

2007-08-31 Thread chip_schoch
I am trying CR2 but after the first time I start the server, whenever I restart 
I get a duplicate key exception on JBM_DUAL.  It looks like it is executing the 
insert on startup and the insert is :

 INSERT_DUAL=INSERT INTO JBM_DUAL VALUES (1)

The table creation:

CREATE_DUAL=CREATE TABLE JBM_DUAL (DUAL_DUMMY INTEGER, PRIMARY KEY (DUAL_DUMMY))

I don't know what the objective of this is so I really don't know how  

INSERT_MESSAGE_CONDITIONAL=INSERT INTO JBM_MSG (MESSAGE_ID, RELIABLE, 
EXPIRATION, TIMESTAMP, PRIORITY, TYPE) SELECT ?, ?, ?, ?, ?, ? FROM JBM_DUAL 
WHERE NOT EXISTS (SELECT MESSAGE_ID FROM JBM_MSG WHERE MESSAGE_ID = ?)

would work.

This is from the sybase-persistenc.xml file.

I anticipate being enlightened.

Thanks



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080135#4080135

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080135
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Messaging bridge question

2007-08-30 Thread chip_schoch
One more thing.  I sent 4 messages to my local queue and all seemed to 
disappear.  I then stopped my bridge.  The messages could then be seen using 
the jmx-console.  I restarted my bridge and the messages are were longer 
visible from the jmx-console.  I stopped the bridge and they reappeared.

Go figure.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079770#4079770

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079770
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Messaging bridge question

2007-08-30 Thread chip_schoch
Sorry for taking so long to reply.  The auto notification for your response got 
swallowed in my spam filter.

I removed java: from the remote provider lookup and the bridge started without 
any exceptions.  I posted a message to my local queue and I don't know what 
happened to it.  It is not on the queue (when I list messages using 
jmx-console) and it is not on the remote queue either. And it was not consumed 
by my remote service because I undeployed the consumer, so I don't know what is 
happening to the message.  It seems to be disappearing.

I am not using the latest remoting jar you referenced.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079764#4079764

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079764
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Messaging bridge question

2007-07-27 Thread chip_schoch
Thanks Tim.  FYI, I just setup up a JBossAs 4.2.0.GA server with JBM_1.4.0.CR1 
and tried it and I got the same behavior.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068198#4068198

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068198
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Messaging bridge question

2007-07-26 Thread chip_schoch
Yes, I read through the JIRA link but that is referring to retrying the remote 
connection at startup.  That is not the issue.  My server is running.  I can 
connect to the remote queue if that queue is the target destination, not the 
source destination.  I stepped through bridge.java and verified that everything 
looks ok, ie the IC has the remote properties and the Destination is correct.  
Everything looked good to me but when it executes CreateConsumer is throws the 
exception.  I can create a stand alone program that is able to connect to the 
remote server and create a consumer.  I am also able to specify the same remote 
queue as the source destination in the bridge service and it connects fine.

I noticed in the stack trace the line:

org.jboss.remoting.transport.local.LocalClientInvoker.invoke

I am not that familiar with this code but does this mean that at this point 
remoting thinks the client is local?  If this is so then that is a mistake.  I 
get kind of lost in the aop code.  Is it possible there is a bug that is 
causing it to  try to connect to the local machine instead of the remote 
machine?  Just a guess.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067889#4067889

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067889
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Messaging bridge question

2007-07-26 Thread chip_schoch
I have looked through the links and as far as I can tell my configuration is 
correct.  As you can see from the dump below my bridge connects to the remote 
queue when that queue destination is a target destination 
(Remotee.Conversion.In).  When the remote destination is the source destination 
it fails to connect (Remote.Conversion.Out).  It says 'No such Destination' for 
Remote.Conversion.Out, but that is incorrect.  The log on the remote server 
says that that queue has been started, as has Remote.Conversion.In.  Either I 
am missing something painfully obvious or it has trouble connecting to 
destinations where the source destination is a remote queue.

2007-07-26 10:39:54,731 DEBUG [org.jboss.jms.client.JBossSession] attempting to 
create consumer for destination:JBossQueue[File.Conversion.In]
  | 
  | 2007-07-26 10:36:13,995 DEBUG [org.jboss.jms.client.JBossSession] 
attempting to create consumer for destination:JBossQueue[Remote.Conversion.Out]
  | 2007-07-26 10:36:13,995 ERROR [org.jboss.messaging.util.ExceptionUtil] 
SessionEndpoint[10] createConsumerDelegate 
[5c4o12v-r71he3-f4lclt5k-1-f4lcm90r-q]
  | javax.jms.InvalidDestinationException: No such destination: 
JBossQueue[Remote.Conversion.Out]
  | at 
org.jboss.jms.server.endpoint.ServerSessionEndpoint.createConsumerDelegateInternal(ServerSessionEndpoint.java:1171)
  | at 
org.jboss.jms.server.endpoint.ServerSessionEndpoint.createConsumerDelegate(ServerSessionEndpoint.java:200)
  | at 
org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$createConsumerDelegate$aop(SessionAdvised.java:87)
  | at 
org.jboss.jms.server.endpoint.advised.SessionAdvised$createConsumerDelegate_6311124154581125663.invokeNext(SessionAdvised$createConsumerDelegate_6311124154581125663.java)
  | at 
org.jboss.jms.server.container.SecurityAspect.handleCreateConsumerDelegate(SecurityAspect.java:118)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121)
  | at 
org.jboss.jms.server.endpoint.advised.SessionAdvised$createConsumerDelegate_6311124154581125663.invokeNext(SessionAdvised$createConsumerDelegate_6311124154581125663.java)
  | at 
org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)
  | at 
org.jboss.jms.server.endpoint.advised.SessionAdvised$createConsumerDelegate_6311124154581125663.invokeNext(SessionAdvised$createConsumerDelegate_6311124154581125663.java)
  | at 
org.jboss.jms.server.endpoint.advised.SessionAdvised.createConsumerDelegate(SessionAdvised.java)
  | at 
org.jboss.jms.wireformat.SessionCreateConsumerDelegateRequest.serverInvoke(SessionCreateConsumerDelegateRequest.java:95)
  | at 
org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:141)
  | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734)
  | at 
org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:101)
  | at org.jboss.remoting.Client.invoke(Client.java:1550)
  | at org.jboss.remoting.Client.invoke(Client.java:530)
  | at org.jboss.remoting.Client.invoke(Client.java:518)
  | at 
org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:186)
  | at 
org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:157)
  | at 
org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$createConsumerDelegate$aop(ClientSessionDelegate.java:230)
  | at 
org.jboss.jms.client.delegate.ClientSessionDelegate$createConsumerDelegate_6311124154581125663.invokeNext(ClientSessionDelegate$createConsumerDelegate_6311124154581125663.java)
  | at 
org.jboss.jms.client.container.StateCreationAspect.handleCreateConsumerDelegate(StateCreationAspect.java:147)
  | at 
org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect30.invoke(StateCreationAspect30.java)
  | at 
org.jboss.jms.client.delegate.ClientSessionDelegate$createConsumerDelegate_6311124154581125663.invokeNext(ClientSessionDelegate$createConsumerDelegate_6311124154581125663.java)
  | at 
org.jboss.jms.client.container.ConsumerAspect.handleCreateConsumerDelegate(ConsumerAspect.java:69)
  | at 
org.jboss.aop.advice.org.jboss.jms.client.container.ConsumerAspect29.invoke(ConsumerAspect29.java)
  | at 
org.jboss.jms.client.delegate.ClientSessionDelegate$createConsumerDelegate_6311124154581125663.invokeNext(ClientSessionDelegate$createConsumerDelegate_6311124154581125663.java)
  | at 
org.jboss.jms.client.container.FailoverValveInterceptor.invoke(Failo

[jboss-user] [JBoss Messaging] - Re: Messaging bridge question

2007-07-25 Thread chip_schoch
I am using JBossAS 4.2.0..GA, JBM 1.3.0.GA with one fix that was posted right 
after it released, on both servers.   

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067388#4067388

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067388
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Messaging bridge question

2007-07-25 Thread chip_schoch
This is my original jms-ds.xml.


  | 
  | 
  |  
  |   
  |   
  |   
  | 
  |   
  |   
  | DefaultJMSProvider
  | 
  |   org.jboss.jms.jndi.JNDIProviderAdapter
  | 
  | 
  | java:/XAConnectionFactory
  | 
  | java:/XAConnectionFactory
  | 
  | java:/XAConnectionFactory
  | 
  |   
  | 
  |   
  |   
  | jboss:service=XidFactory
  | StdJMSPool
  | 
  |   org.jboss.jms.asf.StdServerSessionPoolFactory
  | 
  |   
  | 
  |   
  |   
  | JmsXA
  | 
  | jms-ra.rar
  | 
org.jboss.resource.adapter.jms.JmsConnectionFactory
  | javax.jms.Topic
  | java:/DefaultJMSProvider
  | 20
  | 
JmsXARealm
  |   
  | 
  | 


I added this one for specifying my remote server.


  | 
  | 
  |  
  |   
  |   
  |   
  | 
  |   
  |   
  |
  | ConversionJMSProvider
  | org.jboss.jms.jndi.JNDIProviderAdapter
  | 
  | 
  | java:/XAConnectionFactory
  | 
  | java:/XAConnectionFactory 
  | 
  | java:/XAConnectionFactory
  | 
  | 
  | 
  |java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  |java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  |java.naming.provider.url=192.168.1.75:1099
  |
  |   
  | 
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067384#4067384

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067384
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Messaging bridge question

2007-07-24 Thread chip_schoch
I am trying  to set up a couple of bridges on one server (s1) whereas messages 
arriving on a queue are posted to a queue on a remote server (s2),  That server 
processes the message and puts a response on its local response queues.  I want 
another bridge to take that response and move it to my original server response 
queue. 

On s1 I configured the bridges so that the first bridge had s1 as the source 
provoder and the second bridge had s2 as the source provider.  It seems that 
only bridge one is able to make the connection.  For bridge two I get a no a 
such destination exception even though the destination is valid on s2.


Am I not allowed to configure a bridge such that the source is the remote 
server?


  | 
  | 
  | 
  |
  |   
  | jboss:service=Naming
  | 
jboss.messaging.destination:service=Queue,name=File.Conversion.In
  | jboss.messaging:service=ServerPeer
  | jboss.mq:service=JMSProviderLoader,name=JMSProvider
 
  | jboss.mq:service=JMSProviderLoader,name=RemoteJMSProvider

  | 
  | /queue/File.Conversion.In 
  | /queue/Remote.Conversion.In
  | 
  | 5 
  | -1
  | 5000  
  | -1
  | 
  | 
  |   
  | 
  |
  |   
  | jboss:service=Naming
  | 
jboss.messaging.destination:service=Queue,name=File.Conversion.Out
  | jboss.messaging:service=ServerPeer
  | jboss.mq:service=JMSProviderLoader,name=RemoteJMSProvider
 
  | jboss.mq:service=JMSProviderLoader,name=JMSProvider

  | 
  | /queue/Remote.Conversion.Out 
  | /queue/File.Conversion.Out
  | 
  | 5 
  | -1
  | 5000  
  | -1
  | 
  | 
  | 
  |  

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067120#4067120

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067120
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Is scoped loader-repository feature unusable now

2007-06-05 Thread chip_schoch
I see my thread from yesterday and the weekend has disappeared from this forum. 
 Sorry if I breeched protocol somehow.  

Anyway, my question was and continues to be, is it a feature that we can no 
longer scope a loader repository in an MBean that uses JBM?  Having my service 
code in the main repository makes it difficult to do iterative development, as 
I prefer to leave JBossAS running and to redeploy with changes, debugging from 
Eclipse using the remote debugging and the IDE 3.1 deploy feature.  Without the 
scoped loader I must restart the server each time I redeploy a service.  I am 
having trouble particularly with a service that has a jbpm.cfg and associated 
hibernate.cfg file in my service classpath.  It seems the second time I deploy 
this service it is unable to read the xml files.

This is in addition to the issue I mentioned in my last post (that was removed) 
that not scoping the loader repository renders the Log4j TCLFilter inoperable, 
so I cannot separate my service logging into constituent files.  Any insight 
would be sincerely appreciated, as if this functionality is indeed the desired 
feature then I must pursue workarounds to the obstacles it has presented me 
with.

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051328#4051328

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051328
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: MBean Servic cannot open jms session

2007-06-04 Thread chip_schoch
Well Tim, here is what I have determined.  I have three MBean Services that 
handle jms messages.  They are essentially the same codebase.  If any one of 
them has a scoped loader I get the exception I sent initially.  

But only on  the ones that load and initialize AFTER the one with the scoped 
loader.  If a service without it loads and initializes before another one that 
has its loader scoped, then the first one works fine.  

Not scoping the loader is not really an issue for me except that without it I 
don't seem to be able to separate my log4j log files on a per service basis 
using the TCLFilter.  Is there any known work around for this?

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051048#4051048

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051048
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: MBean Servic cannot open jms session

2007-06-04 Thread chip_schoch
Thanks Tim.  I wrote a simple webapp with a servlet that does a jms connection 
and it works fine so there is something peculiar to my other stuff that is 
messing with it.  Sorry to raise the issue before fully pursuing it.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051025#4051025

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051025
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: MBean Servic cannot open jms session

2007-06-04 Thread chip_schoch
I ran the installation test and, as expected, it passed.  However, the test is 
not executingin the same JVM as JBossAS and JBM, so given the fact that my test 
program worked I would expect the install test to pass.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051000#4051000

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051000
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: MBean Servic cannot open jms session

2007-06-04 Thread chip_schoch
One other thing.  I am able to view my queue contents from jmx-console so that 
indicated that at least one webapp is able to make a connection to JMS.  I am 
assuming that jmx goes through the JMS interface to look at the queue contents.

That would seem to indicate that something in my applications is causing the 
issue, would you agree?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050997#4050997

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050997
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: MBean Servic cannot open jms session

2007-06-04 Thread chip_schoch
I did not run the examples, but I will do that.  What I did was:

1.  Download and unzip JBossAS 4.2.0.GA
2.  Download and unzip JVM 1.3.0.QA
3.  run ant -f release-admin.xml
4.  replace hssql with mssql everywhere
5.  Add in my application dependent jars (jtds, groups etc.)
6.  Start JBossAs
7.  Deploy my hibernate archive, webapp and services.
8.  Attempt to connect to JBM from each.

I have a test project that is able to post messages to JBM but it is not 
running in the same JVM as JBossAS.  It uses the client libs and works fine.  I 
have only seen this when trying to connect from processes running in the same 
JVM as JBossAS.

I tried both the webapp scoped and not scoped and it made no difference.

I am getting a new machine this afternoon so I will redo the installation and 
try it all again.

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050993#4050993

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050993
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: MBean Servic cannot open jms session

2007-06-03 Thread chip_schoch
I also have a web app from which I attempted to connect to JMS and I observe 
the same behavior.


  | java.lang.NullPointerException
  | at 
org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:86)
  | at 
org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
  | at 
org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
  | at 
org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate.createSessionDelegate(ClientConnectionDelegate.java)
  | at 
org.jboss.jms.client.JBossConnection.createSessionInternal(JBossConnection.java:269)
  | at 
org.jboss.jms.client.JBossConnection.createSession(JBossConnection.java:91)
  | at 
com.eLynx.Controller.TestController.testMessaging(TestController.java:110)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at com.eLynx.Dispatch.XmlDispatcher.dispatch(XmlDispatcher.java:160)
  | at com.eLynx.Dispatch.XmlDispatcher.dispatch(XmlDispatcher.java:81)
  | at com.eLynx.Servlet.XmlWebappServlet.doPost(XmlWebappServlet.java:119)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

The code in the servlet that the exception occurred on:

m_initialContext = ConnectionManager.getInitialContext ();
  | ConnectionFactory factory = (ConnectionFactory) 
m_initialContext.lookup ("/ConnectionFactory");
  | m_jmsConnection = factory.createConnection ();
  | m_jmsSession= (QueueSession) m_jmsConnection.createSession 
(false, Session.AUTO_ACKNOWLEDGE);
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050749#4050749

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050749
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - MBean Servic cannot open jms session

2007-06-03 Thread chip_schoch
I upgraded to JBossAS 4.2.0.GA and JBM1.3.0.GA and when I deploy my message 
handling MBean I get the following when it tries to create a jms session.  I am 
not quite sure what this is even saying to me.  Any insight as to what I need 
to do to fix this would be sincerely appreciated.

2007-06-03 11:04:37,988 INFO  [com.eLynx.Messaging.MessageReceiver] EMail 
ServiceService MessageReceiver thread started...
  | 2007-06-03 11:04:37,988 INFO  [com.eLynx.Messaging.MessageReceiver] EMail 
Service Service started.
  | 2007-06-03 11:04:37,988 DEBUG [com.eLynx.Service.EMail.EMailService] 
Started eLynx.EMail:service=EMailService
  | 2007-06-03 11:04:45,315 ERROR [com.eLynx.Messaging.MessageReceiver] 
Exception running MessageReceiver [thread id=115].
  | java.lang.NullPointerException
  | at 
org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:86)
  | at 
org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
  | at 
org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
  | at 
org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate.createSessionDelegate(ClientConnectionDelegate.java)
  | at 
org.jboss.jms.client.JBossConnection.createSessionInternal(JBossConnection.java:269)
  | at 
org.jboss.jms.client.JBossConnection.createSession(JBossConnection.java:91)
  | at com.eLynx.Messaging.MessageReceiver.run(MessageReceiver.java:552)
  | 2007-06-03 11:04:46,424 ERROR [com.eLynx.Messaging.MessageReceiver] 
Exception closing JMS Session objects.
  | java.lang.NullPointerException
  | at 
org.jboss.jms.client.container.ClosedInterceptor.maintainRelatives(ClosedInterceptor.java:288)
  | at 
org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:165)
  | at 
org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate$closing_N1847373599029068216.invokeNext(ClientConnectionDelegate$closing_N1847373599029068216.java)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate.closing(ClientConnectionDelegate.java)
  | at org.jboss.jms.client.JBossConnection.close(JBossConnection.java:131)
  | at com.eLynx.Messaging.MessageReceiver.run(MessageReceiver.java:629)

Here is the code snippet where it occurs:

// Lookup our JMS connection factory
  | InitialContext context = getInitialContext ();
  | QueueConnectionFactory connFactory = (QueueConnectionFactory) 
context
  |  .lookup (getProperty 
(MessageReceiverProperties
  |  
.PropJMSConnectoryFactory));
  | 
  | // Get our jms connection
  | m_jmsConnection   = connFactory.createQueueConnection ();
  | 
  | // Get our jms session
  | m_jmssession  = m_jmsConnection.createSession (false, 
Session.AUTO_ACKNOWLEDGE);

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050748#4050748

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050748
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Scheduler Question

2007-05-25 Thread chip_schoch
If I have a service that runs org.jbpm.scheduler.impl.Scheduler on multiple 
machines in a cluster will I experience any possible issues with multiple 
machines executing the same scheduled task?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048743#4048743

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048743
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Need nested, not distributed transactions

2007-05-06 Thread chip_schoch
JBossAS 4.2.0 CR2

I am deploying hibernate as a .sar for use by several webapps and MBean 
services.  I need to be able to nest db transactions.  Does anyone know how I 
should configure the jboss-service.xml so that I get a 
ThreadLocalSessionContext instead of a JTASessionContext?  My current jboss-xml:


  | 
  | 
  | 
  | 
  | jboss.jca:service=RARDeployer
  | jboss.jca:service=LocalTxCM,name=DocHubDS
  | 
  | 
  | java:/eLynx/DocHubHibernateSessionFactory
  | 
  | 
  | java:DocHubDS
  | org.hibernate.dialect.SQLServerDialect
  | 
  | 
  | org.hibernate.transaction.JDBCTransactionFactory
  | org.hibernate.transaction.JBossTransactionManagerLookup
  | true
  | true
  | 
  | 
  | 5
  | 
  | 
  | true
  | org.hibernate.cache.HashtableCacheProvider
  | true
  | 
  | 
  | true
  | 
  |
  | 
  | 
  | ...
  | 
  | 
  | 
  | 
  | 
  | 
  | 

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043519#4043519

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043519
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Calling messaging from webapp in same vm as messaging

2007-05-06 Thread chip_schoch
Yes.

   jboss.messaging:loader=ScopedLoaderRepository
  |
java2ParentDelegation=false
  |


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043516#4043516

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043516
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Calling messaging from webapp in same vm as messaging

2007-05-04 Thread chip_schoch
I managed to find that elusive combo that works.

1.  JBossAS 4.2.0.CR2

2.  JBM 1.2.SP1

3.  Copy jboss-messaging.jar and jboss-remoting.jar from jboss-messaging.sar 
into server/messaging/lib

4. restart server

5.  Do not include jboss-messaging-client.jar in .ear

Everbody plays nice now.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043339#4043339

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043339
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Calling messaging from webapp in same vm as messaging

2007-05-04 Thread chip_schoch
I have my webapp scoped as per the directions:

My jboss-app.xml


  |  
  |   com.eLynx:loader=ImplementationsWebapp
  | 
java2ParentDelegation=false
   
  |  
  |  
  | 
The problem that arises when I include jboss-messaging-client.jar in my .ear 
file and try to deploy it.  When my servlet init is called I am initializing 
PojoCache.  In the code, when it tries to get a reference to the PojoCacheMBean 
it throws:

  | java.lang.IllegalArgumentException: interface 
org.jboss.mx.util.MBeanProxyInstance is not visible from class loader
  | at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
  | at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
  | at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:395)
  | at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:349)
  | at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:324)
  | at com.eLynx.Cache.CacheManager.initialize(CacheManager.java:77)
  | 

calling code:

   m_cache = (PojoCacheMBean) MBeanProxyExt.create (PojoCacheMBean.class, 
  | "jboss.cache:service=eLynxPojoCache",
  |  server);
  | 

Because org.jboss.mx.util.MBeanProxyInstance is included in 
jboss-messaging-client.jar.  That is why I removed it and tried adding 
jboss-messagin.jar and jboss-remoting.jar


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043332#4043332

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043332
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Calling messaging from webapp in same vm as messaging

2007-05-04 Thread chip_schoch
Tim,
I appreciate your efforts and I apologize for the way my post sounded.  Part of 
my frustration is I had a configuration working and cannot seem to get back to 
it.  I can't remember what I did to get it going in the first place (4.0.5.GA, 
JBM 1.0.1.GA).  

I am just moving ahead with 4.2.0CR2 and JBM1.2SP1 configuration.  Much of my 
chagrin is I am new to aop and when I see exceptions in aspectized classes my 
eyeballs glaze over trying to figure it out.

Again, sorry if I sounded unappreciative.

The reason I put jboss-messaging.jar and jboss-remoting.jar in my ear is that 
when I put jboss-messaging-client.jar in it I got other exceptions.  I am still 
searching for that elusive combination.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043322#4043322

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043322
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Calling messaging from webapp in same vm as messaging

2007-05-04 Thread chip_schoch
JBossAS 4.2.0.CR2, JBM 1.2.0.SP!

Has anyone been successful in making a JBM connection from a webapp that is 
running in the same VM as JBM?  I have been trying every combination of jar 
files, class loader scoping and physical contortions that I can think of and 
with each permutation I get a different exception.  The latest is my webapp is 
not specifying any scoped classloader and I am including jboss-messaging.jar 
and jboss-remoting.jar in my .ear file.  I get the following:

java.lang.NullPointerException
  | at 
org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:86)
  | at 
org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
  | at 
org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:171)
  | at 
org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
  | at 
org.jboss.jms.client.container.ExceptionInterceptor.invoke(ExceptionInterceptor.java:71)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
  | at 
org.jboss.jms.client.container.ClientLogInterceptor.invoke(ClientLogInterceptor.java:107)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate$createSessionDelegate_6052335267724906805.invokeNext(ClientConnectionDelegate$createSessionDelegate_6052335267724906805.java)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate.createSessionDelegate(ClientConnectionDelegate.java)
  | at 
org.jboss.jms.client.JBossConnection.createSessionInternal(JBossConnection.java:269)
  | at 
org.jboss.jms.client.JBossConnection.createSession(JBossConnection.java:91)
  | at com.eLynx.Messaging.MessageSender.initialize(MessageSender.java:164)
  | at com.eLynx.Messaging.MessageSender.(MessageSender.java:76)
  | at com.eLynx.BPM.Process.ProcessManager.signal(ProcessManager.java:434)
  | at 
com.eLynx.Controller.USign.USignWebappController.eSignSubmit(USignWebappController.java:424)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at com.eLynx.Dispatch.XmlDispatcher.dispatch(XmlDispatcher.java:161)
  | at com.eLynx.Dispatch.XmlDispatcher.dispatch(XmlDispatcher.java:81)
  | at com.eLynx.Servlet.XmlWebappServlet.doPost(XmlWebappServlet.java:119)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
  | at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
  | at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
  | at 
org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:447)
  | at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)

Why I should get a null pointer exception when I am simply trying to create  a 
jms session is beyond me.

I have spent the last week t

[jboss-user] [JNDI/Naming/Network] - Scoped Loader yields null InitialContext.lookup on datasourc

2007-05-03 Thread chip_schoch
JBossAs 4.2.0.CR2
JBossMessaging 1.0.1.GA

I have several MBeans that use some shared code I have developed.  I am trying 
to use scoped loading by  adding this to my jboss-service.xml:

com.eLynx:loader=BpmExecutor 

When I do this my jndi lookup returns a null datasource, not a 
NamingNotFoundException, but a null.

   m_dataSource = (DataSource) cnew InitialContext().lookup 
(java:/DefaultDS");
  | 

When I remove the loader scoping or change it to:


  | loader-repository>jboss.messaging:loader=ScopedLoaderRepository  
  |
java2ParentDelegation=false
  |

It works fine.  I just have other issues.  Does anyone have any idea why this 
is so>

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042961#4042961

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042961
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - Transaction changes foiled me

2007-04-27 Thread chip_schoch
Once I got 4.2.0.cr2 up and running I ran into a new ripple.  I have a webapp 
that creates a UserTransaction at the beginning of each request and commits it 
at the end.  I am using jbpm 3.1.3 in this app.  My application code uses a 
different database then jbpm, both are mssql databases.  In the middle of my 
work flow (read the request processing)  I create a jbpmcontext and get a 
process instance, which hits the jbpm database.  


The code is effectively:

UserTransaction tx = (UserTransaction) getInitialContext ().lookup 
("java:comp/UserTransaction");
  | tx.begin();
  | 
  | // Do some queries to application tables
  |  ...
  | 
  | // 
  | 
  | JbpmConfiguration conf = JbpmConfiguration.getInstance ();
  | JbpmContext jbpmContext = conf.createJbpmContext ();
  | 
  | // BLOWS UP HERE!!!
  | ProcessInstance pi = jbpmContext.getProcessInstance ();
  | 


In 4.0.5.GA I had no problem however when I upgraded to 4.2.0.CR2 I get:


  | 2007-04-27 15:33:17,251 WARN  [com.arjuna.ats.jta.logging.loggerI18N] 
[com.arjuna.ats.internal.jta.transaction.arjunacore.enliststarterror] 
[com.arjuna.ats.internal.jta.transaction.arjunacore.enliststarterror] 
TransactionImple.enlistResource - XAResource.start returned: 
XAException.XAER_PROTO for < 131075, 28, 26, 
1--3f57fdfd:818:463228cf:26f-3f57fdfd:818:463228cf:276  
 >
  | 2007-04-27 15:33:17,251 ERROR [STDERR] 
org.jboss.resource.connectionmanager.JBossLocalXAException: Trying to start a 
new tx when old is not complete! old: < 131075, 28, 26, 
1--3f57fdfd:818:463228cf:243-3f57fdfd:818:463228cf:24a  
 >, new < 131075, 28, 26, 
1--3f57fdfd:818:463228cf:26f-3f57fdfd:818:463228cf:276  
 >, flags 0
  | 2007-04-27 15:33:17,251 ERROR [STDERR]  at 
org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource.start(TxConnectionManager.java:886)
  | 2007-04-27 15:33:17,251 ERROR [STDERR]  at 
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:701)
  | 2007-04-27 15:33:17,251 ERROR [STDERR]  at 
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:446)
  | 2007-04-27 15:33:17,267 ERROR [STDERR]  at 
org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.enlist(TxConnectionManager.java:773)
  | 2007-04-27 15:33:17,267 ERROR [STDERR]  at 
org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:564)
  | 2007-04-27 15:33:17,267 ERROR [STDERR]  at 
org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:337)
  | 2007-04-27 15:33:17,267 ERROR [STDERR]  at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:518)
  | 2007-04-27 15:33:17,267 ERROR [STDERR]  at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:399)
  | 2007-04-27 15:33:17,267 ERROR [STDERR]  at 
org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
  | 2007-04-27 15:33:17,267 ERROR [STDERR]  at 
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
  | 2007-04-27 15:33:17,267 ERROR [STDERR]  at 
org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
  | 2007-04-27 15:33:17,267 ERROR [STDERR]  at 
org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
  | 2007-04-27 15:33:17,267 ERROR [STDERR]  at 
org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
  | 2007-04-27 15:33:17,267 ERROR [STDERR]  at 
org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
  | 2007-04-27 15:33:17,267 ERROR [STDERR]  at 
org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
  | 2007-04-27 15:33:17,267 ERROR [STDERR]  at 
org.hibernate.loader.Loader.doQuery(Loader.java:673)
  | 2007-04-27 15:33:17,267 ERROR [STDERR]  at 
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
  | 2007-04-27 15:33:17,267 ERROR [STDERR]  at 
org.hibernate.loader.Loader.loadEntity(Loader.java:1860)
  | 2007-04-27 15:33:17,267 ERROR [STDERR]  at 
org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:48)
  | 2007-04-27 15:33:17,267 ERROR [STDERR]  at 
org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:42)
  | 2007-04-27 15:33:17,267 ERROR [STDERR]  at 
org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityP

[jboss-user] [Installation, Configuration & Deployment] - Re: 4.2.0.CR2 ajp not working

2007-04-27 Thread chip_schoch
Thanks alot.  I a running httpd locally but using mod_proxy and had my Proxy 
set to the name of my machine.  Changed it from:

  |  
  | BalancerMember ajp://elx000393.elynx.com:8009
  | 

to:


  | 
  | BalancerMember ajp://127.0.0.1:8009
  | 
 
And that took care of the issue

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041476#4041476

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041476
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - 4.2.0.CR2 ajp not working

2007-04-27 Thread chip_schoch
I installed 4.2.0.CR2 and attempted to connect to my webapp via the standard 
apache/jboss configuration.  I get the service unavailable message. 4.0.5.GA 
works fine.  I noticed that the servlet engine on CR2 is JBossWeb/2.0.0.CR1 not 
Apache Tomcat/5.5.20 as in 4.0.5.GA.  I also noticed that CR2 dumps a message 
saying "initializing Coyote AJP/1.3 ..." whereas 4.0.5.GA does not have that 
message.  I also notice that AJP does not appear to be working in CR2. 

Is this a known issue?  Are you dumping tomcat going forward?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041408#4041408

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041408
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JBM 3.2 ClassLoader FUBAR

2007-04-27 Thread chip_schoch
Thanks.  I removed jboss-messaging-client.jar from my ear and replaced it with 
jboss-messaging.jar.  I then get the following:

  | 2007-04-27 09:17:36,308 ERROR [com.eLynx.BPM.Message.JmsMessageService] 
Exception sending Jbpm message
  | java.lang.RuntimeException: Failed to download and/or install client side 
AOP stack
  | at 
org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:206)
  | at 
org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:88)
  | at 
org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:83)
  | at com.eLynx.Messaging.MessageSender.initialize(MessageSender.java:163)
  | at com.eLynx.Messaging.MessageSender.(MessageSender.java:76)
  | at 
com.eLynx.BPM.Message.JmsMessageService.send(JmsMessageService.java:65)
  | at org.jbpm.graph.def.Node.enter(Node.java:314)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:205)
  | at 
org.jbpm.graph.def.Node_$$_javassist_128.enter(Node_$$_javassist_128.java)
  | at org.jbpm.graph.def.Transition.take(Transition.java:119)
  | at org.jbpm.graph.def.Node.leave(Node.java:383)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:205)
  | at 
org.jbpm.graph.def.Node_$$_javassist_128.leave(Node_$$_javassist_128.java)
  | at org.jbpm.graph.exe.Token.signal(Token.java:178)
  | at org.jbpm.graph.exe.Token.signal(Token.java:141)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:205)
  | at 
org.jbpm.graph.exe.Token_$$_javassist_145.signal(Token_$$_javassist_145.java)
  | at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:229)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:205)
  | at 
org.jbpm.graph.exe.ProcessInstance_$$_javassist_154.signal(ProcessInstance_$$_javassist_154.java)
  | at 
com.eLynx.BPM.Handler.USignCompleteSigningTask.execute(USignCompleteSigningTask.java:84)
  | at org.jbpm.graph.def.Action.execute(Action.java:123)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:205)
  | at 
org.jbpm.graph.def.Action_$$_javassist_144.execute(Action_$$_javassist_144.java)
  | at org.jbpm.graph.def.Node.execute(Node.java:328)
  | at org.jbpm.graph.def.Node.enter(Node.java:316)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:205)
  | at 
org.jbpm.graph.def.Node_$$_javassist_128.enter(Node_$$_javassist_128.java)
  | at org.jbpm.graph.def.Transition.take(Transition.java:119)
  | at org.jbpm.graph.def.Node.leave(Node.java:383)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.Del

[jboss-user] [JBoss Messaging] - Re: JBM 3.2 ClassLoader FUBAR

2007-04-26 Thread chip_schoch
Thanks Tim.

We don't currently have support but I am working on getting it.  I guess in the 
mean time I will 'fiddle' as you say.  You mentioned the "fat" 
jboss-messaging-client.jar.  Is there an alternative, say a "thin" or "trim" or 
perhaps "lean" messaging-client.jar that can be assembled by me?  Any clues 
would be appreciated.

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041152#4041152

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041152
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JBM 3.2 ClassLoader FUBAR

2007-04-26 Thread chip_schoch
One more thing.  I added jboss-app.xml to meta-inf in my .ear file with:


  | jboss.messaging:loader=ScopedLoaderRepository  
  |  
java2ParentDelegaton=true
  |
  | 
  | 

This did not seem to make any difference

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040980#4040980

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040980
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JBM 3.2 ClassLoader FUBAR

2007-04-26 Thread chip_schoch
Well, I downloaded JBossAS 4.2.0.CR2, unzipped it, ran JBM 1.2.0 SP1 installer 
against  it.  I then copied the new jboss-remoting.jar file into the lib 
directory as well as all my services and apps except the webapp that has the 
jboss-messaging-client.jar file.  I then started the server and everything 
started fine.  I deployed my webapp and still got:

  | 2007-04-26 09:42:03,221 INFO  [STDOUT] 09:42:03,221 ERROR [CacheManager] 
Unable to initialize PojoCache
  | java.lang.IllegalArgumentException: interface 
org.jboss.mx.util.MBeanProxyInstance is not visible from class loader
  | at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
  | at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
  | at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:395)
  | at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:349)
  | at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:324)
  | at 
com.eLynx.Cache.CacheManager.contextInitialized(CacheManager.java:120)
  | at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
  | at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
  | at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
  | at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
  | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:300)
  | at 
org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
  | at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
  | at org.jboss.web.WebModule.startModule(WebModule.java:83)
  | at org.jboss.web.WebModule.startService(WebModule.java:61)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | 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.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:417)
  | at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | 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.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy45.start(Unknown Source)
  | at 
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
  |  

[jboss-user] [JBoss Messaging] - Re: JBM 3.2 ClassLoader FUBAR

2007-04-26 Thread chip_schoch
I appreciate your quick response.  It is good to hear that you are working to 
eliminate the need for scoping.  I tried putting the jar you specified in my 
lib directory and restarting JBossAS (4.0.5, ejb3 configuration) and It gives 
the following exception:

  | 2007-04-26 08:52:40,253 DEBUG [org.jboss.deployment.SARDeployer] create 
operation failed for package 
file:/C:/AppServer/jboss-4.0.5.GA/server/default/deploy/ejb3.deployer/
  | org.jboss.deployment.DeploymentException: no protocol: 
org/jboss/remoting/transport/Connector.xml; - nested throwable: 
(java.net.MalformedURLException: no protocol: 
org/jboss/remoting/transport/Connector.xml)
  | at 
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
  | at 
org.jboss.system.ServiceController.install(ServiceController.java:226)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | 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.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy4.install(Unknown Source)
  | at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
  | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy8.deploy(Unknown Source)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | 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.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:417)
  | at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | 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.I

[jboss-user] [JBoss Messaging] - JBM 3.2 ClassLoader FUBAR

2007-04-25 Thread chip_schoch
I have been trying to get all my applications and services to play nice since 
upgrading to JBM3.2 and it has been a royal pain in the arse.  The latest is I 
have a webapp that is working quite well but I added an async JBPM action 
handler and it uses a custom Jms Message Service, hence I needed to add the 
jboss-messaging-client.jar to my application ear.  As soon as I simpy added the 
jar and tried to deploy the app I get 

  | 2007-04-25 16:23:40,447 INFO  [com.eLynx.Cache.CacheManager] 
CacheManager:contextInitialized
  | 2007-04-25 16:23:40,462 ERROR [com.eLynx.Cache.CacheManager] Unable to 
initialize PojoCache
  | java.lang.IllegalArgumentException: interface 
org.jboss.mx.util.MBeanProxyInstance is not visible from class loader
  | at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
  | at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
  | at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:395)
  | at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:349)
  | at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:324)
  | at 
com.eLynx.Cache.CacheManager.contextInitialized(CacheManager.java:120)
  | at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
  | at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
  | at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
  | at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
  | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5052)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
  | at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
  | at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
  | at org.jboss.web.WebModule.startModule(WebModule.java:83)
  | at org.jboss.web.WebModule.startService(WebModule.java:61)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | 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.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:417)
  | at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | 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.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyEx

[jboss-user] [JBoss jBPM] - Re: Process files not uploaded

2007-04-24 Thread chip_schoch
I am sorry to say I have not.  I backed off to 3.1.3 and am trying to move 
forward in my project.  3.2 does not seem ready for prime time to me.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040179#4040179

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040179
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Separate log files no longer works with JBM 3.2

2007-04-18 Thread chip_schoch
Judging by the tremendous number of replies I see that this is a topic of 
enormous interest.  However, if anyone is interested I was able to effect a 
work around by adding another filter.  Here it is in case anyone is interested. 
 It should be placed in the chain before the TCLFilter:

package your.package;
  | 
  | 
  | 
  | import java.security.CodeSource;
  | import java.security.ProtectionDomain;
  | 
  | import org.apache.log4j.spi.Filter;
  | import org.apache.log4j.spi.LoggingEvent;
  | 
  | /**
  |  * Class CSFilter
  |  * An appender filter that evaluates log events to see if the class
  |  * that is specified by the loggerName has a code source that contains
  |  * the string specified in deployURL.
  |  *
  |  * It is important that the logger be initialized with a class:
  |  * Logger logger = Logger.getInstance(MyClass.class);
  |  *
  |  * This way the loggerName will be a fully qualified class name.  This 
filter
  |  * uses the thread context classloader to load the class and then obtains 
the
  |  * CodeSource via the ProtectionDomain.  It checks the path of the code 
source
  |  * to see if the url specified in deployURL is contained in it.  Therefore 
it is
  |  * case sensitive.  This class should be used in conjunction with the 
TCLFilter and should
  |  * preced it in the chain because if a match is not found this filter 
returns NEUTRAL.
  |  *
  |  * The acceptOnMatch parameter is only applied when a match is found.  If 
it is true then a match
  |  * returns ACCEPT otherwise when it is false a match returns DENY.
  |  */
  | 
  | public class CSFilter extends Filter
  | {
  | 
  | /** The deployment URL string fragment to match against */
  | 
  | private String deployURL;
  | 
  | /** Whether a match should return ACCEPT or DENY */
  | 
  | private boolean acceptOnMatch = true;
  | 
  | /**
  |  * Method: decide
  |  *
  |  *
  |  * @param event
  |  *
  |  * @return
  |  */
  | 
  | @Override public int decide (LoggingEvent event)
  | {
  | int result = Filter.NEUTRAL;
  | 
  | if (isMatchingCS (event))
  | result = acceptOnMatch ? Filter.ACCEPT : Filter.DENY;
  | 
  | return result;
  | }
  | 
  | /**
  |  * Method: getDeployURL
  |  *
  |  *
  |  * @return
  |  */
  | 
  | public String getDeployURL ()
  | {
  | return deployURL;
  | }
  | 
  | /**
  |  * Method: isAcceptOnMatch
  |  *
  |  *
  |  * @return
  |  */
  | 
  | public boolean isAcceptOnMatch ()
  | {
  | return acceptOnMatch;
  | }
  | 
  | /**
  |  * Method: isMatchingCS
  |  *
  |  *
  |  * @param event
  |  *
  |  * @return
  |  */
  | 
  | private boolean isMatchingCS (LoggingEvent event)
  | {
  | boolean match = false;
  | try
  | {
  | ClassLoader cl  = Thread.currentThread 
().getContextClassLoader ();
  | Class clazz = cl.loadClass (event.getLoggerName ());
  | 
  | ProtectionDomain pd = clazz.getProtectionDomain ();
  | CodeSource clazzCS  = pd.getCodeSource ();
  | 
  | if (clazzCS != null)
  | {
  | String path = clazzCS.getLocation ().getPath ();
  | match = path.contains (deployURL);
  | }
  | }
  | catch (Exception e)
  | {
  | // Not much to do in this event
  | }
  | 
  | return match;
  | }
  | 
  | /**
  |  * Method: setAcceptOnMatch
  |  *
  |  *
  |  * @param acceptOnMatch
  |  */
  | 
  | public void setAcceptOnMatch (boolean acceptOnMatch)
  | {
  | this.acceptOnMatch = acceptOnMatch;
  | }
  | 
  | /**
  |  * Method: setDeployURL
  |  *
  |  *
  |  * @param deployURL
  |  */
  | 
  | public void setDeployURL (String deployURL)
  | {
  | this.deployURL = deployURL;
  | }
  | }
  | 

Example from log4j.xml

 
  |  
  |  
  | 
  |   
  |  
  |  
  |  

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038543#4038543

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038543
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Separate log files no longer works with JBM 3.2

2007-04-17 Thread chip_schoch
When I upgraded to JBM 3.2 recently I had to go back and add:

  |jboss.messaging:loader=ScopedLoaderRepository
  |
java2ParentDelegation=false
  |

to my jboss-service.xml files on the message processing MBeans I have written, 
because when I didn't have it I get:

2007-04-17 16:07:17,213 ERROR [com.eLynx.Messaging.MessageReceiver] Exception 
running MessageReceiver [thread id=155].
  | tried to access class org.jboss.aop.ClassAdvisor$1 from class 
org.jboss.aop.ClassAdvisor
  | java.lang.IllegalAccessError: tried to access class 
org.jboss.aop.ClassAdvisor$1 from class org.jboss.aop.ClassAdvisor
  | at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:271)
  | at 
org.jboss.aop.AspectManager.initialiseClassAdvisor(AspectManager.java:590)
  | at org.jboss.aop.AspectManager.getAdvisor(AspectManager.java:578)
  | 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:917)
  | at java.lang.reflect.Field.getFieldAccessor(Field.java:898)
  | at java.lang.reflect.Field.getLong(Field.java:527)
  | at 
java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1586)
  | at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)
  | at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:408)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at java.io.ObjectStreamClass.(ObjectStreamClass.java:400)
  | at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:297)
  | at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:531)
  | at 
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
  | at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
  | at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
  | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
  | at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
  | at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
  | at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
  | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
  | at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
  | at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
  | at 
org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:653)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:588)
  | at javax.naming.InitialContext.lookup(InitialContext.java:351)
  | at com.eLynx.Messaging.MessageReceiver.run(MessageReceiver.java:547)

I have my log4j.xml configured to log to different files using the TCLFilter:

  
  |  
  |  
  |  

Now I do not get any logging to the separate file.  It looks like the TCLFilter 
must be using class loader to determine which archive a class came from?  
Anyway, it is an unintended consequence of the latest changes.

Any ideas about how to fix this?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038141#4038141

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038141
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Process files not uploaded

2007-04-16 Thread chip_schoch
In jbpm-3.1.3 I uploaded the process zip and all the process files were 
uploaded.  I could verify that they were there by querying jbpm_byteblock.  I 
upgraded to 3.2 and created new tables in a new mssql database using the new 
script.  I then uploaded the exact same process zip :

ProcessDefinition processDefinition = 
ProcessDefinition.parseParZipInputStream (zis);
  | jbpmContext.deployProcessDefinition (processDefinition);

Now I cannot retrieve that process jpeg and there are no entries in the 
jbpm_byteblock table.  I see that there is aFileDefinition.hbm.xml file that 
references a jbpm_processfiles table, but that table was not created in the 
script.  Anybody know whats up with this?

Thanks.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037611#4037611

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037611
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Error deploying jpbm-console 3.2

2007-04-16 Thread chip_schoch
Disregard  this.  I forgot to change the default datasource for jbpm to my 
mssql datasource

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037575#4037575

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037575
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Error deploying jpbm-console 3.2

2007-04-15 Thread chip_schoch
I downloaded jbpm 3.2 and ran the new mssql scripts to create the new schema.  
When I tried to deploy the jbpm-console.war in my JBossAs.4.0.5.GA (ejb3) 
installed server I get the following exception:

  | 2007-04-15 09:17:38,268 DEBUG [org.hibernate.jdbc.ConnectionManager] 
releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open 
ResultSets: 0, globally: 0)]
  | 2007-04-15 09:17:38,268 DEBUG 
[org.jbpm.persistence.db.DbPersistenceService] closing hibernate session
  | 2007-04-15 09:17:38,268 DEBUG [org.jbpm.svc.Services] closing service 'tx': 
[EMAIL PROTECTED]
  | 2007-04-15 09:17:38,268 ERROR [org.jbpm.job.executor.JobExecutorThread] 
exception in job executor thread. waiting 1 milliseconds
  | org.jbpm.JbpmException: couldn't get acquirable jobs
  | at org.jbpm.db.JobSession.getFirstAcquirableJob(JobSession.java:44)
  | at 
org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.java:111)
  | at 
org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:56)
  | Caused by: org.hibernate.exception.SQLGrammarException: could not execute 
query
  | at 
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
  | at 
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
  | at org.hibernate.loader.Loader.doList(Loader.java:2147)
  | at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)
  | at org.hibernate.loader.Loader.list(Loader.java:2023)
  | at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:393)
  | at 
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
  | at 
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
  | at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
  | at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
  | at 
org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:780)
  | at org.jbpm.db.JobSession.getFirstAcquirableJob(JobSession.java:40)
  | ... 2 more
  | Caused by: java.sql.SQLException: Line 1: Incorrect syntax near '@P0'.
  | at 
net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:365)
  | at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2781)
  | at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2224)
  | at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:628)
  | at 
net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:418)
  | at 
net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeQuery(JtdsPreparedStatement.java:693)
  | at 
org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:236)
  | at 
org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186)
  | at org.hibernate.loader.Loader.getResultSet(Loader.java:1668)
  | at org.hibernate.loader.Loader.doQuery(Loader.java:662)
  | at 
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
  | at org.hibernate.loader.Loader.doList(Loader.java:2144)
  | ... 11 more

Any Ideas what this is caused by?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037367#4037367

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037367
___
jboss-user mailing list
[EMAIL PROTECTED]
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Process design Question

2007-04-14 Thread chip_schoch
I have a business process that begins with the system (i.e. a daemon) 
processing some input (xml input).  The processinstance transitions through 
several custom processing nodes.  At a certain point in the process it must 
pause/fork to subprocesses that require user input (i.e. via webapp).  The 
number of users that each must execute the subprocess varies and is determined 
during the initial processing of the input xml.

What I want to do is be able to create the subprocess instances from the main 
process so I can get a process id and store it in a db table along with my 
users id.  Then, when the user logs in the first time I can retrieve the 
processid and signal it so they can begin the subprocess.  When all users have 
completed the their respective subprocess I want to then continue the main 
process.

Any ideas on how I should model this?  Do I need to programmatically add the 
fork and process-state nodes?  Should I even be using process-state nodes or 
should I simply put the main process in a wait state and create the 
subprocesses, basically decoupling the subprocesses from the main process?  Any 
input would be appreciated.

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037298#4037298

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037298
___
jboss-user mailing list
[EMAIL PROTECTED]
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - FYI: mssql-persistence.xml uses reserved words for column n

2007-04-09 Thread chip_schoch
I noticed in the mssql-persistence.xml file that came with JBM1.2 the word 
CLUSTERED is used for a column name.  This is a reserved word.  Changing the 
script to IS_CLUSTERED fixes the exception thrown when creating the tables:


  | 
  | 
  | 
  | 
  | 
  |
  |  
jboss.jca:service=DataSourceBinding,name=DefaultDS
  |  jboss:service=TransactionManager
  |  java:/DefaultDS
  |  true
  |  true
  |  
  |  500
  |
  | 
  |
  |   jboss.messaging:service=ServerPeer
  |   jboss.jca:service=DataSourceBinding,name=DefaultDS
  |   jboss:service=TransactionManager
  |   JMS
  |   java:/DefaultDS
  |   true
  |   
  |
  | 
  |
  |   jboss.jca:service=DataSourceBinding,name=DefaultDS
  |   jboss:service=TransactionManager
  |   java:/DefaultDS
  |   true
  |   
  |
  | 
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035745#4035745

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035745
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Marshalling Exception

2007-04-07 Thread chip_schoch
A little more info.

When I start JBossAS and my .sar that uses JBossMessaging is in the deploy 
directory everything starts and works correctly.  Then if I undeploy it I get 
the following when the JMSConnection.close() is called:

java.lang.NullPointerException
  | at 
org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:620)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  | at 
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:464)
  | at 
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
  | at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
  | at 
org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:215)
  | at 
org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:200)
  | at 
org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:155)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate.org$jboss$jms$client$delegate$ClientConnectionDelegate$close$aop(ClientConnectionDelegate.java:151)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate$close_N4742752445160157748.invokeNext(ClientConnectionDelegate$close_N4742752445160157748.java)
  | at 
org.jboss.jms.client.container.ConnectionAspect.handleClose(ConnectionAspect.java:166)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate$close_N4742752445160157748.invokeNext(ClientConnectionDelegate$close_N4742752445160157748.java)
  | at 
org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:91)
  | at 
org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate$close_N4742752445160157748.invokeNext(ClientConnectionDelegate$close_N4742752445160157748.java)
  | at 
org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:171)
  | at 
org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate$close_N4742752445160157748.invokeNext(ClientConnectionDelegate$close_N4742752445160157748.java)
  | at 
org.jboss.jms.client.container.ExceptionInterceptor.invoke(ExceptionInterceptor.java:71)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate$close_N4742752445160157748.invokeNext(ClientConnectionDelegate$close_N4742752445160157748.java)
  | at 
org.jboss.jms.client.container.ClientLogInterceptor.invoke(ClientLogInterceptor.java:107)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate$close_N4742752445160157748.invokeNext(ClientConnectionDelegate$close_N4742752445160157748.java)
  | at 
org.jboss.jms.client.delegate.ClientConnectionDelegate.close(ClientConnectionDelegate.java)
  | at org.jboss.jms.client.JBossConnection.close(JBossConnection.java:132)
  | at com.eLynx.Messaging.MessageReceiver.run(MessageReceiver.java:609)

I am pretty much stumped so any help would really be appreciated.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035557#4035557

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035557
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Marshalling Exception

2007-04-06 Thread chip_schoch
Upgrading to 1.2.0.sp1 seems to have taken care of the problem.  If my service 
sar is deployed when I start JBossAS then it runs fine, however if I redeploy 
it I get the following:

2007-04-06 15:11:53,937 ERROR [STDERR] Exception in thread "Thread-38" 
  | 2007-04-06 15:11:53,937 ERROR [STDERR] java.lang.LinkageError: loader 
constraints violated when linking org/jboss/aop/ClassAdvisor class
  | 2007-04-06 15:11:53,937 ERROR [STDERR]  at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.(ClientConnectionFactoryDelegate.java)
  | 2007-04-06 15:11:53,937 ERROR [STDERR]  at 
sun.misc.Unsafe.ensureClassInitialized(Native Method)
  | 2007-04-06 15:11:53,937 ERROR [STDERR]  at 
sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
  | 2007-04-06 15:11:53,937 ERROR [STDERR]  at 
sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
  | 2007-04-06 15:11:53,937 ERROR [STDERR]  at 
java.lang.reflect.Field.acquireFieldAccessor(Field.java:917)
  | 2007-04-06 15:11:53,937 ERROR [STDERR]  at 
java.lang.reflect.Field.getFieldAccessor(Field.java:898)
  | 2007-04-06 15:11:53,937 ERROR [STDERR]  at 
java.lang.reflect.Field.getLong(Field.java:527)
  | 2007-04-06 15:11:53,937 ERROR [STDERR]  at 
java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1586)
  | 2007-04-06 15:11:53,937 ERROR [STDERR]  at 
java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)
  | 2007-04-06 15:11:53,937 ERROR [STDERR]  at 
java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:408)
  | 2007-04-06 15:11:53,937 ERROR [STDERR]  at 
java.security.AccessController.doPrivileged(Native Method)
  | 2007-04-06 15:11:53,937 ERROR [STDERR]  at 
java.io.ObjectStreamClass.(ObjectStreamClass.java:400)
  | 2007-04-06 15:11:53,937 ERROR [STDERR]  at 
java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:297)
  | 2007-04-06 15:11:53,937 ERROR [STDERR]  at 
java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:531)
  | 2007-04-06 15:11:53,937 ERROR [STDERR]  at 
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
  | 2007-04-06 15:11:53,937 ERROR [STDERR]  at 
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
  | 2007-04-06 15:11:53,937 ERROR [STDERR]  at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
  | 2007-04-06 15:11:53,984 ERROR [STDERR]  at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
  | 2007-04-06 15:11:53,984 ERROR [STDERR]  at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
  | 2007-04-06 15:11:53,984 ERROR [STDERR]  at 
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
  | 2007-04-06 15:11:53,984 ERROR [STDERR]  at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
  | 2007-04-06 15:11:53,984 ERROR [STDERR]  at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
  | 2007-04-06 15:11:53,984 ERROR [STDERR]  at 
java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
  | 2007-04-06 15:11:53,984 ERROR [STDERR]  at 
java.rmi.MarshalledObject.get(MarshalledObject.java:135)
  | 2007-04-06 15:11:53,984 ERROR [STDERR]  at 
org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
  | 2007-04-06 15:11:53,984 ERROR [STDERR]  at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:652)
  | 2007-04-06 15:11:53,984 ERROR [STDERR]  at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
  | 2007-04-06 15:11:53,984 ERROR [STDERR]  at 
javax.naming.InitialContext.lookup(InitialContext.java:351)
  | 2007-04-06 15:11:53,984 ERROR [STDERR]  at 
com.eLynx.Messaging.MessageReceiver.run(MessageReceiver.java:546)

The code is trying to lookup QueueConnectionFactory in JNDI.  I am not sure 
what to do about this.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035441#4035441

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035441
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Marshalling Exception

2007-04-06 Thread chip_schoch
JBossAS 4.0.5.GA and JBossMessaging 1.2.0.GA

I get client exception:
[2007-04-06 09:37:09,000] ERROR - Got marshalling exception, exiting 
  | java.io.EOFException
  | at java.io.DataInputStream.readInt(Unknown Source)
  | at 
org.jboss.jms.server.remoting.JMSWireFormat.read(JMSWireFormat.java:297)
  | at 
org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedRead(MicroSocketClientInvoker.java:936)
  | at 
org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:579)
  | at 
org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:269)
  | at 
org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
  | at org.jboss.remoting.LeasePinger.sendClientPing(LeasePinger.java:283)
  | at org.jboss.remoting.LeasePinger.addClient(LeasePinger.java:117)
  | at 
org.jboss.remoting.MicroRemoteClientInvoker.establishLease(MicroRemoteClientInvoker.java:398)
  | at org.jboss.remoting.Client.setupClientLease(Client.java:1504)
  | at org.jboss.remoting.Client.connect(Client.java:1404)
  | at org.jboss.remoting.Client.connect(Client.java:441)
  | at 
org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMSRemotingConnection.java:271)
  | at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:146)
  | at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_4579211046834694258.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_4579211046834694258.java)
  | at 
org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:83)
  | at 
org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect0.invoke(StateCreationAspect0.java)
  | at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_4579211046834694258.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_4579211046834694258.java)
  | at 
org.jboss.jms.client.container.ExceptionInterceptor.invoke(ExceptionInterceptor.java:71)
  | at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_4579211046834694258.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_4579211046834694258.java)
  | at 
org.jboss.jms.client.container.ClientLogInterceptor.invoke(ClientLogInterceptor.java:107)
  | at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_4579211046834694258.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_4579211046834694258.java)
  | at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
  | at 
org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:212)
  | at 
org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:88)
  | at 
org.jboss.jms.client.JBossConnectionFactory.createConnection(JBossConnectionFactory.java:83)
  | at com.eLynx.Messaging.MessageSender.initialize(MessageSender.java:144)
  | at com.eLynx.Messaging.MessageSender.(MessageSender.java:86)
  | at 
com.eLynx.Imaging.USignContainerImager.(USignContainerImager.java:96)
  | at com.eLynx.Test.TestUsnProcessing.execute(TestUsnProcessing.java:140)
  | at com.eLynx.Test.TestUsnProcessing.main(TestUsnProcessing.java:69)
  | [2007-04-06 09:37:09,000] WARN  - LeasePinger[SocketClientInvoker[1735602, 
bisocket://192.168.1.115:4457](5c4o137-ymrrtl-f06omnbl-1-f06ompil-5)] failed to 
ping to server: Failed to communicate.  Problem during 
marshalling/unmarshalling; nested exception is: 
  | java.io.EOFException 
  | 

And server exception:

2007-04-06 09:37:29,015 ERROR 
[org.jboss.remoting.transport.socket.ServerThread] Worker thread initialization 
failure
  | java.io.IOException: cannot assign instance of 
[LEDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap$Segment; to field 
EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap.segments of type 
[LEDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap$Segment; in instance of 
EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap
  | at 
java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2004)
  | at 
java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1184)
  | at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1914)
  | at 
java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:479)
  | at 
EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap.readObject(ConcurrentHashMap.java:1207)
  | at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
  | at 
sun.reflect.Delegat

[jboss-user] [JBossCache] - Re: PojoCache can't find classloader

2007-03-11 Thread chip_schoch
Thanks alot for all your help.  I was able to get it to work by using aopc 
first.  I came across the enable loadtime weaving stuff in the docs and made 
one attempt to turn it on, but I got some class not found exception so I just 
backed off that.  I must say it was difficult sifting through all the 
documentation to finally get it.  Maybe I am just getting too old.  Anyway, 
thanks again.  

For anyone else that comes across this thread, the main lesson here is:

If you are running in JBossAS, loadtime instrumenting is off by default so you 
will have to run aopc, even if your code is jdk 5.0 annotated.  If your cache 
object is serializable then you may not recognize right off that it is not 
getting field level replication, therefore, remove the serializable interface 
so if it is not aspectized you will get an exception.

I hope this is a correct summation.  

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027000#4027000

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027000
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: PojoCache can't find classloader

2007-03-10 Thread chip_schoch
Thanks for all your help.  After multiple readings of the docs I am starting to 
get it.  I now have the pojo caching somewhat working, however it appears only 
to serialize my object rather than pojo cache it.  

I verified that the object inserted in one instance of JBoss is retrieved by 
the other but no field level changes are propagated.  

When I removed the implements Serializable from the PojoCacheable object I got 
an exception:

2007-03-10 17:28:13,876 WARN  [org.jboss.cache.TreeCache] putObject(): 
exception occurred: java.lang.IllegalArgumentException: PojoCache.putObject(): 
Object type is neither  aspectized nor Serializable nor an array of primitives. 
Object class name is com.eLynx.Dispatch.SessionData

According to the documentation I should not have to aopc the objects when using 
jdk 5.0?  Is that correct?  I should just annotate it and get the aspectization 
at loadtime?

The code for the object is:

package com.eLynx.Dispatch;
  | 
  | import java.io.Serializable;
  | 
  | import com.eLynx.Database.ConnectionManager;
  | import com.eLynx.Database.Entity.Customer;
  | import com.eLynx.Database.Entity.UserInstance;
  | 
  | import com.eLynx.Definition.CriteriaConstants;
  | import com.eLynx.Definition.ParameterConstants;
  | 
  | import com.eLynx.logging.Loggable;
  | 
  | import org.hibernate.Criteria;
  | import org.hibernate.Session;
  | 
  | import org.hibernate.criterion.Expression;
  | 
  | /**
  |  * Class SessionData
  |  */
  | 
  | @org.jboss.cache.aop.annotation.PojoCacheable
  | public class SessionData extends SessionDataInterface implements Loggable, 
Serializable
  | {
  | @org.jboss.cache.aop.annotation.Serializable
  | UserInstance m_user   = null;
  | @org.jboss.cache.aop.annotation.Serializable
  | Customer m_customer   = null;
  | String   m_customerId = "1";// default to system id
  | 
  | /**
  |  * Constructor: SessionData
  |  *
  |  */
  | 
  | public SessionData ()
  | {
  | }
  | 
  | /**
  |  * Method: getCustomer
  |  * Return the current customer.  If it is null try to look it up 
through the user.
  |  *
  |  *
  |  * @return
  |  *
  |  * @throws Exception
  |  */
  | 
  | public Customer getCustomer () throws Exception
  | {
  | if (m_customer == null)
  | {
  | if (m_user != null)
  | {
  | Session session = ConnectionManager.getSession ();
  | Criteria crit   =
  | session.createCriteria (Customer.class).add 
(Expression.eq (CriteriaConstants.COL_OBJECTID,
  | m_user.getCustomerId ()));
  | setCustomer ((Customer) crit.uniqueResult ());
  | }
  | }
  | return m_customer;
  | }
  | 
  | /**
  |  * Method: getCustomerId
  |  *
  |  *
  |  * @return
  |  *
  |  * @throws Exception
  |  */
  | 
  | public String getCustomerId () throws Exception
  | {
  | return m_customerId;
  | }
  | 
  | /**
  |  * Method: getOfficeId
  |  *
  |  *
  |  * @return
  |  */
  | 
  | String getOfficeId ()
  | {
  | if (m_user == null)
  | return "0";// Default office
  | else return Integer.toString (getUser ().getOfficeId ());
  | }
  | 
  | /**
  |  * Method: getUser
  |  *
  |  *
  |  * @return
  |  */
  | 
  | public UserInstance getUser ()
  | {
  | return m_user;
  | }
  | 
  | /**
  |  * Method: initialize
  |  *
  |  *
  |  * @param arg
  |  */
  | 
  | @Override public void initialize (String... arg)
  | {
  | }
  | 
  | /**
  |  * Method: isActive
  |  *
  |  *
  |  * @return
  |  */
  | 
  | public boolean isActive ()
  | {
  | boolean result = false;
  | if (m_user != null)
  | result = m_user.getActiveFlag () == ParameterConstants.YES_C;
  | return result;
  | }
  | 
  | /**
  |  * Method: render
  |  *
  |  *
  |  * @return
  |  */
  | 
  | public String render ()
  | {
  | StringBuffer buffer = new StringBuffer (256);
  | buffer.append (super.render ());
  | buffer.append (String.format ("  %20s = %d\n", "User Id:",
  |   (m_user == null) ? 0 : 
m_user.getObjectId ()));
  | buffer.append (String.format ("  %20s = %s\n", "Customerer 
Id:", m_customerId));
  | return buffer.toString ();
  | }
  | 
  | /**
  |  *  Method: setCustomer
  |  *
  |  *
  |  *  @param customer
  |  */
  | 
  | public void setCustomer (Customer customer)
  | {
  | if (customer != null)
  | setCustomerId (customer.getObjectId ());
  | 
  | m_customer = customer;
  |

[jboss-user] [JBossCache] - Re: PojoCache can't find classloader

2007-03-09 Thread chip_schoch
Thanks for you help.  As far as the Sample-Cluster message, we have two Jboss 
clusters here, qa and dev, and each has two jboss servers.  I had not changed 
the name in the qa cluster and I was getting the message on the dev cluster.  
Changing it in qa fixed that.

As for the class loader problem, I still am not having any luck .  My service 
xml is below.  I have set ?UseRegionBasedMarshalling? to true in all servers 
but still get the classloader exception.  

Any ideas where to go from here?



  | 
  | 
  | 
  |
  |
  | 
  |
  | 
  |   
  |   jboss:service=Naming
  |   jboss:service=TransactionManager
  | 
  |   true
  |   PESSIMISTIC
  |   REPEATABLE_READ
  |   REPL_ASYNC
  | 
  |   
  |   eLynxCluster
  | 
  |   
  | 
  |   
  |  
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |  
  |   
  | 
  | 
  |   
  |   2
  | 
  |   
  |   15000
  | 
  |   
  |   1
  | 
  |   
  | 
  |   
  |   org.jboss.cache.aop.eviction.AopLRUPolicy
  | 
  |   
  |   
  |  
  | 5
  | 
  | 
  |5000
  |1000
  | 
  | 
  | 5
  | 4
  | 
  | 
  | 100
  | 4
  | 
  | 
  | 4
  | 100
  | 
  |  
  |   
  |
  | 
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026699#4026699

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026699
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


  1   2   >