[JBossWS] - Re: Empty object is returned.
by skudzelia
Here is an Order class, may be it will be useful:
|
| package beanservice;
|
| import javax.xml.bind.annotation.XmlAccessType;
| import javax.xml.bind.annotation.XmlAccessorType;
| import javax.xml.bind.annotation.XmlElement;
| import javax.xml.bind.annotation.XmlType;
| import com.osmoticweb.purchase.ArrayOfXsdInt;
| import com.osmoticweb.purchase.ArrayOfXsdString;
|
|
| /**
| * <p>Java class for Order complex type.
| *
| * <p>The following schema fragment specifies the expected content contained within this class.
| *
| * <pre>
| * <complexType name="Order">
| * <complexContent>
| * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
| * <sequence>
| * <element name="customerName" type="{http://www.w3.org/2001/XMLSchema}string"/>
| * <element name="itemCodes" type="{http://osmoticweb.com/Purchase}ArrayOf_xsd_string"/>
| * <element name="quantities" type="{http://osmoticweb.com/Purchase}ArrayOf_xsd_int"/>
| * <element name="shippingAddress" type="{http://www.w3.org/2001/XMLSchema}string"/>
| * </sequence>
| * </restriction>
| * </complexContent>
| * </complexType>
| * </pre>
| *
| *
| */
| @XmlAccessorType(XmlAccessType.FIELD)
| @XmlType(name = "Order", propOrder = {
| "customerName",
| "itemCodes",
| "quantities",
| "shippingAddress"
| })
| public class Order {
|
| @XmlElement(required = true, nillable = true)
| protected String customerName;
| @XmlElement(required = true, nillable = true)
| protected ArrayOfXsdString itemCodes;
| @XmlElement(required = true, nillable = true)
| protected ArrayOfXsdInt quantities;
| @XmlElement(required = true, nillable = true)
| protected String shippingAddress;
|
| /**
| * Gets the value of the customerName property.
| *
| * @return
| * possible object is
| * {@link String }
| *
| */
| public String getCustomerName() {
| return customerName;
| }
|
| /**
| * Sets the value of the customerName property.
| *
| * @param value
| * allowed object is
| * {@link String }
| *
| */
| public void setCustomerName(String value) {
| this.customerName = value;
| }
|
| /**
| * Gets the value of the itemCodes property.
| *
| * @return
| * possible object is
| * {@link ArrayOfXsdString }
| *
| */
| public ArrayOfXsdString getItemCodes() {
| return itemCodes;
| }
|
| /**
| * Sets the value of the itemCodes property.
| *
| * @param value
| * allowed object is
| * {@link ArrayOfXsdString }
| *
| */
| public void setItemCodes(ArrayOfXsdString value) {
| this.itemCodes = value;
| }
|
| /**
| * Gets the value of the quantities property.
| *
| * @return
| * possible object is
| * {@link ArrayOfXsdInt }
| *
| */
| public ArrayOfXsdInt getQuantities() {
| return quantities;
| }
|
| /**
| * Sets the value of the quantities property.
| *
| * @param value
| * allowed object is
| * {@link ArrayOfXsdInt }
| *
| */
| public void setQuantities(ArrayOfXsdInt value) {
| this.quantities = value;
| }
|
| /**
| * Gets the value of the shippingAddress property.
| *
| * @return
| * possible object is
| * {@link String }
| *
| */
| public String getShippingAddress() {
| return shippingAddress;
| }
|
| /**
| * Sets the value of the shippingAddress property.
| *
| * @param value
| * allowed object is
| * {@link String }
| *
| */
| public void setShippingAddress(String value) {
| this.shippingAddress = value;
| }
|
| }
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149211#4149211
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149211
17 years, 11 months
[JBossWS] - Empty object is returned.
by skudzelia
I try to user webservice client that is created using JBossWS with Axis1 server. The problem is that I cannot receive a complex type from the server even though it is properly returned. Judging by TCPMon U receive th following message:
| <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><findOrderReturn xmlns="http://osmoticweb.com/PurchaseService/"><customerName>Ron</customerName><itemCodes xsi:nil="true"/><quantities xsi:nil="true"/><shippingAddress xsi:nil="true"/></findOrderReturn></soapenv:Body></soapenv:Envelope>
|
As you see customerName has value "Ron". I user the following code to call the server method:
| Service service = Service.create(wsdlLocation, serviceName);
| BeanService beanS = (BeanService) service.getPort(BeanService.class);
| Order o = beanS.findOrder();
|
No exceptions are thrown. Order object is returned but it has all the properties values equal to null (as you can see from the result message from the server "customerName" has its value).
Here is the wsdl:
| <?xml version="1.0" encoding="UTF-8"?>
| <wsdl:definitions targetNamespace="http://osmoticweb.com/Purchase" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://osmoticweb.com/Purchase" xmlns:intf="http://osmoticweb.com/Purchase" xmlns:tns1="urn:BeanService" xmlns:tns2="http://osmoticweb.com/PurchaseService/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
| <!--WSDL created by Apache Axis version: 1.2.1
| Built on Jun 14, 2005 (09:15:57 EDT)-->
| <wsdl:types>
| <schema elementFormDefault="qualified" targetNamespace="http://osmoticweb.com/Purchase" xmlns="http://www.w3.org/2001/XMLSchema">
| <import namespace="urn:BeanService"/>
| <complexType name="ArrayOf_xsd_string">
| <sequence>
| <element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:string"/>
| </sequence>
|
| </complexType>
| <complexType name="ArrayOf_xsd_int">
| <sequence>
| <element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:int"/>
| </sequence>
| </complexType>
| <element name="order" type="tns1:Order"/>
| </schema>
| <schema elementFormDefault="qualified" targetNamespace="urn:BeanService" xmlns="http://www.w3.org/2001/XMLSchema">
|
| <import namespace="http://osmoticweb.com/Purchase"/>
| <complexType name="Order">
| <sequence>
| <element name="customerName" nillable="true" type="xsd:string"/>
| <element name="itemCodes" nillable="true" type="impl:ArrayOf_xsd_string"/>
| <element name="quantities" nillable="true" type="impl:ArrayOf_xsd_int"/>
| <element name="shippingAddress" nillable="true" type="xsd:string"/>
| </sequence>
| </complexType>
|
| </schema>
| <schema elementFormDefault="qualified" targetNamespace="http://osmoticweb.com/PurchaseService/" xmlns="http://www.w3.org/2001/XMLSchema">
| <import namespace="http://osmoticweb.com/Purchase"/>
| <import namespace="urn:BeanService"/>
| <element name="findMeReturn" type="xsd:string"/>
| <element name="findOrderReturn" type="tns1:Order"/>
| </schema>
| </wsdl:types>
|
| <wsdl:message name="findOrderRequest">
|
| </wsdl:message>
|
| <wsdl:message name="findMeResponse">
|
| <wsdl:part element="tns2:findMeReturn" name="findMeReturn"/>
|
| </wsdl:message>
|
| <wsdl:message name="findMeRequest">
|
| <wsdl:part element="impl:order" name="order"/>
|
| </wsdl:message>
|
| <wsdl:message name="findOrderResponse">
|
| <wsdl:part element="tns2:findOrderReturn" name="findOrderReturn"/>
|
| </wsdl:message>
|
| <wsdl:portType name="BeanService">
|
| <wsdl:operation name="findMe" parameterOrder="order">
|
| <wsdl:input message="impl:findMeRequest" name="findMeRequest"/>
|
| <wsdl:output message="impl:findMeResponse" name="findMeResponse"/>
|
| </wsdl:operation>
|
| <wsdl:operation name="findOrder">
|
| <wsdl:input message="impl:findOrderRequest" name="findOrderRequest"/>
|
| <wsdl:output message="impl:findOrderResponse" name="findOrderResponse"/>
|
| </wsdl:operation>
|
| </wsdl:portType>
|
| <wsdl:binding name="OrderProcessorSoapBinding" type="impl:BeanService">
|
| <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
| <wsdl:operation name="findMe">
|
| <wsdlsoap:operation soapAction=""/>
|
| <wsdl:input name="findMeRequest">
|
| <wsdlsoap:body use="literal"/>
|
| </wsdl:input>
|
| <wsdl:output name="findMeResponse">
|
| <wsdlsoap:body use="literal"/>
|
| </wsdl:output>
|
| </wsdl:operation>
|
| <wsdl:operation name="findOrder">
|
| <wsdlsoap:operation soapAction=""/>
|
| <wsdl:input name="findOrderRequest">
|
| <wsdlsoap:body use="literal"/>
|
| </wsdl:input>
|
| <wsdl:output name="findOrderResponse">
|
| <wsdlsoap:body use="literal"/>
|
| </wsdl:output>
|
| </wsdl:operation>
|
| </wsdl:binding>
|
| <wsdl:service name="BeanServiceService">
|
| <wsdl:port binding="impl:OrderProcessorSoapBinding" name="OrderProcessor">
|
| <wsdlsoap:address location="http://127.0.0.1:9999/axis/services/OrderProcessor"/>
|
| </wsdl:port>
|
| </wsdl:service>
|
| </wsdl:definitions>
|
|
In case a string ibject is returned from the method than it's OK, I receive the value. An Order object is also properly send to the server as a method parameter. What is wrong? I've spend the whole day trying to find the cause of problem.
Order class and BeanService are generated by using WSConsume tool. JBoss 4.2.2GA is used.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149210#4149210
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149210
17 years, 11 months
[JBoss jBPM] - Process Instance not created
by dilsent
Hi,
I am using Seam-2.0.2.CR1 with jBPM .I am running into a small isssue,would
apreciate if anyone could help on that.
I am trying to create a process from a JSF page.
|
| <rich:panel styleClass="stack0" columns="1"
| xmlns="http://www.w3.org/1999/xhtml"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:a4j="http://richfaces.org/a4j"
| xmlns:rich="http://richfaces.org/rich">
|
| <rich:panel name="stack1a" styleClass="stack1">
|
| </rich:panel>
|
|
|
| <rich:panel name="stack4a" styleClass="stack4">
| <h:outputText>MAIN PORTION OF STACK</h:outputText>
| </rich:panel>
|
| <rich:panel name="stack5a" styleClass="stack5">
| <s:button id="Previous" value="Previous" action="#{salesProcessFlow.prev}"/>
| <s:button id="Next" value="Next" action="#{salesProcessFlow.next}"/>
| <s:button id="State" value="State" action="#{salesProcessFlow.createProcess}"/>
| <h:commandButton id="Cancel" value="Cancel" />
| </rich:panel>
| </h:form>
| <rich:panel name="stack6a" styleClass="stack6">
| <h:outputText>Timer</h:outputText>
| <!-- <rich:progressBar mode="client" id="timerBar"> -->
| <!-- </rich:progressBar> -->
| </rich:panel>
|
| </rich:panel>
|
|
| The "State" button invokes the createProcess method in my stateful bean
|
|
|
| import javax.ejb.Remove;
| import javax.ejb.Stateful;
| import org.jboss.seam.ScopeType;
| import org.jboss.seam.annotations.Destroy;
| import org.jboss.seam.annotations.In;
| import org.jboss.seam.annotations.Logger;
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.annotations.Out;
| import org.jboss.seam.annotations.Scope;
| import org.jboss.seam.annotations.bpm.CreateProcess;
| import org.jboss.seam.log.Log;
| import org.jbpm.graph.exe.ProcessInstance;
| import com.allconnect.viper.interfaces.local.SalesProcessFlowLocal;
|
| /
|
| @Stateful
| @Scope( ScopeType.SESSION )
| @Name( "salesProcessFlow" )
| public class SalesProcessFlow implements SalesProcessFlowLocal
| {
| private String processtokens = "start";
|
| @In(value="processInstance", required=false, scope=ScopeType.BUSINESS_PROCESS)
| @Out(value="processInstance", required = false )
| private ProcessInstance processInstance;
|
| @Logger
| private static Log logger;
|
|
|
| /**
| * Default Constructor.
| */
| SalesProcessFlow()
| {
|
| }
|
| /**
| * Method is used to retrieve token information.
| * {@inheritDoc}
| */
|
| @CreateProcess( definition = "SalesFlow" )
| public void createProcess()
| {
|
| }
|
| /**
| * {@inheritDoc}
| */
| @org.jboss.seam.annotations.bpm.ResumeProcess(definition="SalesFlow" )
| public void next()
| {
| logger.debug( "Got into Next Function" );
| logger.debug( "processInstance is " + processInstance );
| processInstance.signal( "Next" );
| }
|
| /**
| * {@inheritDoc}
| */
| public void prev()
| {
| // Do nothing right now.
| }
|
|
| public String getProcessTokens()
| {
| return processtokens;
| }
|
| public void setProcessTokens( final String processtokens )
| {
| this.processtokens = processtokens;
| }
|
| /**
| * Basic Destroy.
| */
| @Remove
| @Destroy
| public void destroy()
| {
| }
|
| }
|
| The the process definition file is within the deployed EAR.
|
| The "Next" button invokes the next method,which returns an error message.I have include the stack trace for reference.
| I am not sure why the processInstance is not created..
|
| Error trace
|
| 2008-05-07 12:40:53,945 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.postRemoveVariable.salesProcessFlow
| 2008-05-07 12:40:53,945 DEBUG [org.jboss.seam.ejb.RemoveInterceptor] Stateful component was removed: salesProcessFlow
| 2008-05-07 12:40:53,945 ERROR [org.jboss.seam.jsf.SeamPhaseListener] uncaught exception
| javax.el.ELException: javax.ejb.EJBTransactionRolledbackException: task/process id may not be null
| at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:333)
| at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:342)
| at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
| at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
| at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
| at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:173)
| at org.jboss.seam.navigation.Pages.callAction(Pages.java:643)
| at org.jboss.seam.navigation.Pages.preRender(Pages.java:296)
| at org.jboss.seam.jsf.SeamPhaseListener.preRenderPage(SeamPhaseListener.java:560)
| at org.jboss.seam.jsf.SeamPhaseListener.beforeRenderResponse(SeamPhaseListener.java:471)
| at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:144)
| at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:114)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
| at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
| at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
| at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
| 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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| 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(Thread.java:619)
| Caused by: javax.ejb.EJBTransactionRolledbackException: task/process id may not be null
| at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:87)
| at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:206)
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:119)
| at $Proxy129.next(Unknown Source)
| 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:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
| at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
| at org.jboss.seam.ejb.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:41)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
| at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
| at org.javassist.tmp.java.lang.Object_$$_javassist_6.next(Object_$$_javassist_6.java)
| 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:597)
| at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
| ... 51 more
| Caused by: java.lang.IllegalStateException: task/process id may not be null
| at org.jboss.seam.bpm.BusinessProcessInterceptor.getProcessOrTaskId(BusinessProcessInterceptor.java:159)
| at org.jboss.seam.bpm.BusinessProcessInterceptor.beforeInvocation(BusinessProcessInterceptor.java:76)
| at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:43)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:26)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:27)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
| at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
| at sun.reflect.GeneratedMethodAccessor105.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
| ... 87 more
| 2008-05-07 12:40:54,045 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.exception.exceptions
| 2008-05-07 12:40:54,045 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.exception.exceptions
| 2008-05-07 12:40:54,045 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.exception.exceptions
| 2008-05-07 12:40:54,045 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events
| 2008-05-07 12:40:54,045 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events
| 2008-05-07 12:40:54,045 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events
| 2008-05-07 12:40:54,045 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.even
|
|
| Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149205#4149205
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149205
17 years, 11 months
[Messaging, JMS & JBossMQ] - Re: MDB not
by scooter4j
Still battling with this issue.... I downloaded the sample MDB code provided by JBoss and successfully deployed and ran it - it works as expected. Naturally I've compared the configuration of the two applications and made them the same where I could - one difference is that my MDB has a selectorKey whereas the sample doesn't - shouldn't matter.
One thing I have noticed that seems strange, though is this: when deploying my real app, JBoss sees the MDB and thinks it needs a JNDI name for it - so it creates queue/SQMessageHandler. The server does NOT do the same thing for the sample code (EJB name in that is MessageAccess, but there is no queue/MessageAccess Queue created). It does look like the server creates a couple JNDI references for the EJBs (local/SQMessageHandler and local/MessageAccess)... I'm wondering if there is some problem with having two JNDI entries having the name SQMessageHandler (granted one is local/ and one is queue/ so it shouldn't matter)....
does that trigger any thoughts?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149202#4149202
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149202
17 years, 11 months