You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Emmanuel L?charny (JIRA)" <ji...@codehaus.org> on 2005/09/06 19:46:02 UTC

[jira] Created: (MNG-838) NumberFormatException while readung setting.xml

NumberFormatException while readung setting.xml
-----------------------------------------------

         Key: MNG-838
         URL: http://jira.codehaus.org/browse/MNG-838
     Project: Maven 2
        Type: Bug
    Versions: 2.0-alpha-3    
 Reporter: Emmanuel Lécharny
    Priority: Minor


When I create a setting.xml, using the empty one provided on the site, I get a nasty NumberFormatException :
java.lang.NumberFormatException: For input string: ""
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
        at java.lang.Integer.parseInt(Integer.java:468)
        at java.lang.Integer.valueOf(Integer.java:553)
        at org.apache.maven.settings.io.xpp3.SettingsXpp3Reader.getIntegerValue(SettingsXpp3Reader.java:148)
        at org.apache.maven.settings.io.xpp3.SettingsXpp3Reader.parseProxy(SettingsXpp3Reader.java:451)
        at org.apache.maven.settings.io.xpp3.SettingsXpp3Reader.parseSettings(SettingsXpp3Reader.java:601)
        at org.apache.maven.settings.io.xpp3.SettingsXpp3Reader.read(SettingsXpp3Reader.java:979)
        at org.apache.maven.settings.DefaultMavenSettingsBuilder.readSettings(DefaultMavenSettingsBuilder.java:89)
        at org.apache.maven.settings.DefaultMavenSettingsBuilder.buildSettings(DefaultMavenSettingsBuilder.java:110)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:177)
        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:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:363)

The setting.xml is pretty simple :
<settings>
  <localRepository>$HOME/.m2/repository</localRepository>
  <offline/>
  <proxies/>
    <proxy>
      <active/>
      <protocol/>
      <username/>
      <password/>
      <port/>
      <host/>
      <nonProxyHosts/>
    </proxy>
  </proxies>
  <servers>
    <server>
      <id/>
      <username/>
      <password/>
      <privateKey/>
      <passphrase/>
    </server>
  </servers>
  <mirrors>
    <mirror>
      <id/>
      <mirrorOf/>
      <name/>
      <url/>
    </mirror>
  </mirrors>
  <profiles>
    <profile>
      <id/>
      <activation>
        <jdk/>
        <activationProperty>
          <name/>
          <value/>
        </activationProperty>
      </activation>
      <properties/>
      <repositories>
        <repository>
          <id/>
          <name/>
          <url/>
          <snapshotPolicy/>
          <layout/>
        </repository>
      </repositories>
      <pluginRepositories>
        <repository>
          <id/>
          <name/>
          <url/>
          <snapshotPolicy/>
          <layout/>
        </repository>
      </pluginRepositories>
    </profile>
  </profiles>
  <activeProfiles/>
</settings>




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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-838) NumberFormatException while readung setting.xml

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-838?page=all ]

Brett Porter updated MNG-838:
-----------------------------

    Fix Version: 2.0-beta-2
     Complexity: Novice  (was: Intermediate)

parsing of port

> NumberFormatException while readung setting.xml
> -----------------------------------------------
>
>          Key: MNG-838
>          URL: http://jira.codehaus.org/browse/MNG-838
>      Project: Maven 2
>         Type: Bug
>     Versions: 2.0-alpha-3
>     Reporter: Emmanuel Lécharny
>     Priority: Minor
>      Fix For: 2.0-beta-2

