JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Use Agile By Default
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Create Issue
  • Mule
  • MULE-1799

Mule example webapp produces a stacktrace after clicking on the LoanBroker link

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.4.0
  • Fix Version/s: 1.4.2
  • Component/s: Examples / Tutorials
  • Labels:
    None
  • Environment:

    JBoss 4.2.0 GA, Sun JDK 6.0.1

  • User impact:
    High
  • Log Output:
    Hide
    10:43:49,296 INFO [STDOUT] [05-27 10:43:49] ERROR [jsp] [http-127.0.0.1-8080-1]: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:

    An error occurred at line: 22 in the jsp file: /loanbroker.jsp
    The constructor LoanBrokerApp() is undefined
    19: String random = request.getParameter("random");
    20:
    21: if(random!=null) {
    22: LoanBrokerApp consumer = new LoanBrokerApp();
    23: int requests = Integer.parseInt(random);
    24: //to get all the result and print them out
    25: List results = consumer.requestSend(requests, "vm://LoanBrokerRequests");


    Stacktrace:
            at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
            at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
            at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
            at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
            at java.lang.Thread.run(Thread.java:619)
    Show
    10:43:49,296 INFO [STDOUT] [05-27 10:43:49] ERROR [jsp] [http-127.0.0.1-8080-1]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 22 in the jsp file: /loanbroker.jsp The constructor LoanBrokerApp() is undefined 19: String random = request.getParameter("random"); 20: 21: if(random!=null) { 22: LoanBrokerApp consumer = new LoanBrokerApp(); 23: int requests = Integer.parseInt(random); 24: //to get all the result and print them out 25: List results = consumer.requestSend(requests, "vm://LoanBrokerRequests"); Stacktrace:         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)         at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)         at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)         at java.lang.Thread.run(Thread.java:619)
  • Similar Issues:
    None

Issue Links

blocks

Bug - A problem which impairs or prevents the functions of the product. MULE-1604 Building and deploying the webapp example throws a SAXParseException

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
is blocked by

Task - A task that needs to be done. MULE-1803 Use the real config files for webapp example

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
is duplicated by

Bug - A problem which impairs or prevents the functions of the product. MULE-1604 Building and deploying the webapp example throws a SAXParseException

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds
Hide
Permalink
Andrew Perepelytsya added a comment - 27/May/07 10:18 AM

This problem stems from the unification of the LoanBroker apps, now there's no default constructor, and one has to pass a config location as a parameter.

Show
Andrew Perepelytsya added a comment - 27/May/07 10:18 AM This problem stems from the unification of the LoanBroker apps, now there's no default constructor, and one has to pass a config location as a parameter.
Hide
Permalink
Andrew Perepelytsya added a comment - 28/May/07 12:12 PM

Travis, if it helps, I also noticed the webapp's loanbroker config is pretty old, with endpoint-indentifiers, deprecated inboundEndpoint attributes and not using the nested router, unlike the configs in standalone version.

Show
Andrew Perepelytsya added a comment - 28/May/07 12:12 PM Travis, if it helps, I also noticed the webapp's loanbroker config is pretty old, with endpoint-indentifiers, deprecated inboundEndpoint attributes and not using the nested router, unlike the configs in standalone version.
Hide
Permalink
Travis Carlson added a comment - 02/Jun/07 05:44 PM

I believe this is the same issue as the LoanBroker's NullPayload mentioned in MULE-1604

The relevant part of the stack trace is:

java.lang.NoClassDefFoundError: [Ljavax/activation/DataHandler;
at org.mule.providers.soap.axis.AxisMessageDispatcher.getCall(AxisMessageDispatcher.java:292)
at org.mule.providers.soap.axis.AxisMessageDispatcher.doSend(AxisMessageDispatcher.java:144)
at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:223)
at org.mule.providers.AbstractConnector.send(AbstractConnector.java:1606)

It turns out that the mule-loanbroker-config.xml used in the webapp (which is a fork of the real LoanBroker config, see MULE-1803) uses Axis, which needs javax.activation.DataHandler, which is in that stupid activation-1.1.jar that we can't include in the distro due to Sun's silly licensing restrictions... Argh!

In order to avoid this whole library mess, I will just replace the Axis LoanBroker with the VM LoanBroker for the webapp, problem solved.

Show
Travis Carlson added a comment - 02/Jun/07 05:44 PM I believe this is the same issue as the LoanBroker's NullPayload mentioned in MULE-1604 The relevant part of the stack trace is: java.lang.NoClassDefFoundError: [Ljavax/activation/DataHandler; at org.mule.providers.soap.axis.AxisMessageDispatcher.getCall(AxisMessageDispatcher.java:292) at org.mule.providers.soap.axis.AxisMessageDispatcher.doSend(AxisMessageDispatcher.java:144) at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:223) at org.mule.providers.AbstractConnector.send(AbstractConnector.java:1606) It turns out that the mule-loanbroker-config.xml used in the webapp (which is a fork of the real LoanBroker config, see MULE-1803) uses Axis, which needs javax.activation.DataHandler, which is in that stupid activation-1.1.jar that we can't include in the distro due to Sun's silly licensing restrictions... Argh! In order to avoid this whole library mess, I will just replace the Axis LoanBroker with the VM LoanBroker for the webapp, problem solved.
Hide
Permalink
Travis Carlson added a comment - 05/Jun/07 11:20 AM

Fixed in r6905-6914

Show
Travis Carlson added a comment - 05/Jun/07 11:20 AM Fixed in r6905-6914
Hide
Permalink
Andrew Perepelytsya added a comment - 05/Jun/07 11:23 AM

Forgot the fix version.

Show
Andrew Perepelytsya added a comment - 05/Jun/07 11:23 AM Forgot the fix version.

People

  • Assignee:
    Travis Carlson
    Reporter:
    Andrew Perepelytsya
Vote (0)
Watch (0)

Dates

  • Created:
    27/May/07 09:48 AM
    Updated:
    06/Jun/07 03:56 PM
    Resolved:
    05/Jun/07 11:23 AM

Agile

  • View on Board
  • Atlassian JIRA (v5.0.7#734-sha1:8ad78a6)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for MuleForge. Try JIRA - bug tracking software for your team.