[kepler-dev] kepler build issues with jar files

Chad Berkley berkley at nceas.ucsb.edu
Wed Oct 27 07:43:02 PDT 2004


Hi,

I just built kepler and didn't see the error that you point out here.  I 
did, though, see that the java.lang.NullPointerException having to do 
with the sun.awt.image.URLImageSource.getConnection() is getting thrown 
again.  This problem can easily be fixed by including the $PTII/doc 
director in the classpath.  It has to do with a certain ptolemy actor 
having images in that directory hard coded into it.

chad

Matt Jones wrote:

> Dan,
> 
> I seem to be having trouble running kepler from ant, especially if I do 
> a clean build (see stack trace below).  It seems to be related to the 
> fact that we have multiple, different versions of the log4j jar files, 
> and now that your new classpath is in place the order fo jar imports 
> seems broken.  Thi sis probably fixed by eliminating the offending 
> versions of log4j that we don't need.   There are other duplicates as 
> well that need to be reviewed carefully (e.g., axis.jar).  Is anyone 
> else seeing these runtime problems?
> 
> Matt
> 
> Here's the error I get:
>     [java] Opening user library 
> /home/jones/.ptolemyII/UserLibrary.xml... Done
>     [java] java.lang.VerifyError: (class: org/apache/log4j/Category, 
> method: getRoot signature: ()Lorg/apache/log4j/Category;) Wrong return 
> type in function
>     [java]     at 
> org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:140) 
> 
>     [java]     at 
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:257) 
> 
>     [java]     at 
> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:390)
>     [java]     at 
> com.hp.hpl.jena.rdf.model.impl.PropertyImpl.<clinit>(PropertyImpl.java:58)
>     [java]     at 
> com.hp.hpl.jena.enhanced.BuiltinPersonalities.<clinit>(BuiltinPersonalities.java:28) 
> 
>     [java]     at 
> com.hp.hpl.jena.rdf.model.impl.ModelCom.<init>(ModelCom.java:50)
>     [java]     at 
> com.hp.hpl.jena.rdf.model.ModelFactory.createDefaultModel(ModelFactory.java:119) 
> 
>     [java]     at 
> com.hp.hpl.jena.rdf.model.ModelFactory.createDefaultModel(ModelFactory.java:113) 
> 
>     [java]     at com.hp.hpl.jena.vocabulary.OWL.<clinit>(OWL.java:37)
>     [java]     at 
> com.hp.hpl.jena.ontology.ProfileRegistry.<clinit>(ProfileRegistry.java:48)
>     [java]     at 
> com.hp.hpl.jena.ontology.OntModelSpec.<clinit>(OntModelSpec.java:55)
>     [java]     at 
> org.ecoinformatics.seek.sms.AnnotationEngine.initialize(AnnotationEngine.java:133) 
> 
>     [java]     at 
> org.ecoinformatics.seek.sms.AnnotationEngine.<init>(AnnotationEngine.java:100) 
> 
>     [java]     at 
> org.ecoinformatics.seek.sms.AnnotationEngine.instance(AnnotationEngine.java:110) 
> 
>     [java]     at 
> org.ecoinformatics.seek.ecogrid.TabbedLibraryPane.<init>(TabbedLibraryPane.java:107) 
> 
>     [java]     at 
> org.ecoinformatics.seek.ecogrid.TabbedLibraryPane$Factory.createLibraryPane(TabbedLibraryPane.java:243) 
> 
>     [java]     at 
> org.ecoinformatics.seek.ecogrid.LibraryPaneFactory.createLibraryPane(LibraryPaneFactory.java:119) 
> 
>     [java]     at 
> ptolemy.vergil.basic.BasicGraphFrame.<init>(BasicGraphFrame.java:352)
>     [java]     at 
> ptolemy.vergil.basic.ExtendedGraphFrame.<init>(ExtendedGraphFrame.java:100)
>     [java]     at 
> ptolemy.vergil.actor.ActorGraphFrame.<init>(ActorGraphFrame.java:124)
>     [java]     at 
> ptolemy.vergil.actor.ActorGraphTableau.<init>(ActorGraphTableau.java:105)
>     [java]     at 
> ptolemy.vergil.actor.ActorGraphTableau$Factory.createTableau(ActorGraphTableau.java:162) 
> 
>     [java]     at 
> ptolemy.actor.gui.PtolemyTableauFactory.createTableau(PtolemyTableauFactory.java:98) 
> 
>     [java]     at 
> ptolemy.actor.gui.TableauFactory.createTableau(TableauFactory.java:122)
>     [java]     at 
> ptolemy.actor.gui.Configuration.createPrimaryTableau(Configuration.java:193) 
> 
>     [java]     at 
> ptolemy.actor.gui.TableauFrame$1.actionPerformed(TableauFrame.java:349)
>     [java]     at 
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
>     [java]     at 
> javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839) 
> 
>     [java]     at 
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) 
> 
>     [java]     at 
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
>     [java]     at 
> javax.swing.AbstractButton.doClick(AbstractButton.java:289)
>     [java]     at 
> javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
>     [java]     at 
> javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943) 
> 
>     [java]     at java.awt.Component.processMouseEvent(Component.java:5100)
>     [java]     at java.awt.Component.processEvent(Component.java:4897)
>     [java]     at java.awt.Container.processEvent(Container.java:1569)
>     [java]     at java.awt.Component.dispatchEventImpl(Component.java:3615)
>     [java]     at java.awt.Container.dispatchEventImpl(Container.java:1627)
>     [java]     at java.awt.Component.dispatchEvent(Component.java:3477)
>     [java]     at 
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
>     [java]     at 
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
>     [java]     at 
> java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
>     [java]     at java.awt.Container.dispatchEventImpl(Container.java:1613)
>     [java]     at java.awt.Window.dispatchEventImpl(Window.java:1606)
>     [java]     at java.awt.Component.dispatchEvent(Component.java:3477)
>     [java]     at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
>     [java]     at 
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) 
> 
>     [java]     at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) 
> 
>     [java]     at 
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
>     [java]     at 
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
>     [java]     at 
> java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
>     [java] ANNOTATION ENGINE: loading ontologies and annotations ...
> 
> 
> _______________________________________________
> kepler-dev mailing list
> kepler-dev at ecoinformatics.org
> http://www.ecoinformatics.org/mailman/listinfo/kepler-dev



More information about the Kepler-dev mailing list