>
>
> When I create a setting.xml, using the empty one provided on the site, I get a nasty NumberFormatException :
> java.lang.NumberFormatException: For input string: ""
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:468)
>         at java.lang.Integer.valueOf(Integer.java:553)
>         at org.apache.maven.settings.io.xpp3.SettingsXpp3Reader.getIntegerValue(SettingsXpp3Reader.java:148)
>         at org.apache.maven.settings.io.xpp3.SettingsXpp3Reader.parseProxy(SettingsXpp3Reader.java:451)
>         at org.apache.maven.settings.io.xpp3.SettingsXpp3Reader.parseSettings(SettingsXpp3Reader.java:601)
>         at org.apache.maven.settings.io.xpp3.SettingsXpp3Reader.read(SettingsXpp3Reader.java:979)
>         at org.apache.maven.settings.DefaultMavenSettingsBuilder.readSettings(DefaultMavenSettingsBuilder.java:89)
>         at org.apache.maven.settings.DefaultMavenSettingsBuilder.buildSettings(DefaultMavenSettingsBuilder.java:110)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:177)
>         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:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
> The setting.xml is pretty simple :
> <settings>
>   <localRepository>$HOME/.m2/repository</localRepository>
>   <offline/>
>   <proxies/>
>     <proxy>
>       <active/>
>       <protocol/>
>       <username/>
>       <password/>
>       <port/>
>       <host/>
>       <nonProxyHosts/>
>     </proxy>
>   </proxies>
>   <servers>
>     <server>
>       <id/>
>       <username/>
>       <password/>
>       <privateKey/>
>       <passphrase/>
>     </server>
>   </servers>
>   <mirrors>
>     <mirror>
>       <id/>
>       <mirrorOf/>
>       <name/>
>       <url/>
>     </mirror>
>   </mirrors>
>   <profiles>
>     <profile>
>       <id/>
>       <activation>
>         <jdk/>
>         <activationProperty>
>           <name/>
>           <value/>
>         </activationProperty>
>       </activation>
>       <properties/>
>       <repositories>
>         <repository>
>           <id/>
>           <name/>
>           <url/>
>           <snapshotPolicy/>
>           <layout/>
>         </repository>
>       </repositories>
>       <pluginRepositories>
>         <repository>
>           <id/>
>           <name/>
>           <url/>
>           <snapshotPolicy/>
>           <layout/>
>         </repository>
>       </pluginRepositories>
>     </profile>
>   </profiles>
>   <activeProfiles/>
> </settings>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-838) NumberFormatException while readung setting.xml

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-838?page=all ]

Brett Porter updated MNG-838:
-----------------------------

    Component: maven-core

> NumberFormatException while readung setting.xml
> -----------------------------------------------
>
>          Key: MNG-838
>          URL: http://jira.codehaus.org/browse/MNG-838
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0-alpha-3
>     Reporter: Emmanuel Lécharny
>     Priority: Minor
>      Fix For: 2.0-beta-3

>
>
> When I create a setting.xml, using the empty one provided on the site, I get a nasty NumberFormatException :
> java.lang.NumberFormatException: For input string: ""
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:468)
>         at java.lang.Integer.valueOf(Integer.java:553)
>         at org.apache.maven.settings.io.xpp3.SettingsXpp3Reader.getIntegerValue(SettingsXpp3Reader.java:148)
>         at org.apache.maven.settings.io.xpp3.SettingsXpp3Reader.parseProxy(SettingsXpp3Reader.java:451)
>         at org.apache.maven.settings.io.xpp3.SettingsXpp3Reader.parseSettings(SettingsXpp3Reader.java:601)
>         at org.apache.maven.settings.io.xpp3.SettingsXpp3Reader.read(SettingsXpp3Reader.java:979)
>         at org.apache.maven.settings.DefaultMavenSettingsBuilder.readSettings(DefaultMavenSettingsBuilder.java:89)
>         at org.apache.maven.settings.DefaultMavenSettingsBuilder.buildSettings(DefaultMavenSettingsBuilder.java:110)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:177)
>         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:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
> The setting.xml is pretty simple :
> <settings>
>   <localRepository>$HOME/.m2/repository</localRepository>
>   <offline/>
>   <proxies/>
>     <proxy>
>       <active/>
>       <protocol/>
>       <username/>
>       <password/>
>       <port/>
>       <host/>
>       <nonProxyHosts/>
>     </proxy>
>   </proxies>
>   <servers>
>     <server>
>       <id/>
>       <username/>
>       <password/>
>       <privateKey/>
>       <passphrase/>
>     </server>
>   </servers>
>   <mirrors>
>     <mirror>
>       <id/>
>       <mirrorOf/>
>       <name/>
>       <url/>
>     </mirror>
>   </mirrors>
>   <profiles>
>     <profile>
>       <id/>
>       <activation>
>         <jdk/>
>         <activationProperty>
>           <name/>
>           <value/>
>         </activationProperty>
>       </activation>
>       <properties/>
>       <repositories>
>         <repository>
>           <id/>
>           <name/>
>           <url/>
>           <snapshotPolicy/>
>           <layout/>
>         </repository>
>       </repositories>
>       <pluginRepositories>
>         <repository>
>           <id/>
>           <name/>
>           <url/>
>           <snapshotPolicy/>
>           <layout/>
>         </repository>
>       </pluginRepositories>
>     </profile>
>   </profiles>
>   <activeProfiles/>
> </settings>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-838) NumberFormatException while readung setting.xml

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-838?page=all ]
     
