You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Rich Feit (JIRA)" <de...@beehive.apache.org> on 2005/09/30 21:52:50 UTC

[jira] Created: (BEEHIVE-958) StringIndexOutOfBoundsException when inheriting a Forward or SimpleAction with path=""

StringIndexOutOfBoundsException when inheriting a Forward or SimpleAction with path=""
--------------------------------------------------------------------------------------

         Key: BEEHIVE-958
         URL: http://issues.apache.org/jira/browse/BEEHIVE-958
     Project: Beehive
        Type: Bug
  Components: NetUI  
    Versions: V1    
    Reporter: Rich Feit
 Assigned to: Rich Feit 
    Priority: Minor
     Fix For: 1.1


Repro:

    - Create a page flow controller class with the following simple action annotation:
             @Jpf.SimpleAction(name="foo", path="")
 
    - Create another page flow controller class that extends the first one.

    - Compile them both.


EXPECTED: compiles fine
ACTUAL: get the following stacktrace:

java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    at java.lang.String.charAt(String.java:558)
    at org.apache.beehive.netui.compiler.FlowControllerChecker.checkRelativePath(FlowControllerChecker.java:455)
    at org.apache.beehive.netui.compiler.FlowControllerChecker.checkInheritedRelativePaths(FlowControllerChecker.java:351)
    at org.apache.beehive.netui.compiler.FlowControllerChecker.startCheckClass(FlowControllerChecker.java:324)
    at org.apache.beehive.netui.compiler.FlowControllerChecker.onCheckInternal(FlowControllerChecker.java:127)
    at org.apache.beehive.netui.compiler.FlowControllerChecker.onCheck(FlowControllerChecker.java:102)
    at org.apache.beehive.netui.compiler.BaseChecker.check(BaseChecker.java:44)
    at org.apache.beehive.netui.compiler.processor.BaseAnnotationProcessor.check(BaseAnnotationProcessor.java:66)
    at org.apache.beehive.netui.compiler.processor.TwoPhaseAnnotationProcessor.check(TwoPhaseAnnotationProcessor.java:125)
    at org.apache.beehive.netui.compiler.processor.TwoPhaseAnnotationProcessor.process(TwoPhaseAnnotationProcessor.java:86)
    at org.apache.beehive.netui.compiler.processor.BaseAnnotationProcessor.process(BaseAnnotationProcessor.java:106)
    at org.apache.beehive.netui.compiler.apt.BaseAnnotationProcessorFactory$DelegatingAnnotationProcessor.process(BaseAnnotationProcessorFactory.java:64)
    at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
    at com.sun.tools.apt.comp.Apt.main(Apt.java:450)
    at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:458)
    at com.sun.tools.apt.main.Main.compile(Main.java:1075)
    at com.sun.tools.apt.main.Main.compile(Main.java:938)
    at com.sun.tools.apt.Main.processing(Main.java:95)
    at com.sun.tools.apt.Main.process(Main.java:43)
    at com.sun.tools.apt.Main.main(Main.java:34)   


I already have a fix for this -- just entering it for tracking.

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


[jira] Resolved: (BEEHIVE-958) StringIndexOutOfBoundsException when inheriting a Forward or SimpleAction with path=""

Posted by "Rich Feit (JIRA)" <de...@beehive.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-958?page=all ]
     
Rich Feit resolved BEEHIVE-958:
-------------------------------

    Resolution: Fixed
     Assign To: Alejandro Ramirez  (was: Rich Feit)

Fixed with revision 292843.

> StringIndexOutOfBoundsException when inheriting a Forward or SimpleAction with path=""
> --------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-958
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-958
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Rich Feit
>     Assignee: Alejandro Ramirez
>     Priority: Minor
>      Fix For: 1.1

