aspose file tools*
The moose likes XML and Related Technologies and the fly likes Running Java Program using AltovaXML2007 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Running Java Program using AltovaXML2007" Watch "Running Java Program using AltovaXML2007" New topic
Author

Running Java Program using AltovaXML2007

Serene Almomen
Greenhorn

Joined: Jun 01, 2006
Posts: 2
I am using AltovaXML2007 API to process and query XML files in my program. The problem is that at run time sometimes the program fails and sometimes it does not. It is really random like out of 5 times running the promram 2 times the program will fail giving NullPointerException.

While debugging I found that the program is failing when I am trying to instantiate the AltovaXMLFactory:

// Get application instance
IAltovaXMLFactory objXmlApp = AltovaXMLFactory.getInstance();

objXmlApp is initialized to NULL in the instances where the program is failing to run giving NullPointerException.

Do you know what might cause the program to randomly crash?
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
I'm just wondering why you want to us AltovaXML2007 API.

Why not to use xerces, xml4j, xpp, etc.

The less people use the API, the more bugs you would expect...

To tell you the truth, I never liked XML Spy, let alone their API.
[ May 08, 2007: Message edited by: Roseanne Zhang ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Running Java Program using AltovaXML2007
 
Similar Threads
two basic problem reg. valueOf amd Thread
all ports are used-adress already in use
Odd LookAndFeel / JDBC problem
Problem with NetBeans 5 Beta 2
Difference between notify and notifyAll