You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "bernd hopp (JIRA)" <ji...@apache.org> on 2011/03/01 13:00:37 UTC

[jira] Created: (MAHOUT-615) unable to instanciate FastByIDMap, ClassNotFoundException for com.google.common.base.Preconditions

unable to instanciate FastByIDMap<PreferenceArray>, ClassNotFoundException for com.google.common.base.Preconditions
-------------------------------------------------------------------------------------------------------------------

                 Key: MAHOUT-615
                 URL: https://issues.apache.org/jira/browse/MAHOUT-615
             Project: Mahout
          Issue Type: Bug
          Components: collections
    Affects Versions: 0.4
         Environment: Windows 7, Java 1.6.0.24, reproducable in eclipse helios and netbeans 6.9
            Reporter: bernd hopp
            Assignee: Benson Margulies


this code:

 FastByIDMap<PreferenceArray> map = new FastByIDMap<PreferenceArray>();   

throws an java.lang.ClassNotFoundException, class com.google.common.base.Preconditions cannot be found.
The error is thrown in FastByIdMap, ln 76, where "Preconditions" cannot be found. In this project, im using the google web toolkit, which is shipped with the Preconditions-class, what propably confuses the class-loader. Anyhow, when im trying the line shown above in netbeans, without any references to gwt, it fails with the very same exception. 

Any questions, suggestions, workarounds etc. appreciated, thanks. 

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (MAHOUT-615) unable to instanciate FastByIDMap, ClassNotFoundException for com.google.common.base.Preconditions

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

Sean Owen resolved MAHOUT-615.
------------------------------

    Resolution: Not A Problem
      Assignee: Sean Owen  (was: Benson Margulies)

Well, this means you need Google Guava in your project one way or the other. I don't know if GWT has it, but may do, in which case there should be no issue. If not, you need to get the library into your project. This is not really to do with Mahout.

> unable to instanciate FastByIDMap<PreferenceArray>, ClassNotFoundException for com.google.common.base.Preconditions
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: MAHOUT-615
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-615
>             Project: Mahout
>          Issue Type: Bug
>          Components: collections
>    Affects Versions: 0.4
>         Environment: Windows 7, Java 1.6.0.24, reproducable in eclipse helios and netbeans 6.9
>            Reporter: bernd hopp
>            Assignee: Sean Owen
>
> this code:
>  FastByIDMap<PreferenceArray> map = new FastByIDMap<PreferenceArray>();   
> throws an java.lang.ClassNotFoundException, class com.google.common.base.Preconditions cannot be found.
> The error is thrown in FastByIdMap, ln 76, where "Preconditions" cannot be found. In this project, im using the google web toolkit, which is shipped with the Preconditions-class, what propably confuses the class-loader. Anyhow, when im trying the line shown above in netbeans, without any references to gwt, it fails with the very same exception. 
> Any questions, suggestions, workarounds etc. appreciated, thanks. 

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MAHOUT-615) unable to instanciate FastByIDMap, ClassNotFoundException for com.google.common.base.Preconditions

Posted by "bernd hopp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001956#comment-13001956 ] 

bernd hopp commented on MAHOUT-615:
-----------------------------------

yes, you where right, thanks. Besides Guava, I needed log4J and uncommons.math to get mahout up and running. This is obviously not an issue in mahout itself, but a hint at the download-page may prevent others from running into the same problem. 

> unable to instanciate FastByIDMap<PreferenceArray>, ClassNotFoundException for com.google.common.base.Preconditions
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: MAHOUT-615
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-615
>             Project: Mahout
>          Issue Type: Bug
>          Components: collections
>    Affects Versions: 0.4
>         Environment: Windows 7, Java 1.6.0.24, reproducable in eclipse helios and netbeans 6.9
>            Reporter: bernd hopp
>            Assignee: Sean Owen
>
> this code:
>  FastByIDMap<PreferenceArray> map = new FastByIDMap<PreferenceArray>();   
> throws an java.lang.ClassNotFoundException, class com.google.common.base.Preconditions cannot be found.
> The error is thrown in FastByIdMap, ln 76, where "Preconditions" cannot be found. In this project, im using the google web toolkit, which is shipped with the Preconditions-class, what propably confuses the class-loader. Anyhow, when im trying the line shown above in netbeans, without any references to gwt, it fails with the very same exception. 
> Any questions, suggestions, workarounds etc. appreciated, thanks. 

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira