nabeelmukhtar / mendeley-java-sdk

Automatically exported from code.google.com/p/mendeley-java-sdk
1 stars 0 forks source link

Authors model needs updating #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Whilst trying to run com.mendeley.oapi.services.example.DocumentSample it threw 
an Exception trying to parse the JSON response for the author field. It is 
expecting a String, but the API is returning an object with forename and 
lastname.

I've attached a new Person class and a modified Document class to fix the issue.

Original issue reported on code.google.com by chris.j....@gmail.com on 25 Jan 2012 at 5:26

Attachments:

GoogleCodeExporter commented 9 years ago
I tried these files with the Mendeley search test and still got this error: 
Exception in thread "main" java.lang.ExceptionInInitializerError
    at com.mendeley.oapi.services.impl.BaseMendeleyPublicService.<clinit>(BaseMendeleyPublicService.java:64)
    at com.mendeley.oapi.services.MendeleyServiceFactory.createSearchService(MendeleyServiceFactory.java:152)
    at com.zakta.mendeley.module.MendeleySearchTest.main(MendeleySearchTest.java:24)
Caused by: java.lang.NullPointerException
    at java.util.Properties$LineReader.readLine(Unknown Source)
    at java.util.Properties.load0(Unknown Source)
    at java.util.Properties.load(Unknown Source)
    at com.mendeley.oapi.services.constant.ApplicationConstants.<clinit>(ApplicationConstants.java:41)
    ... 3 more
Is this a different issue?

Original comment by afuhrtru...@gmail.com on 23 Jul 2013 at 5:02