xml-xindice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leslie Software <lesliesoftw...@yahoo.com>
Subject Trouble using Xindice in Eclipse project
Date Wed, 28 Apr 2004 13:43:50 GMT
I am working on an Eclipse based application (using the new Rich Client
Platform available in 3.0).  I have wrapped the xindice .jars in an
Eclipse plug-in but things are not working.  My plan is to place the
database in the Eclipse workspace.  I have, for the moment, copied the
configuration files to a subdirectory of the workspace and tried to get
a collection.  The exception is complaining about not being able to
find a SAX parser but all the Xindice .jars are there and on the class
path.

Any advice would be appreciated.

Thanks,

Ian

The code looks like this:

            IPath platformLocation = Platform.getLocation();
            System.out.println ("Platform location: " +
platformLocation.toOSString());
            IPath configFile = platformLocation.append (File.separator
+ "config" + File.separator + "system");
            configFile = configFile.addFileExtension("xml");
            configFile = configFile.makeAbsolute ();
            
            System.setProperty (Xindice.PROP_XINDICE_CONFIGURATION,
configFile.toOSString ());
            
            
            String driver =
"org.apache.xindice.client.xmldb.DatabaseImpl"; //$NON-NLS-1$
            Class c = Class.forName(driver);	

            Database database = (Database) c.newInstance();
            DatabaseManager.registerDatabase(database);

            String uri = "xmldb:xindice-embed:///db/addressbook";
            col = DatabaseManager.getCollection(uri);

At the call to DatabaseManager.getCollection(uri) I get the exceptions
below.

Platform location: P:\LPhotoWorkspace\workspace\
trying to register database
Apr 28, 2004 6:40:43 AM
org.apache.xindice.client.xmldb.embed.DatabaseImpl loadConfiguration
INFO: Specified configuration file:
'P:\LPhotoWorkspace\workspace\config\system.xml'
Apr 28, 2004 6:40:43 AM org.apache.xindice.xml.dom.DOMParser <init>
WARNING: Failed to create SAXParser
org.xml.sax.SAXNotSupportedException: Feature:
http://xml.org/sax/features/external-general-entities
	at
org.apache.crimson.parser.XMLReaderImpl.setFeature(XMLReaderImpl.java:211)
	at
org.apache.xindice.xml.dom.DOMParser.getSAXParser(DOMParser.java:195)
	at org.apache.xindice.xml.dom.DOMParser.<init>(DOMParser.java:76)
	at org.apache.xindice.xml.dom.DOMParser.toDocument(DOMParser.java:165)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.loadConfiguration(DatabaseImpl.java:286)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getConfiguration(DatabaseImpl.java:201)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getDatabase(DatabaseImpl.java:164)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getCollection(DatabaseImpl.java:385)
	at
org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:137)
	at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
	at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
	at
com.lesliesoftware.lphoto.dataaccess.DataaccessPlugin.connectToDatabase(DataaccessPlugin.java:81)
	at
com.lesliesoftware.lphoto.dataaccess.DataaccessPlugin.getPhotosCollection(DataaccessPlugin.java:115)
	at
com.lesliesoftware.lphoto.LPhotoWorkbenchAdvisor.initialize(LPhotoWorkbenchAdvisor.java:46)
	at
org.eclipse.ui.application.WorkbenchAdvisor.basicInitialize(WorkbenchAdvisor.java:156)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:787)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1513)
	at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:257)
	at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
	at
com.lesliesoftware.lphoto.LPhotoApplication.run(LPhotoApplication.java:39)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:277)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:239)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:117)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:267)
	at org.eclipse.core.launcher.Main.run(Main.java:692)
	at org.eclipse.core.launcher.Main.main(Main.java:676)
org.xmldb.api.base.XMLDBException: Unable to parse database
configuration file: P:\LPhotoWorkspace\workspace\config\system.xml
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.loadConfiguration(DatabaseImpl.java:288)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getConfiguration(DatabaseImpl.java:201)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getDatabase(DatabaseImpl.java:164)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getCollection(DatabaseImpl.java:385)
	at
org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:137)
	at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
	at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
	at
com.lesliesoftware.lphoto.dataaccess.DataaccessPlugin.connectToDatabase(DataaccessPlugin.java:81)
	at
com.lesliesoftware.lphoto.dataaccess.DataaccessPlugin.getPhotosCollection(DataaccessPlugin.java:115)
	at
