Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

another error on page

 
Jherald Lacambra
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the one who replied on my first problem

Can anyone help me to solve this problem and tell me what it is:


java.lang.NoSuchMethodErrorat _currencyconverter._jspService(_currencyconverter.java:103)[SRC:/currencyconverter.jsp:25]at com.orionserver[Oracle9iAS (9.0.2.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)


Thank you very much

 
evan theon
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
acccording to your error message it appears to be you are trying to use a function/method in currencyconverter.class which doesn't exist
check again your class, your spelling cause java is a case-sensitive language, or your class directory cause you may have access the wrong class you wish
 
Jherald Lacambra
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually the method exist:

Heres the part of the class that has the method:

public String getStatus() {
return status;
}
public String getValidTag(String validTag) {
return validTag;
}


and here's the jsp that calls out the method:

String valid_tag = exporterInfo.getValidTag();<--line 23
System.out.println("validTag: " + valid_tag);
 
Jherald Lacambra
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i posted a wrong message

Heres the part of the class that has the method:

String valid_tag = exporterInfo.getValidTag();<--line 25
System.out.println("validTag: " + valid_tag);
 
evan theon
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
String valid_tag = exporterInfo.getValidTag();<--line 25
System.out.println("validTag: " + valid_tag);

so you are using system.out.println inside a function and call it from jsp right?
well according to my experience in jsp programming it is not allowed cause system.out.println is used to display a text in a console, not in a browser, in other system.out.println is displaying a text in a local computer while jsp actually processes its data on a server ( including the out.println command ), so technically you can't do that

it is better you if you use the function :

public String getValidTag(String validTag) {
return validTag;
}

and use it directly in the jsp page.
maybe it helps, try it and post me later about the result...
 
Jherald Lacambra
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually System.out.println doesnt affect my program.. The browser reads it as jsp and not html.. I put it inside jsp tags<% %> so browser cannot read it as html.. I only use it so that i can view the values that was passed onto a parameter.. I see the output of these on my ide

theres no problem when running it on local side.. my problem when i deploy it to be use on the web i get that error.. i dont know what went wrong.. I tried to restart the App Server but it still won't work.. can anyone help me to solve these problem.......
 
A timing clock, fuse wire, high explosives and a tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!