ebay communication problem

Subscribe to ebay communication problem 8 post(s), 4 voice(s)

 
Avatar (SF) Alan Stone 2 post(s)

Hi there,

this only happens when I run JBidwatch from linux with java 1.4.1
Windows seems to work fine.
I did not want to open a new Bug and recognizing afterwards that the problem vanished to dust. but I can not start JBidwatch for two weeks now, so it seems to be a real problem.
What do you think?

Alan


Sun Feb 02 15:02:41 CET 2003: Exception during the check() operation of class AuctionsManager
java.lang.StringIndexOutOfBoundsException: String index out of range: 8812
at java.lang.StringBuffer.substring(StringBuffer.java:768)
at JHTML.preParse(JHTML.java:162)
at JHTML.(JHTML.java:41)
at SpecificAuction.preParseAuction(SpecificAuction.java:24)
at AuctionServer.loadAuction(AuctionServer.java:506)
at AuctionServer.reloadAuction(AuctionServer.java:543)
at AuctionEntry.update(AuctionEntry.java:916)
at Auctions.doUpdate(Auctions.java:545)
at Auctions.doNextUpdate(Auctions.java:578)
at Auctions.check(Auctions.java:611)
at Auctions.check(Auctions.java:607)
at AuctionsManager.checkAuctions(AuctionsManager.java:68)
at AuctionsManager.check(AuctionsManager.java:92)
at TimerHandler.run(TimerHandler.java:60)
Loading page: http://cgi1.ebay.com/aw-cgi/eBayISAPI.dll?MyEbayItemsBiddingOn&userid=myuserid&pass=mypass&bidderSort=9&watchSort=9&sellerSort=9&dayssince=30&rows=0
Sun Feb 02 15:02:49 CET 2003: PMQ Caught exception: java.lang.StringIndexOutOfBoundsException: String index out of range: 58491
java.lang.StringIndexOutOfBoundsException: String index out of range: 58491
at java.lang.StringBuffer.substring(StringBuffer.java:768)
at JHTML.preParse(JHTML.java:162)
at JHTML.(JHTML.java:436)
at ebayServer.getMyEbayItems(ebayServer.java:891)
at ebayServer.doMyEbaySynchronize(ebayServer.java:1157)
at ebayServer.messageAction(ebayServer.java:353)
at PlainMessageQueue.run(PlainMessageQueue.java:26)
at java.lang.Thread.run(Thread.java:536)

 
Avatar Morgan Schweers Administrator 1,204 post(s)

Greetings,

JBidwatcher doesn’t even start?!? These look like errors that should come up after it’s started and is running.

The first error suggests an unterminated quote in an HTML tag on the page. I’d need to know the version number to confirm that.

The second suggests the same thing, but on your ‘My eBay’ page, which is troubling, because the underlying HTML template should be the same for each user, and it’s not failing for me. There’s all sorts of options to modify that page, however. Figuring out unterminated quotes in tags is one of the biggest problems for me…

Neither of these problems should stop JBidwatcher from starting up, though… Is there any more information you might be able to give me about that problem?

— Morgan Schweers, CyberFOX!

 
Avatar Morgan Schweers Administrator 1,204 post(s)

Greetings,

Email me at: cyberfox@users.sourceforge.net

I’ve got a version for you to try out. I’ve decided to get tough on HTML errors like that, because eBay seems to make them a lot. If this version works better, I’ll be a lot happier.

— Morgan Schweers, CyberFOX!

 
Avatar (SF) Alan Stone 2 post(s)

Well, it starts up and loads it’s auctions from the auctions.xml. The message is thrown when jbidwatcher tries to communicate with ebay, for timesync or auctionupdate etc.

Ciao

Alan
(sent mail)

 
Avatar (SF) Bob Cotton 1 post

I too am having problems with Linux and jdk1.4.1.
I updated from CVS this morning (about 1/2 hour ago).
When I create an ebay search (text) and hit the search button, I get this exception:

Doing a Text Search for
Quote error!
Mon Feb 10 07:28:00 MST 2003: PMQ Caught exception: java.lang.StringIndexOutOfBoundsException: String index out of range: 25157
java.lang.StringIndexOutOfBoundsException: String index out of range: 25157
at java.lang.StringBuffer.substring(StringBuffer.java:768)
at JHTML.preParse(JHTML.java:170)
at JHTML.(JHTML.java:42)
at SpecificAuction.preParseAuction(SpecificAuction.java:31)
at AuctionServer.loadAuction(AuctionServer.java:507)
at AuctionServer.loadAuction(AuctionServer.java:537)
at AuctionServer.addAuction(AuctionServer.java:432)
at AuctionEntry.prepareAuctionEntry(AuctionEntry.java:270)
at AuctionEntry.(AuctionEntry.java:196)
at JBWDropHandler.messageAction(JBWDropHandler.java:24)
at PlainMessageQueue.run(PlainMessageQueue.java:26)
at java.lang.Thread.run(Thread.java:536)

FYI
- Bob

 
Avatar Morgan Schweers Administrator 1,204 post(s)

Greetings,

Fascinating… I wonder what’s up with the Linux string libraries. Can you please tell me what you’re searching for, so I can try the same search? My normal searches aren’t giving that.

Drop it to me in email at:
cyberfox@users.sourceforge.net
if you’d prefer not to post it here.

I have a version to try against it that tries to hack another potential quote problem, but I’m really not sure why the string problem occurs right now, and especially only under Linux.

— Morgan Schweers, CyberFOX

 
Avatar Morgan Schweers Administrator 1,204 post(s)

Greetings,
Ah! Interesting… I believe the problem MAY be that the libraries are using double-byte StringBuffer’s, and I’m converting it into a byte-stream (thereby doubling the length), and then trying to use an index into that to alter the StringBuffer, but the StringBuffer’s official length is 1/2 of the bytebuffer size.

The problem with this theory is that it should not work at all, instead of just failing on a search or something… Are you both having it fail completely to run?

If so, contact me by email (as above) and I’ll provide a test version that might work better. If it does, then I’ll roll that change into 0.9 also.

— Morgan Schweers, CyberFOX!

p.s. Also tell me if you’re using a non-US locale at all, on Linux?

 
Avatar (SF) Philip ... 3 post(s)

I just posted a bug report on this in the bug-tracking section.

FYI I’m using linux but an older version of the JRE.

java -version reports:

java version “1.3.0”
Java™ 2 Runtime Environment, Standard Edition, root-13Dec2001-12:38
Java HotSpot™ Client VM, Caldera Systems, mixed mode