jmx OutOfMemory problems with java5

Niclas Hedhman niclas at hedhman.org
Sat Mar 12 06:06:23 EST 2005


On Saturday 12 March 2005 01:23, Peter Neubauer wrote:
> Hi,
> examining the code for Artifact.createArtifact(String) there is the code:
>
>         else
>         {
>             String path = uri.substring( 0, asterix );
>            //asterix=34
>     //uri = artifact:war:jmx-html/jmx-html#1.3!/
>             int versionPos = uri.indexOf( "#" ); //versionPos=30
>             if( versionPos == -1 )
>             {
>                 return createArtifact( path );
>             }
>             else
>             {
>                 path = path + uri.substring( versionPos );
>                 //path=artifact:war:jmx-html/jmx-html#1.3#1.3!/
>   return createArtifact( path );
>             }
>
>
> Not sure what is supposed to happen here but it seems the parsing goeas
> wrong here.

Thanks for locating this. The code in question needs to strip the 'internal 
resource' identifier, as that is not part of the Artifact (only URLs), and 
there has been cases where the version ended up, after the resource, and that 
needs to be preserved. Fixing this right now.


Cheers
Niclas



More information about the dev-dpml mailing list