geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M.Oliver Scheele (JIRA)" <...@geronimo.apache.org>
Subject [jira] Commented: (GERONIMO-715) 'StringIndexOutOfBoundsException' in 'org.openejb.corba.compiler.PortableStubCompiler'
Date Mon, 11 Jul 2005 07:34:10 GMT
    [ http://issues.apache.org/jira/browse/GERONIMO-715?page=comments#action_12315468 ] 

M.Oliver Scheele commented on GERONIMO-715:
-------------------------------------------

The link included above gives you the sources and binaries of Sing Li's examples. Please see
the article on http://www-128.ibm.com/developerworks/opensource/library/j-geron2/
I attached the correspondig EAR file to this issue, also.
I used the derby DB as described in the article.
Nevertheless you should be able to reproduce the issue with every simple EJB using an 'id'
field??

And here is the full stack trace:

15:27:20,893 DEBUG [Deployer] Deployment failed: plan=null, module=D:\projects\geronimo\deploy_tests\target\geronimo\reallybigpet_cmp.ear
org.apache.geronimo.common.DeploymentException: Unable to initialize EJBContainer GBean: ejbName
[CategoryBean]
	at org.openejb.deployment.CMPEntityBuilder.createBean(CMPEntityBuilder.java:803)
	at org.openejb.deployment.CMPEntityBuilder.buildBeans(CMPEntityBuilder.java:139)
	at org.openejb.deployment.OpenEJBModuleBuilder.addGBeans(OpenEJBModuleBuilder.java:485)
	at org.openejb.deployment.OpenEJBModuleBuilder$$FastClassByCGLIB$$11bd7b20.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:719)
	at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
	at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
	at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:94)
	at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$9e74b9e5.addGBeans(<generated>)
	at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:377)
	at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:719)
	at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
	at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
	at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:94)
	at org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$65304bdb.buildConfiguration(<generated>)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:155)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:79)
	at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:754)
	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:177)
	at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:124)
	at org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:754)
	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:177)
	at org.apache.geronimo.kernel.jmx.MBeanServerDelegate.invoke(MBeanServerDelegate.java:117)
	at mx4j.remote.rmi.RMIConnectionInvoker.invoke(RMIConnectionInvoker.java:219)
	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:324)
	at mx4j.remote.rmi.RMIConnectionProxy.invoke(RMIConnectionProxy.java:34)
	at mx4j.remote.rmi.RMIConnectionSubjectInvoker.chain(RMIConnectionSubjectInvoker.java:99)
	at mx4j.remote.rmi.RMIConnectionSubjectInvoker.access$000(RMIConnectionSubjectInvoker.java:31)
	at mx4j.remote.rmi.RMIConnectionSubjectInvoker$1.run(RMIConnectionSubjectInvoker.java:90)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
	at mx4j.remote.MX4JRemoteUtils.subjectInvoke(MX4JRemoteUtils.java:163)
	at mx4j.remote.rmi.RMIConnectionSubjectInvoker.subjectInvoke(RMIConnectionSubjectInvoker.java:86)
	at mx4j.remote.rmi.RMIConnectionSubjectInvoker.invoke(RMIConnectionSubjectInvoker.java:80)
	at $Proxy0.invoke(Unknown Source)
	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:221)
	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:324)
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
	at sun.rmi.transport.Transport$1.run(Transport.java:148)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
	at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 5
	at java.lang.String.charAt(String.java:444)
	at org.openejb.corba.compiler.PortableStubCompiler.createIiopOperations(PortableStubCompiler.java:198)
	at org.openejb.deployment.corba.NoDistributedTxTransactionImportPolicyBuilder.buildTransactionImportPolicy(NoDistributedTxTransactionImportPolicyBuilder.java:40)
	at org.openejb.deployment.AbstractContainerBuilder.getRemoteTxPolicyConfig(AbstractContainerBuilder.java:426)
	at org.openejb.deployment.AbstractContainerBuilder.createConfiguration(AbstractContainerBuilder.java:513)
	at org.openejb.deployment.CMPContainerBuilder.buildIt(CMPContainerBuilder.java:311)
	at org.openejb.deployment.AbstractContainerBuilder.createConfiguration(AbstractContainerBuilder.java:355)
	at org.openejb.deployment.CMPEntityBuilder.createBean(CMPEntityBuilder.java:800)
	... 64 more






> 'StringIndexOutOfBoundsException' in 'org.openejb.corba.compiler.PortableStubCompiler'
> --------------------------------------------------------------------------------------
>
>          Key: GERONIMO-715
>          URL: http://issues.apache.org/jira/browse/GERONIMO-715
>      Project: Geronimo
>         Type: Bug
>   Components: OpenEJB
>     Versions: 1.0-M4
>  Environment: up to date Geronimo snapshot  (03.07.2005)
>     Reporter: M.Oliver Scheele
>  Attachments: reallybigpet_cmp.ear
>
> Just played around the first time with Geronimo and the OpenEJB service.
> First of all: Thanks for this great project and the hard work!
> During deployment of a simple CMP EJB project I got the following exception:
> 15:58:00,318 DEBUG [Deployer] Deployment failed: plan=null, module=D:\projects\geronimo\deploy_tests\target\geronimo\myproject.ear
> ..........
> Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 5
> 	at java.lang.String.charAt(String.java:444)
> 	at org.openejb.corba.compiler.PortableStubCompiler.createIiopOperations(PortableStubCompiler.java:198)
> ........
> During the last patch there seems to be introduced a small bug.
> Lock at line 198 in class 'org.openejb.corba.compiler.PortableStubCompiler' inside the
'openejb-core' project:
> >> if (methodName.length() > 4 && Character.isUpperCase(methodName.charAt(4
+ 1))) {
> That's not very friendly when using 5-character strings. ;)
> It should be something like this: 
> >> if (methodName.length() > 5 && Character.isUpperCase(methodName.charAt(4
+ 1))) {

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message