com.lesliesoftware.lphoto.LPhotoWorkbenchAdvisor.initialize(LPhotoWorkbenchAdvisor.java:46)
	at
org.eclipse.ui.application.WorkbenchAdvisor.basicInitialize(WorkbenchAdvisor.java:156)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:787)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1513)
	at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:257)
	at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
	at
com.lesliesoftware.lphoto.LPhotoApplication.run(LPhotoApplication.java:39)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:277)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:239)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:117)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:267)
	at org.eclipse.core.launcher.Main.run(Main.java:692)
	at org.eclipse.core.launcher.Main.main(Main.java:676)
Caused by: org.apache.xindice.util.XindiceException: Error parsing
Document
	at org.apache.xindice.xml.dom.DOMParser.toDocument(DOMParser.java:169)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.loadConfiguration(DatabaseImpl.java:286)
	... 25 more
Caused by: org.apache.xindice.util.XindiceException: Error creating
parser
	at org.apache.xindice.xml.dom.DOMParser.<init>(DOMParser.java:79)
	at org.apache.xindice.xml.dom.DOMParser.toDocument(DOMParser.java:165)
	... 26 more
Caused by: org.xml.sax.SAXNotSupportedException: Feature:
http://xml.org/sax/features/external-general-entities
	at
org.apache.crimson.parser.XMLReaderImpl.setFeature(XMLReaderImpl.java:211)
	at
org.apache.xindice.xml.dom.DOMParser.getSAXParser(DOMParser.java:195)
	at org.apache.xindice.xml.dom.DOMParser.<init>(DOMParser.java:76)
	... 27 more
[B@4310d0org.apache.xindice.util.XindiceException: Error parsing
Document
	at org.apache.xindice.xml.dom.DOMParser.toDocument(DOMParser.java:169)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.loadConfiguration(DatabaseImpl.java:286)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getConfiguration(DatabaseImpl.java:201)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getDatabase(DatabaseImpl.java:164)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getCollection(DatabaseImpl.java:385)
	at
org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:137)
	at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
	at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
	at
com.lesliesoftware.lphoto.dataaccess.DataaccessPlugin.connectToDatabase(DataaccessPlugin.java:81)
	at
com.lesliesoftware.lphoto.dataaccess.DataaccessPlugin.getPhotosCollection(DataaccessPlugin.java:115)
	at
com.lesliesoftware.lphoto.LPhotoWorkbenchAdvisor.initialize(LPhotoWorkbenchAdvisor.java:46)
	at
org.eclipse.ui.application.WorkbenchAdvisor.basicInitialize(WorkbenchAdvisor.java:156)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:787)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1513)
	at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:257)
	at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
	at
com.lesliesoftware.lphoto.LPhotoApplication.run(LPhotoApplication.java:39)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:277)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:239)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:117)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:267)
	at org.eclipse.core.launcher.Main.run(Main.java:692)
	at org.eclipse.core.launcher.Main.main(Main.java:676)
Caused by: org.apache.xindice.util.XindiceException: Error creating
parser
	at org.apache.xindice.xml.dom.DOMParser.<init>(DOMParser.java:79)
	at org.apache.xindice.xml.dom.DOMParser.toDocument(DOMParser.java:165)
	... 26 more
Caused by: org.xml.sax.SAXNotSupportedException: Feature:
http://xml.org/sax/features/external-general-entities
	at
org.apache.crimson.parser.XMLReaderImpl.setFeature(XMLReaderImpl.java:211)
	at
org.apache.xindice.xml.dom.DOMParser.getSAXParser(DOMParser.java:195)
	at org.apache.xindice.xml.dom.DOMParser.<init>(DOMParser.java:76)
	... 27 more
Caused by: org.apache.xindice.util.XindiceException: Error creating
parser
	at org.apache.xindice.xml.dom.DOMParser.<init>(DOMParser.java:79)
	at org.apache.xindice.xml.dom.DOMParser.toDocument(DOMParser.java:165)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.loadConfiguration(DatabaseImpl.java:286)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getConfiguration(DatabaseImpl.java:201)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getDatabase(DatabaseImpl.java:164)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getCollection(DatabaseImpl.java:385)
	at
org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:137)
	at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
	at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
	at
com.lesliesoftware.lphoto.dataaccess.DataaccessPlugin.connectToDatabase(DataaccessPlugin.java:81)
	at
