List Info

Thread: Exception When Changing Flavors




Exception When Changing Flavors
user name
2006-02-17 09:48:06
Hi Guys,

I'm getting an exception thrown by Tomcat when changing
flavors using a hyperlink.  I have created a section of my
weblog (http://k
elmon.com:8080/plojsom/blog/default/) with a Simple
Search form that has a link to a flavor used to support the
Advanced Search plug-in.  When selecting this link the
following exception is thrown:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that
prevented it from fulfilling this request.

exception

java.lang.NullPointerException
	java.lang.String.startsWith(String.java:1252)
	java.lang.String.startsWith(String.java:1281)
	org.blojsom.plugin.referer.RefererLogPlugin.process(Referer
LogPlugin.java:377)
	org.blojsom.servlet.BlojsomServlet.service(BlojsomServlet.j
ava:432)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802
)
	org.blojsom.filter.PermalinkFilter.doFilter(PermalinkFilter
.java:207)

Oddly, when the URL to the Advanced Search flavor is entered
manually (http://kelmon.com:8080/plojsom/blog/default/?flavor=se
arch) then it works without a hitch.  Given this, it
seems that some information is being passed to Blojsom as
part of the GET request that it doesn't like when using the
on-screen hyperlink.

Anyone got any suggestions of what might be causing this
problem?

Regards,

Marcus


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep
through log files
for problems?  Stop!  Download the new AJAX search engine
that makes
searching your log files as easy as surfing the  web. 
DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
Exception When Changing Flavors
user name
2006-02-17 16:07:46
looking at the source code I guess that you can try to add

blog-url=something-right

in your configuration file.

Marcus Peaston wrote:
> Hi Guys,
> 
> I'm getting an exception thrown by Tomcat when
changing flavors using a hyperlink.  I have created a
section of my weblog (http://k
elmon.com:8080/plojsom/blog/default/) with a Simple
Search form that has a link to a flavor used to support the
Advanced Search plug-in.  When selecting this link the
following exception is thrown:
> 
> HTTP Status 500 -
> 
> type Exception report
> 
> message
> 
> description The server encountered an internal error ()
that prevented it from fulfilling this request.
> 
> exception
> 
> java.lang.NullPointerException
> 	java.lang.String.startsWith(String.java:1252)
> 	java.lang.String.startsWith(String.java:1281)
>
	org.blojsom.plugin.referer.RefererLogPlugin.process(Referer
LogPlugin.java:377)
>
	org.blojsom.servlet.BlojsomServlet.service(BlojsomServlet.j
ava:432)
>
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802
)
>
	org.blojsom.filter.PermalinkFilter.doFilter(PermalinkFilter
.java:207)
> 
> Oddly, when the URL to the Advanced Search flavor is
entered manually (http://kelmon.com:8080/plojsom/blog/default/?flavor=se
arch) then it works without a hitch.  Given this, it
seems that some information is being passed to Blojsom as
part of the GET request that it doesn't like when using the
on-screen hyperlink.
> 
> Anyone got any suggestions of what might be causing
this problem?
> 
> Regards,
> 
> Marcus
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you
grep through log files
> for problems?  Stop!  Download the new AJAX search
engine that makes
> searching your log files as easy as surfing the  web. 
DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Blojsom-users mailing list
> Blojsom-userslists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
> 

Regards.
-- 
Nicola Piccinini -- http://superfluo.org


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep
through log files
for problems?  Stop!  Download the new AJAX search engine
that makes
searching your log files as easy as surfing the  web. 
DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
Exception When Changing Flavors
user name
2006-02-17 16:52:25
Yes. The plugin tries to pull the blog URL from the blog
configuration. My
guess is that you've got the blog-url commented out of
blog.properties?

I added in some code to check for that condition.


On 2/17/06 11:07 AM, "Nicola Piccinini"
<picsuperfluo.org> wrote:

> looking at the source code I guess that you can try to
add
> 
> blog-url=something-right
> 
> in your configuration file.
> 
> Marcus Peaston wrote:
>> Hi Guys,
>> 
>> I'm getting an exception thrown by Tomcat when
changing flavors using a
>> hyperlink.  I have created a section of my weblog
>> (http://k
elmon.com:8080/plojsom/blog/default/) with a Simple
Search form that
>> has a link to a flavor used to support the Advanced
Search plug-in.  When
>> selecting this link the following exception is
thrown:
>> 
>> HTTP Status 500 -
>> 
>> type Exception report
>> 
>> message
>> 
>> description The server encountered an internal
error () that prevented it
>> from fulfilling this request.
>> 
>> exception
>> 
>> java.lang.NullPointerException
>> java.lang.String.startsWith(String.java:1252)
>> java.lang.String.startsWith(String.java:1281)
>> 
org.blojsom.plugin.referer.RefererLogPlugin.process(RefererL
ogPlugin.java:377>>
)
>>
org.blojsom.servlet.BlojsomServlet.service(BlojsomServlet.ja
va:432)
>>
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>
org.blojsom.filter.PermalinkFilter.doFilter(PermalinkFilter.
java:207)
>> 
>> Oddly, when the URL to the Advanced Search flavor
is entered manually
>> (http://kelmon.com:8080/plojsom/blog/default/?flavor=se
arch) then it works
>> without a hitch.  Given this, it seems that some
information is being passed
>> to Blojsom as part of the GET request that it
doesn't like when using the
>> on-screen hyperlink.
>> 
>> Anyone got any suggestions of what might be causing
this problem?
>> 
>> Regards,
>> 
>> Marcus
>> 
>> 
>>
-------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc. Do
you grep through log files
>> for problems?  Stop!  Download the new AJAX search
engine that makes
>> searching your log files as easy as surfing the 
web.  DOWNLOAD SPLUNK!
>> http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=103432&bid=230486&dat=121642
>> _______________________________________________
>> Blojsom-users mailing list
>> Blojsom-userslists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
>> 
> 
> Regards.

-- 
David Czarnecki

http://www.blojsom.com/b
log/ | http://blojsom.sf.net




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep
through log files
for problems?  Stop!  Download the new AJAX search engine
that makes
searching your log files as easy as surfing the  web. 
DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )