You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Flavio Paiva Junqueira (JIRA)" <ji...@apache.org> on 2008/10/22 23:47:46 UTC

[jira] Created: (ZOOKEEPER-205) Erro on version-info when compiling from the tarball distribution

Erro on version-info when compiling from the tarball distribution
-----------------------------------------------------------------

                 Key: ZOOKEEPER-205
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-205
             Project: Zookeeper
          Issue Type: Bug
    Affects Versions: 3.1.0
            Reporter: Flavio Paiva Junqueira
            Priority: Minor
             Fix For: 3.0.0


When running ant with the code from the release tarball, I get the following messages and stack trace:

{noformat}
svn-revision:
     [exec] svn: '.' is not a working copy

version-info:
     [java] All version-related parameters must be valid integers!
     [java] Exception in thread "main" java.lang.NumberFormatException: For input string: ""
     [java]     at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
     [java]     at java.lang.Integer.parseInt(Integer.java:468)
     [java]     at java.lang.Integer.parseInt(Integer.java:497)
     [java]     at org.apache.zookeeper.version.util.VerGen.main(VerGen.java:111)
     [java] Java Result: 1
{noformat}

This seems to be because the code is not coming from svn, so it can't find the version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-205) Error on version-info when compiling from the tarball distribution

Posted by "Flavio Paiva Junqueira (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Flavio Paiva Junqueira updated ZOOKEEPER-205:
---------------------------------------------

    Summary: Error on version-info when compiling from the tarball distribution  (was: Erro on version-info when compiling from the tarball distribution)

> Error on version-info when compiling from the tarball distribution
> ------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-205
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-205
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.1.0
>            Reporter: Flavio Paiva Junqueira
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> When running ant with the code from the release tarball, I get the following messages and stack trace:
> {noformat}
> svn-revision:
>      [exec] svn: '.' is not a working copy
> version-info:
>      [java] All version-related parameters must be valid integers!
>      [java] Exception in thread "main" java.lang.NumberFormatException: For input string: ""
>      [java]     at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>      [java]     at java.lang.Integer.parseInt(Integer.java:468)
>      [java]     at java.lang.Integer.parseInt(Integer.java:497)
>      [java]     at org.apache.zookeeper.version.util.VerGen.main(VerGen.java:111)
>      [java] Java Result: 1
> {noformat}
> This seems to be because the code is not coming from svn, so it can't find the version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (ZOOKEEPER-205) Error on version-info when compiling from the tarball distribution

Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Hunt resolved ZOOKEEPER-205.
------------------------------------

    Resolution: Duplicate

Closing - fixed in ZOOKEEPER-241

> Error on version-info when compiling from the tarball distribution
> ------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-205
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-205
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Flavio Paiva Junqueira
>            Assignee: Mahadev konar
>            Priority: Minor
>             Fix For: 3.1.0
>
>         Attachments: ZOOKEEPER-205.patch
>
>
> When running ant with the code from the release tarball, I get the following messages and stack trace:
> {noformat}
> svn-revision:
>      [exec] svn: '.' is not a working copy
> version-info:
>      [java] All version-related parameters must be valid integers!
>      [java] Exception in thread "main" java.lang.NumberFormatException: For input string: ""
>      [java]     at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>      [java]     at java.lang.Integer.parseInt(Integer.java:468)
>      [java]     at java.lang.Integer.parseInt(Integer.java:497)
>      [java]     at org.apache.zookeeper.version.util.VerGen.main(VerGen.java:111)
>      [java] Java Result: 1
> {noformat}
> This seems to be because the code is not coming from svn, so it can't find the version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-205) Erro on version-info when compiling from the tarball distribution

Posted by "Jakob Homan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642038#action_12642038 ] 

Jakob Homan commented on ZOOKEEPER-205:
---------------------------------------

Yes, the version script can't get the revision number.  I get this as well when obtaining the code from git.  One option would be to remove the version information, or to change the version scripts to return 0 or something if not in a subversion directory.

> Erro on version-info when compiling from the tarball distribution
> -----------------------------------------------------------------
>
>                 Key: ZOOKEEPER-205
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-205
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.1.0
>            Reporter: Flavio Paiva Junqueira
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> When running ant with the code from the release tarball, I get the following messages and stack trace:
> {noformat}
> svn-revision:
>      [exec] svn: '.' is not a working copy
> version-info:
>      [java] All version-related parameters must be valid integers!
>      [java] Exception in thread "main" java.lang.NumberFormatException: For input string: ""
>      [java]     at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>      [java]     at java.lang.Integer.parseInt(Integer.java:468)
>      [java]     at java.lang.Integer.parseInt(Integer.java:497)
>      [java]     at org.apache.zookeeper.version.util.VerGen.main(VerGen.java:111)
>      [java] Java Result: 1
> {noformat}
> This seems to be because the code is not coming from svn, so it can't find the version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-205) Error on version-info when compiling from the tarball distribution

Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642333#action_12642333 ] 

