Menu

Error in reading configuration file

Help
rGlook
2005-03-27
2013-03-07
  • rGlook

    rGlook - 2005-03-27

    Hi :)

    When I start runjavadc.bat I got this:

    log4j:ERROR Could not read configuration file from URL [jar:file:/C:/Downloaded/
    !New/Javadc3-20050226/javadc3.jar!/log4j.properties].
    java.util.zip.ZipException: Access is denied
            at java.util.zip.ZipFile.open(Native Method)
            at java.util.zip.ZipFile.<init>(Unknown Source)
            at java.util.jar.JarFile.<init>(Unknown Source)
            at java.util.jar.JarFile.<init>(Unknown Source)
            at sun.net.www.protocol.jar.URLJarFile.<init>(Unknown Source)
            at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
            at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
            at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
            at sun.net.www.protocol.jar.JarURLConnection.getInputStream(Unknown Sour
    ce)
            at java.net.URL.openStream(Unknown Source)
            at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurato
    r.java:424)
            at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionCon
    verter.java:460)
            at org.apache.log4j.LogManager.<clinit>(LogManager.java:113)
            at org.apache.log4j.Category.getInstance(Category.java:519)
            at net.sf.javadc.Main.<clinit>(Main.java:48)
    log4j:ERROR Ignoring configuration file [jar:file:/C:/Downloaded/!New/Javadc3-20
    050226/javadc3.jar!/log4j.properties].
    log4j:WARN No appenders could be found for logger (net.sf.javadc.Main).
    log4j:WARN Please initialize the log4j system properly.
    com.jgoodies.plaf.plastic.PlasticXPLookAndFeel/icons/TreeLeaf.gif not found.
    com.jgoodies.plaf.plastic.PlasticXPLookAndFeel/icons/TreeClosed.gif not found.
    com.jgoodies.plaf.plastic.PlasticXPLookAndFeel/icons/TreeOpen.gif not found.
    Exception in thread "main" java.lang.ExceptionInInitializerError
            at snoozesoft.systray4j.SysTrayMenuIcon.<clinit>(SysTrayMenuIcon.java:45
    )
            at net.sf.javadc.gui.MainFrame.<init>(MainFrame.java:146)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.picocontainer.defaults.InstantiatingComponentAdapter.instantiateC
    omponent(InstantiatingComponentAdapter.java:102)
            at org.picocontainer.defaults.InstantiatingComponentAdapter.getComponent
    Instance(InstantiatingComponentAdapter.java:45)
            at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentIns
    tance(DecoratingComponentAdapter.java:42)
            at org.picocontainer.defaults.CachingComponentAdapter.getComponentInstan
    ce(CachingComponentAdapter.java:37)
            at org.picocontainer.defaults.DefaultPicoContainer.start(DefaultPicoCont
    ainer.java:296)
            at org.picocontainer.defaults.DefaultPicoContainer.start(DefaultPicoCont
    ainer.java:297)
            at net.sf.javadc.Main.runApplication(Main.java:140)
            at net.sf.javadc.Main.main(Main.java:74)
    Caused by: java.lang.NullPointerException
            at java.io.Reader.<init>(Unknown Source)
            at java.io.InputStreamReader.<init>(Unknown Source)
            at java.util.Properties.load(Unknown Source)
            at snoozesoft.systray4j.SysTrayManager.<init>(SysTrayManager.java:45)
            at snoozesoft.systray4j.SysTrayManager.<clinit>(SysTrayManager.java:38)
            ... 14 more

    Some help please? I'm using Windows 2000, JRE 1.4.2 and JavaDC3-2005-02-26.

    Thanks :)

    rG

     
    • Timo Westkämper

      Hi.

      I sue Windows 2000, JRE 1.4.2 too, but I don't have problems like that.

      It seems to be a class path problem. Alternatively you might to try to construct the classpath manually when starting the application, instead of relying on the information of the jar manifest, which happens by default.

      You might also try the newest release or the cvs sources and then ant build and javadc.bat.

      Br,
      Timo Westkmper.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.