The problem is probably the fact that the log file isn't specified in the
config file.
Set a log file.. this will go away.
OR.. someone can modify Turbine's init method in Log.java from...
private static void init()
{
try
{
logfile = new FileWriter( TurbineResources.getString("logfile"),
true );
}
catch (Exception e)
{
e.printStackTrace();
isValid = false;
}
catch (Throwable t)
{
isValid = false;
}
}
to:
private static void init()
{
isValid = false; /* Always assume false.*/
if (TurbineResources.getString("logfile")!=null)
{
try
{
logfile = new
ileWriter( TurbineResources.getString("logfile"),
true );
isValid=true;
}
catch (Exception e)
{
e.printStackTrace();
isValid = false;
}
catch (Throwable t)
{
isValid = false;
}
}
}
This has removed nullpointer exceptions 'cause of no log file specified.
----- Original Message -----
From: "Steve Belt" <[EMAIL PROTECTED]>
To: "JetSpeed" <[EMAIL PROTECTED]>
Sent: Friday, April 14, 2000 9:45 PM
Subject: Re: Exception when starting FeedDaemon
> I don't know if this is the problem oin this case, but I found that all
the
> paths in the .properties files had to be of the format /c:/apache... (note
> the leading "/").
>
> I have not downloaded the latest CVS yet, so I will defer to anyone else's
> response to this.
>
> Steve B.
> ----- Original Message -----
> From: G�tz Botterweck <[EMAIL PROTECTED]>
> To: 'JetSpeed' <[EMAIL PROTECTED]>
> Sent: Thursday, April 13, 2000 12:48 PM
> Subject: Exception when starting FeedDaemon
>
>
> > PROBLEM
> >
> > When I try start the FeedDaemon from command line
> > java
> > -Djetspeed.properties=c:/apache/jetspeed/src/conf/jetspeed.properties
> > org.apache.jetspeed.daemon.FeedDaemon
> > I get this
> > java.lang.NullPointerException
> > at
> >
>
org.apache.turbine.services.resources.TurbineResources.getString(TurbineReso
> > urces.java:353)
> > at org.apache.turbine.util.Log.init(Log.java:112)
> > at org.apache.turbine.util.Log.<clinit>(Log.java:102)
> > at
> >
>
org.apache.jetspeed.util.JetspeedResources.getInstance(JetspeedResources.jav
> > a:180)
> > at
> > org.apache.jetspeed.daemon.FeedDaemon.<clinit>(FeedDaemon.java)
> > Exception in thread "main" java.lang.ExceptionInInitializerError:
> > java.lang.NullPointerException
> > at
> > org.apache.jetspeed.daemon.FeedDaemon.<clinit>(FeedDaemon.java)
> >
> > I have seen in the archives that someone had the same (or a similar)
> > problem, but could not find a solution.
> >
> > Thanks in Adv.
> > Goetz
> >
>
> --------------------------------------------------------------------------
> --
> > ----------------
> > ADDITIONAL INFO
> > Win2000
> > Apache 1.3.12
> > JServ 1.1
> > Jetspeed 1.1
> > JVM Sun 1.2.2
> >
> >
> >
>
CLASSPATH=;C:\Apache\JServ\ApacheJServ.jar;c:\jsdk2.0\lib\jsdk.jar;C:\jdk1.2
> > .2\lib\tools.jar;c:\apac
> >
> >
>
he\lib\ecs.jar;c:\apache\lib\turbine-2.0.jar;c:\apache\lib\cocoon.jar;c:\apa
> > che\lib\cocoon-ext-servl
> >
> >
>
et2.2.jar;c:\apache\lib\castor-0.7.4.jar;c:\apache\lib\village.jar;c:\apache
> > \lib\xalan.jar;c:\apache
> >
> >
>
\lib\xerces.jar;c:\apache\lib\fop.jar;c:\apache\jetspeed\jetspeed.jar;c:\apa
> > che\lib\jndi-1.2.1.jar;c
> > :\apache\lib\mail-1.1.3.jar;C:\Apache\lib\mysql.jar
> >
> >
> > --
> > --------------------------------------------------------------
> > Please read the FAQ! <http://java.apache.org/faq/>
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Archives and Other: <http://java.apache.org/main/mail.html>
> > Problems?: [EMAIL PROTECTED]
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]