>
> Repro:
>     - Create a page flow controller class with the following simple action annotation:
>              @Jpf.SimpleAction(name="foo", path="")
>  
>     - Create another page flow controller class that extends the first one.
>     - Compile them both.
> EXPECTED: compiles fine
> ACTUAL: get the following stacktrace:
> java.lang.StringIndexOutOfBoundsException: String index out of range: 0
>     at java.lang.String.charAt(String.java:558)
>     at org.apache.beehive.netui.compiler.FlowControllerChecker.checkRelativePath(FlowControllerChecker.java:455)
>     at org.apache.beehive.netui.compiler.FlowControllerChecker.checkInheritedRelativePaths(FlowControllerChecker.java:351)
>     at org.apache.beehive.netui.compiler.FlowControllerChecker.startCheckClass(FlowControllerChecker.java:324)
>     at org.apache.beehive.netui.compiler.FlowControllerChecker.onCheckInternal(FlowControllerChecker.java:127)
>     at org.apache.beehive.netui.compiler.FlowControllerChecker.onCheck(FlowControllerChecker.java:102)
>     at org.apache.beehive.netui.compiler.BaseChecker.check(BaseChecker.java:44)
>     at org.apache.beehive.netui.compiler.processor.BaseAnnotationProcessor.check(BaseAnnotationProcessor.java:66)
>     at org.apache.beehive.netui.compiler.processor.TwoPhaseAnnotationProcessor.check(TwoPhaseAnnotationProcessor.java:125)
>     at org.apache.beehive.netui.compiler.processor.TwoPhaseAnnotationProcessor.process(TwoPhaseAnnotationProcessor.java:86)
>     at org.apache.beehive.netui.compiler.processor.BaseAnnotationProcessor.process(BaseAnnotationProcessor.java:106)
>     at org.apache.beehive.netui.compiler.apt.BaseAnnotationProcessorFactory$DelegatingAnnotationProcessor.process(BaseAnnotationProcessorFactory.java:64)
>     at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
>     at com.sun.tools.apt.comp.Apt.main(Apt.java:450)
>     at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:458)
>     at com.sun.tools.apt.main.Main.compile(Main.java:1075)
>     at com.sun.tools.apt.main.Main.compile(Main.java:938)
>     at com.sun.tools.apt.Main.processing(Main.java:95)
>     at com.sun.tools.apt.Main.process(Main.java:43)
>     at com.sun.tools.apt.Main.main(Main.java:34)   
> I already have a fix for this -- just entering it for tracking.

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


[jira] Assigned: (BEEHIVE-958) StringIndexOutOfBoundsException when inheriting a Forward or SimpleAction with path=""

Posted by "Alejandro Ramirez (JIRA)" <de...@beehive.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-958?page=all ]

Alejandro Ramirez reassigned BEEHIVE-958:
-----------------------------------------

    Assign To: Julie Zhuo  (was: Alejandro Ramirez)

please verify

> StringIndexOutOfBoundsException when inheriting a Forward or SimpleAction with path=""
> --------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-958
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-958
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Rich Feit
>     Assignee: Julie Zhuo
>     Priority: Minor
>      Fix For: 1.1

>
> Repro:
>     - Create a page flow controller class with the following simple action annotation:
>              @Jpf.SimpleAction(name="foo", path="")
>  
>     - Create another page flow controller class that extends the first one.
>     - Compile them both.
> EXPECTED: compiles fine
> ACTUAL: get the following stacktrace:
> java.lang.StringIndexOutOfBoundsException: String index out of range: 0
>     at java.lang.String.charAt(String.java:558)
>     at org.apache.beehive.netui.compiler.FlowControllerChecker.checkRelativePath(FlowControllerChecker.java:455)
>     at org.apache.beehive.netui.compiler.FlowControllerChecker.checkInheritedRelativePaths(FlowControllerChecker.java:351)
>     at org.apache.beehive.netui.compiler.FlowControllerChecker.startCheckClass(FlowControllerChecker.java:324)
>     at org.apache.beehive.netui.compiler.FlowControllerChecker.onCheckInternal(FlowControllerChecker.java:127)
>     at org.apache.beehive.netui.compiler.FlowControllerChecker.onCheck(FlowControllerChecker.java:102)
>     at org.apache.beehive.netui.compiler.BaseChecker.check(BaseChecker.java:44)
>     at org.apache.beehive.netui.compiler.processor.BaseAnnotationProcessor.check(BaseAnnotationProcessor.java:66)
>     at org.apache.beehive.netui.compiler.processor.TwoPhaseAnnotationProcessor.check(TwoPhaseAnnotationProcessor.java:125)
>     at org.apache.beehive.netui.compiler.processor.TwoPhaseAnnotationProcessor.process(TwoPhaseAnnotationProcessor.java:86)
>     at org.apache.beehive.netui.compiler.processor.BaseAnnotationProcessor.process(BaseAnnotationProcessor.java:106)
>     at org.apache.beehive.netui.compiler.apt.BaseAnnotationProcessorFactory$DelegatingAnnotationProcessor.process(BaseAnnotationProcessorFactory.java:64)
>     at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
>     at com.sun.tools.apt.comp.Apt.main(Apt.java:450)
>     at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:458)
>     at com.sun.tools.apt.main.Main.compile(Main.java:1075)
>     at com.sun.tools.apt.main.Main.compile(Main.java:938)
>     at com.sun.tools.apt.Main.processing(Main.java:95)
>     at com.sun.tools.apt.Main.process(Main.java:43)
>     at com.sun.tools.apt.Main.main(Main.java:34)   
> I already have a fix for this -- just entering it for tracking.

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


