[jboss-user] [JBossMQ] - Re: UIL2 ReadTask / WriteTask thread leak on 4.0.5 GA

2009-03-15 Thread gogoasa
There is an incantation you *must* follow when you send/receive your JMS message. If you don't close the connection, the session or whatever, you get this. So make sure in all the points where you use JMS, you properly close things up. And, as I said, enable TRACE in log4j.xml in order to see w

[jboss-user] [Messaging, JMS & JBossMQ] - Re: UIL2 ReadTask / WriteTask thread leak on 4.0.5 GA

2008-02-15 Thread gogoasa
Ok, so here is how I solved the problem. It is due effectively to the fact that a connection is not closed. I thought I knew all the points in the application that interacted with JMS, I checked and double checked them, still there was a place that did its own JMS sending without closing connec

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Strange problem with SocketManager in my server

2008-02-15 Thread gogoasa
Have you found an answer ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129587#4129587 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129587 ___ jboss-user mailing list jbos

[jboss-user] [Messaging, JMS & JBossMQ] - Re: UIL2 ReadTask / WriteTask thread leak on 4.0.5 GA

2008-02-15 Thread gogoasa
I was wrong, the ReadTask/WriteTask pairs still accumulate, my JConsole was not refreshing the thread list which lead me to think the problem was over. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129568#4129568 Reply to the post : http://www.jboss.com/i

[jboss-user] [Messaging, JMS & JBossMQ] - Re: UIL2 ReadTask / WriteTask thread leak on 4.0.5 GA

2008-02-14 Thread gogoasa
Ok, the problem was that the jBPM installation I used did not close connections after each and every JMS message send it did. In fact, jBPM JMS subsystem keeps one single Connection and Session for the whole life of the server application. The JMS specification says that : anonymous wrote : A J

[jboss-user] [Messaging, JMS & JBossMQ] - Re: UIL2 ReadTask / WriteTask thread leak on 4.0.5 GA

2008-02-13 Thread gogoasa
Ok, I confirm it myself : ASPATCH300 didn't make it in the 4.0.5GA. But, if you look at the svn rep, you can see that it has been eventually merged : The history of SocketManager.java in 4.0.5: http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/tags/JBoss_4_0_5_GA_CP11/messaging/src/main/org/jbos

[jboss-user] [Messaging, JMS & JBossMQ] - UIL2 ReadTask / WriteTask thread leak on 4.0.5 GA

2008-02-12 Thread gogoasa
Hello, I see the thread leak problem described in http://jira.jboss.org/jira/browse/JBAS-4525 was backported for the 4.0.3 branch in http://jira.jboss.org/jira/browse/ASPATCH-300. I am using 4.0.5GA, and still the thread leak behaviour manifests itself. Inspecting the jvm with JConsole, i can

[jboss-user] [Clustering/JBoss] - Re: querying ejb proxy stub for available nodes

2008-01-01 Thread gogoasa
"shoeb1981" wrote : Nodes come and go. Thanks for your answer. Of course I mean the nodes at lookup time, I realize that they may change. I should be possible, the load balancing and failover logic is in the smart stub, not on the server. View the original post : http://www.jboss.com/index.ht

[jboss-user] [Clustering/JBoss] - querying ejb proxy stub for available nodes