com.lesliesoftware.lphoto.dataaccess.DataaccessPlugin.getPhotosCollection(DataaccessPlugin.java:115)
	at
com.lesliesoftware.lphoto.LPhotoWorkbenchAdvisor.initialize(LPhotoWorkbenchAdvisor.java:46)
	at
org.eclipse.ui.application.WorkbenchAdvisor.basicInitialize(WorkbenchAdvisor.java:156)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:787)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1513)
	at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:257)
	at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
	at
com.lesliesoftware.lphoto.LPhotoApplication.run(LPhotoApplication.java:39)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:277)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:239)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:117)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:267)
	at org.eclipse.core.launcher.Main.run(Main.java:692)
	at org.eclipse.core.launcher.Main.main(Main.java:676)
Caused by: org.xml.sax.SAXNotSupportedException: Feature:
http://xml.org/sax/features/external-general-entities
	at
org.apache.crimson.parser.XMLReaderImpl.setFeature(XMLReaderImpl.java:211)
	at
org.apache.xindice.xml.dom.DOMParser.getSAXParser(DOMParser.java:195)
	at org.apache.xindice.xml.dom.DOMParser.<init>(DOMParser.java:76)
	... 27 more
Caused by: org.xml.sax.SAXNotSupportedException: Feature:
http://xml.org/sax/features/external-general-entities
	at
org.apache.crimson.parser.XMLReaderImpl.setFeature(XMLReaderImpl.java:211)
	at
org.apache.xindice.xml.dom.DOMParser.getSAXParser(DOMParser.java:195)
	at org.apache.xindice.xml.dom.DOMParser.<init>(DOMParser.java:76)
	at org.apache.xindice.xml.dom.DOMParser.toDocument(DOMParser.java:165)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.loadConfiguration(DatabaseImpl.java:286)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getConfiguration(DatabaseImpl.java:201)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getDatabase(DatabaseImpl.java:164)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getCollection(DatabaseImpl.java:385)
	at
org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:137)
	at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
	at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
	at
com.lesliesoftware.lphoto.dataaccess.DataaccessPlugin.connectToDatabase(DataaccessPlugin.java:81)
	at
com.lesliesoftware.lphoto.dataaccess.DataaccessPlugin.getPhotosCollection(DataaccessPlugin.java:115)
	at
com.lesliesoftware.lphoto.LPhotoWorkbenchAdvisor.initialize(LPhotoWorkbenchAdvisor.java:46)
	at
org.eclipse.ui.application.WorkbenchAdvisor.basicInitialize(WorkbenchAdvisor.java:156)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:787)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1513)
	at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:257)
	at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
	at
com.lesliesoftware.lphoto.LPhotoApplication.run(LPhotoApplication.java:39)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:277)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:239)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:117)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:267)
	at org.eclipse.core.launcher.Main.run(Main.java:692)
	at org.eclipse.core.launcher.Main.main(Main.java:676)
Caused by: org.apache.xindice.util.XindiceException: Error parsing
Document
	at org.apache.xindice.xml.dom.DOMParser.toDocument(DOMParser.java:169)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.loadConfiguration(DatabaseImpl.java:286)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getConfiguration(DatabaseImpl.java:201)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getDatabase(DatabaseImpl.java:164)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getCollection(DatabaseImpl.java:385)
	at
org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:137)
	at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
	at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
	at
com.lesliesoftware.lphoto.dataaccess.DataaccessPlugin.connectToDatabase(DataaccessPlugin.java:81)
	at
com.lesliesoftware.lphoto.dataaccess.DataaccessPlugin.getPhotosCollection(DataaccessPlugin.java:115)
	at
com.lesliesoftware.lphoto.LPhotoWorkbenchAdvisor.initialize(LPhotoWorkbenchAdvisor.java:46)
	at
org.eclipse.ui.application.WorkbenchAdvisor.basicInitialize(WorkbenchAdvisor.java:156)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:787)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1513)
	at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:257)
	at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
	at
com.lesliesoftware.lphoto.LPhotoApplication.run(LPhotoApplication.java:39)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:277)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:239)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:117)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:267)
	at org.eclipse.core.launcher.Main.run(Main.java:692)
	at org.eclipse.core.launcher.Main.main(Main.java:676)
Caused by: org.apache.xindice.util.XindiceException: Error creating
parser
	at org.apache.xindice.xml.dom.DOMParser.<init>(DOMParser.java:79)
	at org.apache.xindice.xml.dom.DOMParser.toDocument(DOMParser.java:165)
	... 26 more
