You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Thomas Amsler (JIRA)" <ji...@apache.org> on 2009/09/19 00:14:16 UTC

[jira] Created: (DIRGROOVY-6) Getting an error while running the LDAP search operation example

Getting an error while running the LDAP search operation example
----------------------------------------------------------------

                 Key: DIRGROOVY-6
                 URL: https://issues.apache.org/jira/browse/DIRGROOVY-6
             Project: Directory Groovy LDAP
          Issue Type: Bug
         Environment: Groovy 1.6.4
groovy-ldap.jar location: ~/.groovy/lib/groovy-ldap.jar
            Reporter: Thomas Amsler
            Assignee: Stefan Zoerner


Sample Code:
http://cwiki.apache.org/DIRxSBOX/2-groovy-ldap-user-guide.html#2.GroovyLDAPUserGuide-LDAPsearchoperation

Error:
groovy ldap-search.groovy 
Caught: java.lang.ClassFormatError: Illegal class name "ldap-search" in class file ldap-search


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


[jira] Commented: (DIRGROOVY-6) Getting an error while running the LDAP search operation example

Posted by "Thomas Amsler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRGROOVY-6?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12757659#action_12757659 ] 

Thomas Amsler commented on DIRGROOVY-6:
---------------------------------------

You are right. I made a stupid mistake. After renaming the file, it still gave me the same error. I actually had to to create a class.

class LdapSearch {
    public static void main(def args) {
        ....
    }
}

Usually I don't need to do that when if I just want to try a simple script.



> Getting an error while running the LDAP search operation example
> ----------------------------------------------------------------
>
>                 Key: DIRGROOVY-6
>                 URL: https://issues.apache.org/jira/browse/DIRGROOVY-6
>             Project: Directory Groovy LDAP
>          Issue Type: Bug
>         Environment: Groovy 1.6.4
> groovy-ldap.jar location: ~/.groovy/lib/groovy-ldap.jar
>            Reporter: Thomas Amsler
>            Assignee: Stefan Zoerner
>
> Sample Code:
> http://cwiki.apache.org/DIRxSBOX/2-groovy-ldap-user-guide.html#2.GroovyLDAPUserGuide-LDAPsearchoperation
> Error:
> groovy ldap-search.groovy 
> Caught: java.lang.ClassFormatError: Illegal class name "ldap-search" in class file ldap-search

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


[jira] Commented: (DIRGROOVY-6) Getting an error while running the LDAP search operation example

Posted by "Stefan Zoerner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRGROOVY-6?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12757645#action_12757645 ] 

Stefan Zoerner commented on DIRGROOVY-6:
----------------------------------------

I assume, that you have named your source file "ldap-search.groovy", which leads to an illegal class name during compilation. If so, the problem is not related to Groovy LDAP. Please try to rename your file to something without a minus, like "ldapsearch.groovy", and try again.



> Getting an error while running the LDAP search operation example
> ----------------------------------------------------------------
>
>                 Key: DIRGROOVY-6
>                 URL: https://issues.apache.org/jira/browse/DIRGROOVY-6
>             Project: Directory Groovy LDAP
>          Issue Type: Bug
>         Environment: Groovy 1.6.4
> groovy-ldap.jar location: ~/.groovy/lib/groovy-ldap.jar
>            Reporter: Thomas Amsler
>            Assignee: Stefan Zoerner
>
> Sample Code:
> http://cwiki.apache.org/DIRxSBOX/2-groovy-ldap-user-guide.html#2.GroovyLDAPUserGuide-LDAPsearchoperation
> Error:
> groovy ldap-search.groovy 
> Caught: java.lang.ClassFormatError: Illegal class name "ldap-search" in class file ldap-search

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