Brett Porter closed MNG-838:
----------------------------

     Assign To: Brett Porter
    Resolution: Fixed

> NumberFormatException while readung setting.xml
> -----------------------------------------------
>
>          Key: MNG-838
>          URL: http://jira.codehaus.org/browse/MNG-838
>      Project: Maven 2
>         Type: Bug
>   Components: maven-core
>     Versions: 2.0-alpha-3
>     Reporter: Emmanuel Lécharny
>     Assignee: Brett Porter
>     Priority: Minor
>      Fix For: 2.0-beta-4

>
>
> When I create a setting.xml, using the empty one provided on the site, I get a nasty NumberFormatException :
> java.lang.NumberFormatException: For input string: ""
>         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:468)
>         at java.lang.Integer.valueOf(Integer.java:553)
>         at org.apache.maven.settings.io.xpp3.SettingsXpp3Reader.getIntegerValue(SettingsXpp3Reader.java:148)
>         at org.apache.maven.settings.io.xpp3.SettingsXpp3Reader.parseProxy(SettingsXpp3Reader.java:451)
>         at org.apache.maven.settings.io.xpp3.SettingsXpp3Reader.parseSettings(SettingsXpp3Reader.java:601)
>         at org.apache.maven.settings.io.xpp3.SettingsXpp3Reader.read(SettingsXpp3Reader.java:979)
>         at org.apache.maven.settings.DefaultMavenSettingsBuilder.readSettings(DefaultMavenSettingsBuilder.java:89)
>         at org.apache.maven.settings.DefaultMavenSettingsBuilder.buildSettings(DefaultMavenSettingsBuilder.java:110)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:177)
>         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:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
> The setting.xml is pretty simple :
> <settings>
>   <localRepository>$HOME/.m2/repository</localRepository>
>   <offline/>
>   <proxies/>
>     <proxy>
>       <active/>
>       <protocol/>
>       <username/>
>       <password/>
>       <port/>
>       <host/>
>       <nonProxyHosts/>
>     </proxy>
>   </proxies>
>   <servers>
>     <server>
>       <id/>
>       <username/>
>       <password/>
>       <privateKey/>
>       <passphrase/>
>     </server>
>   </servers>
>   <mirrors>
>     <mirror>
>       <id/>
>       <mirrorOf/>
>       <name/>
>       <url/>
>     </mirror>
>   </mirrors>
>   <profiles>
>     <profile>
>       <id/>
>       <activation>
>         <jdk/>
>         <activationProperty>
>           <name/>
>           <value/>
>         </activationProperty>
>       </activation>
>       <properties/>
>       <repositories>
>         <repository>
>           <id/>
>           <name/>
>           <url/>
>           <snapshotPolicy/>
>           <layout/>
>         </repository>
>       </repositories>
>       <pluginRepositories>
>         <repository>
>           <id/>
>           <name/>
>           <url/>
>           <snapshotPolicy/>
>           <layout/>
>         </repository>
>       </pluginRepositories>
>     </profile>
>   </profiles>
>   <activeProfiles/>
> </settings>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org