发表于: 2017-08-26 23:53:52
1 890
今天完成的事情:解决BUG
严重: Exception during start processing
org.apache.tuscany.sca.host.rmi.RMIHostRuntimeException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.io.InvalidClassException: filter status: REJECTED
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:460)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:200)
at sun.rmi.transport.Transport$1.run(Transport.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:379)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
at org.apache.tuscany.sca.host.rmi.DefaultRMIHost.registerService(DefaultRMIHost.java:72)
at org.apache.tuscany.sca.host.rmi.ExtensibleRMIHost.registerService(ExtensibleRMIHost.java:42)
at org.apache.tuscany.sca.binding.rmi.provider.RMIServiceBindingProvider.start(RMIServiceBindingProvider.java:80)
at org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl$2.run(CompositeActivatorImpl.java:566)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.startEndpoint(CompositeActivatorImpl.java:564)
at org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.start(CompositeActivatorImpl.java:422)
at org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.start(CompositeActivatorImpl.java:345)
at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:149)
at com.wyc.Test1.main(Test1.java:16)
在百度上找了一天,没有实际的解决方案,google一下就出来了
在java版本“1.8.0_121”中有一个新的“实现序列化过滤”请参见:JDK-8155760。
解决此问题的方法是:
1.编辑C:\ Program Files \ Java_ME_platform_SDK_8.3 \ bin \ java.properties
2.设置JDK安装目录的路径
3.转到您的jdk安装目录:C:\ Program Files \ Java \ jdk1.8.0_131 \ jre \ lib \ security \ java.security并修改此设置:
# If the pattern starts with "!", the status is REJECTED if the remaining pattern
# is matched; otherwise the status is ALLOWED if the pattern matches.
# If the pattern ends with ".**" it matches any class in the package and all subpackages.
# If the pattern ends with ".*" it matches any class in the package.
# If the pattern ends with "*", it matches any class with the pattern as a prefix.
# If the pattern is equal to the class name, it matches.
# Otherwise, the status is UNDECIDED.
#
jdk.serialFilter=*
#
# RMI Registry Serial Filter
#
# The filter pattern uses the same format as jdk.serialFilter.
# This filter can override the builtin filter if additional types need to be
# allowed or rejected from the RMI Registry.
#
sun.rmi.registry.registryFilter=*
#
# RMI Distributed Garbage Collector (DGC) Serial Filter
#
# The filter pattern uses the same format as jdk.serialFilter.
# This filter can override the builtin filter if additional types need to be
# allowed or rejected from the RMI DGC.
#
# The builtin DGC filter can approximately be represented as the filter pattern:
#
sun.rmi.transport.dgcFilter=\
java.rmi.server.ObjID;\
java.rmi.server.UID;\
java.rmi.dgc.VMID;\
java.rmi.dgc.Lease;\
maxdepth=5;maxarray=10000
把#号去掉,也就是去掉注释。
重启之后bug信息变了
嗯继续调
明天计划的事情:跑通代码
遇到的问题:如上
收获:解决bug
评论