THANK YOU! Upgrading the endorsed directory on TomEE to have jaxb2.2.6 jars fixed both operations. And just in time. I will be able to show this demo now at a meeting here in one hour.
miles -- Miles Poindexter Data & Service Architecture Condé Nast ph: 212-790-6692 mobile: 347-967-8944 fax: 212-790-1891 [email protected] <applewebdata://6D7C2D39-4D16-42A7-8457-9A8FCE0ED464/miles_poindexter@conde nast.com> On 10/9/12 9:46 AM, "Romain Manni-Bucau" <[email protected]> wrote: >so it should work since we endorsed jaxb > >maybe give it a try without endorsed lib or with a more recent version of >jaxb (we use 2.2.5 i think) > > >*Romain Manni-Bucau* >*Twitter: @rmannibucau <https://twitter.com/rmannibucau>* >*Blog: >**http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> >*LinkedIn: **http://fr.linkedin.com/in/rmannibucau* >*Github: https://github.com/rmannibucau* > > > > >2012/10/9 Poindexter, Miles <[email protected]> > >> Sorry Romain. >> >> You're right, I forgot to write that. >> JDK is 1.6.0_35 >> >> Miles >> >> -- >> Miles Poindexter >> Data & Service Architecture >> Condé Nast >> ph: 212-790-6692 >> mobile: 347-967-8944 >> fax: 212-790-1891 >> [email protected] >> >><applewebdata://6D7C2D39-4D16-42A7-8457-9A8FCE0ED464/miles_poindexter@con >>de >> nast.com> >> >> >> >> >> >> On 10/9/12 3:45 AM, "Romain Manni-Bucau" <[email protected]> wrote: >> >> >well you didnt mentionned (or i missed it) your java version >> > >> >*Romain Manni-Bucau* >> >*Twitter: @rmannibucau <https://twitter.com/rmannibucau>* >> >*Blog: >> >**http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> >> >*LinkedIn: **http://fr.linkedin.com/in/rmannibucau* >> >*Github: https://github.com/rmannibucau* >> > >> > >> > >> > >> >2012/10/8 Poindexter, Miles <[email protected]> >> > >> >> I think this is just the "stable" release of TomEE 1.5: >> >> apache-tomee-plus-1.5.0 >> >> I did not play with the endorsed jaxb versions. >> >> In my maven pom, I have: >> >> >> >> <dependencies> >> >> <dependency> >> >> <groupId>javax</groupId> >> >> <artifactId>javaee-web-api</artifactId> >> >> <version>6.0</version> >> >> <scope>provided</scope> >> >> </dependency> >> >> <dependency> >> >> <groupId>org.apache.cxf</groupId> >> >> <artifactId>cxf-rt-frontend-jaxrs</artifactId> >> >> <version>${cxf-version}</version> >> >> <scope>provided</scope> >> >> </dependency> >> >> <dependency> >> >> <groupId>org.apache.cxf</groupId> >> >> <artifactId>cxf-rt-databinding-jaxb</artifactId> >> >> <version>${cxf-version}</version> >> >> <scope>provided</scope> >> >> </dependency> >> >> <dependency> >> >> <groupId>org.apache.cxf</groupId> >> >> <artifactId>cxf-bundle-jaxrs</artifactId> >> >> <version>${cxf-version}</version> >> >> <scope>provided</scope> >> >> </dependency> >> >> </dependencies> >> >> >> >> So, none of the maven jars are in the .war file when it gets >>deployed, >> >>so >> >> all jars are from TomEE. >> >> >> >> Miles >> >> >> >> >> >> -- >> >> Miles Poindexter >> >> Data & Service Architecture >> >> Condé Nast >> >> ph: 212-790-6692 >> >> mobile: 347-967-8944 >> >> fax: 212-790-1891 >> >> [email protected] >> >> >> >>>><applewebdata://6D7C2D39-4D16-42A7-8457-9A8FCE0ED464/miles_poindexter@c >>>>on >> >>de >> >> nast.com> >> >> >> >> >> >> >> >> >> >> >> >> On 10/8/12 12:27 PM, "Romain Manni-Bucau" <[email protected]> >> wrote: >> >> >> >> >Hi, >> >> > >> >> >which version of tomee? which jvm? did you played with endorsed jaxb >> >> >versions? >> >> > >> >> >*Romain Manni-Bucau* >> >> >*Twitter: @rmannibucau <https://twitter.com/rmannibucau>* >> >> >*Blog: >> >> >>>**http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/ >> > >> >> >*LinkedIn: **http://fr.linkedin.com/in/rmannibucau* >> >> >*Github: https://github.com/rmannibucau* >> >> > >> >> > >> >> > >> >> > >> >> >2012/10/8 Poindexter, Miles <[email protected]> >> >> > >> >> >> Hello, >> >> >> I just learned about TomEE+ last week so I am very new to it, but >> >>would >> >> >> like to demo it to people here. >> >> >> I have a demo 80% complete but have run into a problem that I >>don't >> >>know >> >> >> how to go about debugging. >> >> >> >> >> >> Here's some background: >> >> >> This will be a simple REST service that makes it easy for us to >> >>Create, >> >> >> Retrieve, Update, or Delete a custom object that has been created >>in >> >>our >> >> >> SalesForce sandbox account. (If successful of course, this would >> >>move >> >> >>to >> >> >> production) >> >> >> Originally, I built the complete demo using CXF 2.6.2 and all of >>the >> >> >>CRUD >> >> >> operations work, on the command line, using a main method to >>trigger >> >> >>calls. >> >> >> >> >> >> Then I tried building this into a .war file with a REST front end >>and >> >> >> deploying in TomEE 1.5. >> >> >> The great news is that the Login procedure executes successfully >>and >> >> >> Retrieve and Delete operations work fine. >> >> >> The bad new is that the Create and Update operations both fail >>with a >> >> >> Marshalling Error. But the error msg is null. >> >> >> >> >> >> Is anyone interested in helping me get this example running? >> >> >> I'm willing to show any code needed but not sure if this is simple >> >>fix >> >> >>or >> >> >> a crazy fix. >> >> >> >> >> >> We are using version 26.0 of the SalesForce SOAP API. >> >> >> >> >> >> BTW, I use CXF 2.6.2 wsdl2java to generate the stubs, with the >> >>following >> >> >> flags: >> >> >> /app/cxf/bin/wsdl2java -autoNameResolution enterprise.wsdl >> >> >> >> >> >> I also tried this and the main this this helped with was to change >> >>the >> >> >> getter/setter methods on the Custom object to use Strings instead >>of >> >> >> JAXBElements. >> >> >> /app/cxf/bin/wsdl2java -b ./javabindings.xml -noAddressBinding >> >> >> -autoNameResolution enterprise.wsdl >> >> >> >> >> >> I get the same Marshalling error with both sets of stubs/classes. >> >> >> >> >> >> Full stack trace of exception: >> >> >> WARNING: Interceptor for {urn:enterprise.soap.sforce.com >> >> >> }SforceService#{urn:enterprise.soap.sforce.com}create has thrown >> >> >> exception, unwinding now >> >> >> org.apache.cxf.interceptor.Fault: Marshalling Error: null >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.ja >>>>>>va >> >>>>:2 >> >> >>63) >> >> >> at >> >>org.apache.cxf.jaxb.io.DataWriterImpl.write(DataWriterImpl.java:168) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writePar >>>>>>ts >> >>>>(A >> >> >>bstractOutDatabindingInterceptor.java:110) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutIn >>>>>>te >> >>>>rc >> >> >>eptor.java:68) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercept >>>>>>or >> >>>>Ch >> >> >>ain.java:262) >> >> >> at >>org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:531) >> >> >> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:464) >> >> >> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:367) >> >> >> at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:320) >> >> >> at >> >>org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:89) >> >> >> at >> >> >> >>>>>>org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:13 >>>>>>4) >> >> >> at $Proxy90.create(Unknown Source) >> >> >> at >> >> >> >>>>>>com.cn.dsa.sf.SfJobControlMgr.createJobControl(SfJobControlMgr.java:8 >>>>>>5) >> >> >> at >> >>com.cn.dsa.sf.JobControlMgr.createJobControl(JobControlMgr.java:125) >> >> >> at >> >> >> >> >> >> >>>>>>com.cn.dsa.sf.JobControlServiceImpl.addJobControl(JobControlServiceIm >>>>>>pl >> >>>>.j >> >> >>ava:94) >> >> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> >> >> at >> >> >> >> >> >> >>>>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. >>>>>>ja >> >>>>va >> >> >>:39) >> >> >> at >> >> >> >> >> >> >>>>>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces >>>>>>so >> >>>>rI >> >> >>mpl.java:25) >> >> >> at java.lang.reflect.Method.invoke(Method.java:597) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(Abst >>>>>>ra >> >>>>ct >> >> >>Invoker.java:180) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker >>>>>>.j >> >>>>av >> >> >>a:96) >> >> >> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:167) >> >> >> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:94) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInv >>>>>>ok >> >>>>er >> >> >>Interceptor.java:58) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(Se >>>>>>rv >> >>>>ic >> >> >>eInvokerInterceptor.java:94) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercept >>>>>>or >> >>>>Ch >> >> >>ain.java:262) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainIniti >>>>>>at >> >>>>io >> >> >>nObserver.java:121) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(Abstract >>>>>>HT >> >>>>TP >> >> >>Destination.java:211) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.openejb.server.cxf.rs.CxfRsHttpListener.onMessage(CxfRsHtt >>>>>>pL >> >>>>is >> >> >>tener.java:70) >> >> >> at >> >>org.apache.openejb.server.rest.RsServlet.service(RsServlet.java:53) >> >> >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl >>>>>>ic >> >>>>at >> >> >>ionFilterChain.java:305) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF >>>>>>il >> >>>>te >> >> >>rChain.java:210) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV >>>>>>al >> >>>>ve >> >> >>.java:222) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.catalina.core.StandardContextValve.invoke(StandardContextV >>>>>>al >> >>>>ve >> >> >>.java:123) >> >> >> at >> >>org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica >>>>>>to >> >>>>rB >> >> >>ase.java:472) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j >>>>>>av >> >>>>a: >> >> >>168) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j >>>>>>av >> >>>>a: >> >> >>99) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: >>>>>>92 >> >>>>9) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal >>>>>>ve >> >>>>.j >> >> >>ava:118) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav >>>>>>a: >> >>>>40 >> >> >>7) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp >>>>>>11 >> >>>>Pr >> >> >>ocessor.java:1002) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process( >>>>>>Ab >> >>>>st >> >> >>ractProtocol.java:585) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoin >>>>>>t. >> >>>>ja >> >> >>va:312) >> >> >> at >> >> >> >> >> >> >>>>>>java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec >>>>>>ut >> >>>>or >> >> >>.java:886) >> >> >> at >> >> >> >> >> >> >>>>>>java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor >>>>>>.j >> >>>>av >> >> >>a:908) >> >> >> at java.lang.Thread.run(Thread.java:680) >> >> >> Caused by: java.lang.NullPointerException >> >> >> at >> >> >> >>>>>>javax.xml.bind.DatatypeConverter.printQName(DatatypeConverter.java:16 >>>>>>5) >> >> >> at >> >> >> >> >> >> >>>>>>com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerialize >>>>>>r. >> >>>>ja >> >> >>va:685) >> >> >> at >> >> >> >> >> >> >>>>>>com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.seriali >>>>>>ze >> >>>>It >> >> >>em(ArrayElementNodeProperty.java:69) >> >> >> at >> >> >> >> >> >> >>>>>>com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeLi >>>>>>st >> >>>>Bo >> >> >>dy(ArrayElementProperty.java:172) >> >> >> at >> >> >> >> >> >> >>>>>>com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(Ar >>>>>>ra >> >>>>yE >> >> >>RProperty.java:159) >> >> >> at >> >> >> >> >> >> >>>>>>com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBean >>>>>>In >> >>>>fo >> >> >>Impl.java:358) >> >> >> at >> >> >> >> >> >> >>>>>>com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerialize >>>>>>r. >> >>>>ja >> >> >>va:696) >> >> >> at >> >> >> >> >> >> >>>>>>com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(Eleme >>>>>>nt >> >>>>Be >> >> >>anInfoImpl.java:156) >> >> >> at >> >> >> >> >> >> >>>>>>com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl$1.serializeBody(Eleme >>>>>>nt >> >>>>Be >> >> >>anInfoImpl.java:131) >> >> >> at >> >> >> >> >> >> >>>>>>com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeBody(Element >>>>>>Be >> >>>>an >> >> >>InfoImpl.java:333) >> >> >> at >> >> >> >> >> >> >>>>>>com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(Element >>>>>>Be >> >>>>an >> >> >>InfoImpl.java:340) >> >> >> at >> >> >> >> >> >> >>>>>>com.sun.xml.bind.v2.runtime.ElementBeanInfoImpl.serializeRoot(Element >>>>>>Be >> >>>>an >> >> >>InfoImpl.java:76) >> >> >> at >> >> >> >> >> >> >>>>>>com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.j >>>>>>av >> >>>>a: >> >> >>494) >> >> >> at >> >> >> >> >> >> >>>>>>com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java: >>>>>>32 >> >>>>3) >> >> >> at >> >> >> >> >> >> >>>>>>com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.jav >>>>>>a: >> >>>>25 >> >> >>1) >> >> >> at >> >> >> >> >> >> >>>>>>javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshal >>>>>>le >> >>>>rI >> >> >>mpl.java:100) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.cxf.jaxb.JAXBEncoderDecoder.writeObject(JAXBEncoderDecoder >>>>>>.j >> >>>>av >> >> >>a:554) >> >> >> at >> >> >> >> >> >> >>>>>>org.apache.cxf.jaxb.JAXBEncoderDecoder.marshall(JAXBEncoderDecoder.ja >>>>>>va >> >>>>:2 >> >> >>36) >> >> >> ... 47 more >> >> >> Oct 8, 2012 11:35:17 AM >> >> >> org.apache.openejb.server.webservices.saaj.SaajFactoryFinder >> >> >> initDefaultSAAJProvider >> >> >> INFO: Default SAAJ universe not set >> >> >> Error creating JobControl Marshalling Error: null >> >> >> >> >> >> >> >> >> Oct 8, 2012 11:35:17 AM com.cn.dsa.sf.SfJobControlMgr >>exceptionLogger >> >> >> SEVERE: Marshalling Error: null >> >> >> >> >> >> >> >> >> -- >> >> >> Miles Poindexter >> >> >> Data & Service Architecture >> >> >> Condé Nast >> >> >> ph: 212-790-6692 >> >> >> mobile: 347-967-8944 >> >> >> fax: 212-790-1891 >> >> >> [email protected] >> >> >> <applewebdata://6D7C2D39-4D16-42A7-8457-9A8FCE0ED464/ >> >> >> [email protected]> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>
