Hi Jim Looks like your fix (revision 492806) got removed, and we are back with this NPE trying to run java/samples/sca/webapp :
http://www.mail-archive.com/tuscany-dev%40ws.apache.org/msg12359.html -- Luciano Resende http://people.apache.org/~lresende On 1/4/07, Luciano Resende <[EMAIL PROTECTED]> wrote:
Thanks, much better now. On 1/4/07, Jim Marino <[EMAIL PROTECTED]> wrote: > > Can you resync to the latest repo and try now? I checked in a fix > which I can verify later tomorrow morning my time. > > Jim > > On Jan 4, 2007, at 2:33 PM, Luciano Resende wrote: > > > I'm still getting the same thing trying to run java/samples/sca/ > > webapp : > > > > java.lang.NullPointerException > > java.util.concurrent.ConcurrentHashMap.hash( > ConcurrentHashMap.java: > > 157) > > java.util.concurrent.ConcurrentHashMap.get( > ConcurrentHashMap.java : > > 730) > > > > org.apache.tuscany.spi.extension.CompositeComponentExtension.getChild( > > CompositeComponentExtension.java:127) > > > org.apache.tuscany.core.launcher.CompositeContextImpl.locateService > > (CompositeContextImpl.java:77) > > org.apache.jsp.calc_jsp._jspService(calc_jsp.java:52) > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java > :97) > > javax.servlet.http.HttpServlet.service (HttpServlet.java:802) > > org.apache.jasper.servlet.JspServletWrapper.service > > (JspServletWrapper.java:332) > > org.apache.jasper.servlet.JspServlet.serviceJspFile > > (JspServlet.java:314) > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java > :264) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > org.apache.tuscany.runtime.webapp.TuscanyFilter.doFilter > > (TuscanyFilter.java:57) > > > > > > I have cleaned the maven repository, did a mvn clean inside java/ > > sca and > > java/samples/sca and then a build and still the same. > > > > -- > > Luciano Resende > > http://people.apache.org/~lresende<http://people.apache.org/%7Elresende> > > > > On 1/4/07, Hasan Muhammad <[EMAIL PROTECTED]> wrote: > >> > >> Hi Luciano, > >> > >> Is it working for you now ? > >> > >> regards Hasan > >> > >> On 1/3/07, Jim Marino <[EMAIL PROTECTED] > wrote: > >> > > >> > It should work now, as I changed it yesterday. Did you sync to the > >> > latest repo and clear out you local repo? Also, if there is more > >> than > >> > one service offered by the composite it the getService() method > >> will > >> > return null and a target not found exception should be thrown. It's > >> > possible I may have missed something so let me know if you still > >> have > >> > the problem. > >> > > >> > Jim > >> > > >> > On Jan 3, 2007, at 9:39 AM, Luciano Resende wrote: > >> > > >> > > Hi Jim, are you still working on this ? I'm getting the same > >> issue on > >> > > java/samples/sca/webapp > >> > > > >> > > -- > >> > > Luciano Resende > >> > > http://people.apache.org/~lresende > <http://people.apache.org/%7Elresende> > >> > > > >> > > On 1/2/07, Jim Marino <[EMAIL PROTECTED]> wrote: > >> > >> > >> > >> For now I specified the target service in the SCDL. I think > >> we should > >> > >> keep it like that in the sample as picking the default > >> service in a > >> > >> composite is fragile and not really best practice. I'll work on > >> > >> getting rid of the NPE in a bit as it is a fairly simple fix. > >> > >> > >> > >> Jim > >> > >> > >> > >> On Jan 2, 2007, at 10:45 AM, Jim Marino wrote: > >> > >> > >> > >> > Yes that's right. I'll fix it in a bit. > >> > >> > > >> > >> > Jim > >> > >> > > >> > >> > On Jan 2, 2007, at 10:30 AM, Raymond Feng wrote: > >> > >> > > >> > >> >> Hi, > >> > >> >> > >> > >> >> I ran into a NPE with the latest code in the InnerComposite > >> > >> >> sample. Please see the stack trace below. > >> > >> >> > >> > >> >> java.lang.NullPointerException > >> > >> >> at java.util.concurrent.ConcurrentHashMap.hash > >> > >> >> (ConcurrentHashMap.java :172) > >> > >> >> at java.util.concurrent.ConcurrentHashMap.get > >> > >> >> (ConcurrentHashMap.java:745) > >> > >> >> at > >> > >> >> > >> > >> > >> org.apache.tuscany.spi.extension.CompositeComponentExtension.getServi > >> > >> >> ce(CompositeComponentExtension.java:252) > >> > >> >> at org.apache.tuscany.core.builder.ConnectorImpl.connect > >> > >> >> (ConnectorImpl.java:616) > >> > >> >> at org.apache.tuscany.core.builder.ConnectorImpl.connect > >> > >> >> ( ConnectorImpl.java:503) > >> > >> >> at > >> org.apache.tuscany.core.builder.ConnectorImpl.handleReference > >> > >> >> (ConnectorImpl.java:430) > >> > >> >> at org.apache.tuscany.core.builder.ConnectorImpl.connect > >> > >> >> (ConnectorImpl.java:90) > >> > >> >> at > >> > >> >> > >> > >> > >> org.apache.tuscany.spi.extension.CompositeComponentExtension.prepare( > >> > >> >> CompositeComponentExtension.java:368) > >> > >> >> at > >> > >> >> > >> > >> > >> org.apache.tuscany.spi.extension.CompositeComponentExtension.prepare( > >> > >> >> CompositeComponentExtension.java:370) > >> > >> >> at org.apache.tuscany.core.deployer.DeployerImpl.deploy > >> > >> >> (DeployerImpl.java:98) > >> > >> >> at > >> org.apache.tuscany.core.launcher.LauncherImpl.bootApplication > >> > >> >> (LauncherImpl.java :213) > >> > >> >> at org.apache.tuscany.test.SCATestCase.setUp > >> (SCATestCase.java:88) > >> > >> >> at innercomposite.InnerCompositeTestCase.setUp > >> > >> >> ( InnerCompositeTestCase.java:31) > >> > >> >> at junit.framework.TestCase.runBare(TestCase.java:125) > >> > >> >> at junit.framework.TestResult$1.protect(TestResult.java:106) > >> > >> >> at junit.framework.TestResult.runProtected(TestResult.java: > >> 124) > >> > >> >> at junit.framework.TestResult.run(TestResult.java:109) > >> > >> >> at junit.framework.TestCase.run(TestCase.java:118) > >> > >> >> at junit.framework.TestSuite.runTest(TestSuite.java:208) > >> > >> >> at junit.framework.TestSuite.run(TestSuite.java :203) > >> > >> >> at > >> > >> >> > >> > >> > >> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run( > >> > >> >> JUnit3TestReference.java:128) > >> > >> >> at org.eclipse.jdt.internal.junit.runner.TestExecution.run > >> > >> >> (TestExecution.java:38) > >> > >> >> at > >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests > >> > >> >> (RemoteTestRunner.java:460) > >> > >> >> at > >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests > >> > >> >> (RemoteTestRunner.java:673) > >> > >> >> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run > >> > >> >> (RemoteTestRunner.java:386) > >> > >> >> at > >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main > >> > >> >> (RemoteTestRunner.java:196) > >> > >> >> > >> > >> >> In this case, the qualified name for the target is the > >> component > >> > >> >> name and the portName is null and a NPE is thrown. > >> > >> >> > >> > >> >> The SCA spec defines the following syntax for wire-target- > >> URI: > >> > >> >> > >> > >> >> <component-name>/<service-name> > >> > >> >> o where the target is a service of a component. The > >> specification > >> > >> >> of the service name is optional if the target component > >> only has > >> > >> >> one service with a compatible interface > >> > >> >> > >> > >> >> If service-name is not present (portName==null), we should > >> check > >> > >> >> and pick the only one service. Am I right? > >> > >> >> > >> > >> >> Thanks, > >> > >> >> Raymond > >> > >> >> > >> > >> >> > >> > >> > >> --------------------------------------------------------------------- > > >> > >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> > >> >> For additional commands, e-mail: tuscany-dev- > >> [EMAIL PROTECTED] > >> > >> >> > >> > >> > > >> > >> > > >> > >> > > >> > >> > >> --------------------------------------------------------------------- > >> > >> > To unsubscribe, e-mail: [EMAIL PROTECTED] > >> > >> > For additional commands, e-mail: tuscany-dev- > >> [EMAIL PROTECTED] > >> > >> > > >> > >> > >> > >> > >> > >> > >> --------------------------------------------------------------------- > >> > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > >> > >> > > >> > > >> > > >> --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: [EMAIL PROTECTED] > >> > For additional commands, e-mail: [EMAIL PROTECTED] > >> > > >> > > >> > >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Luciano Resende http://people.apache.org/~lresende <http://people.apache.org/%7Elresende>