Mahadev konar commented on ZOOKEEPER-205:
-----------------------------------------

yes, the script should just return 0.0.0 in case it fails to do svn revision... 

> Error on version-info when compiling from the tarball distribution
> ------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-205
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-205
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Flavio Paiva Junqueira
>            Priority: Minor
>             Fix For: 3.1.0
>
>
> When running ant with the code from the release tarball, I get the following messages and stack trace:
> {noformat}
> svn-revision:
>      [exec] svn: '.' is not a working copy
> version-info:
>      [java] All version-related parameters must be valid integers!
>      [java] Exception in thread "main" java.lang.NumberFormatException: For input string: ""
>      [java]     at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>      [java]     at java.lang.Integer.parseInt(Integer.java:468)
>      [java]     at java.lang.Integer.parseInt(Integer.java:497)
>      [java]     at org.apache.zookeeper.version.util.VerGen.main(VerGen.java:111)
>      [java] Java Result: 1
> {noformat}
> This seems to be because the code is not coming from svn, so it can't find the version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-205) Error on version-info when compiling from the tarball distribution

Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mahadev konar updated ZOOKEEPER-205:
------------------------------------

    Attachment: ZOOKEEPER-205.patch

this patch fixes the unix scripts. have to read through bat scripting to fix it... 

> Error on version-info when compiling from the tarball distribution
> ------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-205
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-205
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Flavio Paiva Junqueira
>            Priority: Minor
>             Fix For: 3.1.0
>
>         Attachments: ZOOKEEPER-205.patch
>
>
> When running ant with the code from the release tarball, I get the following messages and stack trace:
> {noformat}
> svn-revision:
>      [exec] svn: '.' is not a working copy
> version-info:
>      [java] All version-related parameters must be valid integers!
>      [java] Exception in thread "main" java.lang.NumberFormatException: For input string: ""
>      [java]     at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>      [java]     at java.lang.Integer.parseInt(Integer.java:468)
>      [java]     at java.lang.Integer.parseInt(Integer.java:497)
>      [java]     at org.apache.zookeeper.version.util.VerGen.main(VerGen.java:111)
>      [java] Java Result: 1
> {noformat}
> This seems to be because the code is not coming from svn, so it can't find the version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (ZOOKEEPER-205) Error on version-info when compiling from the tarball distribution

Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mahadev konar reassigned ZOOKEEPER-205:
---------------------------------------

    Assignee: Mahadev konar

> Error on version-info when compiling from the tarball distribution
> ------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-205
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-205
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Flavio Paiva Junqueira
>            Assignee: Mahadev konar
>            Priority: Minor
>             Fix For: 3.1.0
>
>         Attachments: ZOOKEEPER-205.patch
>
>
> When running ant with the code from the release tarball, I get the following messages and stack trace:
> {noformat}
> svn-revision:
>      [exec] svn: '.' is not a working copy
> version-info:
>      [java] All version-related parameters must be valid integers!
>      [java] Exception in thread "main" java.lang.NumberFormatException: For input string: ""
>      [java]     at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>      [java]     at java.lang.Integer.parseInt(Integer.java:468)
>      [java]     at java.lang.Integer.parseInt(Integer.java:497)
>      [java]     at org.apache.zookeeper.version.util.VerGen.main(VerGen.java:111)
>      [java] Java Result: 1
> {noformat}
> This seems to be because the code is not coming from svn, so it can't find the version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-205) Error on version-info when compiling from the tarball distribution

Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Hunt updated ZOOKEEPER-205:
-----------------------------------

        Fix Version/s:     (was: 3.0.0)
                       3.1.0
    Affects Version/s:     (was: 3.1.0)
                       3.0.0

> Error on version-info when compiling from the tarball distribution
> ------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-205
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-205
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Flavio Paiva Junqueira
>            Priority: Minor
>             Fix For: 3.1.0
>
>
> When running ant with the code from the release tarball, I get the following messages and stack trace:
> {noformat}
> svn-revision:
>      [exec] svn: '.' is not a working copy
> version-info:
>      [java] All version-related parameters must be valid integers!
>      [java] Exception in thread "main" java.lang.NumberFormatException: For input string: ""
>      [java]     at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>      [java]     at java.lang.Integer.parseInt(Integer.java:468)
>      [java]     at java.lang.Integer.parseInt(Integer.java:497)
>      [java]     at org.apache.zookeeper.version.util.VerGen.main(VerGen.java:111)
>      [java] Java Result: 1
> {noformat}
> This seems to be because the code is not coming from svn, so it can't find the version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.