[jira] Closed: (BEEHIVE-958) StringIndexOutOfBoundsException when inheriting a Forward or SimpleAction with path=""

Posted by "Julie Zhuo (JIRA)" <de...@beehive.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-958?page=all ]
     
Julie Zhuo closed BEEHIVE-958:
------------------------------


Verified with rev351894. Compiles successfully now. Close.

> StringIndexOutOfBoundsException when inheriting a Forward or SimpleAction with path=""
> --------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-958
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-958
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Rich Feit
>     Assignee: Julie Zhuo
>     Priority: Minor
>      Fix For: 1.1

>
> Repro:
>     - Create a page flow controller class with the following simple action annotation:
>              @Jpf.SimpleAction(name="foo", path="")
>  
>     - Create another page flow controller class that extends the first one.
>     - Compile them both.
> EXPECTED: compiles fine
> ACTUAL: get the following stacktrace:
> java.lang.StringIndexOutOfBoundsException: String index out of range: 0
>     at java.lang.String.charAt(String.java:558)
>     at org.apache.beehive.netui.compiler.FlowControllerChecker.checkRelativePath(FlowControllerChecker.java:455)
>     at org.apache.beehive.netui.compiler.FlowControllerChecker.checkInheritedRelativePaths(FlowControllerChecker.java:351)
>     at org.apache.beehive.netui.compiler.FlowControllerChecker.startCheckClass(FlowControllerChecker.java:324)
>     at org.apache.beehive.netui.compiler.FlowControllerChecker.onCheckInternal(FlowControllerChecker.java:127)
>     at org.apache.beehive.netui.compiler.FlowControllerChecker.onCheck(FlowControllerChecker.java:102)
>     at org.apache.beehive.netui.compiler.BaseChecker.check(BaseChecker.java:44)
>     at org.apache.beehive.netui.compiler.processor.BaseAnnotationProcessor.check(BaseAnnotationProcessor.java:66)
>     at org.apache.beehive.netui.compiler.processor.TwoPhaseAnnotationProcessor.check(TwoPhaseAnnotationProcessor.java:125)
>     at org.apache.beehive.netui.compiler.processor.TwoPhaseAnnotationProcessor.process(TwoPhaseAnnotationProcessor.java:86)
>     at org.apache.beehive.netui.compiler.processor.BaseAnnotationProcessor.process(BaseAnnotationProcessor.java:106)
>     at org.apache.beehive.netui.compiler.apt.BaseAnnotationProcessorFactory$DelegatingAnnotationProcessor.process(BaseAnnotationProcessorFactory.java:64)
>     at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
>     at com.sun.tools.apt.comp.Apt.main(Apt.java:450)
>     at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:458)
>     at com.sun.tools.apt.main.Main.compile(Main.java:1075)
>     at com.sun.tools.apt.main.Main.compile(Main.java:938)
>     at com.sun.tools.apt.Main.processing(Main.java:95)
>     at com.sun.tools.apt.Main.process(Main.java:43)
>     at com.sun.tools.apt.Main.main(Main.java:34)   
> I already have a fix for this -- just entering it for tracking.

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