Login to post  Page: « < 1 of 1 > »
23 Jul 2009 - 22:264689
Java bot:
I made a bot in Java and it runs perfectly in eclipse on windows so I transferred the project to ubuntu. I'm using SDK 1.8.2. When I send a message to the bot (when it is running on ubuntu) i get:
 Someone threw an AccException with the HR: UNKNOWNVALUE
com.aol.acc.AccException: IAccIm_GetConvertedText
   at com.aol.acc.AccIm.getConvertedText(AccIm.java:79)
   at AIMSession.OnImReceived(AIMSession.java:124)

this is from my source file:
 	public void OnImReceived(AccSession session, AccImSession imSession, AccParticipant participant, AccIm im) {
		try { 
			String resp = "";
			String user = participant.getName();
			String msg = im.getConvertedText("text/plain");
			msg = msg.trim();

			resp = "something";

			if (running && resp != "") {
				im.setText(resp);
				imSession.sendIm(im);
				form.log("<" + handle + ":" + user + "> " + resp);
			} 
		
		} catch (AccException e) {
			System.out.println("Someone threw an AccException with the HR: "+e.errorCode);
			e.printStackTrace();
		}
	}

line 124 from the error message is:
 String msg = im.getConvertedText("text/plain");

Please help. The program signs online on ubuntu which is a good sign. I'm really not sure what is causing the error though.


01 Aug 2009 - 16:164724
Java bot:
I cannot reproduce this on my Ubuntu machine. Can you run the existing
deployed sample accjbot and see if you get the same error?


02 Aug 2009 - 10:414730
solved
I took your advice and tried to run the accjbot. When I used ant, I got like 30 build errors which lead me to believe that Java was the problem. I updated Java to 1.6.0_14 and everything works now!

Thanks.


02 Aug 2009 - 11:104731
Java bot:
Glad to hear! Thanks for letting us know!


Login to post  Page: « < 1 of 1 > »