[JBoss jBPM] - Re: db connection leak some advice please
by bentins
OK. Done alot of investigation but still have a problem. Here is what I got:
first, I saw that my jbmp.configuration has no effect. i.e to have no transaction support by hibernate i had
| <service name='persistence' factory='org.jbpm.persistence.db.DbPersistenceServiceFactory'>
| <field name="isTransactionEnabled"><false /></field>
| </service>
|
this did not actually load the attribute what i should have had is this:
| <service name='persistence'>
| <factory>
| <bean class='com.emi.framework.infrastructure.workflow.EmiDbPersistanceServiceFactory'>
| <field name="isTransactionEnabled"><false /></field>
| </bean>
| </factory>
| </service>
|
Now the transaction is managed by Jboss App Server and not hibernate. Still there is a problem.
Here is what I do:
1. user clicks on a link on a web page.
2. A UserTransaction is opened
3. JbpmContext is created (JbpmConfiguration.getInstance().createJbpmContext()
4. TaskMgmntSesion is received and a taskInstance is loaded.
5. ContextInstance is received from the task
6. processinstance is received from context
7. the process is signaled.
8. Action are run and the process foloows to the next state.
9 return from signal to method
10. commit transaction
11. JbpmContext is closed
After lots of investigation I know the following:
1. the connection is opened by Jbpm in the LoadTaskInstance
2. this connection is not on the hiberanteSession, jdbcContext, ConnectionManager
3. I could not find it anywhere, so I can not close it.
4. This connection is not closed and stays open even though transaction is committed or rolledback.
5. Since this connection is nowhere to be found I can't close it.
This causes the connection pool to run out very quickly.
Need help ASAP
THNX
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009746#4009746
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009746
19Â years, 2Â months
[JBoss AOP] - trouble on upgrading
by eprst
Hi
Our program has stopped working after upgrading from JBossAOP 1.3.5 to 1.5.3GA. We're using compile-time instrumentation and JBoss 4.0.4 with aop-5.0 deployer from JBossAOP distribution. Instrumentation and deployment goes smoothly, but the following happens on attempt to use instrumented class:
| 2007-02-02 02:11:58,161 ERROR [javax.servlet.jsp.JspPage] Error JSP processing!
| java.lang.VerifyError: (class: com/supportwizard/gui2/beans/hotlinks/HotlinksProcessor, method: com$supportwizard$gui2$beans$hotlinks$HotlinksProcessor$processRequest$aop signature: (Ljavax/servlet/http/HttpServletRequest;Z)Lcom/supportwizard/gui2/beans/hotlinks/HotlinkForm;) Illegal constant pool index
| at com.supportwizard.gui2.compiledpages.login_jsp._jspService(login_jsp.java:184)
| at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
|
Here's relevant part of AOP deployer log:
| 2007-02-02 02:10:25,937 ERROR [STDERR] method matched binding execution(* com.supportwizard.gui2.servlets.system.GUIActionServlet->doIt(..)) OR execution(* com.supportwizard.gui2.beans.hotlinks.HotlinksProcessor->processRequest(javax.servlet.http.HttpServletRequest, boolean)) private void com.supportwizard.gui2.servlets.system.GUIActionServlet.doIt(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,com.supportwizard.gui2.servlets.system.LoginConstants$REQ_TYPE) throws java.io.IOException,javax.servlet.ServletException
| 2007-02-02 02:10:25,937 INFO [STDOUT] [debug] added advisor: com.supportwizard.gui2.servlets.system.GUIActionServlet from binding: com.supportwizard.audit.aspects.LoginAspect.aroundLoginServlet 6002103910592804910
| 2007-02-02 02:10:25,937 INFO [STDOUT] Using context classloader WebappClassLoader
|
| delegate: false
|
| repositories:
|
| /WEB-INF/classes/
|
| ----------> Parent Classloader:
|
| java.net.FactoryURLClassLoader@14b5526
|
| to load aspect com.supportwizard.audit.aspects.LoginAspect
|
Is it a bug or I'm doing something wrong?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009744#4009744
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009744
19Â years, 2Â months
[JBoss Portal] - Re: wsrp with https
by julienï¼ jboss.com
I am not the specialist here but I can try to help you. Chris which is our WSRP lead is currently away for a few days.
You could try to secure the endpoints in web.xml located in : jboss-portal.sar/portal-wsrp.sar/portal-wsrp.war/WEB-INF/web.xml
try with the ServiceDescriptionService endpoint like that
<security-constraint>
| <web-resource-collection>
| <web-resource-name>Secure Area</web-resource-name>
| <url-pattern>/ServiceDescriptionService</url-pattern>
| <http-method>POST</http-method>
| </web-resource-collection>
| <user-data-constraint>
| <transport-guarantee>CONFIDENTIAL</transport-guarantee>
| </user-data-constraint>
| </security-constraint>
and also do it for the 3 other endpoints you can find in the web.xml
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009741#4009741
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009741
19Â years, 2Â months