Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-3051

demos/bigbank failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Java-SCA-1.5
    • Java-SCA-1.5
    • Java SCA Demos
    • None
    • WinXP SP2 Sun JDK1.6

    Description

      Firstly the README doesn't match the way the modules are now layed out
      you have to do ant compile before any run. If it has to be this way we should just make run depend on compile

      When I press the button in the browser I get the following error reported in the command prompt running bigbank

      [java] INFO: Added Servlet mapping: http://L3AW203:8085/*
      [java] Press Enter to Exit...
      [java] *** Calling BIG-BANK Passwd Handler for setting AUTHENTICATION passw
      ord....
      [java] *** Calling ACCOUNTS-DATA Passwd Handler for AUTHENTICATING userID =
      bbaservice and password = bbaservice
      [java] AUTHENTICATION SUCCESSFUL!
      [java] Successfully Authorized 'bbaservice to access accounts of Customer_0
      1
      [java] Successfully Authorized 'bbaservice to access accounts of Customer_0
      1
      [java] Checking account: CHA_Customer_01, balance:1000.0
      [java] Savings account: SVA_Customer_01, balance:1000.0
      [java] Stock account: STA_Customer_01, symbol:IBM, quantity:100
      [java] *** Calling BIG-BANK Passwd Handler for SIGNING....
      [java] - Verification successful for URI "#id-15670774"
      [java] - Verification successful for URI "#SigConf-25054444"
      [java] Stock price for IBM: 104.99
      [java] org.osoa.sca.ServiceRuntimeException: java.lang.NullPointerException

      [java] at org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.inv
      oke(RuntimeWireInvoker.java:138)
      [java] at org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.inv
      oke(RuntimeWireInvoker.java:104)
      [java] at org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.inv
      oke(RuntimeWireInvoker.java:98)
      [java] at org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.invoke(R
      untimeWireImpl.java:155)
      [java] at org.apache.tuscany.sca.binding.rmi.provider.RMIServiceBinding
      Provider.invokeTarget(RMIServiceBindingProvider.java:148)
      [java] at org.apache.tuscany.sca.binding.rmi.provider.RMIServiceBinding
      Provider$1.intercept(RMIServiceBindingProvider.java:110)
      [java] at $java.rmi.server.UnicastRemoteObject$$EnhancerByCGLIB$$dfc714
      d5.multiply(<generated>)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:597)
      [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.jav
      a:305)
      [java] at sun.rmi.transport.Transport$1.run(Transport.java:159)
      [java] at java.security.AccessController.doPrivileged(Native Method)
      [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
      [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspor
      t.java:535)
      [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCP
      Transport.java:790)
      [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPT
      ransport.java:649)
      [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Thread
      PoolExecutor.java:885)
      [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPool
      Executor.java:907)
      [java] at java.lang.Thread.run(Thread.java:619)
      [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServe
      r(StreamRemoteCall.java:255)
      [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCa
      ll.java:233)
      [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
      [java] at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMet
      hod(RemoteObjectInvocationHandler.java:178)
      [java] at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteOb
      jectInvocationHandler.java:132)
      [java] at $Proxy27.multiply(Unknown Source)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:597)
      [java] at org.apache.tuscany.sca.binding.rmi.provider.RMIReferenceInvok
      er.invokeTarget(RMIReferenceInvoker.java:79)
      [java] at org.apache.tuscany.sca.binding.rmi.provider.RMIReferenceInvok
      er.invoke(RMIReferenceInvoker.java:56)
      [java] at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.i
      nvoke(JDKInvocationHandler.java:309)
      [java] at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.i
      nvoke(JDKInvocationHandler.java:156)
      [java] at $Proxy16.multiply(Unknown Source)
      [java] at bigbank.account.AccountServiceImpl.getAccountReport(AccountSe
      rviceImpl.java:82)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:597)
      [java] at org.apache.tuscany.sca.implementation.java.invocation.JavaImp
      lementationInvoker.invoke(JavaImplementationInvoker.java:156)
      [java] at org.apache.tuscany.sca.core.databinding.wire.DataTransformati
      onInterceptor.invoke(DataTransformationInterceptor.java:67)
      [java] at org.apache.tuscany.sca.binding.jsonrpc.provider.JSONRPCServic
      eServlet.handleJSONRPCMethodInvocation(JSONRPCServiceServlet.java:257)
      [java] at org.apache.tuscany.sca.binding.jsonrpc.provider.JSONRPCServic
      eServlet.handleServiceRequest(JSONRPCServiceServlet.java:160)
      [java] at org.apache.tuscany.sca.binding.jsonrpc.provider.JSONRPCServic
      eServlet.service(JSONRPCServiceServlet.java:97)
      [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      [java] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.
      java:487)
      [java] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandle
      r.java:362)
      [java] at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandle
      r.java:181)
      [java] at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandle
      r.java:726)
      [java] at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrappe
      r.java:139)
      [java] at org.mortbay.jetty.Server.handle(Server.java:324)
      [java] at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection
      .java:505)
      [java] at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpC
      onnection.java:842)
      [java] at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:648)
      [java] at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:2
      11)
      [java] at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:3
      80)
      [java] at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEnd
      Point.java:395)
      [java] at org.apache.tuscany.sca.core.work.Work.run(Work.java:63)
      [java] at org.apache.tuscany.sca.core.work.ThreadPoolWorkManager$Decora
      tingWork.run(ThreadPoolWorkManager.java:215)
      [java] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Thread
      PoolExecutor.java:885)
      [java] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPool
      Executor.java:907)
      [java] at java.lang.Thread.run(Thread.java:619)
      [java] Caused by: java.lang.NullPointerException
      [java] at org.apache.tuscany.sca.policy.security.http.LDAPRealmAuthenti
      cationServicePolicyProvider.findPolicies(LDAPRealmAuthenticationServicePolicyPro
      vider.java:89)
      [java] at org.apache.tuscany.sca.policy.security.http.LDAPRealmAuthenti
      cationServicePolicyProvider.createInterceptor(LDAPRealmAuthenticationServicePoli
      cyProvider.java:65)
      [java] at org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.addServi
      ceBindingInterceptor(RuntimeWireImpl.java:340)
      [java] at org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.initInvo
      cationChains(RuntimeWireImpl.java:210)
      [java] at org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.getInvoc
      ationChains(RuntimeWireImpl.java:112)
      [java] at org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.getInvoc
      ationChain(RuntimeWireImpl.java:132)
      [java] at org.apache.tuscany.sca.core.assembly.RuntimeComponentServiceI
      mpl.getInvocationChain(RuntimeComponentServiceImpl.java:125)
      [java] at org.apache.tuscany.sca.binding.sca.impl.RuntimeSCAReferenceBi
      ndingProvider.getInvoker(RuntimeSCAReferenceBindingProvider.java:185)
      [java] at org.apache.tuscany.sca.binding.sca.impl.RuntimeSCAReferenceBi
      ndingProvider.createInvoker(RuntimeSCAReferenceBindingProvider.java:197)
      [java] at org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.addRefer
      enceBindingInterceptor(RuntimeWireImpl.java:309)
      [java] at org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.initInvo
      cationChains(RuntimeWireImpl.java:188)
      [java] at org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.getInvoc
      ationChains(RuntimeWireImpl.java:112)
      [java] at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.g
      etInvocationChain(JDKInvocationHandler.java:258)
      [java] at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.i
      nvoke(JDKInvocationHandler.java:151)
      [java] at $Proxy7.multiply(Unknown Source)
      [java] at calculator.CalculatorServiceImpl.multiply(CalculatorServiceIm
      pl.java:65)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:597)
      [java] at org.apache.tuscany.sca.implementation.java.invocation.JavaImp
      lementationInvoker.invoke(JavaImplementationInvoker.java:156)
      [java] at org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.inv
      oke(RuntimeWireInvoker.java:129)
      [java] at org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.inv
      oke(RuntimeWireInvoker.java:104)
      [java] at org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.inv
      oke(RuntimeWireInvoker.java:98)
      [java] at org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.invoke(R
      untimeWireImpl.java:155)
      [java] at org.apache.tuscany.sca.binding.rmi.provider.RMIServiceBinding
      Provider.invokeTarget(RMIServiceBindingProvider.java:148)
      [java] at org.apache.tuscany.sca.binding.rmi.provider.RMIServiceBinding
      Provider$1.intercept(RMIServiceBindingProvider.java:110)
      [java] at $java.rmi.server.UnicastRemoteObject$$EnhancerByCGLIB$$dfc714
      d5.multiply(<generated>)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:597)
      [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.jav
      a:305)
      [java] at sun.rmi.transport.Transport$1.run(Transport.java:159)
      [java] at java.security.AccessController.doPrivileged(Native Method)
      [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
      [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspor
      t.java:535)
      [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCP
      Transport.java:790)
      [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPT
      ransport.java:649)
      [java] ... 3 more

      Attachments

        Activity

          People

            simonslaws Simon Laws
            simonslaws Simon Laws
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: