Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DB9E6948C for ; Mon, 18 Jun 2012 20:34:46 +0000 (UTC) Received: (qmail 43616 invoked by uid 500); 18 Jun 2012 20:34:46 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 43575 invoked by uid 500); 18 Jun 2012 20:34:46 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 43567 invoked by uid 99); 18 Jun 2012 20:34:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2012 20:34:46 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rdifrango@captechconsulting.com designates 4.26.68.7 as permitted sender) Received: from [4.26.68.7] (HELO emailgw.captechventures.com) (4.26.68.7) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jun 2012 20:34:33 +0000 Received: from EXCHCASHUB02.captechventures.com (exchcashub02.captechventures.com [192.168.20.99]) by emailgw.captechventures.com (Postfix) with ESMTP id 27A402A80ED3; Mon, 18 Jun 2012 16:34:13 -0400 (EDT) Received: from EXCHMBX02.captechventures.com ([fe80::39ba:b30d:3dce:90b7]) by EXCHCASHUB02.captechventures.com ([::1]) with mapi id 14.02.0309.002; Mon, 18 Jun 2012 16:34:12 -0400 From: Ron DiFrango To: =?iso-8859-1?Q?Florian_M=FCller?= , "dev@chemistry.apache.org" Subject: RE: Null Pointer Exception when combine with JAX-WS Client Thread-Topic: Null Pointer Exception when combine with JAX-WS Client Thread-Index: Ac1Ngt/TEzjQBgBuT9aw9eiZLm5j8QAJmj+A///C7DSAAEqogP//wuks Date: Mon, 18 Jun 2012 20:34:12 +0000 Message-ID: <6438C283DE38D14688556D8F7D22794218BAA62D@EXCHMBX02.captechventures.com> References: <6438C283DE38D14688556D8F7D22794218BA9209@EXCHMBX02.captechventures.com>,<4FDF800D.5030506@apache.org> <6438C283DE38D14688556D8F7D22794218BAA383@EXCHMBX02.captechventures.com>,<4FDF8B71.9020108@apache.org> In-Reply-To: <4FDF8B71.9020108@apache.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [199.244.214.101] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Florian,=0A= =0A= As another thought, why not break out the implementation specific bindings = [ATom, WebService, etc.] into their own jar files and then defer that until= an application actually needs that capability?=0A= =0A= In our case that would work as well.=0A= =0A= Ron DiFrango=0A= =0A= ________________________________________=0A= From: Florian M=FCller [fmui@apache.org]=0A= Sent: Monday, June 18, 2012 4:11 PM=0A= To: dev@chemistry.apache.org=0A= Cc: Ron DiFrango=0A= Subject: Re: Null Pointer Exception when combine with JAX-WS Client=0A= =0A= Ron,=0A= =0A= JAX-WS is not designed to handle huge messages. The JAX-WS interfaces force= in some situation (handling SOAP headers, etc.) a JAX-WS implementation to= keep the whole message in memory. That works fine with a small amount of d= ata but fails in a content management use-case when huge documents should b= e transferred. OpenCMIS can handle documents that are much larger than the = available main memory by streaming the content. We avoid all circumstances = that require that the message must be loaded in main memory.=0A= =0A= All JAX-WS implementers are aware of these shortcomings and all JAX-WS stac= ks provide workarounds and proprietary interfaces to overcome these problem= s. Since they are all different, we had to settle on one stack. When we sta= rted OpenCMIS in 2009 we knew from previous projects that the Sun stack cou= ld do what we need.=0A= =0A= Later there was a demand for a Web Sphere version that uses Web Spheres pro= prietary extensions. So we build it.=0A= =0A= We know that OpenCMIS has been used with Weblogic, but we never heard of th= e problem that you have reported. If you are willing to help us testing (I = don't have access to a Weblogic server), we could also build a Weblogic ver= sion of OpenCMIS.=0A= =0A= =0A= =0A= - Florian=0A= =0A= =0A= > Florian,=0A= >=0A= > We "built a custom" version of this jar file without that file and it wor= ked. Why do you call for a specific implementation provider and just not u= tilize the default container provided one?=0A= >=0A= > I see that in the 0.7.0 branch there is a Websphere specific binding jar,= why not produce one that is specific to WLS?=0A= >=0A= > Our preference is to have an official release, not some custom one, if we= can at all avoid that.=0A= >=0A= > Thanks,=0A= >=0A= > Ron DiFrango=0A= >=0A= > ________________________________________=0A= > From: Florian M=FCller [fmui@apache.org]=0A= > Sent: Monday, June 18, 2012 3:22 PM=0A= > To: dev@chemistry.apache.org; Ron DiFrango=0A= > Subject: Re: Null Pointer Exception when combine with JAX-WS Client=0A= >=0A= > Hi Ron,=0A= >=0A= > I still think this a Weblogic bug that we cannot solve in OpenCMIS. But m= aybe we can work around it.=0A= >=0A= > The chemistry-opencmis-client-bindings jar contains the file /META-INF/se= rvices/javax.xml.ws.spi.Provider . If you remove it from the jar, OpenCMIS = will not insist on using the Sun JAX-WS implementation. This might break th= e Web Services binding implementation, but maybe the AtomPub binding works = with this fix.=0A= > Since I don't have a Weblogic server, I cannot test it. That's my best gu= ess at the moment.=0A= >=0A= >=0A= > - Florian=0A= >=0A= >=0A= >>=0A= >> I just submitted ticket CMIS-542 and Florian asked me to move the discus= sion to the mailing list. To summarize my ticket:=0A= >>=0A= >> I am working on a project where we have JAX-WS client that are compile w= ith wsimport from Weblogic 10.3.2 or 10.3.5. We are now trying to integrate= the Chemistry API's into the mix and when we do, we get the following exce= ption when we attempt to bind JAX-WS compiled clients, we get an NPE=0A= >> at javax.xml.ws.Service.getPort(Service.java:161).=0A= >>=0A= >> The minute I remove the JAR file chemistry-opencmis-client-bindings, my = JAX-WS client code starts working again, so something in that jar file is c= ausing a conflict with WLS.=0A= >>=0A= >> Ron DiFrango=0A= >>=0A= >=0A= >=0A= >=0A= =0A= =0A= =0A=