roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Allen Gilliland <Allen.Gillil...@Sun.COM>
Subject Re: Daily report of Referrers?
Date Tue, 13 May 2008 15:22:34 GMT
Check the application server logs.  If an exception was generated that 
wasn't caught by Roller for some reason then it would end up there.


Angel Vera wrote:
> This is weird.. 
> When I changed the tasks.turnoverReferersTask.class to point to my new class, I get the
following exception and log, and roller doesn't startup.
> INFO  2008-05-13 07:44:13,969 ThreadManagerImpl:initialize - Initializing task: ResetHitCountsTask
> DEBUG 2008-05-13 07:44:13,991 WebloggerConfig:getProperty - Fetching property [tasks.ResetHitCountsTask.leaseTime=30]
> DEBUG 2008-05-13 07:44:14,012 WebloggerConfig:getProperty - Fetching property [tasks.ResetHitCountsTask.startTime=startOfDay]
> DEBUG 2008-05-13 07:44:14,032 WebloggerConfig:getProperty - Fetching property [tasks.ResetHitCountsTask.class=org.apache.roller.weblogger.business.runnable.ResetHitCountsTask]
> DEBUG 2008-05-13 07:44:14,049 WebloggerConfig:getProperty - Fetching property [tasks.ResetHitCountsTask.interval=1440]
> DEBUG 2008-05-13 07:44:14,067 WebloggerConfig:getProperty - Fetching property [tasks.clientId=defaultClientId]
> DEBUG 2008-05-13 07:44:14,100 WebloggerConfig:getProperty - Fetching property [tasks.TurnoverReferersTask.class=com.gunfus.roller.tasks.TurnoverReferersWithSummaryTask]
> INFO  2008-05-13 07:44:14,117 ThreadManagerImpl:initialize - Initializing task: TurnoverReferersTask
> DEBUG 2008-05-13 07:44:14,773 Digester:register - register('-//Apache Software Foundation//DTD
Tiles Configuration 2.0//EN', 'jar:file:/opt/tomcat/webapps/roller/WEB-INF/lib/tiles-core-2.0.4.jar!/org/apache/tiles/resources/tiles-config_2_0.dtd'
> DEBUG 2008-05-13 07:44:15,098 WebloggerConfig:getProperty - Fetching property [hitcount.queue.sleepTime=null,defaultValue=180]
> INFO  2008-05-13 07:44:15,301 HitCountQueue:shutdown - stopping worker HitCountQueueProcessor
> DEBUG 2008-05-13 07:44:15,323 ThreadManagerImpl:shutdown - starting shutdown sequence
> DEBUG 2008-05-13 07:44:15,444 WebloggerConfig:getProperty - Fetching property [cache.defaultFactory=org.apache.roller.weblogger.util.cache.ExpiringLRUCacheFactoryImpl]
> INFO  2008-05-13 07:44:15,470 CacheManager:<clinit> - Cache Manager Initialized.
> INFO  2008-05-13 07:44:15,493 CacheManager:<clinit> - Cache Factory = org.apache.roller.weblogger.util.cache.ExpiringLRUCacheFactoryImpl
> DEBUG 2008-05-13 07:44:15,570 WebloggerConfig:getProperty - Fetching property [cache.customHandlers=]
> INFO  2008-05-13 07:44:15,344 ContinuousWorkerThread:run - HitCountQueueProcessor Started.
> ERROR 2008-05-13 07:44:15,948 WorkerThread:run - Error executing job. Worker = HitCountQueueProcessor,
Job = org.apache.roller.weblogger.business.runnable.HitCountProcessingJob
> java.lang.NullPointerException
>         at org.apache.roller.weblogger.business.runnable.HitCountProcessingJob.execute(HitCountProcessingJob.java:61)
>         at org.apache.roller.weblogger.business.runnable.WorkerThread.run(WorkerThread.java:68)
>         at org.apache.roller.weblogger.business.runnable.ContinuousWorkerThread.run(ContinuousWorkerThread.java:76)
> 
> 
> 
> ----- Original Message ----
> From: Richard Jones <richard@pixyblog.com>
> To: user@roller.apache.org
> Sent: Monday, May 12, 2008 7:57:54 AM
> Subject: Re: Daily report of Referrers?
> 
> I should think you need to add it to your roller.properties file... look for:
> 
> tasks.enabled=ResetHitCountsTask,TurnoverReferersTask...
> 
> # Reset referer counts
> tasks.TurnoverReferersTask.class=org.apache.roller.weblogger.business.runnable.TurnoverReferersTask
> tasks.TurnoverReferersTask.startTime=startOfDay
> tasks.TurnoverReferersTask.interval=1440
> tasks.TurnoverReferersTask.leaseTime=30
> 
> and replace the "tasks.TurnoverReferersTask.class" bit with your
> 
> com.gunfus.roller.tasks.TurnoverReferersWithSummaryTask
> 
> 
> HTH,
> 
> Richard
> 
> 
> 
> 
> 2008/5/12 Angel Vera <gunfus@yahoo.com>:
>> Hi Dave,
>>   So I created my new task to replace:
>>
>> org.apache.roller.weblogger.business.runnable.TurnoverReferersTask
>>
>>   My new tasks is called:
>>   com.gunfus.roller.tasks.TurnoverReferersWithSummaryTask
>>   I packaged it inside of a .jar along with its property nl-message file. I have
placed the jar in the WEB-INF\lib directory, now how do I tell roller to load that tasks?
(and dissable the other one)
>>   Angel
>>
>>
>>   ----- Original Message ----
>>   From: Dave <snoopdave@gmail.com>
>>   To: user@roller.apache.org
>>   Sent: Wednesday, February 6, 2008 4:22:01 PM
>>   Subject: Re: Daily report of Referrers?
>>
>>   You could create a new version of the referrer turnover task, which by
>>   default runs nightly at midnight, to replace the existing one:
>>
>>     org.apache.roller.weblogger.business.runnable.TurnoverReferersTask
>>
>>   Your version could copy the referrer data or some subset of that data
>>   to some statistics history table, to an email or whatever. Create a
>>   new turnover task, put it in your classpath and configure it via
>>   roller-custom.properties.
>>
>>   - Dave
>>
>>
>>
>>   On Feb 6, 2008 12:15 PM, Angel Vera <gunfus@yahoo.com> wrote:
>>   > I noticed that there is a list of "Referrers" that seems to get reset every
day or so. I want extend its functionality so that it would either get sent to my email, or
it would create a page with the statistics of a particular day so that the admin or anyone
can see it.
>>   >
>>   > What would be the proper steps to get me started with that? implement a javaBean?
>>   >
>>   >
>>
>>
>>
>>       __________________________________________________________________
>>
>>
>> Looking for the perfect gift? Give the gift of Flickr!
>>
>>   http://www.flickr.com/gift/
> 
> 
> 
>       __________________________________________________________________
> Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the
All-new Yahoo! Mail.  Click on Options in Mail and switch to New Mail today or register for
free at http://mail.yahoo.ca
> 

Mime
View raw message