JSLEE Discussions
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Reg HttpRA
Forum Index » Rhino SLEE Discussions
Author Message
9703056776


Joined: 01/11/2012 01:09:49
Messages: 7
Offline

Hi All,

When I am trying to execute HttpRA example which is enclosed in opencloud I am getting below "Invalid Configuration Exception".

Can any of you please tell what i have missed to configure?

Below is the exception log.

2012-11-12 16:27:38.293 INFO [rhino.state.ra] <GroupRMI-thread-2> Creating resource adaptor entity httpra with replication Property[slee-vendor:com.opencloud.r
hino_replicate_activities:java.lang.String=none]
2012-11-12 16:27:38.293 INFO [rhino.state.ra] <GroupRMI-thread-2> properties=[Property[ThreadPoolSize:java.lang.Integer=10], Property[KeyStorePassword:java.l
ang.String=], Property[OutgoingIdleTimeout:java.lang.Long=60000], Property[SecureListenPort:java.lang.Integer=0], Property[UserAgent:java.lang.String=Rhino-HTTP-Clie
nt/2.2], Property[TrustStorePassword:java.lang.String=changeit], Property[ServerName:java.lang.String=Rhino-HTTP-Server/2.2], Property[OutgoingRequestTimeout:java.la
ng.Long=10000], Property[ListenPort:java.lang.Integer=8000], Property[javax.slee:vendor:java.lang.String=OpenCloud], Property[MaxChannelMemorySize:java.lang.Long=104
85760], Property[IncomingRequestTimeout:java.lang.Long=5000], Property[MaxTotalMemorySize:java.lang.Long=0], Property[javax.slee:name:java.lang.String=Rhino-SDK], Pr
operty[ListenAddress:java.lang.String=127.0.0.1], Property[NewConnectionDelay:java.lang.Long=100], Property[MaxContentLength:java.lang.Integer=262144], Property[slee
-vendor:com.opencloud.rhino_node_id:java.lang.Integer=101], Property[MaxOutgoingConnections:java.lang.Integer=30], Property[MaxDepth:java.lang.Integer=1], Property[s
lee-vendor:com.opencloud.rhino_max_activities:java.lang.Integer=0], Property[SSLSessionTimeout:java.lang.Integer=0], Property[QueueTimeout:java.lang.Long=5000], Prop
erty[TrustStore:java.lang.String=${java.home}/lib/security/cacerts], Property[slee-vendor:com.opencloud.rhino_replicate_activities:java.lang.String=none], Property[I
ncomingIdleTimeout:java.lang.Long=60000], Property[WorkerCount:java.lang.Integer=0], Property[AddressType:java.lang.String=], Property[KeyStore:java.lang.String=], P
roperty[CipherSuites:java.lang.String=], Property[javax.slee:version:java.lang.String=2.3]]
2012-11-12 16:27:38.373 INFO [rhino.ah.ah] <GroupRMI-thread-2> [httpra-ha] Creating Activity Handler httpra-ha (isolation=LAST_COMMITTED)
2012-11-12 16:27:38.422 Warning [trace.httpra.framework.lifecycle] <GroupRMI-thread-2> raConfigure failed
javax.slee.resource.InvalidConfigurationException: Could not get input stream for trust store 'C:\jdk1.7.0\jre/lib/security/cacerts'
at com.opencloud.slee.resources.http.impl.config.SecureConfig.loadTrustManagers(SecureConfig.java:186)
at com.opencloud.slee.resources.http.impl.config.SecureConfig.<init>(SecureConfig.java:103)
at com.opencloud.slee.resources.http.impl.config.SecureConfig$3.load(SecureConfig.java:123)
at com.opencloud.slee.resources.http.impl.config.SecureConfig$3.load(SecureConfig.java:120)
at com.opencloud.slee.resources.framework.Component$BaseComponent.load(Component.java:245)
at com.opencloud.slee.resources.framework.WrappedComponent.load(WrappedComponent.java:16)
at com.opencloud.slee.resources.framework.RAConfig.load0(RAConfig.java:107)
at com.opencloud.slee.resources.framework.RAConfig.load(RAConfig.java:81)
at com.opencloud.slee.resources.framework.FrameworkRA.loadConfiguration(FrameworkRA.java:93)
at com.opencloud.slee.resources.framework.Lifecycle$Unconfigured.raConfigure(Lifecycle.java:125)
at com.opencloud.slee.resources.framework.Lifecycle.raConfigure(Lifecycle.java:54)
at com.opencloud.slee.resources.framework.FrameworkRA.raConfigure(FrameworkRA.java:305)
at com.opencloud.ob.RhinoSDK.v$a.a(2.3-0.4-51967:304)
at com.opencloud.ob.RhinoSDK.v$a.b(2.3-0.4-51967:302)
at com.opencloud.ob.RhinoSDK.v.a(2.3-0.4-51967:607)
at com.opencloud.ob.RhinoSDK.v.a(2.3-0.4-51967:302)
at com.opencloud.ob.RhinoSDK.lR.a(2.3-0.4-51967:296)
at com.opencloud.rhino.eventrouter.state.ResourceAdaptorStateImpl.createResourceAdaptorEntity(2.3-0.4-51967:18)
at com.opencloud.rhino.eventrouter.state.ResourceAdaptorStateImpl__OCSkel.a(2.3-0.4-51967:51)
at com.opencloud.rhino.eventrouter.state.ResourceAdaptorStateImpl__OCSkel.invoke(2.3-0.4-51967:10)
at com.opencloud.ob.RhinoSDK.ae.a(2.3-0.4-51967:208)
at com.opencloud.ob.RhinoSDK.ae.a(2.3-0.4-51967:24)
at com.opencloud.ob.RhinoSDK.ae$b.run(2.3-0.4-51967:180)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.net.MalformedURLException: unknown protocol: c
at java.net.URL.<init>(URL.java:590)
at java.net.URL.<init>(URL.java:480)
at com.opencloud.slee.resources.http.impl.config.SecureConfig.getInputStream(SecureConfig.java:266)
at com.opencloud.slee.resources.http.impl.config.SecureConfig.loadTrustManagers(SecureConfig.java:180)
... 25 more
2012-11-12 16:27:38.430 Critical [rhino.facility.alarm.manager] <GroupRMI-thread-2> Alarm 101:129641412546047 [RAEntityNotification[entity=httpra],misconfiguratio
n,httpra] was raised at 2012-11-12 16:27:38.430 to level Critical
RA configuration error, operational functionality disabled. Update the RA entity with a valid configuration to resolve.
davidf


