Daniel,

In an earlier email you indicated that you were using jdk6, but the error 
you're reporting looks like jdk5 behavior. Namely, in Java 6, the @Override 
annotation may also be applied to methods that implement methods of an 
interface.

See, for example: 
http://stackoverflow.com/questions/2335655/why-is-javac-failing-on-override-annotation

However, I should point out that fedora-client-0.1.4, which was released some 
months after Fedora 3.4.2, won't parse 3.4.2's GetNextPid responses if you are 
using the GetNextPidResponse class. This is because fedora-client expects a 
schema-valid response which, until post-3.4.2, Fedora wasn't providing 
(https://jira.duraspace.org/browse/FCREPO-808).

In general, if you're working against Fedora 3.4.x, I'd recommend sticking with 
fedora-client-0.1.3. One of the topics at the committers meeting next week at 
Open Repositories is a discussion of patterns or strategies fedora-client might 
employ to work against a range of versions of Fedora.


On 25 May 2011, at 4:43 PM, Daniel Abler wrote:

> Thanks Damian,
>  
> That worked…
>  
> A simple testfunction like
>  
> IngestResponse response = new Ingest("test:pid").label("foo").execute(fedora);
>             String pid = response.getPid();
>             System.out.println(pid);
>  
> Gives that error message
>  
> Exception in thread "main" java.lang.Error: Unresolved compilation problem:
>       The method getEntity(Class<T>) of type FedoraResponseImpl must override 
> a superclass method
>  
>       at 
> com.yourmediashelf.fedora.client.response.FedoraResponseImpl.getEntity(FedoraResponseImpl.java:83)
>       at 
> com.yourmediashelf.fedora.client.response.IngestResponse.getPid(IngestResponse.java:48)
>       at fedoraClientExample.testfunction.main(testfunction.java:37)
>  
> (with the 0.1.3 jar that resulted in a javax.xml.bind.UnmarshalException …)
>  
> What is wrong here?
>  
> Thanks,
> Daniel
> From: Damian Kaliszan [mailto:dam...@man.poznan.pl] 
> Sent: 25 May 2011 16:03
> To: Support and info exchange list for Fedora users.
> Subject: Re: [fcrepo-user] building fedora client
>  
> Hi Daniel,
> 
> Just to let you know. I downloaded 0.1.4, skipped the tests (same like you) 
> and everything went ok...
> 
> p.s. Replace your source GetDissemination.java file with the one I sent a 
> moment ago to the list.
> 
> 
> regards,
> Damian
> 
> W Twoim liście datowanym 25 maja 2011 (15:48:23) można przeczytać:
> 
> Hello,
>  
> I am trying to build fedora client 
> https://github.com/mediashelf/fedora-client  on Windows, jdk 1.6:
>  
> -          The build succeeds when disabling the integration tests, however 
> the resulting jar “fedora-client-0.1.5-SNAPSHOT.jar” only contains 
> xsd.access, xsd.foxml, xsd.management and the META-INF folder, but none of 
> the packages and classes like com.yourmediashelf.fedora.client…
>  
> -          Having the integration tests activated results in the following 
> errors for various tests:
> javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: 
> java.security.InvalidAlgorithmParameterException: the trustAnchors parameter 
> must be non-empty
> Pom.xml is edited to specify 
>                 <fedora.test.baseUrl>
> <fedora.test.username>
> <fedora.test.password>
> <javax.net.ssl.trustStorePassword>
>       Where does <javax.net.ssl.trustStorePassword> need to point to?
>  
>  
> Many thanks for your tips!
> daniel
>  
>  
>  
>  
> 
> ------------------------------------------------------------------------------
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery, 
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now. 
> http://p.sf.net/sfu/quest-d2dcopy1_______________________________________________
> Fedora-commons-users mailing list
> Fedora-commons-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users


------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to