2007-12-19 Thread gogoasa
Hello, suppose I have just looked up an ejb proxy on a cluster (jnp://machine:1100). Can I somehow query it in order to know the available nodes in the cluster ? I have tried introspecting an ejb proxy, no success. I have read http://www.ieeetcsc.org/newsletters/2003-02/labourey.html and I do h

[jboss-user] [JBoss jBPM] - Re: dynamic commands

2007-10-10 Thread gogoasa
Mark Richards about the Command pattern -- which is heavily used by jBPM: http://www.nofluffjuststuff.com/media.jsp?mediaId=28 Noteworthy: he uses a DTO view of the Command for the client; the CommandImpl that contains the actual code only resides on the server ; he hates dynamic commands too :

[jboss-user] [JBoss jBPM] - Re: async processes : favour termination instead of inceptio

2007-10-05 Thread gogoasa
Do you think there should be a fix for this issue ? Should I file a Jira ? I personnaly think this will be an issue for all people that use jBPM for orchestrating remote services that take a long time to execute. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=

[jboss-user] [JBoss jBPM] - Re: async processes : favour termination instead of inceptio

2007-10-03 Thread gogoasa
Jeff, if I understand correctly the difference between my installation and yours is that I use the JMS system for async execution while you use the built-in database-based messaging system. For what it's worth, in my case I don't feel the need to use asynchronous continuations because of parall

[jboss-user] [JBoss jBPM] - async processes : favour termination instead of inception

2007-10-03 Thread gogoasa
Hello, I have a process that contains several nodes that may take a long time to execute (hours). I order to be able to have a trace of what's happening, I use asynchronous continuations (async="true" for the slow nodes). The whole things goes like this: a process initiator send lots (hundreds

[jboss-user] [JBossWS] - mapping java.net.URL

2007-09-24 Thread gogoasa
Hello, On JBoss 4.0.5, I want to expose a webservice that returns objects containing fields of type java.net.URL (note : NOT java.net.URI). I see in the documentation that java.net.URI is mapped by default to xsd:anyURI, not so with java.net.URL. I have used wstools.sh to generate jaxrpc-mappi

[jboss-user] [JBoss jBPM] - Re: dynamic commands

2007-09-21 Thread gogoasa
Here it is : http://wiki.jboss.org/wiki/Wiki.jsp?page=BshCommand View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087213#4087213 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087213 __

[jboss-user] [JBoss jBPM] - Re: dynamic commands

2007-09-21 Thread gogoasa
Here is my current implementation of BshCommand in case anybody needs it. It supports passing optional parameters to scripts (in case you keep your script as a resource and want to pass it a parameter without having to String.replaceAll(...): package org.jbpm.command; | | import java.util.H

[jboss-user] [JBoss jBPM] - Re: dynamic commands

2007-09-19 Thread gogoasa
I guess donations should be accepted for scripted commands too :) I think the big problem with the set of static commands is finding a case -- in production -- that you can't manage because the command does not exist. For instance, right now, if I'm not mistaken, there is no command that allows

[jboss-user] [JBoss jBPM] - dynamic commands

2007-09-18 Thread gogoasa
Hello, Even if the predefined Commands that can be thrown at the CommandService are pretty rich, it would be nice to be able to throw any code you can think of, without the need to lookup the sources of the various Commands and try to figure out which combination would do the thing you want. I

[jboss-user] [JBoss jBPM] - limit the number of concurrent async process instances

2007-08-17 Thread gogoasa
Hello, I used to have my process deployed with async="false" nodes. Limiting the number of concurrent processes was as easy as limiting the CommandListenerBean MDB pool size. Because of very long transactions the synchronous execution required, I had to make some of the action nodes asynchrono

[jboss-user] [JBoss jBPM] - different ProcessClassLoader instance for each action delega

2007-08-16 Thread gogoasa
Hello, I noticed that each ActionHandler is loaded by a different instance of ProcessClassLoader. Incidentally that means that static variables cannot be used, as static variables are classloader-scoped. The code responsible for this is in ClassLoaderUtil.java public static ClassLoader getPr

[jboss-user] [JBoss jBPM] - Re: db error : exception handler cannot be loaded and infini

2007-08-14 Thread gogoasa
Well, the error handler can do its job inside a try-catch(Exception) and be sure that nothing escapes it. That's what I personally do, in fact. But if the error handler itself is not available, then it is more like a "framework" problem. Moreover, the exception handler is typically loaded when

[jboss-user] [JBoss jBPM] - db error : exception handler cannot be loaded and infinite l

2007-08-14 Thread gogoasa
Hello, It happens that my appserver's datasource become unavailable (no more connections etc.) That should not happen, of course, but shit happens. In this case, a runtime exception will occur in the middle of the process. I have an exception handler pointing to an "OnErrorAction" that is supp

[jboss-user] [JBoss jBPM] - inject datasource into Action

2007-07-16 Thread gogoasa
Hello, I would like to have something like : public class OnStartAction implements ActionHandler { | Datasource datasource; | | ... | } And I would like to have the "datasource" property injected by jBPM. I haven't actually found a direct solution. What I can do at this point is to

[jboss-user] [JBoss jBPM] - persisting process after every single node

2007-07-16 Thread gogoasa
Hello, IIUC, a process instance is actually persisted when entering a wait node or finishing. I have a process with non-wait (action) nodes that may last very long (hours) themselves. They are calls to remote clusters so while long, they are not resource-hungry. There is a business need to tra

[jboss-user] [JBoss jBPM] - Re: 3.2.1 web console does not work under jboss 4.0.5

2007-07-09 Thread gogoasa
Hi, thanks for your concern. I had read the wiki page you mention, still I personally find that it is saner to enable isolation for the whole appserver than to have a particular deployment descriptor specifying so. In fact I did eventually succeed in making the console work. The problem I ident

[jboss-user] [JBoss jBPM] - console : NullPointerException when examining process instan

2007-07-04 Thread gogoasa
Hello, I click "examine" on a process instance in the console and I get the exception below. Anybody understands what could be wrong ? Thanks. | java.lang.NullPointerException | java.lang.String.compareTo(String.java:998) | java.lang.String.compareTo(String.java:90) | org.

[jboss-user] [JBoss jBPM] - Re: hibernate exception not hidden from ejb client

2007-07-01 Thread gogoasa
created jira : http://jira.jboss.com/jira/browse/JBPM-1008 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059467#4059467 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059467

[jboss-user] [JBoss jBPM] - Re: hibernate exception not hidden from ejb client

2007-07-01 Thread gogoasa
On second thought, cleaning should be only done in the SLSB remote call use case -- because in-JVM callers may want to benefit lazy-loading... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059448#4059448 Reply to the post : http://www.jboss.com/index.html?m

[jboss-user] [JBoss jBPM] - Re: hibernate exception not hidden from ejb client

2007-07-01 Thread gogoasa
After some research, I found that my problem is not caused by a Hibernate specific exception that gets thrown. I use the GetProcessInstancesCommand in order to experiment with querying the remote ejb. This command returns a list with ProcessInstances. A ProcessInstance is read by Hibernate fro

[jboss-user] [JBoss jBPM] - Re: jBPM on JBossAS already installed

2007-07-01 Thread gogoasa
Download the jbpm-jpdl-suite-3.2.1.zip file from sourceforge. Inside you'll find deploy/jbpm-enterprise.ear. That's the main ear you'll deploy. It needs : * a datasource called JbpmDS which you'll have to configure. * an authentication policy called jbpm, to add to conf/login-config.xml The la

[jboss-user] [JBoss jBPM] - Re: 3.2.1 web console does not work under jboss 4.0.5

2007-06-30 Thread gogoasa
ok, here is the answer. JBoss 4.0.5 comes with a Tomcat deployment with JSF version 1.1 JBPM console uses version 1.2 and has the 1.2 jsf jars inside the war. My particular way of deploying the jBPM is as a war inside a EAR. JBoss by default uses a shared classloader that does not isolate EAR c

[jboss-user] [JBoss jBPM] - Re: 3.2.1 web console does not work under jboss 4.0.5

2007-06-29 Thread gogoasa
In fact, I see that the example jboss configuration that comes with the jpdl-suite distribution is 4.0.4 and it works very well. So it is inexact to say that the web console does not work on 4.0.5, it just does not work on *mine*. I still fail to see in what my 4.0.5 is different JSF-wise from

[jboss-user] [JBoss jBPM] - 3.2.1 web console does not work under jboss 4.0.5

2007-06-29 Thread gogoasa
jBPM 3.2.1 web console does not work under jboss 4.0.5 : anybody could explain why and what to do in order to make it work ? I suspect it is a JSF 1.1 vs 1.2 kind of thing but I don't know JSF at all so I'm kind of lost. I found this that looks similar : http://www.jboss.org/?module=bb&op=vie

[jboss-user] [JBoss jBPM] - hibernate exception not hidden from ejb client

2007-06-29 Thread gogoasa
Hello, I use the remote ejb/CommandServiceBean ejb in order to query an enterprise (EJB) jBPM deployment. The EJB client only depends on the jBPM jar (for the various Command implementations) and on the JBoss client jar. If a Hibernate exceptin occurs, it is wrapped by a JBPMException and ret

[jboss-user] [JBoss jBPM] - oracle : varchar length limited to 255

2007-06-22 Thread gogoasa
Use case : I have a string variable, containing an exception stacktrace formatted as a string. I want to put this variable into the execution context so that users can see it listed in the web console and understand why the process has failed. The stacktrace being big, I get a Hibernate excepti

[jboss-user] [JBoss jBPM] - 3.2.1 ?

2007-06-21 Thread gogoasa
While the official version of the CVS is now 3.2.1, I see lots of development is going on especially on the Seam integration. Any idea if 3.2.1 is to expect in the near future or is 3.2.1 more like a 3.3.0 ? In my search for stability, I would gladly go back to 3.1.x; still I do need the EJB f

[jboss-user] [JBoss jBPM] - Re: loading resource from process class

2007-06-16 Thread gogoasa
created jira issue : http://jira.jboss.com/jira/browse/JBPM-992 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054965#4054965 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054965 ___

[jboss-user] [JBoss jBPM] - Re: loading resource from process class

2007-06-13 Thread gogoasa
Similar problem : http://www.jboss.com/index.html?module=bb&op=viewtopic&t=67818 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053933#4053933 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053933

[jboss-user] [JBoss jBPM] - Re: loading resource from process class

2007-06-11 Thread gogoasa
Still hanging to this issue : do you think this is actually a bug ? Should I open a Jira ? Should I post more information ? Thank you, Adrian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053273#4053273 Reply to the post : http://www.jboss.com/index.html?

[jboss-user] [JBoss jBPM] - Re: oracle : one single sequence for all jbpm tables under

2007-06-11 Thread gogoasa
Jira created : http://jira.jboss.com/jira/browse/JBPM-982 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053002#4053002 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053002 ___

[jboss-user] [JBoss jBPM] - Re: loading resource from process class

2007-06-10 Thread gogoasa
I fixed the class ProcessClassLoader in order to correctly load resources. Either it is a bug it has always been there and nobody ever loaded a resource in a .par, or I don't get resource location inside par archives at all... ### Eclipse Workspace Patch 1.0 #P jbpm.3_HEAD Index: jpdl/jar/src/m

[jboss-user] [JBoss jBPM] - Re: loading resource from process class

2007-06-10 Thread gogoasa
I have just tried to include the .properties file inside the .par again, same result : | org.jbpm.JbpmException: couldn't get value for file 'jndi-services.properties' | at org.jbpm.file.def.FileDefinition.getBytes(FileDefinition.java:196) | at org.jbpm.instantiation.Pr

[jboss-user] [JBoss jBPM] - Re: oracle : one single sequence for all jbpm tables under

2007-06-10 Thread gogoasa
The only problem is that IDs do have business meaning, at least as far as the JBPM console is concerned : the ID's are shown there in order to identify processes, tasks etc. That may be confusing for users as they may wonder whatever happened to the tasks between 19 (last he solved) and 57 (the

[jboss-user] [JBoss jBPM] - loading resource from process class

2007-06-09 Thread gogoasa
Hello, I wonder if there is some "good practice" to recommend concerning loading properties files inside a process archive. My process actions call EJBs on a remote cluster and must have access to cluster location properties located in a file called jndi-services.properties. Some time ago I tr

[jboss-user] [JBoss jBPM] - oracle : one single sequence for all jbpm tables under

2007-06-09 Thread gogoasa
If I understand correctly, in order to generate table ids on Oracle, the hibernate-generated DDL specifies one single sequence : create sequence hibernate_sequence; That means that successive values for, say, deployed processes JBPM_PROCESSDEFINITION can be as far away from each other as 1 from

[jboss-user] [JBoss jBPM] - microscopic patch

2007-06-07 Thread gogoasa
For people that have the local jbpm repository set to a different location from the default, the ant build of the jpdl examples does not work. So, on the current CVS head of jbpm.3 : jbpm.3/jpdl/examples/example.base.build.xml : | Index: example.base.build.xml | ===

[jboss-user] [Clustering/JBoss] - org.jboss.invocation.ServiceUnavailableException: Service un

2007-04-27 Thread gogoasa
Hello, I have a clustered JBoss installation; on the client side I call a remote SLSB stub using the following jndi configuration : | java.naming.factory.initial = org.jnp.interfaces.NamingContextFactory | java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces | java.naming.prov

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

2007-04-27 Thread gogoasa
I my case, I used the standard SQL creation table script which comes with the jBpm distribution. I also changed the hibernate dialect to Oracle9Dialect. The problems manifests itself as follows. Suppose you have a musicians-jndi.properties file that you included in your process archive, at the

[jboss-user] [JBoss jBPM] - Re: oracle deployment : constraint violation

2007-04-27 Thread gogoasa
Thank you. Indeed, as indicated at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=107249 , I dropped the constraint on (KEY_, PROCESSDEFINITION_) for the JBPM_PROCESSINSTANCE table and the exception disappeared. I don't fully understand the implications of this drop but at least I

[jboss-user] [JBoss jBPM] - oracle deployment : constraint violation

2007-04-26 Thread gogoasa
Hello, I have deployed jBPM 3.2 as an EAR under jBoss 4.0.5 with an Oracle 9 datasource. In order to use Oracle, I basically ran the oracle db scripts in the distribution and I changed the hibernate.dialect property in hibernate.cfg.xml from org.hibernate.dialect.HSQLDialect to org.hibernate.

[jboss-user] [JBoss jBPM] - Re: jbpm3.2 on jboss 4.0.5

2007-04-24 Thread gogoasa
You need to set up a datasource called JbpmDS as well as authentication. I put some ideas on http://obiecte.blogspot.com/. hth. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040343#4040343 Reply to the post : http://www.jboss.com/index.html?module=bb&op=p

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

2007-04-24 Thread gogoasa
Hello, I am asking myself the very same question, have you found an answer ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040125#4040125 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040125 __