pulpTunes Community Forums The Web Server for iTunes

Please login or register.

Login with username, password and session length
Advanced search  

News:

Author Topic: Java Exception  (Read 3290 times)

Liu Anshan

  • Guest
Java Exception
« on: June 06, 2009, 01:06:03 PM »

Hi, i found this today and when i tried to run it i get this

Quote
java.lang.RuntimeException: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xffff) was found in the element content of the document.
   at pulptunes.xml.ITunesMusicDatabaseConfigurer.configure(ITunesMusicDatabaseConfigurer.java:60)
   at pulptunes.PulpTunesApp.initializeMusicDatabase(PulpTunesApp.java:214)
   at pulptunes.PulpTunesApp.main(PulpTunesApp.java:413)
Caused by: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xffff) was found in the element content of the document.
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at pulptunes.xml.ITunesMusicDatabaseConfigurer.configure(ITunesMusicDatabaseConfigurer.java:47)
   ... 2 more

i'm not sure what i need to do to make it work

-L
Logged

alpeb

  • Administrator
  • Grand Master
  • *****
  • Gender: Male
  • Posts: 444
    • View Profile
    • Email
Re: Java Exception
« Reply #1 on: June 06, 2009, 01:24:55 PM »

Hmm I've never seen that before. Would you send me a zip of your itunes xml file to alpeb@pulptunes.com?

Thanks,
Alejandro
Logged

Liu Anshan

  • Guest
Re: Java Exception
« Reply #2 on: June 06, 2009, 01:48:19 PM »

Sure thing, i'll sent it in a minute
Logged

alpeb

  • Administrator
  • Grand Master
  • *****
  • Gender: Male
  • Posts: 444
    • View Profile
    • Email
Re: Java Exception
« Reply #3 on: June 06, 2009, 09:56:17 PM »

You have a song called something like "Gettysburg" from the artist Ratatat and album Ratata. Open iTunes, right click on that song, select Get Info, tab info. There are some invalid characters in this song's name, album and genre. Erase those fields and enter them again. Close iTunes and restart pulpTunes. If that doesn't do the trick, please send me the new xml file after this change, as there might be other problems with other songs.

Cheers
Logged

Liu Anshan

  • Guest
Re: Java Exception
« Reply #4 on: June 06, 2009, 10:33:54 PM »

That did the trick.  Thank's for your awesome help, i'm looking forward to using this.

Allow me to attempt to make your day a little better with this kirby

#<(^.^)>
<(^.^)>#
<(^o^)>

kirby eats a waffle ^^

-L
Logged

Paul

  • Guest
Re: Java Exception
« Reply #5 on: June 07, 2009, 08:12:41 AM »

I get this error as well. I'm sure it's not just one song causing the issue though. I have almost 43,000 songs in my library so it's doubtful just one song is screwed up. What is the fastest way I could search and fix these issues?


Thanks In Advance!
Logged

Paul

  • Guest
Re: Java Exception
« Reply #6 on: June 07, 2009, 08:19:33 AM »

I get this error as well. I'm sure it's not just one song causing the issue though. I have almost 43,000 songs in my library so it's doubtful just one song is screwed up. What is the fastest way I could search and fix these issues?


Thanks In Advance!

Here is the actual error:
java.lang.OutOfMemoryError: Java heap space
   at com.sun.org.apache.xerces.internal.util.XMLStringBuffer.append(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.refresh(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.invokeListeners(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.arrangeCapacity(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipString(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at pulptunes.xml.ITunesMusicDatabaseConfigurer.configure(ITunesMusicDatabaseConfigurer.java:47)
   at pulptunes.PulpTunesApp.initializeMusicDatabase(PulpTunesApp.java:214)
   at pulptunes.PulpTunesApp.main(PulpTunesApp.java:413)
Logged

alpeb

  • Administrator
  • Grand Master
  • *****
  • Gender: Male
  • Posts: 444
    • View Profile
    • Email
Re: Java Exception
« Reply #7 on: June 07, 2009, 11:23:10 AM »

Ok, that's a different error, caused by very large libraries like yours. Let me know what OS you're in to give you the instructions on how to fix this.
Logged

mrcleanstl

  • Guest
Re: Java Exception
« Reply #8 on: June 09, 2009, 09:35:36 AM »

I have approximately 54,000 songs and I'm also having the same java.lang.OutofMemoryError.

Can you post the instructions to correct?
Logged

mrcleanstl

  • Initiate
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Java Exception
« Reply #9 on: June 09, 2009, 09:37:17 AM »

O/S is Windows Vista.
Logged

alpeb

  • Administrator
  • Grand Master
  • *****
  • Gender: Male
  • Posts: 444
    • View Profile
    • Email
Re: Java Exception
« Reply #10 on: June 09, 2009, 09:49:19 AM »

You need to edit a configuration setting to allow for pulpTunes to consume more memory:

Go to the directory where pulpTunes is installed. In XP, this is "C:\Program Files\pulpTunes". I'm not sure if it's the same in Vista. Then open the pulpTunes.ini file with your favorite plain text editor (e.g. Notepad but not Word).

The directive that sets up the maximum memory pulpTunes is allowed to consume is:

Virtual Machine Parameters=-Xmx200M

This means that by default it can only consume a maximum of 200 Megs. Try with higher values until it works for you. You need to restart pulpTunes every time you change this config.

Cheers
Logged

mrcleanstl

  • Initiate
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Java Exception
« Reply #11 on: June 09, 2009, 09:59:08 AM »

Thank you...

Changing Virtual Machine Parameters=-Xmx200M to Virtual Machine Parameters=-Xmx600M did the trick.

Nice!!
Logged

Dustin

  • Guest
Re: Java Exception
« Reply #12 on: June 11, 2009, 02:27:40 PM »

Thanks that helped very much! ;D
Logged

joe

  • Guest
Re: Java Exception
« Reply #13 on: June 12, 2009, 02:10:41 PM »

Here the one I get:
java.lang.RuntimeException: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 3-byte UTF-8 sequence.
   at pulptunes.xml.ITunesMusicDatabaseConfigurer.configure(ITunesMusicDatabaseConfigurer.java:60)
   at pulptunes.PulpTunesApp.initializeMusicDatabase(PulpTunesApp.java:214)
   at pulptunes.PulpTunesApp.main(PulpTunesApp.java:413)
Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 3-byte UTF-8 sequence.
   at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at pulptunes.xml.ITunesMusicDatabaseConfigurer.configure(ITunesMusicDatabaseConfigurer.java:47)
   ... 2 more
Logged

alpeb

  • Administrator
  • Grand Master
  • *****
  • Gender: Male
  • Posts: 444
    • View Profile
    • Email
Re: Java Exception
« Reply #14 on: June 12, 2009, 06:38:38 PM »

Please make sure the appropriate iTunes XML music library file is being used. You can check the file path in the settings section. If that looks ok, would you send me that file to alpeb at pulptunes.com so I can check it out?

Cheers
Logged