aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ARIES-596) Bank sample fails - proxy problem?
Date Fri, 13 Feb 2015 17:43:12 GMT

     [ https://issues.apache.org/jira/browse/ARIES-596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Christian Schneider updated ARIES-596:
--------------------------------------
    Fix Version/s:     (was: 0.4)

> Bank sample fails - proxy problem?
> ----------------------------------
>
>                 Key: ARIES-596
>                 URL: https://issues.apache.org/jira/browse/ARIES-596
>             Project: Aries
>          Issue Type: Bug
>          Components: Samples
>    Affects Versions: 0.4
>            Reporter: zoe slattery
>
> Running the sample samples-sandbox/bank/ gives the following problem.
> To reproduce, checkout the bank sample, Then:
> cd sample-sandbox/bank
> mvn clean install
> cd bank-assembly/target
> sh runserver.sh 
> sh runclient.sh (in a different window)
> (at this point you should have two OSGi frameorks running)
> point a web browser at http://127.0.0.1:9090/bank/index.html
> click 'Open a new account'
> Add a name
> click 'submit request'
> java.lang.IllegalStateException: getService() returned null for {org.apache.aries.samples.bank.api.ChequingAccountService}={endpoint.service.id=41,
service.intents=, sca.reference=osgi.reference.482c70f0-491d-4ed0-adb0-9753f62872a5#reference(ref0),
endpoint.framework.uuid=2ae819d9-bb07-4126-8ad8-293295bf5fcd, osgi.service.blueprint.compname=chequingAccount,
service.exported.configs=org.osgi.sca, org.osgi.sca.bindings=chequingAccountWS, endpoint.id=osgi.service.887a370a-3049-4d5d-b232-5dafdecde227#service-binding(ChequingAccountService/chequingAccountWS),
service.ranking=2147483647, service.imported=true, service.imported.configs=[org.osgi.sca],
service.exported.interfaces=*, org.osgi.sca.config.xml=<xml><sca-config xmlns="http://www.osgi.org/xmlns/scact/v1.0.0"
targetNamespace=""><wstxns1:binding.ws xmlns:wstxns1="http://docs.oasis-open.org/ns/opencsa/sca/200912"
name="chequingAccountWS" uri="http://localhost:8081/chequing" /></sca-config></xml>,
org.apache.tuscany.sca.assembly.Endpoint=(@611939300)Endpoint:  URI = osgi.service.887a370a-3049-4d5d-b232-5dafdecde227#service-binding(ChequingAccountService/chequingAccountWS),
org.osgi.framework.Bundle=bank-biz_0.4.0.SNAPSHOT [127], service.id=99}
> 	at org.apache.aries.blueprint.container.ReferenceRecipe.getService(ReferenceRecipe.java:205)
> 	at org.apache.aries.blueprint.container.ReferenceRecipe.access$000(ReferenceRecipe.java:50)
> 	at org.apache.aries.blueprint.container.ReferenceRecipe$ServiceDispatcher.call(ReferenceRecipe.java:226)
> 	at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:50)
> 	at org.apache.aries.proxy.impl.DefaultWrapper.invoke(DefaultWrapper.java:31)
> 	at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:78)
> 	at $Proxy0.open(Unknown Source)
> 	at org.apache.aries.samples.bank.biz.AccountServicesToOutsideWorldImpl.openChequingAccount(AccountServicesToOutsideWorldImpl.java:56)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:50)
> 	at org.apache.aries.proxy.impl.DefaultWrapper.invoke(DefaultWrapper.java:31)
> 	at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:78)
> 	at $Proxy13.openChequingAccount(Unknown Source)
> 	at org.apache.aries.samples.bank.web.CreateAccount.doPost(CreateAccount.java:63)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> 	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:533)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1351)
> 	at org.ops4j.pax.web.service.internal.WelcomeFilesFilter.doFilter(WelcomeFilesFilter.java:169)
> 	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322)
> 	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473)
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:65)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
> 	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:514)
> 	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:920)
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:116)
> 	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403)
> 	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
> 	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:856)
> 	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
> 	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:72)
> 	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
> 	at org.eclipse.jetty.server.Server.handle(Server.java:352)
> 	at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596)
> 	at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1066)
> 	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805)
> 	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
> 	at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
> 	at java.lang.Thread.run(Thread.java:680)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message