[jira] Created: (GERONIMO-715) 'StringIndexOutOfBoundsException' in 'org.openejb.corba.compiler.PortableStubCompiler'

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (GERONIMO-715) 'StringIndexOutOfBoundsException' in 'org.openejb.corba.compiler.PortableStubCompiler'

Development mailing list
'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


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

Reply | Threaded
Open this post in threaded view
|

Re: [jira] Created: (GERONIMO-715) 'StringIndexOutOfBoundsException' in 'org.openejb.corba.compiler.PortableStubCompiler'

Stefan Schmidt-25
Hi,

I came across the same bug: essentially this happens when you deploy a
entity EJB with a field called Id (with getId() and setId(..)) methods:
As this is a quite common usage for entity EJB's :-) I hope a commiter
looks into it soon. Or has it been resolved already? I suppose not since
the Jira is still open.

Thanks,

Stefan Schmidt



M.Oliver Scheele (JIRA) wrote:

>'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
>
>
>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))) {
>>>      
>>>
>
>
>
>
>
>
>
>
>  
>

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (GERONIMO-715) 'StringIndexOutOfBoundsException' in 'org.openejb.corba.compiler.PortableStubCompiler'

Development mailing list
In reply to this post by Development mailing list
    [ http://issues.apache.org/jira/browse/GERONIMO-715?page=comments#action_12315438 ]

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

It seems that some others came accross the same bug.
Since you can't deploy any CMP EJB with a field 'id'  anymore this bug is very essential .

Is anybody interested in this bug?
Fixing of this bug seems not to be very complicated and should be done before the M4 branch in my opinion.

How can I assign this one to a dedicated person?

> '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

>
> 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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (GERONIMO-715) 'StringIndexOutOfBoundsException' in 'org.openejb.corba.compiler.PortableStubCompiler'

Development mailing list
In reply to this post by Development mailing list
    [ http://issues.apache.org/jira/browse/GERONIMO-715?page=comments#action_12315439 ]

Aaron Mulder commented on GERONIMO-715:
---------------------------------------

Please provide the full stack trace and your openejb-jar.xml file.  It's not that I doubt that there's in issue with the code.  It's that the test case CMP EJB includes an "id" property and it's not clear to me why you're having the problem and it isn't.  I want to make sure there's a test that applies.

> '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

>
> 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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (GERONIMO-715) 'StringIndexOutOfBoundsException' in 'org.openejb.corba.compiler.PortableStubCompiler'

Development mailing list
In reply to this post by Development mailing list
    [ http://issues.apache.org/jira/browse/GERONIMO-715?page=comments#action_12315441 ]

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

I used the example of Sing Li at IBM developerworks: http://www-128.ibm.com/developerworks/views/download.jsp?contentid=83795&filename=j-geron2code.zip&method=ftp&locale=worldwide.
Please try the third example with the CMP EJB.

The problem should be very obvious if you look at the code section I mentioned above. ;)
Good luck!


> '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

>
> 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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (GERONIMO-715) 'StringIndexOutOfBoundsException' in 'org.openejb.corba.compiler.PortableStubCompiler'

Development mailing list
In reply to this post by Development mailing list
    [ http://issues.apache.org/jira/browse/GERONIMO-715?page=comments#action_12315445 ]

Aaron Mulder commented on GERONIMO-715:
---------------------------------------

Unfortunately the download link does not seem to be a working application, but a directory with source files, a build script, and instructions that refer to an article without a URL or anything.  Can you just attach the exact EAR you're using, and tell me how you set up the database so that doesn't cause problems?  Also, if you can attach the full stack trace, that would help.  Thanks.

> '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

>
> 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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (GERONIMO-715) 'StringIndexOutOfBoundsException' in 'org.openejb.corba.compiler.PortableStubCompiler'

Development mailing list
In reply to this post by Development mailing list
    [ 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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (GERONIMO-715) 'StringIndexOutOfBoundsException' in 'org.openejb.corba.compiler.PortableStubCompiler'

Development mailing list
In reply to this post by Development mailing list
     [ http://issues.apache.org/jira/browse/GERONIMO-715?page=all ]

M.Oliver Scheele updated GERONIMO-715:
--------------------------------------

    Attachment: reallybigpet_cmp.ear

> '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

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (GERONIMO-715) 'StringIndexOutOfBoundsException' in 'org.openejb.corba.compiler.PortableStubCompiler'

Development mailing list
In reply to this post by Development mailing list
     [ http://issues.apache.org/jira/browse/GERONIMO-715?page=all ]
     
Aaron Mulder closed GERONIMO-715:
---------------------------------

    Fix Version: 1.0-M4
     Resolution: Fixed
      Assign To: Aaron Mulder

My confusion was caused by the large number of getId methods in test CMP entities.  As it happens, none of them were in EJBs with a remote interface.  Once I added a getId to a bean with a remote interface, the problem manifested.

> '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
>     Assignee: Aaron Mulder
>      Fix For: 1.0-M4
>  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