Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Error Message

    Hi,

    Can you let me know the reason for this error. A constant dialog box comes over the application and I get the error below.

    java.util.Map com.isomorphic.rpc.BuiltinRPC.getAvailableScriptEngines() throws java.lang.Exception

    with arg types: (empty parameter list)
    [4/15/10 14:16:39:722 CDT] 00000055 SystemOut O === 2010-04-15 14:16:39,722 [ : 3] ERROR BuiltinRPC - Unable to init scripting. Make sure you're running JDK 1.6+ for JSR223 scripting or install Groovy.
    java.lang.NoClassDefFoundError: javax.script.ScriptEngineManager
    at com.isomorphic.rpc.BuiltinRPC.getAvailableScriptEngines(BuiltinRPC.java:247)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at com.isomorphic.base.Reflection.adaptArgsAndInvoke(Reflection.java:867)
    at com.isomorphic.base.Reflection.adaptArgsAndInvoke(Reflection.java:722)
    at com.isomorphic.rpc.RPCDMI.execute(RPCDMI.java:303)
    at com.isomorphic.rpc.RPCDMI.execute(RPCDMI.java:66)
    at com.isomorphic.rpc.RPCRequest.execute(RPCRequest.java:229)
    at com.isomorphic.servlet.IDACall.handleRPCRequest(IDACall.java:196)
    at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:102)
    at com.isomorphic.servlet.IDACall.doPost(IDACall.java:54)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1103)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1038)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
    at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:415)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
    at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:168)
    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
    at com.shc.impact.promo.infrastructure.security.PromoHttpServletRequestFilter.doFilter(PromoHttpServletRequestFilter.java:27)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:834)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:682)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:566)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:486)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748)
    at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1461)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:118)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
    Caused by:
    java.lang.ClassNotFoundException: javax.script.ScriptEngineManager
    at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:579)
    at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:414)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
    ... 49 more

    #2
    What kind of operation are you trying to perform when you see this, and what do the rest of the logs about this operation say?

    Note: always include basic information like this.

    Comment


      #3
      Ok. Am trying to perform listGrid.FetchData()....This was pretty much the log I had......The same log I saw in the developer console apart from my Webshpere console. Below is the log where it comes and hangs...Have attached a screen shot also of the application.

      public static java.util.Map com.isomorphic.rpc.BuiltinRPC.getAvailableScriptEngines() throws java.lang.Exception

      requiredArgs: [] optionalArgs: [com.isomorphic.servlet.RequestContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, javax.servlet.ServletContext, javax.servlet.http.HttpSession, com.isomorphic.rpc.RPCManager, com.isomorphic.rpc.RPCRequest]
      [4/15/10 15:24:12:509 CDT] 0000004e SystemOut O === 2010-04-15 15:24:12,509 [ : 2] DEBUG Reflection - method takes: 0 args. I've assembled: 0 args
      [4/15/10 15:24:12:509 CDT] 0000004e SystemOut O === 2010-04-15 15:24:12,509 [ : 2] DEBUG Reflection - invoking method:
      java.util.Map com.isomorphic.rpc.BuiltinRPC.getAvailableScriptEngines() throws java.lang.Exception

      with arg types: (empty parameter list)
      [4/15/10 15:24:12:519 CDT] 0000004e SystemOut O === 2010-04-15 15:24:12,519 [ : 2] DEBUG RPCDMI - rpc returned data
      [4/15/10 15:24:12:519 CDT] 0000004e SystemOut O === 2010-04-15 15:24:12,519 [ : 2] DEBUG RPCManager - Content type for RPC transaction: text/plain; charset=UTF-8

      Comment


        #4
        Can you show the DataSource declaration involved?

        Also, what JDK are you on?

        Comment


          #5
          Am using JDK -5 , Exact version is:

          java version "1.5.0_12"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
          Java HotSpot(TM) Client VM (build 1.5.0_12-b04, mixed mode, sharing)

          Datasource:

          <DataSource ID="ProductListsSearchResultsDS"
          serverType="generic" dataURL="DisplayProductLists.action">
          <fields>
          <field name="" type="boolean" width="20" canEdit="true"/>
          <field name="productGroupId" type="sequence" hidden="true" primaryKey="true"/>
          <field name="productListName" title="Product List Name" type="text" width="150" canEdit="false"/>
          <field name="numberOfItems" title="# Items" type="integer" width="50" canEdit="false"/>
          <field name="createdOn" title="Created On" type="text" width="100" canEdit="false"/>
          <field name="createdBy" title="Created By" type="text" width="100" canEdit="false"/>
          </fields>
          </DataSource>


          Javascript:

          ProductListsSearchResults.dataSource = "ProductListsSearchResultsDS";
          ProductListsSearchResults.fetchData(loadCriteria,"productListsSearchCallback(data)",{actionURL:"hello" });

          Comment


            #6
            OK, lots of really basic problems:

            1. you probably are not loading this DataSource at all, since your attempt to set dataURL does not appear to be active. See the docs for different options of how to load it, eg, the loadDS tag

            2. you probably don't want to set dataURL anyway - not unless you intend to replace IDACall

            3. your DataSource has no way to execute this request. It has the "generic" server type, but no DMIs declared, and no serverConstructor declared.

            Comment


              #7
              This is my loadDS declaration:

              <isomorphic:loadDS name="ProductListsSearchResultsDS"/>

              DMI is not required in my case, as I am communicating to server through action URL, through struts.xml.

              Please help.

              Comment


                #8
                Look at the stack trace you posted. Struts is involved, but apparently only to delegate to the IDACall servlet (Struts does not produce a response).

                If you are allowing the IDACall servlet to handle the request, then you must declare something in your DataSource that tells the SmartClient system what to do.

                Comment


                  #9
                  Can you let me know how the IDACall is getting triggered. I don't want the IDACall invocation as I am using struts action mapping.

                  Regards,

                  Narayan

                  Comment


                    #10
                    Look at the stack trace. Your Spring/Struts configuration is forwarding the request to IDACall.

                    Comment

                    Working...
                    X