Hi John,

 

When I try to access the Type attribute of link class using
((Link)it.next()).getType(),I was getting
java.util.NoSuchElementException.

 

I was searching for an event and thru debugging I figured out that the
event has link object which has the type=null but contains typeString
which actually contains the data.

Can you please confirm, that there are no access methods in the Link
class to get the typeString.

 

Thanks,

Bharath

 

 

From: John Tantalo [mailto:[email protected]] 
Sent: Monday, August 16, 2010 5:11 PM
To: Bharath Alapati
Cc: [email protected]
Subject: Re: [SPAM] - Re: [api-developers] - Email found in subject

 

Bharath,

 

Are you getting this error?

 

        Exception in thread "main" java.lang.IllegalArgumentException:
No enum const class com.evdb.javaapi.data.Link$LinkType.OFFICIAL SITE

                at java.lang.Enum.valueOf(Enum.java:196)

 

I was able to solve this by patching com/evdb/javaapi/data/Link.java
with this:

 

        141c141

        <                       this.type =
LinkType.valueOf(typeString.toUpperCase());

        ---

        >                       this.type =
LinkType.valueOf(typeString.toUpperCase().replace(' ', '_'));

 

Let me know if this solves your issue.

 

John Tantalo,

Eventful, Inc.

 

On Aug 16, 2010, at 12:46 PM, Bharath Alapati wrote:

         

        I found out that getType() from Link class is also not working.

         

 





The information transmitted in this email is intended only for the person(s) or 
entity to which it is addressed and may contain proprietary, confidential 
and/or privileged material. If you have received this email in error, please 
contact the sender by replying and delete this email from your system.

Reply via email to