You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by bo...@werken.com on 2003/02/27 14:14:19 UTC

[maven-bug] Created: (MAVEN-300) Multithreaded Jalopy is broken, make nbThread=1 default

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://jira.werken.com/secure/ViewIssue.jspa?key=MAVEN-300


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-300
    Summary: Multithreaded Jalopy is broken, make nbThread=1 default
       Type: Bug

     Status: Assigned
   Priority: Major

 Time Spent: Unknown
   Estimate: 0 minutes

    Project: maven
  Component: None
   Versions:
             1.0-beta-8

   Assignee: Jason van Zyl
   Reporter: Brian Ewins

    Created: Thu, 27 Feb 2003 7:14 AM
    Updated: Thu, 27 Feb 2003 7:14 AM
Environment: jsdk1.4.0, win2k

Description:
If you run 'maven jalopy' across a large codebase and let it look at the javadoc, you will often get exceptions thrown like the one at the end of this bug report (as in, so often as to make jalopy completely unusable). 

The problem is in Jalopy:
https://sourceforge.net/tracker/index.php?func=detail&aid=694305&group_id=45216&atid=442212

There is a simple workaround - don't use multiple threads in jalopy. Right now, thats not maven's default behaviour. The line in jalopy's plugin.properties that reads:
maven.jalopy.nbThread=2

should be changed to:
maven.jalopy.nbThread=1

for reliable operation.

java.lang.ArrayIndexOutOfBoundsException
        at org.apache.oro.text.regex.Perl5Compiler.__emitNode(Unknown Source)
        at org.apache.oro.text.regex.Perl5Compiler.__parseAtom(Unknown Source)
        at org.apache.oro.text.regex.Perl5Compiler.__parseBranch(Unknown Source)
        at org.apache.oro.text.regex.Perl5Compiler.__parseAlternation(Unknown Source)
        at org.apache.oro.text.regex.Perl5Compiler.__parseExpression(Unknown Source)
        at org.apache.oro.text.regex.Perl5Compiler.compile(Unknown Source)
        at org.apache.oro.text.regex.Perl5Compiler.compile(Unknown Source)
        at de.hunsicker.jalopy.storage.Environment.interpolate(Environment.java:186)
        at de.hunsicker.jalopy.printer.BasicDeclarationPrinter.addParameters(BasicDeclarationPrinter.java:540)
        at de.hunsicker.jalopy.printer.BasicDeclarationPrinter.addMethodComment(BasicDeclarationPrinter.java:228)
        at de.hunsicker.jalopy.printer.BasicDeclarationPrinter.addComment(BasicDeclarationPrinter.java:115)
        at de.hunsicker.jalopy.printer.BasicDeclarationPrinter.addCommentIfNeeded(BasicDeclarationPrinter.java:338)
        at de.hunsicker.jalopy.printer.MethodDeclarationPrinter.print(MethodDeclarationPrinter.java:64)
        at de.hunsicker.jalopy.printer.BlockPrinter.print(BlockPrinter.java:365)
        at de.hunsicker.jalopy.printer.ClassDeclarationPrinter.print(ClassDeclarationPrinter.java:92)
        at de.hunsicker.jalopy.printer.JavaPrinter.print(JavaPrinter.java:112)
        at de.hunsicker.jalopy.Jalopy.print(Jalopy.java:2262)
        at de.hunsicker.jalopy.Jalopy.format(Jalopy.java:1394)
        at de.hunsicker.jalopy.Jalopy.format(Jalopy.java:1051)
        at de.hunsicker.jalopy.plugin.ant.AntPlugin$FormatThread.run(AntPlugin.java:1310)


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.werken.com/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira