TheProjecter / sardine

Automatically exported from code.google.com/p/sardine
0 stars 0 forks source link

eRROR #133

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

What is the expected output? What do you see instead?

What version of the product are you using?

On what operating system?

What webdav server are you hitting?

What is in the server error logs?

Please provide any additional information below (including code examples
and full stack traces with line numbers in them).

THIS IS MY ERROR....
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/slf4j/LoggerFactory
    at com.googlecode.sardine.impl.SardineImpl.<clinit>(SardineImpl.java:122)
    at com.googlecode.sardine.SardineFactory.begin(SardineFactory.java:43)
    at com.googlecode.sardine.SardineFactory.begin(SardineFactory.java:33)
    at Files.main(Files.java:31)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 4 more

THIS IS MY CODE

        Sardine sardine = SardineFactory.begin(USERNAME, PASS);
        @SuppressWarnings("deprecation")
        List<DavResource> resources = sardine
              .getResources("https://collos-one.telekom.de/sites/TS_Americas/BOP/PSS/Reports/OneAmerica/2012");
        for (DavResource res : resources) {
            System.out.println(res);
        }

Original issue reported on code.google.com by eponcede...@gmail.com on 16 Nov 2012 at 6:30

GoogleCodeExporter commented 9 years ago
Hey there. You just need to add slf4j and any other dependencies to your 
classpath

Classnotfound means that you are missing jars in your classpath. 

I hope that helps. 

Original comment by latch...@gmail.com on 16 Nov 2012 at 6:50

GoogleCodeExporter commented 9 years ago
It did help!!! what can be done with this error...

Exception in thread "main" javax.net.ssl.SSLPeerUnverifiedException: peer not 
authenticated
    at sun.security.ssl.SSLSessionImpl.getPeerCertificates(Unknown Source)
    at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)
    at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:572)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
    at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:151)
    at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:125)
    at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:640)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1066)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1044)
    at com.googlecode.sardine.impl.SardineImpl.execute(SardineImpl.java:691)
    at com.googlecode.sardine.impl.SardineImpl.list(SardineImpl.java:344)
    at com.googlecode.sardine.impl.SardineImpl.list(SardineImpl.java:330)
    at com.googlecode.sardine.impl.SardineImpl.getResources(SardineImpl.java:322)
    at Files.main(Files.java:34)

Original comment by eponcede...@gmail.com on 16 Nov 2012 at 8:03

GoogleCodeExporter commented 9 years ago
Time to start using google and doing some reading. 
https://www.google.com/search?q=peer+not+authenticated

This is an issue tracker, not a forum. =)

Original comment by latch...@gmail.com on 16 Nov 2012 at 8:10