rio-5 reloaded

13 views
Skip to first unread message

Zsolt Kúti

unread,
Apr 14, 2015, 9:10:53 AM4/14/15
to rio-...@googlegroups.com
Hi,

This is the next one in my sporadic attempts to try rio-5.

rio start all gives:

INFO 14:20:39.201 org.rioproject.config.RioProperties
- /home/kuti/apps/rio-5.1.4/config/rio.env not found, skipping WARN
14:20:39.541 org.rioproject.start - service.creation.unknown
java.net.MalformedURLException: unknown protocol: artifact at
java.net.URL.<init>(URL.java:592) ~[na:1.7.0_65] at
java.net.URL.<init>(URL.java:482) ~[na:1.7.0_65] at
java.net.URL.<init>(URL.java:431) ~[na:1.7.0_65] at
com.sun.jini.start.ClassLoaderUtil.getCodebaseURLs(ClassLoaderUtil.java:103)
~[start-2.2.2.jar:na] at
org.rioproject.start.RioServiceDescriptor.create(RioServiceDescriptor.java:303)
~[rio-start-5.1.4.jar:5.1.4] at
org.rioproject.start.ServiceStarter.create(ServiceStarter.java:229)
~[rio-start-5.1.4.jar:5.1.4] at
org.rioproject.start.ServiceStarter.doStart(ServiceStarter.java:346)
~[rio-start-5.1.4.jar:5.1.4] at
org.rioproject.start.ServiceStarter.main(ServiceStarter.java:440)
~[rio-start-5.1.4.jar:5.1.4] WARN 14:20:39.541 org.rioproject.start -
service.creation.unknown.detail 1 RioServiceDescriptor codebase:
artifact:org.apache.river/reggie-dl/2.2.2;http://10.254.2.34:9010,
policy: /home/kuti/apps/rio-5.1.4/policy/policy.all,
classpath: /home/kuti/apps/rio-5.1.4/lib/reggie-2.2.2.jar,
implClassName: com.sun.jini.reggie.TransientRegistrarImpl,
serverConfigArgs:
[/home/kuti/apps/rio-5.1.4/config/common.groovy, /home/kuti/apps/rio-5.1.4/config/reggie.groovy],
lifeCycle: org.rioproject.start.RioServiceDescriptor$1@10cc2e89


When a test (JavaSpace) service is to be depolyed regardless of the
above:

$ rio deploy resources/conf/ops.groovy
INFO 15:02:47.309 o.r.resolver.ResolverConfiguration - Using resolver
configuration /home/kuti/apps/rio-5.1.4/config/resolverConfig.groovy
ápr. 14, 2015 3:02:48 DU com.sun.jini.reggie.RegistrarProxy
handleException INFO: unmarshalling failure
java.rmi.UnmarshalException: incoming entry type: class
com.sun.jini.reggie.EntryClass[name=org.rioproject.entry.StandardServiceType,
hash=-8676480473068892386] is not assignable to the local version of
the type: class
com.sun.jini.reggie.EntryClass[name=org.rioproject.entry.StandardServiceType,
hash=6542888045916027194] at
com.sun.jini.reggie.EntryClass.toClass(EntryClass.java:186) at
com.sun.jini.reggie.EntryRep.get(EntryRep.java:98) at
com.sun.jini.reggie.EntryRep.toEntry(EntryRep.java:202) at
com.sun.jini.reggie.Item.get(Item.java:145) at
com.sun.jini.reggie.Item.toServiceItem(Item.java:177) at
com.sun.jini.reggie.Matches.get(Matches.java:62) at
com.sun.jini.reggie.RegistrarProxy.lookup(RegistrarProxy.java:128) at
net.jini.lookup.ServiceDiscoveryManager$LookupCacheImpl$LookupTask.run(ServiceDiscoveryManager.java:955)
at
net.jini.lookup.ServiceDiscoveryManager$LookupCacheImpl$RegisterListenerTask.run(ServiceDiscoveryManager.java:925)
at com.sun.jini.thread.TaskManager$TaskThread.run(TaskManager.java:331)


