Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 76698 invoked from network); 7 Dec 2009 19:09:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Dec 2009 19:09:55 -0000 Received: (qmail 95513 invoked by uid 500); 7 Dec 2009 19:09:55 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 95462 invoked by uid 500); 7 Dec 2009 19:09:54 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 95454 invoked by uid 99); 7 Dec 2009 19:09:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Dec 2009 19:09:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Dec 2009 19:09:43 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NHixX-0001Az-4q for user@geronimo.apache.org; Mon, 07 Dec 2009 11:09:23 -0800 Message-ID: <26682417.post@talk.nabble.com> Date: Mon, 7 Dec 2009 11:09:23 -0800 (PST) From: Hai-Dang Pham To: user@geronimo.apache.org Subject: Geronimo-Tuscany sample app issue MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: hdpham@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am trying to deploy the sample app found in the latest Geronimo-Tuscany plugin project (sample app helloworld-web). And I have encountered a ContributionException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 exception (full stack trace found can be found below). With bit of digging I found a JIRA task (TUSCANY-3165) describing this issue and hinting of a temporary workaround for it with Geronimo. Would somebody know what this workaround is and share it with me? (I am running in a Windows environment). Tx, Hai-Dang Inside TuscanyModuleBuilderExtension.createModule test/helloworld-web/1.0/car Inside TuscanyModuleBuilderExtension.installModule test/helloworld-web/1.0/car Inside TuscanyModuleBuilderExtension.initContext test/helloworld-web/1.0/car Inside TuscanyModuleBuilderExtension.addGBeans test/helloworld-web/1.0/car Inside TuscanyModuleBuilderExtension.handleWebModule org.apache.tuscany.sca.contribution.service.ContributionException: java.lang.StringIndexOutOfBoundsException: String ind ex out of range: -1 at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceI mpl.java:421) at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.contribute(ContributionServiceImpl.j ava:198) at org.apache.geronimo.tuscany.TuscanyModuleBuilderExtension.handleWebModule(TuscanyModuleBuilderExtension.java: 257) at org.apache.geronimo.tuscany.TuscanyModuleBuilderExtension.addGBeans(TuscanyModuleBuilderExtension.java:138) at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(TomcatModuleBuilder.java:497) at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:165) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:647) at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255) at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:134) 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.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867) at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239) at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116) at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1931) at java.lang.String.substring(String.java:1904) at org.apache.openejb.config.WebModule.(WebModule.java:51) at org.apache.openejb.config.DeploymentLoader.createWebModule(DeploymentLoader.java:544) at org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:445) at org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:154) at org.apache.tuscany.sca.contribution.jee.JavaEEModuleHelper.getMetadataCompleteModules(JavaEEModuleHelper.java :42) at org.apache.tuscany.sca.contribution.jee.impl.JavaEEIntrospectorImpl.introspectWebArchive(JavaEEIntrospectorIm pl.java:81) at org.apache.tuscany.sca.contribution.jee.impl.WebArchiveProcessor.read(WebArchiveProcessor.java:46) at org.apache.tuscany.sca.contribution.jee.impl.WebArchiveProcessor.read(WebArchiveProcessor.java:34) at org.apache.tuscany.sca.contribution.processor.DefaultURLArtifactProcessorExtensionPoint$LazyURLArtifactProces sor.read(DefaultURLArtifactProcessorExtensionPoint.java:222) at org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.read(ExtensibleURLArtifactProces sor.java:96) at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processReadPhase(ContributionService Impl.java:541) at org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceI mpl.java:419) ... 19 more java.lang.NullPointerException at org.apache.geronimo.tuscany.TuscanyModuleBuilderExtension.handleWebModule(TuscanyModuleBuilderExtension.java: 263) at org.apache.geronimo.tuscany.TuscanyModuleBuilderExtension.addGBeans(TuscanyModuleBuilderExtension.java:138) at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(TomcatModuleBuilder.java:497) at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:165) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:647) at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255) at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:134) 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.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867) at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239) at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116) at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61) at java.lang.Thread.run(Thread.java:619) SCA component name for web module is null 2009-12-07 14:03:03,636 INFO [SupportedModesServiceImpl] Portlet mode 'edit' not found for portletId: '/plugin.Deployme nt!227983155|0' -- View this message in context: http://old.nabble.com/Geronimo-Tuscany-sample-app-issue-tp26682417s134p26682417.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.