You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Alexander Blotny (JIRA)" <de...@tuscany.apache.org> on 2010/05/21 17:28:16 UTC
[jira] Created: (TUSCANY-3567) IndexOutOfBoundsException with
calculator-osgi example
IndexOutOfBoundsException with calculator-osgi example
------------------------------------------------------
Key: TUSCANY-3567
URL: https://issues.apache.org/jira/browse/TUSCANY-3567
Project: Tuscany
Issue Type: Bug
Components: Java SCA Samples
Affects Versions: Java-SCA-2.0-M4
Environment: Apache Felix as OSGi Environment (configured according to: http://tuscany.apache.org/documentation-2x/running-tuscany-sca-2x-with-equin
ox-and-felix.html)
Reporter: Alexander Blotny
Fix For: Java-SCA-2.0-M5
The calculator-osgi example from the samples folder of the distribution started in a stand-alone OSGi container (Felix) throws following exception:
-> start file:/Users/alb/Development/Tuscany/tuscany-sca-2.0-M4/samples/calculator-osgi/target/sample-calculator-osgi.jar
21.05.2010 16:21:29 org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default7 domain: tuscany.apache.org
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at org.apache.tuscany.sca.node.osgi.impl.OSGiNodeFactoryImpl.getNodeKey(OSGiNodeFactoryImpl.java:129)
at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.addNode(NodeFactoryImpl.java:113)
at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:115)
at calculator.CalculatorActivator.start(CalculatorActivator.java:41)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:661)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1756)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1678)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
at org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:114)
at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:286)
at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:184)
at java.lang.Thread.run(Thread.java:637)
The testcases with maven and ant work correctly.
So it could be a problem with the way the bundle is started in the Bundle Activator Class.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TUSCANY-3567) IndexOutOfBoundsException with
calculator-osgi example
Posted by "Simon Laws (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-3567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12875038#action_12875038 ]
Simon Laws commented on TUSCANY-3567:
-------------------------------------
As per ML comment. I can run calculator-osgi in equinox using the M5 version of Tuscany and the following commands.
java -jar ..\..\modules\osgi-3.5.0-v20090520.jar -configuration
..\..\features\configuration -clean -console
install file:./target/sample-calculator-osgi.jar
start ???
> IndexOutOfBoundsException with calculator-osgi example
> ------------------------------------------------------
>
> Key: TUSCANY-3567
> URL: https://issues.apache.org/jira/browse/TUSCANY-3567
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Samples
> Affects Versions: Java-SCA-2.0-M4
> Environment: Apache Felix as OSGi Environment (configured according to: http://tuscany.apache.org/documentation-2x/running-tuscany-sca-2x-with-equin
> ox-and-felix.html)
> Reporter: Alexander Blotny
> Fix For: Java-SCA-2.0-M5
>
>
> The calculator-osgi example from the samples folder of the distribution started in a stand-alone OSGi container (Felix) throws following exception:
> -> start file:/Users/alb/Development/Tuscany/tuscany-sca-2.0-M4/samples/calculator-osgi/target/sample-calculator-osgi.jar
> 21.05.2010 16:21:29 org.apache.tuscany.sca.node.impl.NodeImpl start
> INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default7 domain: tuscany.apache.org
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:547)
> at java.util.ArrayList.get(ArrayList.java:322)
> at org.apache.tuscany.sca.node.osgi.impl.OSGiNodeFactoryImpl.getNodeKey(OSGiNodeFactoryImpl.java:129)
> at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.addNode(NodeFactoryImpl.java:113)
> at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:115)
> at calculator.CalculatorActivator.start(CalculatorActivator.java:41)
> at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:661)
> at org.apache.felix.framework.Felix.activateBundle(Felix.java:1756)
> at org.apache.felix.framework.Felix.startBundle(Felix.java:1678)
> at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
> at org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:114)
> at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:286)
> at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:184)
> at java.lang.Thread.run(Thread.java:637)
> The testcases with maven and ant work correctly.
> So it could be a problem with the way the bundle is started in the Bundle Activator Class.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TUSCANY-3567) IndexOutOfBoundsException with
calculator-osgi example
Posted by "Kelvin Goodson (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-3567?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kelvin Goodson updated TUSCANY-3567:
------------------------------------
Fix Version/s: (was: Java-SCA-2.0-M5)
Java-SCA-Next
retargetting for after 2.0-M5
> IndexOutOfBoundsException with calculator-osgi example
> ------------------------------------------------------
>
> Key: TUSCANY-3567
> URL: https://issues.apache.org/jira/browse/TUSCANY-3567
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Samples
> Affects Versions: Java-SCA-2.0-M4
> Environment: Apache Felix as OSGi Environment (configured according to: http://tuscany.apache.org/documentation-2x/running-tuscany-sca-2x-with-equin
> ox-and-felix.html)
> Reporter: Alexander Blotny
> Fix For: Java-SCA-Next
>
>
> The calculator-osgi example from the samples folder of the distribution started in a stand-alone OSGi container (Felix) throws following exception:
> -> start file:/Users/alb/Development/Tuscany/tuscany-sca-2.0-M4/samples/calculator-osgi/target/sample-calculator-osgi.jar
> 21.05.2010 16:21:29 org.apache.tuscany.sca.node.impl.NodeImpl start
> INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default7 domain: tuscany.apache.org
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:547)
> at java.util.ArrayList.get(ArrayList.java:322)
> at org.apache.tuscany.sca.node.osgi.impl.OSGiNodeFactoryImpl.getNodeKey(OSGiNodeFactoryImpl.java:129)
> at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.addNode(NodeFactoryImpl.java:113)
> at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:115)
> at calculator.CalculatorActivator.start(CalculatorActivator.java:41)
> at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:661)
> at org.apache.felix.framework.Felix.activateBundle(Felix.java:1756)
> at org.apache.felix.framework.Felix.startBundle(Felix.java:1678)
> at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
> at org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:114)
> at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:286)
> at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:184)
> at java.lang.Thread.run(Thread.java:637)
> The testcases with maven and ant work correctly.
> So it could be a problem with the way the bundle is started in the Bundle Activator Class.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TUSCANY-3567) IndexOutOfBoundsException with
calculator-osgi example
Posted by "Simon Laws (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-3567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12875087#action_12875087 ]
Simon Laws commented on TUSCANY-3567:
-------------------------------------
I tried this in Felix and it fails.
-> start 265
03-Jun-2010 13:52:40 org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0 domain: de
fault
java.lang.NullPointerException
at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.init(NodeFactoryImpl
.java:244)
at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:106)
at calculator.CalculatorActivator.start(CalculatorActivator.java:41)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAct
ion.java:661)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1760)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1682)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
at org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl
.java:114)
at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand
(Activator.java:286)
at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.j
ava:184)
at java.lang.Thread.run(Thread.java:619)
I don't think this is a blocker for M5 as we have Equinox working. It may be a configuration problem on my part but it'll take a bit of time to have a closer look
> IndexOutOfBoundsException with calculator-osgi example
> ------------------------------------------------------
>
> Key: TUSCANY-3567
> URL: https://issues.apache.org/jira/browse/TUSCANY-3567
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Samples
> Affects Versions: Java-SCA-2.0-M4
> Environment: Apache Felix as OSGi Environment (configured according to: http://tuscany.apache.org/documentation-2x/running-tuscany-sca-2x-with-equin
> ox-and-felix.html)
> Reporter: Alexander Blotny
> Fix For: Java-SCA-Next
>
>
> The calculator-osgi example from the samples folder of the distribution started in a stand-alone OSGi container (Felix) throws following exception:
> -> start file:/Users/alb/Development/Tuscany/tuscany-sca-2.0-M4/samples/calculator-osgi/target/sample-calculator-osgi.jar
> 21.05.2010 16:21:29 org.apache.tuscany.sca.node.impl.NodeImpl start
> INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default7 domain: tuscany.apache.org
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:547)
> at java.util.ArrayList.get(ArrayList.java:322)
> at org.apache.tuscany.sca.node.osgi.impl.OSGiNodeFactoryImpl.getNodeKey(OSGiNodeFactoryImpl.java:129)
> at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.addNode(NodeFactoryImpl.java:113)
> at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:115)
> at calculator.CalculatorActivator.start(CalculatorActivator.java:41)
> at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:661)
> at org.apache.felix.framework.Felix.activateBundle(Felix.java:1756)
> at org.apache.felix.framework.Felix.startBundle(Felix.java:1678)
> at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
> at org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:114)
> at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:286)
> at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:184)
> at java.lang.Thread.run(Thread.java:637)
> The testcases with maven and ant work correctly.
> So it could be a problem with the way the bundle is started in the Bundle Activator Class.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.