Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-18788

NoClassDefFoundError from LinkTool

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 2.6.0
    • Fix Version/s: None
    • Component/s: Linktool
    • Labels:
      None

      Description

      Reported on sakai-dev:

      OS X 10.5.8
      Sakai 2.6.0 binary
      Java version "1.5.0_24"

      This looks like it's some type of local platform or installation issue, but not clear what at this stage. Relevant code is:

      private String sign(String data) throws NoSuchAlgorithmException, InvalidKeyException

      { Mac sig = Mac.getInstance("HmacSHA1"); sig.init(salt); return byteArray2Hex(sig.doFinal(data.getBytes())); }

      >>> Patrick Coleman <patcoleman@me.com> 7/14/2010 6:24 PM >>>

      Hi,

      I tried to add the "Link" tool to a few sites and get the following error
      when
      I try to use it. Can anyone tell me what the problem is?

      Thanks.

      Pat.

      Technical Details
      This information will automatically be included in your bug report.

      org.sakaiproject.portal.api.PortalHandlerException:
      org.sakaiproject.tool.api.ToolException: Servlet execution threw an
      exception
      at
      org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:768)
      caused by: org.sakaiproject.tool.api.ToolException: Servlet execution threw
      an exception
      at
      org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1216)
      caused by: javax.servlet.ServletException: Servlet execution threw an
      exception
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      caused by: java.lang.NoClassDefFoundError
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at
      sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at
      sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:501)
      at java.lang.Class.newInstance0(Class.java:350)
      at java.lang.Class.newInstance(Class.java:303)
      at java.security.Provider$Service.newInstance(Provider.java:1194)
      at javax.crypto.Mac.a(DashoA12275:-1)
      at javax.crypto.Mac.init(DashoA12275:-1)
      at org.sakaiproject.tool.rutgers.LinkTool.sign(LinkTool.java:820)
      at org.sakaiproject.tool.rutgers.LinkTool.doGet(LinkTool.java:374)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:565)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at
      org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
      at
      org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
      at
      org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:364)
      at
      org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at
      org.sakaiproject.tool.impl.ActiveToolComponent$MyActiveTool.forward(ActiveToolComponent.java:486)
      at
      org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1216)
      at
      org.sakaiproject.portal.charon.handlers.ToolHandler.doTool(ToolHandler.java:195)
      at
      org.sakaiproject.portal.charon.handlers.ToolHandler.doGet(ToolHandler.java:94)
      at
      org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:768)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:616)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      at
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
      at
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      at
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
      at
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
      at
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
      at
      org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
      at
      org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
      at
      org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
      at
      org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
      at java.lang.Thread.run(Thread.java:613)

      user: admin

      usage-session: 8ae649fd-8ed7-4838-a125-220fa3acac71

      time: Jul 14, 2010 12:22:21


      View this message in context: http://old.nabble.com/Link-Tools-error-tp29163948p29163948.html
      Sent from the Sakai - Development mailing list archive at Nabble.com.

      _______________________________________________
      sakai-dev mailing list
      sakai-dev@collab.sakaiproject.org
      http://collab.sakaiproject.org/mailman/listinfo/sakai-dev

      TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe@collab.sakaiproject.org with a subject of "unsubscribe"

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                • Assignee:
                  hedrick Charles Hedrick
                  Reporter:
                  smarquard Stephen Marquard
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Integration