The code also has these debugging statements:
writer.print("page: " + page);
writer.print("visitObject: " + visitObject);
writer.print("visitClass: " + visitClass);
writer.print("arguments[0]: " + arguments[0]);
writer.print("arguments[1]: " + arguments[1]);
writer.print("snippetGetterMethod: " + snippetGetterMethod);
writer.printRaw("<hr>");
and the print this:
page : [EMAIL PROTECTED]
visitObject : [EMAIL PROTECTED]
visitClass : class Fsys.Common.Visit
arguments[0] : fshome-menu1
arguments[1] : sv_SE
snippetGetterMethod : public java.lang.String
Fsys.Common.Visit.getSnippetText(java.lang.String,java.util.Locale)
So this isn't the case.
On 19 jun 2006, at 15.28, Gunna Satria wrote:
By looking in the error stack trace below, you must see in your
DBTextSnippet.java code line 44.
I got your source but i'm not sure it is really line 44 where's
the error occur(maybe you have breakline somewhere)
well, my guess is this below code,
if(snippetGetterMethod == null)
snippetGetterMethod = visitClass.getMethod(snippetGetter,
parameterTypes);
/*this is line 44*/String txt = (String)
snippetGetterMethod.invoke(visitObject, arguments);
this code tells that if snippetGetterMethod value is null it
should get the value from visitClass.getMethod(snippetGetter,
parameterTypes);
i suggest you have to re-check snippetGetterMethod value after
being set by visitClass.getMethod(snippetGetter, parameterTypes);
it is already have the value or it is still null.
if(snippetGetterMethod == null)
snippetGetterMethod = visitClass.getMethod(snippetGetter,
parameterTypes);
if(snippetGetterMethod == null) logger.debug("still null there...");
String txt = (String)snippetGetterMethod.invoke(visitObject,
arguments);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]