Joined: 30/01/2008 17:59:09
Messages: 492
Location: Wellington, New Zealand
Offline

Edit: right response is below.

This message was edited 1 time. Last update was at 13/11/2012 06:35:09


David Ferry
Lead Architect VoLTE TAS
Metaswitch
oliver


Joined: 29/10/2008 09:36:04
Messages: 680
Location: Cambridge, UK
Offline

See https://developer.opencloud.com/forum/posts/list/1090.page

(TL;DR: set the RA's TrustStore property manually to a valid file: URL)

This message was edited 1 time. Last update was at 13/11/2012 06:33:19

[Email]
9703056776


Joined: 01/11/2012 01:09:49
Messages: 7
Offline

I am sorry I was out of station .So couldn't try the solution.

Can you please tell me in which location I need to change the path. I couldn't get the location where to change the path of the file.

Thanks for the responses.
9703056776


Joined: 01/11/2012 01:09:49
Messages: 7
Offline

Solved the issue.

Thanks.
mmathsa


Joined: 28/11/2017 04:38:28
Messages: 2
Offline

9703056776 wrote:Solved the issue.

Hi , I am new to Rhino SDK. I downloaded the rhino-sdk-install-2.5.0.3 .zip and extracted it to a location.

Downloaded HTT Resource Adaptor http-2.3.0.5.zip and extracted it into RHINOSDK home.
Changed the # HTTP properties http.address=10.134.108.128 to point to my server's IP in the following C:\RhinoSDK\http-2.3.0.5\examples\build.properties and ran the ant command in the C:\RhinoSDK\http-2.3.0.5\examples location. Build was successful.

Started the appserver by running start-rhino.bat, but i see the same error you posted in the rhino.log.
raConfigure failed
javax.slee.resource.InvalidConfigurationException: Could not get input stream for trust store 'C:\Progra~1\Java\jdk1.8.0_144\jre/lib/security/cacerts'
at com.opencloud.slee.resources.http.impl.config.SecureConfig.loadTrustManagers(SecureConfig.java:202)
at com.opencloud.slee.resources.http.impl.config.SecureConfig.<init>(SecureConfig.java:102)
at com.opencloud.slee.resources.http.impl.config.SecureConfig$4.load(SecureConfig.java:135)
at com.opencloud.slee.resources.http.impl.config.SecureConfig$4.load(SecureConfig.java:132)
at com.opencloud.slee.resources.framework.Component$BaseComponent.load(Component.java:245)
at com.opencloud.slee.resources.framework.WrappedComponent.load(WrappedComponent.java:16)

.......

I see your suggestion to change the trust store location. But i am not sure where and how to change? Can you pleas help me with the steps on how to update the trust store property?




Thanks.


Mahathi
mmathsa


Joined: 28/11/2017 04:38:28
Messages: 2
Offline

oliver wrote:See https://developer.opencloud.com/forum/posts/list/1090.page

(TL;DR: set the RA's TrustStore property manually to a valid file: URL)


Hi Can you please provide steps on how to set the TurstStore property manually?
 
Forum Index » Rhino SLEE Discussions
Go to:   
Powered by JForum 2.1.8 © JForum Team