Jini (Apache River)无法初始化Reggie (Lookup Service)脚本



我知道Jini (Apache River)是一种非常古老和过时的技术,但我需要它来完成一个大学项目。

问题是我甚至不能启动查找服务脚本(jrmp-reggie.sh)。执行httpd.sh工作正常

任何建议吗?谢谢。

顺便说一下,这是我得到的输出:

+ java -Djava.security.policy=config/start.policy -Djava.ext.dirs=../../lib-ext/ -jar ../../lib/start.jar config/start-reggie.config
Jun 14, 2013 8:19:51 PM com.sun.jini.reggie.RegistrarImpl <init>
SEVERE: Reggie initialization failed
java.lang.ExceptionInInitializerError
    at net.jini.config.AbstractConfiguration.getEntryInternal(AbstractConfiguration.java:371)
    at net.jini.config.AbstractConfiguration.getEntry(AbstractConfiguration.java:193)
    at com.sun.jini.reggie.RegistrarImpl.init(RegistrarImpl.java:4554)
    at com.sun.jini.reggie.RegistrarImpl.access$000(RegistrarImpl.java:143)
    at com.sun.jini.reggie.RegistrarImpl$1.run(RegistrarImpl.java:448)
    at com.sun.jini.reggie.RegistrarImpl.loginAndRun(RegistrarImpl.java:461)
    at com.sun.jini.reggie.RegistrarImpl.<init>(RegistrarImpl.java:396)
    at com.sun.jini.reggie.TransientRegistrarImpl.<init>(TransientRegistrarImpl.java:39)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at com.sun.jini.start.NonActivatableServiceDescriptor.create(NonActivatableServiceDescriptor.java:674)
    at com.sun.jini.start.ServiceStarter.create(ServiceStarter.java:287)
    at com.sun.jini.start.ServiceStarter.processServiceDescriptors(ServiceStarter.java:445)
    at com.sun.jini.start.ServiceStarter.main(ServiceStarter.java:476)
Caused by: java.lang.RuntimeException: Unexpected exception
    at com.sun.jini.logging.Levels.createLevel(Levels.java:142)
    at com.sun.jini.logging.Levels.<clinit>(Levels.java:52)
    ... 16 more
Caused by: java.io.EOFException
    at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2596)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1316)
    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1989)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1913)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
    at com.sun.jini.logging.Levels.createLevel(Levels.java:138)
    ... 17 more
Jun 14, 2013 8:19:51 PM com.sun.jini.start.ServiceStarter checkResultFailures
WARNING: Exception creating service.
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at com.sun.jini.start.NonActivatableServiceDescriptor.create(NonActivatableServiceDescriptor.java:674)
    at com.sun.jini.start.ServiceStarter.create(ServiceStarter.java:287)
    at com.sun.jini.start.ServiceStarter.processServiceDescriptors(ServiceStarter.java:445)
    at com.sun.jini.start.ServiceStarter.main(ServiceStarter.java:476)
Caused by: java.lang.ExceptionInInitializerError
    at net.jini.config.AbstractConfiguration.getEntryInternal(AbstractConfiguration.java:371)
    at net.jini.config.AbstractConfiguration.getEntry(AbstractConfiguration.java:193)
    at com.sun.jini.reggie.RegistrarImpl.init(RegistrarImpl.java:4554)
    at com.sun.jini.reggie.RegistrarImpl.access$000(RegistrarImpl.java:143)
    at com.sun.jini.reggie.RegistrarImpl$1.run(RegistrarImpl.java:448)
    at com.sun.jini.reggie.RegistrarImpl.loginAndRun(RegistrarImpl.java:461)
    at com.sun.jini.reggie.RegistrarImpl.<init>(RegistrarImpl.java:396)
    at com.sun.jini.reggie.TransientRegistrarImpl.<init>(TransientRegistrarImpl.java:39)
    ... 8 more
Caused by: java.lang.RuntimeException: Unexpected exception
    at com.sun.jini.logging.Levels.createLevel(Levels.java:142)
    at com.sun.jini.logging.Levels.<clinit>(Levels.java:52)
    ... 16 more
Caused by: java.io.EOFException
    at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2596)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1316)
    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1989)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1913)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
    at com.sun.jini.logging.Levels.createLevel(Levels.java:138)
    ... 17 more
Jun 14, 2013 8:19:51 PM com.sun.jini.start.ServiceStarter checkResultFailures
WARNING: Associated service descriptor [0]: [http://t420:8080/reggie-dl.jar http://t420:8080/jsk-dl.jar, config/reggie.policy, ../../lib/reggie.jar, com.sun.jini.reggie.TransientRegistrarImpl, [config/jrmp-reggie.config], com.sun.jini.start.NonActivatableServiceDescriptor$1@c27ce4, BasicProxyPreparer[]]

这看起来像我在升级JDK时看到的相同的错误。请尝试JDK 1.6.0_38(如果您使用的是更高版本)。此外,Apache River项目也遇到了这个问题,似乎有一个解决方案,其中包括更改level .java

https://issues.apache.org/jira/browse/river - 415

听起来你可能还没有开始。

我猜Reggie脚本试图访问配置文件,但它不能!如果脚本位于:river/examples/hello/scripts把它复制到更高的文件夹。我是说river/examples/hello/然后,运行它。让我知道你的产出。你正在使用'sh'文件。但是,不要使用"bat"文件。让我知道结果。

相关内容

  • 没有找到相关文章

最新更新