传个类也不行啊。 18:38:03,953 ERROR [ServerThread] Worker thread initialization failure java.io.EOFException at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:526) at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:369) at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:165)包错哈。 我的类定义:sString.javapackage com.shitong.authority;public class sString { public String a; public sString() { a=new String(""); } } 使用 sString sXmlString=new sString(); sXmlString.a=""; role.QueryDefaultRole(sXmlString); System.out.println(sXmlString.a); 报错哈
对不起,Test有点错哈,现更正 class Test { void change(StringBuffer a) { a.append("hehe"); } public static void main(String[] args) { StringBuffer b=new StringBuffer("haha"); Test t= new Test(); t.change(b); System.out.println(b); } }
18:38:03,953 ERROR [ServerThread] Worker thread initialization failure
java.io.EOFException
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:526)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:369)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:165)包错哈。
我的类定义:sString.javapackage com.shitong.authority;public class sString
{
public String a;
public sString()
{
a=new String("");
}
}
使用
sString sXmlString=new sString();
sXmlString.a="";
role.QueryDefaultRole(sXmlString);
System.out.println(sXmlString.a);
报错哈
class Test
{
void change(StringBuffer a)
{
a.append("hehe");
}
public static void main(String[] args)
{
StringBuffer b=new StringBuffer("haha");
Test t= new Test();
t.change(b);
System.out.println(b);
}
}
我也不清楚 期待高手解答 帮你顶一下