Re: [jboss-user] [jBPM] - JBPM 4.3 - org.jbpm.api.JbpmException: couldn't acquire block of ids
by Stefano Campanini
Stefano Campanini [http://community.jboss.org/people/campa] replied to the discussion
"JBPM 4.3 - org.jbpm.api.JbpmException: couldn't acquire block of ids"
To view the discussion, visit: http://community.jboss.org/message/539800#539800
--------------------------------------------------------------
Hi guys, I'm back ... with new energies :-)
The problem was related to
org.jbpm.pvm.internal.id.DatabaseDbidGenerator and precisely on AcquireDbidBlockCmd it use.
I have re-implmented these classes using sequence to generate ids, as below:
...
public class SequenceDbIdGenerator extends DbidGenerator {
CommandService commandService;
@Override
public long getNextId() {
return commandService.execute(new SequenceDbIdGeneratorCmd());
}
}
...
and
...
public class SequenceDbIdGeneratorCmd implements Command<Long> {
private static final long serialVersionUID = -8109570788517494372L;
@SuppressWarnings("unchecked")
@Override
public Long execute(Environment environment) throws Exception {
Session session = environment.get(Session.class);
List<BigInteger> res = session.createSQLQuery(
"select nextval('jbpm_seq_external_id')").list();
return res.get(0).longValue();
}
}
and i the jbpm config file:
...
<object class="net.tinvention.wf.jbpm.SequenceDbIdGenerator">
<field name="commandService"><ref object="txRequiredCommandService" /></field>
</object>
<object class="org.jbpm.pvm.internal.id.DatabaseIdComposer" init="eager" />
Does anyone more expert on jbpm can validate ? Do you see any hidden disaster or this solution can work ?
Thanks in advance
Stefano
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539800#539800]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 8 months
Re: [jboss-user] [JBoss Web Services] - java.lang.ClassCastException: $Proxy25
by Erick Jeronimo Diaz
Erick Jeronimo Diaz [http://community.jboss.org/people/erickjd] replied to the discussion
"java.lang.ClassCastException: $Proxy25"
To view the discussion, visit: http://community.jboss.org/message/539781#539781
--------------------------------------------------------------
OHHHHHH thanks my friend , you're right, now i obtain another error message:
08:59:44,687 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
org.jboss.ws.core.CommonSOAPFaultException: Endpoint { http://org.jboss.ws/samples/news http://org.jboss.ws/samples/news}PressReleaseEndpointPort does not contain operation meta data for: { http://www.w3.org/2001/04/xmlenc# http://www.w3.org/2001/04/xmlenc#}EncryptedData
at org.jboss.ws.core.server.ServiceEndpointInvoker.getDispatchDestination(ServiceEndpointInvoker.java:476)
at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:178)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:474)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:295)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:205)
at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:131)
at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
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:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
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.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Unknown Source)
thanks a lot for your help Opalka, i really appreciate that because i had a lot of things configured in my 4.2.3 AS, so i can still working on it.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539781#539781]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 8 months