[JBoss jBPM] - jbpm bpel problem with doc/lit format.
by powerpunch
wrote a simple bpel code:
<?xml version="1.0" encoding="UTF-8"?>
<process name="review" targetNamespace="urn:author"
xmlns:urn="urn:author"
xmlns:rev="urn:reviewer"
xmlns:bpel="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://schemas.xmlsoap.org/ws/2003/03/business-process/
http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
<!-- realizes the abstract relationship with the caller -->
<!-- realizes the relationship with the reviewer1 -->
<!-- holds the incoming message -->
<!-- holds the outgoing message -->
<!-- receive a message carrying the name of a person -->
<!-- reply with a message carrying the greeting -->
the corresponding wsdl is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<definitions targetNamespace="urn:author"
xmlns:urn="urn:author"
xmlns:rev="urn:reviewer"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- characterizes the relationship between the process and its caller -->
<plt:partnerLinkType name="callerPLT">
<plt:role name="service">
<plt:portType name="urn:callerPT"/>
</plt:role>
</plt:partnerLinkType>
<plt:partnerLinkType name="reviewPLT">
<plt:role name="review">
<plt:portType name="rev:Reviewer"/>
</plt:role>
</plt:partnerLinkType>
<!-- describes the interface presented to callers-->
the rev.wsdl of the external web service used is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:reviewer"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="urn:reviewer"
xmlns:intf="urn:reviewer"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<xsd:schema elementFormDefault="qualified" targetNamespace="urn:reviewer">
<xsd:element name="reviewRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="name" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="reviewResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:int"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="reviewResponse">
<wsdl:part name="output" element="impl:reviewResponse"/>
</wsdl:message>
<wsdl:message name="reviewRequest">
<wsdl:part name="in0" element="impl:reviewRequest"/>
</wsdl:message>
<wsdl:portType name="Reviewer">
<wsdl:operation name="reviewRequest" parameterOrder="in0">
<wsdl:input message="impl:reviewRequest" name="reviewRequest"/>
<wsdl:output message="impl:reviewResponse" name="reviewResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="reviewerSoapBinding" type="impl:Reviewer">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="reviewRequest">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="reviewRequest">
<wsdlsoap:body use="literal"/>
<!--encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:reviewer" -->
</wsdl:input>
<wsdl:output name="reviewResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ReviewerService">
<wsdl:port binding="impl:reviewerSoapBinding" name="reviewer">
<wsdlsoap:address location="http://localhost:8080/reviewer/reviewer"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
in the "binding.xml" generated after generate-artifacts, the style has been changed to document/literal. the web-service involved also supports doc/lit format.
the bpel process gets deployed. using wsdl2Java, the client is generated. i get the following error:
2006-08-21 12:05:32,093 ERROR [org.jboss.webservice.handler.HandlerChainBaseImpl] RuntimeException in request handler
java.lang.NullPointerException
at org.jbpm.bpel.service.provider.PortProvider.getRequestParts(PortProvider.java:363)
at org.jbpm.bpel.service.provider.PortProvider.sendRequest(PortProvider.java:316)
at org.jbpm.bpel.service.provider.PortProvider.handleRequest(PortProvider.java:202)
at org.jboss.webservice.handler.HandlerWrapper.handleRequest(HandlerWrapper.java:106)
at org.jboss.webservice.handler.HandlerChainBaseImpl.handleRequest(HandlerChainBaseImpl.java:216)
at org.jboss.webservice.handler.ServerHandlerChain.handleRequest(ServerHandlerChain.java:52)
at org.jboss.webservice.server.InvokerProviderJSE.invokeTarget(InvokerProviderJSE.java:74)
at org.jboss.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:121)
at org.jboss.axis.providers.java.JavaProvider.invoke(JavaProvider.java:358)
at org.jboss.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
at org.jboss.axis.SimpleChain.doVisiting(SimpleChain.java:160)
at org.jboss.axis.SimpleChain.invoke(SimpleChain.java:123)
at org.jboss.axis.handlers.soap.SOAPService.invoke(SOAPService.java:560)
at org.jboss.webservice.server.ServerEngine.invokeInternal(ServerEngine.java:200)
at org.jboss.webservice.server.ServerEngine.invoke(ServerEngine.java:89)
at org.jboss.axis.transport.http.AxisServlet.doPost(AxisServlet.java:911)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.jboss.axis.transport.http.AxisServletBase.service(AxisServletBase.java:370)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
can somebody please help out with this problem??
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966406#3966406
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966406
19 years, 8 months
[EJB 3.0] - get Object field in MS SQL
by ccharpentier
I've got jboss 4.0.4GA with MS SQLSERVER
I want to create an Image type field in MS SQL within an ejb3.
when i look in the mapping file standardjaws.xml
| <mapping>
| <java-type>java.lang.Object</java-type>
| <jdbc-type>JAVA_OBJECT</jdbc-type>
| <sql-type>IMAGE</sql-type>
| </mapping>
|
here this is my entity
| import java.sql.Date;
|
| import javax.persistence.Entity;
| import javax.persistence.GeneratedValue;
| import javax.persistence.Id;
| import javax.persistence.Table;
|
| import org.hibernate.annotations.Type;
|
| @Entity
| @Table(name="FichierOma")
| public class FichierOma {
|
| Integer id;
| String numCommande;
| String numJob;
| String idClient;
| Date insertDate;
| Object fichierOma;
| /**
| * @return Returns the fichierOma.
| */
|
| public Object getFichierOma() {
| return fichierOma;
| }
| /**
| * @param fichierOma The fichierOma to set.
| */
| public void setFichierOma(Object fichierOma) {
| this.fichierOma = fichierOma;
| }
|
| /**
| * @return Returns the id.
| */
| @Id
| @GeneratedValue
| public Integer getId() {
| return id;
| }
| /**
| * @param id The id to set.
| */
| public void setId(Integer id) {
| this.id = id;
| }
| /**
| * @return Returns the idClient.
| */
| public String getIdClient() {
| return idClient;
| }
| /**
| * @param idClient The idClient to set.
| */
| public void setIdClient(String idClient) {
| this.idClient = idClient;
| }
| /**
| * @return Returns the insertDate.
| */
| public Date getInsertDate() {
| return insertDate;
| }
| /**
| * @param insertDate The insertDate to set.
| */
| public void setInsertDate(Date insertDate) {
| this.insertDate = insertDate;
| }
| /**
| * @return Returns the numCommande.
| */
| public String getNumCommande() {
| return numCommande;
| }
| /**
| * @param numCommande The numCommande to set.
| */
| public void setNumCommande(String numCommande) {
| this.numCommande = numCommande;
| }
| /**
| * @return Returns the numJob.
| */
| public String getNumJob() {
| return numJob;
| }
| /**
| * @param numJob The numJob to set.
| */
| public void setNumJob(String numJob) {
| this.numJob = numJob;
| }
|
| }
|
when I deploy this ejb3
i get this error
| ObjectName: persistence.units:jar=formOma.par.jar,unitName=formoma
| State: FAILED
| Reason: org.hibernate.MappingException: property mapping has wrong number of c
| olumns: com.edieyes.oma.entities.FichierOma.fichierOma type: object
|
If i replace Object by String in my entity everything is OK.
if somebody have a clue?
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966403#3966403
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966403
19 years, 8 months
[Installation, Configuration & Deployment] - null java.lang.reflect.UndeclaredThrowableException at $Prox
by KayouMT
After making run the famous FiboBean tutorial, my next step has been to writing :
- a servlet calling ejbs A and B
- ejb A calls ejb X
- ejb B calls ejb Y
Servlet is deployed in a Servlet.war file. A and B are in AB.jar. X and Y are deployed in XY.jar.
If I deploy all the stuff locally, properties.put("java.naming.provider.url", "localhost:1099"), it works number 1.
But, If I deploy XY.jar on a standalone Linux Jboss installation, properties.put("java.naming.provider.url", "192.168.2.100:1099"), and run Servlet and AB.jar on a Windows Jboss instllation(localhost), I got the error below.
Any idea ???
===============================================
null java.lang.reflect.UndeclaredThrowableException at $Proxy57.compute(Unknown Source) at tutorial.web.ComputeServlet.doPost(ComputeServlet.java:114) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:44) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:169) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Unknown Source) Caused by: javax.servlet.ServletException: Lookup of 'ejb/Cube' failed at tutorial.ejb.FiboBean.ejbCreate(FiboBean.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.ejb.StatelessSessionEnterpriseContext.(StatelessSessionEnterpriseContext.java:63) at org.jboss.ejb.plugins.StatelessSessionInstancePool.create(StatelessSessionInstancePool.java:35) at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:146) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:80) at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51) at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:316) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:149) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624) at org.jboss.ejb.Container.invoke(Container.java:854) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104) at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.java:55) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55) at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86) ... 35 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966402#3966402
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966402
19 years, 8 months