This on FreeBSD 10.0, with
openjdk version "1.7.0_65"
OpenJDK Runtime Environment (build 1.7.0_65-b17)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
The test project depends on River 2.2.2 artifacts.

Any help appreciated!
Zsolt

Dennis Reedy

unread,
Apr 14, 2015, 9:30:23 AM4/14/15
to rio-...@googlegroups.com
Hi,

I realized late last week that I released 5.1.4 with a bug in the rio script, that is most likely causing your error. Please add the following line to the bin/rio script, line #211:

-Djava.protocol.handler.pkgs=org.rioproject.url \

Apologies for this.

Can you send me your ops.groovy opstring?

Thanks

Dennis
> --
> You received this message because you are subscribed to the Google Groups "Rio Users Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rio-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Zsolt Kúti

unread,
Apr 14, 2015, 11:25:36 AM4/14/15
to rio-...@googlegroups.com
Hi Dennis,

Answer inlined.

On Tue, 14 Apr 2015 09:29:58 -0400
Dennis Reedy <dennis...@gmail.com> wrote:


..
> I realized late last week that I released 5.1.4 with a bug in the
> rio script, that is most likely causing your error. Please add the
> following line to the bin/rio script, line #211:


> -Djava.protocol.handler.pkgs=org.rioproject.url \

Added this and now rio progresses a bit further, but still not OK. See
the log attached.


> Apologies for this.

No problem.



> Can you send me your ops.groovy opstring?

import org.rioproject.config.Constants

deployment(name: 'Test') {
groups System.getProperty(Constants.GROUPS_PROPERTY_NAME,
System.getProperty('user.name'))

service(name: 'Outrigger') {
interfaces {
classes "net.jini.space.JavaSpace"
resources 'test/outrigger-dl-2.2.2.jar'
}
implementation(class:
"com.sun.jini.outrigger.TransientOutriggerImpl") { resources
'test/outrigger-2.2.2.jar' resources 'test/outrigger-dl-2.2.2.jar'
resources 'test/jsk-dl-2.2.2.jar'
}
maintain 1
maxPerMachine 1
}
}


Zsolt
t.log

Dennis Reedy

unread,
Apr 14, 2015, 11:33:02 AM4/14/15
to rio-...@googlegroups.com
Zsolt,

Looks like you’re still getting

Caused by: java.net.MalformedURLException: unknown protocol: artifact
at java.net.URL.<init>(URL.java:592)
at java.net.URL.<init>(URL.java:482)
at java.net.URL.<init>(URL.java:431)


Doesn’t look like the URL handler is being installed. Did you stop/restart Rio?

Dennis
> --
> You received this message because you are subscribed to the Google Groups "Rio Users Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rio-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
> <t.log>

Zsolt Kúti

unread,
Apr 15, 2015, 8:28:23 AM4/15/15
to Dennis Reedy, rio-...@googlegroups.com
On Tue, 14 Apr 2015 11:32:59 -0400
Dennis Reedy <dennis...@gmail.com> wrote:


> Zsolt,

>

> Looks like you’re still getting


> Caused by: java.net.MalformedURLException: unknown protocol: artifact
> at java.net.URL.<init>(URL.java:592)
> at java.net.URL.<init>(URL.java:482)
> at java.net.URL.<init>(URL.java:431)


> Doesn’t look like the URL handler is being installed. Did you
> stop/restart Rio?

Yes I did, but there probably remained something from a former run.
Today a fresh run worked.


Now, having repeated the steps discussed already here
https://groups.google.com/forum/#!topic/rio-users/9cteA-G4oFg
the problem description still holds.
If you have some time to look into this issue I created a simple test
webapp on github. I can give further details in private.

Thank you!
Zsolt

Dennis Reedy

unread,
Apr 15, 2015, 9:56:06 AM4/15/15
to Zsolt Kúti, rio-...@googlegroups.com
Hi Zsolt,

Where’s the simple test webapp?

Thanks

Dennis
Reply all
Reply to author
Forward
0 new messages