Community
Participate
Working Groups
I don't know what the right component is - I'm sorry if compiler is wrong. For some reason I get this error every time I include /opt/aspectj1.2/lib/aspectjtools.jar in the classpath for the java runtime. The some code executes fine when I don't include the jar. aspectjrt.jar is not giving me any problems. Any clues? Perhaps some type of conflict? The java runtime is from Sun's JDK 1.4. Xerces-j is installed, and this is Fedora Core Rawhide. Exception in thread "main" javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:99) at java.util.prefs.XmlSupport.load(XmlSupport.java:210) at java.util.prefs.XmlSupport.importMap(XmlSupport.java:318) at java.util.prefs.FileSystemPreferences$8.run(FileSystemPreferences.java:561) at java.security.AccessController.doPrivileged(Native Method) at java.util.prefs.FileSystemPreferences.loadCache(FileSystemPreferences.java:554) at java.util.prefs.FileSystemPreferences.initCacheIfNecessary(FileSystemPreferences.java:537) at java.util.prefs.FileSystemPreferences.getSpi(FileSystemPreferences.java:514) at java.util.prefs.AbstractPreferences.get(AbstractPreferences.java:270) at java.util.prefs.AbstractPreferences.getBoolean(AbstractPreferences.java:481) at edu.cornell.cs.sam.ui.SamGUI.reorderComponents(SamGUI.java:214) at edu.cornell.cs.sam.ui.SamGUI.createComponents(SamGUI.java:206) at edu.cornell.cs.sam.ui.SamGUI.<init>(SamGUI.java:162) at edu.cornell.cs.sam.ui.SamGUI.startUI(SamGUI.java:1326) at edu.cornell.cs.sam.ui.SamUI.startSaM(SamUI.java:112) at edu.cornell.cs.sam.ui.SamUI.startSaM(SamUI.java:147) at edu.cornell.cs.sam.ui.SamGUI.main(SamGUI.java:1351)
aspectjtools.jar seems to have picked up some unwanted classes during the build and packaging process - there are one or two javax.xml..* classes in there that shouldn't be. Suspect these are incompatible with the versions you have elsewhere on your classpath. This needs to be fixed in 1.2.1. I'll post to this bug report as soon as a fix is available from the aspectj download page.
I believe this bug has already been fixed in the 1.2.1 stream. With the rebuild of the jdt dependencies for the compiler move we have lost the rogue javax.xml stuff that shouldn't be in there. When the next build succeeds (which includes a whole bunch of package renames) I'll verify that...
I checked and we aren't including javax.xml classes but after some further investigation I have also removed: org/eclipse/jface/* org/eclipse/text/* org/eclipse/osgi/* I have left in: org/osgi/* org/eclipse/core/* fix checked in, waiting for build.
Fix available: BUILD COMPLETE - build.373 Date of build: 09/07/2004 19:06:28 Time to build: 99 minutes 10 seconds Last changed: 09/07/2004 16:35:51 Latest good AspectJ jar available at: download.eclipse.org/technology/ajdt/dev/aspectj-DEVELOPMENT.jar
Fix released as part of AspectJ 1.2.1