You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@abdera.apache.org by Jagadesh K <ja...@hotmail.com> on 2008/11/11 14:46:27 UTC
Help me
Dear Sir,
I am jagadesh and i am new to abdera. i have tried to run a sample program to create the atom feed. but i couldn't. Can u please assist me. here i am leaving my sample code and exception. to run this sample file i have added the following jars.
1.) abdera.client.0.2.2-incubating.retro.jar
2.) abdera.core.0.2.2-incubating.retro.jar
3.) abdera.extensions.0.2.2-incubating.retro.jar
4.) abdera.parser.0.2.2-incubating.retro.jar
5.) abdera.protocol.0.2.2-incubating.retro.jar
6.) abdera.security.0.2.2-incubating.retro.jar
7.) abdera.server.0.2.2-incubating.retro.jar
8.) abdera-i18n-0.3.0-incubating.jar
9.) axiom-api-1.2.5.jar
10.) axiom-impl-1.2.5.jar
11.) commons-codec-1.3.jar
12.) commons-httpclient-3.1-rc1.jar
13.) commons-logging-1.0.4.jar
14.) geronimo-activation_1.0.2_spec-1.1.jar
15.) geronimo-servlet_2.4_spec-1.0.jar
16.) jaxen-1.1.1.jar
17.) retroweaver-1.1-rt.jar
Sample Code:
------------
public class Atom {
public static void main(String[] args) throws Exception {
Factory factory = new Abdera().getFactory();
Entry entry = factory.newEntry();
entry.setTitle("Some Event");
entry.setContent("Foo bar");
entry.setUpdated(new Date());
entry.setId(factory.newUuidUri());
entry.addAuthor("Dan Diephouse");
}
}
The Exception which i am getting is:
--------------------------------------
Exception in thread "main" java.lang.NoSuchMethodError: com/rc/retroweaver/runtime/Enum_.setEnumValues([Ljava/lang/Object;Ljava/lang/Class;)V
at org.apache.abdera.model.Text$Type.<clinit>(Text.java:63)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
at org.apache.abdera.parser.stax.FOMFactory.newTitle(FOMFactory.java:523)
at org.apache.abdera.parser.stax.FOMEntry.setTitle(FOMEntry.java:548)
at com.ibm.atom.examples.Atom.main(Atom.java:27)
Regards
Jagadesh.K
Re: Help me
Posted by David Calavera <da...@gmail.com>.
Hi Jagadesh,
my first advice is use the abdera's development version, or if you don't
want to build it use the latest stable one.
By the way, I think it's a problem with the retrowaver jar, if you're using
java 1.5 or above you can use the abdera's standard version.
Cheers.
On Tue, Nov 11, 2008 at 2:46 PM, Jagadesh K <ja...@hotmail.com> wrote:
>
> Dear Sir,
>
> I am jagadesh and i am new to abdera. i have tried to run a sample
> program to create the atom feed. but i couldn't. Can u please assist me.
> here i am leaving my sample code and exception. to run this sample file i
> have added the following jars.
>
> 1.) abdera.client.0.2.2-incubating.retro.jar
> 2.) abdera.core.0.2.2-incubating.retro.jar
> 3.) abdera.extensions.0.2.2-incubating.retro.jar
> 4.) abdera.parser.0.2.2-incubating.retro.jar
> 5.) abdera.protocol.0.2.2-incubating.retro.jar
> 6.) abdera.security.0.2.2-incubating.retro.jar
> 7.) abdera.server.0.2.2-incubating.retro.jar
> 8.) abdera-i18n-0.3.0-incubating.jar
> 9.) axiom-api-1.2.5.jar
> 10.) axiom-impl-1.2.5.jar
> 11.) commons-codec-1.3.jar
> 12.) commons-httpclient-3.1-rc1.jar
> 13.) commons-logging-1.0.4.jar
> 14.) geronimo-activation_1.0.2_spec-1.1.jar
> 15.) geronimo-servlet_2.4_spec-1.0.jar
> 16.) jaxen-1.1.1.jar
> 17.) retroweaver-1.1-rt.jar
>
> Sample Code:
> ------------
>
> public class Atom {
> public static void main(String[] args) throws Exception {
>
>
> Factory factory = new Abdera().getFactory();
>
> Entry entry = factory.newEntry();
> entry.setTitle("Some Event");
> entry.setContent("Foo bar");
> entry.setUpdated(new Date());
> entry.setId(factory.newUuidUri());
> entry.addAuthor("Dan Diephouse");
>
>
> }
>
> }
>
> The Exception which i am getting is:
> --------------------------------------
>
>
> Exception in thread "main" java.lang.NoSuchMethodError:
> com/rc/retroweaver/runtime/Enum_.setEnumValues([Ljava/lang/Object;Ljava/lang/Class;)V
> at org.apache.abdera.model.Text$Type.<clinit>(Text.java:63)
> at java.lang.J9VMInternals.initializeImpl(Native Method)
> at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
> at
> org.apache.abdera.parser.stax.FOMFactory.newTitle(FOMFactory.java:523)
> at org.apache.abdera.parser.stax.FOMEntry.setTitle(FOMEntry.java:548)
> at com.ibm.atom.examples.Atom.main(Atom.java:27)
>
>
> Regards
> Jagadesh.K
>
>
--
David Calavera
http://www.thinkincode.net