It looks like you ran it once as root, which would create all of the files in .kepler with owner root. You can either delete your .kepler directory and let kepler recreate it (just make sure you haven't saved anything important there or cached large datasets) or you can chown the entire directory to the non-root user.
As for the X-11 error, it looks like you don't have a DISPLAY variable set or something. Can you run 'xclock' from the terminal that you are starting kepler from and have the clock display? If not, something is wrong with X. Hope that helps. chad prakash bisht wrote: > Hi, > > While running "ant run" as non-root it's giving the following error. > While running the same stuff as a root user the error message is changed. > > > > > ERROR as NON_ROOT > ****************************************************************************************** > java.lang.Exception: Failed to parse "-kepler" > at > ptolemy.actor.gui.ConfigurationApplication.throwArgsException(ConfigurationApplication.java:643) > at > ptolemy.actor.gui.ConfigurationApplication.<init>(ConfigurationApplication.java:292) > at ptolemy.actor.gui.MoMLApplication.<init>(MoMLApplication.java:81) > at ptolemy.vergil.VergilApplication.<init>(VergilApplication.java:110) > at ptolemy.vergil.VergilApplication$1.run(VergilApplication.java:217) > at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) > at > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) > at > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) > at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) > at > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) > at > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) > Caused by: java.lang.Exception: Failed to read configuration > 'file:/home/globus/KEPLER_Globus4.xNewBUILD/common/configs/ptolemy/configs/kepler/configuration.xml' > at > ptolemy.vergil.VergilApplication._createDefaultConfiguration(VergilApplication.java:309) > at > ptolemy.vergil.VergilApplication._createEmptyConfiguration(VergilApplication.java:345) > at > ptolemy.actor.gui.ConfigurationApplication._parseArgs(ConfigurationApplication.java:1120) > at > ptolemy.vergil.VergilApplication._parseArgs(VergilApplication.java:475) > at > ptolemy.actor.gui.ConfigurationApplication.<init>(ConfigurationApplication.java:226) > ... 11 more > Caused by: java.lang.Exception: Failed to call application initializer > class "org.kepler.gui.KeplerInitializer". Perhaps the configuration file > "file:/home/globus/KEPLER_Globus4.xNewBUILD/common/configs/ptolemy/configs/kepler/configuration.xml" > has a problem? > at > ptolemy.actor.gui.ConfigurationApplication.readConfiguration(ConfigurationApplication.java:456) > at > ptolemy.vergil.VergilApplication._createDefaultConfiguration(VergilApplication.java:307) > ... 15 more > Caused by: java.sql.SQLException: Primary or unique constraint required on > main table: CACHECONTENTTABLE in statement [create cached table > CACHE_SEMTYPES ( LSID varchar, SEMTYPE varchar, PRIMARY KEY > (LSID,SEMTYPE), FOREIGN KEY (LSID) REFERENCES CACHECONTENTTABLE (LSID) ON > DELETE CASCADE )] > at org.hsqldb.jdbc.Util.sqlException(Unknown Source) > at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source) > at org.hsqldb.jdbc.jdbcStatement.execute(Unknown Source) > at > org.kepler.gui.KeplerInitializer.initializeSystem(KeplerInitializer.java:213) > at org.kepler.gui.KeplerInitializer.<init>(KeplerInitializer.java:92) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > at java.lang.Class.newInstance0(Class.java:355) > at java.lang.Class.newInstance(Class.java:308) > at > ptolemy.actor.gui.ConfigurationApplication.readConfiguration(ConfigurationApplication.java:454) > ... 16 more > ****************************************************************************************** > > > ERROR as ROOT USER > > ***************************************************************************************** > [root at g8 build-area]# ant run > Buildfile: build.xml > > compile: > [compile] Compiling configuration-manager... > [compile] Getting Ptolemy paths from > /home/gridmon/KEPLER-GLOBUS4.xBUILD/ptolemy/.classpath.default > [compile] Compiling module-manager... > [compile] Compiling core... > [compile] Compiling event-state... > [compile] Compiling util... > [compile] Compiling component-library... > [compile] Compiling sms... > [compile] Compiling data-handling... > [compile] Compiling ssh... > [compile] Compiling io... > [compile] Compiling job... > [compile] Compiling repository... > [compile] Compiling authentication... > [compile] Compiling gui... > [compile] Compiling authentication-gui... > [compile] Compiling ecogrid... > [compile] Compiling opendap... > [compile] Compiling actors... > [compile] Compiling loader... > [compile] Compiling r... > [compile] adding compilation exclude: class > org.kepler.osx.KeplerApplicationListener will only be compiled on Mac > OS X > [compile] adding compilation exclude: class > org.kepler.osx.KeplerOSXExtension will only be compiled on Mac OS X > [compile] Compiling apple-extensions... > [compile] Compiling globus4.0.7... > > run: > [run] Getting Ptolemy paths from > /home/gridmon/KEPLER-GLOBUS4.xBUILD/ptolemy/.classpath.default > [run] /home/gridmon/KEPLER-GLOBUS4.xBUILD > [run] Found OS Extension file: > /home/gridmon/KEPLER-GLOBUS4.xBUILD/apple-extensions/module-info/osextension.txt > [run] Building Kars... > [run] Ran additional initialization for module util from class > org.kepler.module.util.Initialize > [run] Failed to find splash screen image.Ignoring, use the Java > coffee cup > [run] java.awt.HeadlessException: > [run] No X11 DISPLAY variable was set, but this program performed an > operation which requires it. > [run] at > java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159) > [run] at java.awt.Window.<init>(Window.java:406) > [run] at java.awt.Frame.<init>(Frame.java:402) > [run] at java.awt.Frame.<init>(Frame.java:367) > [run] at org.kepler.gui.SplashWindow.splash(SplashWindow.java:181) > [run] at org.kepler.gui.SplashWindow.splash(SplashWindow.java:229) > [run] at org.kepler.gui.SplashWindow.splash(SplashWindow.java:219) > [run] at > org.kepler.gui.KeplerApplication.main(KeplerApplication.java:85) > [run] at org.kepler.Kepler.parseArgsAndRun(Kepler.java:243) > [run] at org.kepler.Kepler.main(Kepler.java:160) > [run] Kepler Initializing... > [run] Failed to open . > [run] java.awt.HeadlessException: > [run] No X11 DISPLAY variable was set, but this program performed an > operation which requires it. > [run] at > java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159) > [run] at java.awt.Window.<init>(Window.java:406) > [run] at java.awt.Frame.<init>(Frame.java:402) > [run] at java.awt.Frame.<init>(Frame.java:367) > [run] at javax.swing.JFrame.<init>(JFrame.java:163) > [run] at ptolemy.gui.Top.<init>(Top.java:149) > [run] at > ptolemy.actor.gui.TableauFrame.<init>(TableauFrame.java:146) > [run] at > ptolemy.actor.gui.TableauFrame.<init>(TableauFrame.java:128) > [run] at > ptolemy.actor.gui.TableauFrame.<init>(TableauFrame.java:117) > [run] at > ptolemy.actor.gui.PtolemyFrame.<init>(PtolemyFrame.java:97) > [run] at > ptolemy.vergil.basic.BasicGraphFrame.<init>(BasicGraphFrame.java:219) > [run] at > ptolemy.vergil.basic.ExtendedGraphFrame.<init>(ExtendedGraphFrame.java:95) > [run] at > ptolemy.vergil.actor.ActorGraphFrame.<init>(ActorGraphFrame.java:130) > [run] at > org.kepler.gui.KeplerGraphFrame.<init>(KeplerGraphFrame.java:169) > [run] at > org.kepler.gui.frame.KeplerGraphTableau.<init>(KeplerGraphTableau.java:164) > [run] at > org.kepler.gui.frame.KeplerGraphTableau$Factory.createTableau(KeplerGraphTableau.java:227) > [run] at > ptolemy.actor.gui.PtolemyTableauFactory.createTableau(PtolemyTableauFactory.java:100) > [run] at > ptolemy.actor.gui.TableauFactory.createTableau(TableauFactory.java:127) > [run] at > ptolemy.actor.gui.Configuration.createPrimaryTableau(Configuration.java:567) > [run] at > ptolemy.vergil.VergilApplication._createEmptyConfiguration(VergilApplication.java:399) > [run] at > ptolemy.actor.gui.ConfigurationApplication._parseArgs(ConfigurationApplication.java:1120) > [run] at > ptolemy.vergil.VergilApplication._parseArgs(VergilApplication.java:475) > [run] at > ptolemy.actor.gui.ConfigurationApplication.<init>(ConfigurationApplication.java:226) > [run] at > ptolemy.actor.gui.MoMLApplication.<init>(MoMLApplication.java:81) > [run] at > ptolemy.vergil.VergilApplication.<init>(VergilApplication.java:110) > [run] at > ptolemy.vergil.VergilApplication$1.run(VergilApplication.java:217) > [run] at > java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) > [run] at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) > [run] at > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) > [run] at > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) > [run] at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) > [run] at > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) > [run] at > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) > [run] at > java.awt.EventDispatchThread.run(EventDispatchThread.java:121) > > BUILD SUCCESSFUL > Total time: 53 seconds > **************************************************************************************** > > > I don't know why it's happening. Both times it's saying BUILD > SUCCESSFUL but giving errors. > > Please help. > > > Thanks and Regards, > Prakash Singh Bisht