Caused by: org.xml.sax.SAXNotSupportedException: Feature:
http://xml.org/sax/features/external-general-entities
	at
org.apache.crimson.parser.XMLReaderImpl.setFeature(XMLReaderImpl.java:211)
	at
org.apache.xindice.xml.dom.DOMParser.getSAXParser(DOMParser.java:195)
	at org.apache.xindice.xml.dom.DOMParser.<init>(DOMParser.java:76)
	... 27 more
Caused by: org.apache.xindice.util.XindiceException: Error creating
parser
	at org.apache.xindice.xml.dom.DOMParser.<init>(DOMParser.java:79)
	at org.apache.xindice.xml.dom.DOMParser.toDocument(DOMParser.java:165)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.loadConfiguration(DatabaseImpl.java:286)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getConfiguration(DatabaseImpl.java:201)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getDatabase(DatabaseImpl.java:164)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getCollection(DatabaseImpl.java:385)
	at
org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:137)
	at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
	at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
	at
com.lesliesoftware.lphoto.dataaccess.DataaccessPlugin.connectToDatabase(DataaccessPlugin.java:81)
	at
com.lesliesoftware.lphoto.dataaccess.DataaccessPlugin.getPhotosCollection(DataaccessPlugin.java:115)
	at
com.lesliesoftware.lphoto.LPhotoWorkbenchAdvisor.initialize(LPhotoWorkbenchAdvisor.java:46)
	at
org.eclipse.ui.application.WorkbenchAdvisor.basicInitialize(WorkbenchAdvisor.java:156)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:787)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1513)
	at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:257)
	at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
	at
com.lesliesoftware.lphoto.LPhotoApplication.run(LPhotoApplication.java:39)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:277)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:239)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:117)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:267)
	at org.eclipse.core.launcher.Main.run(Main.java:692)
	at org.eclipse.core.launcher.Main.main(Main.java:676)
Caused by: org.xml.sax.SAXNotSupportedException: Feature:
http://xml.org/sax/features/external-general-entities
	at
org.apache.crimson.parser.XMLReaderImpl.setFeature(XMLReaderImpl.java:211)
	at
org.apache.xindice.xml.dom.DOMParser.getSAXParser(DOMParser.java:195)
	at org.apache.xindice.xml.dom.DOMParser.<init>(DOMParser.java:76)
	... 27 more
Caused by: org.xml.sax.SAXNotSupportedException: Feature:
http://xml.org/sax/features/external-general-entities
	at
org.apache.crimson.parser.XMLReaderImpl.setFeature(XMLReaderImpl.java:211)
	at
org.apache.xindice.xml.dom.DOMParser.getSAXParser(DOMParser.java:195)
	at org.apache.xindice.xml.dom.DOMParser.<init>(DOMParser.java:76)
	at org.apache.xindice.xml.dom.DOMParser.toDocument(DOMParser.java:165)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.loadConfiguration(DatabaseImpl.java:286)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getConfiguration(DatabaseImpl.java:201)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getDatabase(DatabaseImpl.java:164)
	at
org.apache.xindice.client.xmldb.embed.DatabaseImpl.getCollection(DatabaseImpl.java:385)
	at
org.apache.xindice.client.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:137)
	at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
	at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
	at
com.lesliesoftware.lphoto.dataaccess.DataaccessPlugin.connectToDatabase(DataaccessPlugin.java:81)
	at
com.lesliesoftware.lphoto.dataaccess.DataaccessPlugin.getPhotosCollection(DataaccessPlugin.java:115)
	at
com.lesliesoftware.lphoto.LPhotoWorkbenchAdvisor.initialize(LPhotoWorkbenchAdvisor.java:46)
	at
org.eclipse.ui.application.WorkbenchAdvisor.basicInitialize(WorkbenchAdvisor.java:156)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:787)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1513)
	at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:257)
	at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
	at
com.lesliesoftware.lphoto.LPhotoApplication.run(LPhotoApplication.java:39)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:277)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:239)
	at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:117)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:267)
	at org.eclipse.core.launcher.Main.run(Main.java:692)
	at org.eclipse.core.launcher.Main.main(Main.java:676)
Unhandled event loop exception
Reason:
java.lang.NullPointerException




	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

Mime
View raw message