Help! RMI throws NoSuchMethodError

Everything goes fine. The rmiregistry starts, server code starts. The binding takes place properly but when u do
Test test = (Test)Naming.lookup( "rmi://localhost/test")
it gives this :
Exception in thread "main" java.lang.NoSuchMethodError: stub class initialization failed at TestImpl_Stub.<clinit>(Unknown Source)
at java.lang.reflect.Field.getLong(Native Method)
at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:415)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.init(ObjectStreamClass.java:401)
at java.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.jav
at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:566)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Naming.java:84)
at TestClient.getHost(TestClient.java:68)
at TestClient.initialise(TestClient.java:102)
at TestClient.<init>(TestClient.java:17)
at TestClient.main(TestClient.java:132)
Any clues???

Well, I'm sure this isn't it, but I've never seen "rmi://.....". I always just use "//...". Anyways, you could try something like:
Regisry r = LocateRegistry.getRegistry("127.0.0.1", 1099);
RMIInterface t = (RMIInterface) r.lookup("//127.0.0.1/test");This probably won't change things, but you never know. Now, it seems like your maybe missing something on the server side. When you start your rmi server, maybe try specifying the codebase and server name:
java -cp . -Djava.rmi.server.hostname=127.0.0.1 -Djava.rmi.server.codebase=. -Djava.security.policy=./java.policy RMIServerAlso, how do you start rmiregistry? From the command line or in your source? You can create the registry from the main method of your RMIServer class:
public class RMIServer extends UnicastRemoteObject implements RMIInterface {
public static void main(String[] args) {
  Registry r = LocateRegistry.createRegistry(1099);
  RMIServer theServer = new RMIServer(31415);
  r.rebind("//127.0.0.1/someService", theServer);
public RMIServer(int port) throws RemoteException {
  super(port);
}This creates an rmi registry at port 1099, and creates your service at port 31415 with the name "someService" on a server called "127.0.0.1". If you combine all of these, I think it should work. I am of course assuming that the stubs and skeletons are being generated, and then deployed with the client app appropriately. Hope this helps.
m

Similar Messages

  • WLS 5.1.0 SP 12 ejbc throws NoSuchMethodError on entity beans

    Greetings all,
    Due to a trashed hard disk, I'm in the middle of getting WebLogic
    server reinstalled. Because of some problems with Oracle 8.1.6 and
    WLS 5.1.0 SP9, I've been trying to get SP12 to run, with little luck.
    I suspect an installation / configuration problem, but I don't know
    what it is.
    The symptom is that I can't compile entity beans - ejbc throws a
    NoSuchMethodError exception. For the sake of simplicity, and to prove
    to myself it wasn't our code, I tried building one of the examples,
    and it has the same problem. Does anyone see anything I've done
    wrong in the configuration?
    Below is the captured output from build & wlconfig:
    C:\weblogic\examples\ejb\basic\containerManaged>build
    C:\weblogic\examples\ejb\basic\containerManaged>if "" == "c:\jdk1.3.1\jre"
    set JAVA_HOME=\java
    C:\weblogic\examples\ejb\basic\containerManaged>if "" == "c:\weblogic" set
    WL_HOME=\weblogic
    C:\weblogic\examples\ejb\basic\containerManaged>set
    MYSERVER=c:\weblogic\myserver
    C:\weblogic\examples\ejb\basic\containerManaged>set
    MYCLASSPATH=c:\jdk1.3.1\jre\lib\classes.zip;c:\weblogic\classes;c:\weblogi
    c\lib\weblogicaux.jar;c:\weblogic\
    myserver\clientclasses
    C:\weblogic\examples\ejb\basic\containerManaged>mkdir build build\META-INF
    A subdirectory or file build already exists.
    Error occurred while processing: build.
    A subdirectory or file build\META-INF already exists.
    Error occurred while processing: build\META-INF.
    C:\weblogic\examples\ejb\basic\containerManaged>copy *.xml build\META-INF
    ejb-jar.xml
    weblogic-cmp-rdbms-jar.xml
    weblogic-ejb-jar.xml
    3 file(s) copied.
    C:\weblogic\examples\ejb\basic\containerManaged>javac -d build -classpath
    c:\jdk1.3.1\jre\lib\classes.zip;c:\weblogic\classes;c:\weblogic\lib\weblog
    icaux.jar;c:\weblogic\myserver\clientclasses Account.java AccountHome.java
    ProcessingErrorException.java AccountBean.java
    C:\weblogic\examples\ejb\basic\containerManaged>cd build
    C:\weblogic\examples\ejb\basic\containerManaged\build>jar cv0f
    std_ejb_basic_containerManaged.jar META-INF examples
    added manifest
    ignoring entry META-INF/
    adding: META-INF/ejb-jar.xml(in = 1210) (out= 1210)(stored 0%)
    adding: META-INF/weblogic-cmp-rdbms-jar.xml(in = 1472) (out= 1472)(stored
    0%)
    adding: META-INF/weblogic-ejb-jar.xml(in = 975) (out= 975)(stored 0%)
    adding: examples/(in = 0) (out= 0)(stored 0%)
    adding: examples/ejb/(in = 0) (out= 0)(stored 0%)
    adding: examples/ejb/basic/(in = 0) (out= 0)(stored 0%)
    adding: examples/ejb/basic/containerManaged/(in = 0) (out= 0)(stored 0%)
    adding: examples/ejb/basic/containerManaged/Account.class(in = 422) (out=
    422)(stored 0%)
    adding: examples/ejb/basic/containerManaged/AccountBean.class(in = 3884)
    (out= 3884)(stored 0%)
    adding: examples/ejb/basic/containerManaged/AccountHome.class(in = 711)
    (out= 711)(stored 0%)
    adding:
    examples/ejb/basic/containerManaged/ProcessingErrorException.class(in
    =339) (out= 339)(stored 0%)
    C:\weblogic\examples\ejb\basic\containerManaged\build>cd ..
    C:\weblogic\examples\ejb\basic\containerManaged>java -classpath
    c:\jdk1.3.1\jre\lib\classes.zip;c:\weblogic\classes;c:\weblogic\lib\weblog
    icaux.jar;c:\weblogic\myserver\clientclasses -Dweblogic.home=c:\weblogic
    weblogic.ejbc -compiler javac build\std_ejb_basic_containerManaged.jar
    c:\weblogic\myserver\ejb_basic_containerManaged.jar
    java.lang.NoSuchMethodError
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.addPreparedStatementBinding(Stor
    eGenerator.java:839)
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.preparedStatementBindings(StoreG
    enerator.java:805)
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.setPrimaryKeyParams(StoreGenerat
    or.java:194)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:619)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:607)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:312)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:223)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:182)
    at
    weblogic.ejb.ejbc.EJBCompiler.generatePersistenceSources(EJBCompiler.java:
    403)
    at weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc.runBody(ejbc.java:307)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    ERROR: Error from ejbc: java.lang.reflect.InvocationTargetException:
    java.lang.NoSuchMethodError
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.addPreparedStatementBinding(Stor
    eGenerator.java:839)
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.preparedStatementBindings(StoreG
    enerator.java:805)
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.setPrimaryKeyParams(StoreGenerat
    or.java:194)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:619)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:607)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:312)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:223)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:182)
    at
    weblogic.ejb.ejbc.EJBCompiler.generatePersistenceSources(EJBCompiler.java:
    403)
    at weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc.runBody(ejbc.java:307)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    --------------- nested within: ------------------
    weblogic.utils.compiler.CodeGenerationException: Exception:
    'java.lang.NoSuchMethodError' while trying to invoke: setPrimaryKeyParams
    at line 22 - with nested exception:
    [java.lang.reflect.InvocationTargetException - with target
    exception:[java.lang.NoSuchMethodError]]
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:628)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:607)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:312)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:223)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:182)
    at
    weblogic.ejb.ejbc.EJBCompiler.generatePersistenceSources(EJBCompiler.java:
    403)
    at weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc.runBody(ejbc.java:307)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    --------------- nested within: ------------------
    weblogic.utils.compiler.CodeGenerationException - with nested exception:
    [weblogic.utils.compiler.CodeGenerationException: Exception:
    'java.lang.NoSuchMethodError' while trying to invoke: setPrimaryKeyParams
    at line 22 - with nested exception:
    [java.lang.reflect.InvocationTargetException - with target exception:
    [java.lang.NoSuchMethodError]]]
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:585)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:607)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:312)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:223)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:182)
    at
    weblogic.ejb.ejbc.EJBCompiler.generatePersistenceSources(EJBCompiler.java:
    403)
    at weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc.runBody(ejbc.java:307)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    --------------- nested within: ------------------
    weblogic.utils.compiler.CodeGenerationException - with nested exception:
    [weblogic.utils.compiler.CodeGenerationException - with nested exception:
    [weblogic.utils.compiler.CodeGenerationException: Exception:
    'java.lang.NoSuchMethodError' while trying to invoke: setPrimaryKeyParams
    at line 22 - with nested exception:
    [java.lang.reflect.InvocationTargetException - with target exception:
    [java.lang.NoSuchMethodError]]]]
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:585)
    at
    weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:312)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:223)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:182)
    at
    weblogic.ejb.ejbc.EJBCompiler.generatePersistenceSources(EJBCompiler.java:
    403)
    at weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc.runBody(ejbc.java:307)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    ERROR: ejbc found errors
    C:\weblogic\examples\ejb\basic\containerManaged>javac -d
    c:\weblogic\myserver\cl
    ientclasses -classpath
    c:\jdk1.3.1\jre\lib\classes.zip;c:\weblogic\classes;c:\we
    blogic\lib\weblogicaux.jar;c:\weblogic\myserver\clientclasses Account.java
    Accou
    ntHome.java ProcessingErrorException.java Client.java
    C:\weblogic\examples\ejb\basic\containerManaged>wlconfig
    WebLogic startup settings are presently:
    CLASSPATH Prefix C:\weblogic\myserver\serverclasses
    CLASSPATH
    C:\weblogic\myserver\serverclasses;c:\jdk1.3.1\jre\lib\tools
    .jar;c:\jdk1.3.1\jre\lib\rt.jar;c:\jdk1.3.1\jre\lib\i18n.jar;C:\weblogic\l
    icense
    ;C:\weblogic\lib\weblogic510sp11.jar;C:\weblogic\classes;C:\weblogic\lib\w
    eblogi
    caux.jar;C:\weblogic\eval\cloudscape\lib\cloudscape.jar
    JAVA_HOME c:\jdk1.3.1\jre
    WEBLOGIC_LICENSEDIR C:\weblogic\license
    WEBLOGIC_HOME C:\weblogic
    system properties:
    java.security.manager
    java.security.policy==C:\weblogic\weblogic.policy
    weblogic.system.home=C:\weblogic
    java.compiler=symcjit
    weblogic.class.path=C:\weblogic\license;C:\weblogic\lib\webl
    ogic510sp11.jar;C:\weblogic\classes;C:\weblogic\myserver\serverclasses;C:\
    weblog
    ic\lib\weblogicaux.jar
    INITIAL_HEAP 64 MB
    MAX_HEAP 64 MB
    SERVERCLASSPATH
    C:\weblogic\myserver\serverclasses;c:\jdk1.3.1\jre\lib\rt.ja
    r;c:\jdk1.3.1\jre\lib\i18n.jar;C:\weblogic\lib\weblogic510sp11boot.jar;C:\
    weblog
    ic\classes\boot;C:\weblogic\eval\cloudscape\lib\cloudscape.jar
    Type "wlconfig -help" for program usage.

    Do all the examples fail to build, or just the EJB CMP examples? I ask
    because in 5.1, there's a separate WebLogic_CMP_RDBMS.jar that's part of
    the install process, but it's only used for CMP. If the other examples
    work, then that's likely to be your problem.
    -- Rob
    Erik Horstkotte wrote:
    Greetings all,
    Due to a trashed hard disk, I'm in the middle of getting WebLogic
    server reinstalled. Because of some problems with Oracle 8.1.6 and
    WLS 5.1.0 SP9, I've been trying to get SP12 to run, with little luck.
    I suspect an installation / configuration problem, but I don't know
    what it is.
    The symptom is that I can't compile entity beans - ejbc throws a
    NoSuchMethodError exception. For the sake of simplicity, and to prove
    to myself it wasn't our code, I tried building one of the examples,
    and it has the same problem. Does anyone see anything I've done
    wrong in the configuration?
    Below is the captured output from build & wlconfig:
    C:\weblogic\examples\ejb\basic\containerManaged>build
    C:\weblogic\examples\ejb\basic\containerManaged>if "" == "c:\jdk1.3.1\jre"
    set JAVA_HOME=\java
    C:\weblogic\examples\ejb\basic\containerManaged>if "" == "c:\weblogic" set
    WL_HOME=\weblogic
    C:\weblogic\examples\ejb\basic\containerManaged>set
    MYSERVER=c:\weblogic\myserver
    C:\weblogic\examples\ejb\basic\containerManaged>set
    MYCLASSPATH=c:\jdk1.3.1\jre\lib\classes.zip;c:\weblogic\classes;c:\weblogi
    c\lib\weblogicaux.jar;c:\weblogic\
    myserver\clientclasses
    C:\weblogic\examples\ejb\basic\containerManaged>mkdir build build\META-INF
    A subdirectory or file build already exists.
    Error occurred while processing: build.
    A subdirectory or file build\META-INF already exists.
    Error occurred while processing: build\META-INF.
    C:\weblogic\examples\ejb\basic\containerManaged>copy *.xml build\META-INF
    ejb-jar.xml
    weblogic-cmp-rdbms-jar.xml
    weblogic-ejb-jar.xml
    3 file(s) copied.
    C:\weblogic\examples\ejb\basic\containerManaged>javac -d build -classpath
    c:\jdk1.3.1\jre\lib\classes.zip;c:\weblogic\classes;c:\weblogic\lib\weblog
    icaux.jar;c:\weblogic\myserver\clientclasses Account.java AccountHome.java
    ProcessingErrorException.java AccountBean.java
    C:\weblogic\examples\ejb\basic\containerManaged>cd build
    C:\weblogic\examples\ejb\basic\containerManaged\build>jar cv0f
    std_ejb_basic_containerManaged.jar META-INF examples
    added manifest
    ignoring entry META-INF/
    adding: META-INF/ejb-jar.xml(in = 1210) (out= 1210)(stored 0%)
    adding: META-INF/weblogic-cmp-rdbms-jar.xml(in = 1472) (out= 1472)(stored
    0%)
    adding: META-INF/weblogic-ejb-jar.xml(in = 975) (out= 975)(stored 0%)
    adding: examples/(in = 0) (out= 0)(stored 0%)
    adding: examples/ejb/(in = 0) (out= 0)(stored 0%)
    adding: examples/ejb/basic/(in = 0) (out= 0)(stored 0%)
    adding: examples/ejb/basic/containerManaged/(in = 0) (out= 0)(stored 0%)
    adding: examples/ejb/basic/containerManaged/Account.class(in = 422) (out=
    422)(stored 0%)
    adding: examples/ejb/basic/containerManaged/AccountBean.class(in = 3884)
    (out= 3884)(stored 0%)
    adding: examples/ejb/basic/containerManaged/AccountHome.class(in = 711)
    (out= 711)(stored 0%)
    adding:
    examples/ejb/basic/containerManaged/ProcessingErrorException.class(in
    =339) (out= 339)(stored 0%)
    C:\weblogic\examples\ejb\basic\containerManaged\build>cd ..
    C:\weblogic\examples\ejb\basic\containerManaged>java -classpath
    c:\jdk1.3.1\jre\lib\classes.zip;c:\weblogic\classes;c:\weblogic\lib\weblog
    icaux.jar;c:\weblogic\myserver\clientclasses -Dweblogic.home=c:\weblogic
    weblogic.ejbc -compiler javac build\std_ejb_basic_containerManaged.jar
    c:\weblogic\myserver\ejb_basic_containerManaged.jar
    java.lang.NoSuchMethodError
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.addPreparedStatementBinding(Stor
    eGenerator.java:839)
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.preparedStatementBindings(StoreG
    enerator.java:805)
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.setPrimaryKeyParams(StoreGenerat
    or.java:194)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:619)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:607)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:312)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:223)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:182)
    at
    weblogic.ejb.ejbc.EJBCompiler.generatePersistenceSources(EJBCompiler.java:
    403)
    at weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc.runBody(ejbc.java:307)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    ERROR: Error from ejbc: java.lang.reflect.InvocationTargetException:
    java.lang.NoSuchMethodError
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.addPreparedStatementBinding(Stor
    eGenerator.java:839)
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.preparedStatementBindings(StoreG
    enerator.java:805)
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.setPrimaryKeyParams(StoreGenerat
    or.java:194)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:619)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:607)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:312)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:223)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:182)
    at
    weblogic.ejb.ejbc.EJBCompiler.generatePersistenceSources(EJBCompiler.java:
    403)
    at weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc.runBody(ejbc.java:307)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    --------------- nested within: ------------------
    weblogic.utils.compiler.CodeGenerationException: Exception:
    'java.lang.NoSuchMethodError' while trying to invoke: setPrimaryKeyParams
    at line 22 - with nested exception:
    [java.lang.reflect.InvocationTargetException - with target
    exception:[java.lang.NoSuchMethodError]]
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:628)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:607)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:312)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:223)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:182)
    at
    weblogic.ejb.ejbc.EJBCompiler.generatePersistenceSources(EJBCompiler.java:
    403)
    at weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc.runBody(ejbc.java:307)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    --------------- nested within: ------------------
    weblogic.utils.compiler.CodeGenerationException - with nested exception:
    [weblogic.utils.compiler.CodeGenerationException: Exception:
    'java.lang.NoSuchMethodError' while trying to invoke: setPrimaryKeyParams
    at line 22 - with nested exception:
    [java.lang.reflect.InvocationTargetException - with target exception:
    [java.lang.NoSuchMethodError]]]
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:585)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:607)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:312)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:223)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:182)
    at
    weblogic.ejb.ejbc.EJBCompiler.generatePersistenceSources(EJBCompiler.java:
    403)
    at weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc.runBody(ejbc.java:307)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    --------------- nested within: ------------------
    weblogic.utils.compiler.CodeGenerationException - with nested exception:
    [weblogic.utils.compiler.CodeGenerationException - with nested exception:
    [weblogic.utils.compiler.CodeGenerationException: Exception:
    'java.lang.NoSuchMethodError' while trying to invoke: setPrimaryKeyParams
    at line 22 - with nested exception:
    [java.lang.reflect.InvocationTargetException - with target exception:
    [java.lang.NoSuchMethodError]]]]
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:585)
    at
    weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:312)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:223)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:182)
    at
    weblogic.ejb.ejbc.EJBCompiler.generatePersistenceSources(EJBCompiler.java:
    403)
    at weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc.runBody(ejbc.java:307)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    ERROR: ejbc found errors
    C:\weblogic\examples\ejb\basic\containerManaged>javac -d
    c:\weblogic\myserver\cl
    ientclasses -classpath
    c:\jdk1.3.1\jre\lib\classes.zip;c:\weblogic\classes;c:\we
    blogic\lib\weblogicaux.jar;c:\weblogic\myserver\clientclasses Account.java
    Accou
    ntHome.java ProcessingErrorException.java Client.java
    C:\weblogic\examples\ejb\basic\containerManaged>wlconfig
    WebLogic startup settings are presently:
    CLASSPATH Prefix C:\weblogic\myserver\serverclasses
    CLASSPATH
    C:\weblogic\myserver\serverclasses;c:\jdk1.3.1\jre\lib\tools
    .jar;c:\jdk1.3.1\jre\lib\rt.jar;c:\jdk1.3.1\jre\lib\i18n.jar;C:\weblogic\l
    icense
    ;C:\weblogic\lib\weblogic510sp11.jar;C:\weblogic\classes;C:\weblogic\lib\w
    eblogi
    caux.jar;C:\weblogic\eval\cloudscape\lib\cloudscape.jar
    JAVA_HOME c:\jdk1.3.1\jre
    WEBLOGIC_LICENSEDIR C:\weblogic\license
    WEBLOGIC_HOME C:\weblogic
    system properties:
    java.security.manager
    java.security.policy==C:\weblogic\weblogic.policy
    weblogic.system.home=C:\weblogic
    java.compiler=symcjit
    weblogic.class.path=C:\weblogic\license;C:\weblogic\lib\webl
    ogic510sp11.jar;C:\weblogic\classes;C:\weblogic\myserver\serverclasses;C:\
    weblog
    ic\lib\weblogicaux.jar
    INITIAL_HEAP 64 MB
    MAX_HEAP 64 MB
    SERVERCLASSPATH
    C:\weblogic\myserver\serverclasses;c:\jdk1.3.1\jre\lib\rt.ja
    r;c:\jdk1.3.1\jre\lib\i18n.jar;C:\weblogic\lib\weblogic510sp11boot.jar;C:\
    weblog
    ic\classes\boot;C:\weblogic\eval\cloudscape\lib\cloudscape.jar
    Type "wlconfig -help" for program usage.

  • Please help: RMI and Swing/AWT issue

    Hi guys, I've been having a lot of trouble trying to get a GUI application to work with RMI. I'd appreciate any help. Here's the story:
    I wrote a Java application and its GUI using Netbeans. In a nutshell, the application is about performing searches. I am now at the point where I need exterior programs to use my application's search capabilities, thus needing RMI. Such exterior programs are to call methods currently implemented in my application.
    I implemented RMI, and got the client --> server communication working. However, the GUI just breaks. It starts outputting exceptions, gets delayed, doesn't update properly, some parts of it stop working.... basically hysterical behavior.
    Now take a look at this line within my server class:
    Naming.rebind("SearchProgram", mySearchProgram);
    If I take it out, RMI obviously does not work... but the application and its GUI work flawlessly. If I put it in, the RMI calls work, but the GUI's above symptoms occur again. Among the symptoms are null pointer exceptions which all look similar, are related to "AWT-EventQueue-0", and keep ocurring. Here's just snippet of the errors outputted:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at javax.swing.plaf.metal.MetalScrollBarUI.getPreferredSize(MetalScrollBarUI.java:102)
    at javax.swing.JComponent.getPreferredSize(JComponent.java:1615)
    at javax.swing.JScrollBar.getMinimumSize(JScrollBar.java:704)
    at javax.swing.ScrollPaneLayout.minimumLayoutSize(ScrollPaneLayout.java:624)
    at java.awt.Container.minimumSize(Container.java:1598)
    at java.awt.Container.getMinimumSize(Container.java:1583)
    at javax.swing.JComponent.getMinimumSize(JComponent.java:1697)
    at java.awt.BorderLayout.minimumLayoutSize(BorderLayout.java:634)
    at java.awt.Container.minimumSize(Container.java:1598)
    at java.awt.Container.getMinimumSize(Container.java:1583)
    at javax.swing.JComponent.getMinimumSize(JComponent.java:1697)
    at java.awt.BorderLayout.minimumLayoutSize(BorderLayout.java:634)
    at java.awt.Container.minimumSize(Container.java:1598)
    at java.awt.Container.getMinimumSize(Container.java:1583)
    at javax.swing.JComponent.getMinimumSize(JComponent.java:1697)
    at javax.swing.BoxLayout.checkRequests(BoxLayout.java:433)
    at javax.swing.BoxLayout.layoutContainer(BoxLayout.java:375)
    at java.awt.Container.layout(Container.java:1401)
    at java.awt.Container.doLayout(Container.java:1390)
    at java.awt.Container.validateTree(Container.java:1473)
    at java.awt.Container.validateTree(Container.java:1480)
    at java.awt.Container.validateTree(Container.java:1480)
    at java.awt.Container.validateTree(Container.java:1480)
    at java.awt.Container.validateTree(Container.java:1480)
    at java.awt.Container.validate(Container.java:1448)
    at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:379)
    at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:113)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at javax.swing.plaf.basic.BasicMenuItemUI.getPreferredMenuItemSize(BasicMenuItemUI.java:400)
    at javax.swing.plaf.basic.BasicMenuItemUI.getPreferredSize(BasicMenuItemUI.java:310)
    at javax.swing.JComponent.getPreferredSize(JComponent.java:1615)
    at javax.swing.BoxLayout.checkRequests(BoxLayout.java:434)
    at javax.swing.BoxLayout.preferredLayoutSize(BoxLayout.java:251)
    at javax.swing.plaf.basic.DefaultMenuLayout.preferredLayoutSize(DefaultMenuLayout.java:38)
    at java.awt.Container.preferredSize(Container.java:1558)
    at java.awt.Container.getPreferredSize(Container.java:1543)
    at javax.swing.JComponent.getPreferredSize(JComponent.java:1617)
    at javax.swing.JRootPane$RootLayout.layoutContainer(JRootPane.java:910)
    at java.awt.Container.layout(Container.java:1401)
    at java.awt.Container.doLayout(Container.java:1390)
    at java.awt.Container.validateTree(Container.java:1473)
    at java.awt.Container.validate(Container.java:1448)
    at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:379)
    at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:113)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    There are no complaints about anything within my code, it's all GUI related whenever I make a bind() or rebind() call.
    Again, any help here would be great... cause this one's just beating me.
    Thanks!

    Maybe you want to change that worker thread to
    not do RMI but anything else (dummy data) to see if it really is RMI, I doubt it, I think you are updating some structures that have to do with swing GUI and hence you will hang.
    Just check this out.

  • [Help] Weblogic throws exception under load testing

    Hello All,
    I have developed an application using struts 1.1 framework and deployed
    it on weblogic 8.1. The application works fine. But when we load test
    the application, weblogic throws an exception. I am not able to
    understand why is weblogic throwing this exception. The exception
    doesn't originate from my code
    I am using struts 1.1 on BEA weblogic 8.1 on HP-UX 11i.
    Please help me ... I will be very gratefull for your help.
    Here is the stack trace :
    <Jan 15, 2004 10:02:28 PM IST> <Error> <HTTP> <BEA-101020>
    <[ServletContext(id=28318025,name=testWebApp,context-path=/testWebApp)]
    Servlet failed with Exception java.lang.NullPointerException
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
    rvle
    tStubImpl.java:1053)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
    java
    :387)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
    java
    :305)
    at
    weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(Reques
    tDis
    patcherImpl.java:382)
    at
    weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
    bjec
    t.java:317)
    at
    weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatche
    rImp
    l.java:286)
    at
    org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
    a:10
    69)
    at
    org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc
    esso
    r.java:274)
    at
    org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
    oces
    sor.java:455)
    at
    org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles
    Requ
    estProcessor.java:320)
    at
    org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
    279)
    at
    org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at
    org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
    rvle
    tStubImpl.java:1053)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
    java
    :387)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
    java
    :305)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
    un(W
    ebAppServletContext.java:6310)
    at
    weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
    bjec
    t.java:317)
    at
    weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
    etCo
    ntext.java:3622)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
    java
    :2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Regards,
    Abhishek.

    Hello All,
    I have developed an application using struts 1.1 framework and deployed
    it on weblogic 8.1. The application works fine. But when we load test
    the application, weblogic throws an exception. I am not able to
    understand why is weblogic throwing this exception. The exception
    doesn't originate from my code
    I am using struts 1.1 on BEA weblogic 8.1 on HP-UX 11i.
    Please help me ... I will be very gratefull for your help.
    Here is the stack trace :
    <Jan 15, 2004 10:02:28 PM IST> <Error> <HTTP> <BEA-101020>
    <[ServletContext(id=28318025,name=testWebApp,context-path=/testWebApp)]
    Servlet failed with Exception java.lang.NullPointerException
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
    rvle
    tStubImpl.java:1053)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
    java
    :387)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
    java
    :305)
    at
    weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(Reques
    tDis
    patcherImpl.java:382)
    at
    weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
    bjec
    t.java:317)
    at
    weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatche
    rImp
    l.java:286)
    at
    org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
    a:10
    69)
    at
    org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc
    esso
    r.java:274)
    at
    org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
    oces
    sor.java:455)
    at
    org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles
    Requ
    estProcessor.java:320)
    at
    org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
    279)
    at
    org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at
    org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
    rvle
    tStubImpl.java:1053)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
    java
    :387)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
    java
    :305)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
    un(W
    ebAppServletContext.java:6310)
    at
    weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
    bjec
    t.java:317)
    at
    weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
    etCo
    ntext.java:3622)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
    java
    :2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Regards,
    Abhishek.

  • Help: RMI or JNLP

    were currently building an enterprise software built in J2SE
    i would just like to ask which is a better option
    1) Create a Client-Server Application that uses JAVA RMI
    - The Client will have the Application Display and will be passing
    data/information to the Server
    - The Server will consist of the SQL's and process the information
    needed by the clients and pass the data through RMI
    2)Create a JAVA Application (jar file) and make it acessible to the client via a JNLP file
    -The application will have both the design/form as well as the SQL's
    which will be better to use among the two options in terms of data processing/transfer speed and server process load?? the application will run on a local network
    hope someone can help us decide
    thanks in advance
    (* we are not using any JAVA server, we just installed a J2SE sdk in the server)
    Message was edited by:
    darkoasis09

    RMI is a better choice if you want to distributeyour
    application. Data processing is and rate oftransfer
    are completely depends on the design of your
    application. Load balancing can be done i guess.
    I have no idea about JNLP.You have no idea about JNLP, so RMI must be the
    better solution?I did not mean that RMI must be the better solution. I have written RMI is a better choice when you want to distribute your application.
    read my post again

  • Taglibs throwing NoSuchMethodError

              Why am I getting this Exception? I applied sp6 with no success.
              My taglib is :
              <?xml version="1.0" encoding="ISO-8859-1" ?>
              <!DOCTYPE taglib
              PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
                   "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
              <taglib>
              <tlibversion>1.0</tlibversion>
              <jspversion>1.1</jspversion>
              <shortname>afps</shortname>
              <info>A simple tab library for the examples</info>
              <tag>
              <name>xxx</name>
              <tagclass>com.att.afps.tags.AFPSSampleTags</tagclass>
              <info> Do A Simple Query </info>
              </tag>
              </taglib>
              The jsp file:
              <html>
              <!--
              Copyright (c) 1999 The Apache Software Foundation. All rights
              reserved.
              -->
              <body>
              <%@ taglib uri="/jsp/taglibs/afps-taglib.tld" prefix="afps" %>
              <afps:xxx>select c_spfl from tspflmrt</afps:xxx>
              </body>
              </html>
              The tag class:
              public class AFPSSampleTags extends TagSupport
              public int doStartTag() //throws JspException
              System.err.println("in doStartTag()");
              return SKIP_BODY;
              Wed Nov 08 11:37:30 EST 2000:<E> <WebAppServletContext-afps> Servlet failed with
              Exception
              java.lang.NoSuchMethodError
              at weblogic.servlet.jsp.MyAttInfo.<init>(StandardTagLib.java:34)
              at weblogic.servlet.jsp.StandardTagLib.processTag(StandardTagLib.java:30
              3)
              at weblogic.servlet.jsp.StandardTagLib.processTagElements(StandardTagLib
              .java:146)
              at weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:125)
              at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:87)
              at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:37
              39)
              at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:3495)
              at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3356)
              at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1694)
              at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1535)
              at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1425)
              at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:825)
              at weblogic.servlet.jsp.JspParser.doit(JspParser.java:69)
              at weblogic.servlet.jsp.JspParser.parse(JspParser.java:116)
              at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:97)
              at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:242
              at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:265)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:180)
              at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
              java:181)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:118)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:141)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:761)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:708)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              ContextManager.java:252)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              a:346)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
              

    the FileInputStream.getChannel() method was introduced in 1.4 ... this error is probably occuring b/c your runtime environment doesn't match your compile environment. Check the classpath to see if you're pointing to classes in an old JDK or perhaps you are using the 'java' command from an old JDK.

  • Help,   rmi:multi thread client

    I am developing a rmi program. Each client thread obtains the remoteObject by calling Naming.rebind().
    My problem is when 20 client threads get the RemoteObject at the same time, i get the exception from naming.rebind()method.
    Anyone can help me?
    thanks

    that is the exception i get
    java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
         java.io.EOFException
         at
    sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:203)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:350)
         at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         at java.rmi.Naming.lookup(Naming.java:84)
         at arch.lib.CommProxyImpl.setRemoteProxy(CommProxyImpl.java:52)
         at arch.ClientThread.<init>(ClientThread.java:45)
         at arch.ClientGenerator.main(ClientGenerator.java:27)
    Caused by: java.io.EOFException
         at java.io.DataInputStream.readByte(DataInputStream.java:333)
         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:189)
         ... 6 more

  • Help- Components Throwing Compile Errors

    Thank you for reading my issue. I am using Flash CS3.
    Recently, all my projects began throwing compile errors for
    standard component AS3 code.
    UI Component, FLVPlayback.
    I have uninstalled and reinstalled Flash CS3, but to no
    avail. Problem persists
    I keep getting errors involving "QNAN", which I think
    involves trapping for a non-numeric value, or something.
    As a test, I created a new Flash doc, placed an instance of
    FLVPlayback on the stage, pointed it to a .FLV file in the same
    directory.
    Errors on compile:
    1093: Syntax error.
    1084: Syntax error: expecting rightparen before QNAN.
    1093: Syntax error.
    1084: Syntax error: expecting rightparen before QNAN.
    And so on, I get 5 sets of the same errors for different
    functions.
    The first offending function above reads:
    function queueCmd(param1:VideoPlayerState, param2:Number,
    param3:Number = 1.#QNAN) : void
    if (param1.cmdQueue == null)
    param1.cmdQueue = new Array();
    }// end if
    param1.cmdQueue.push(new QueuedCommand(param2, null, false,
    param3));
    return;
    }// end function
    I get similar errors from my UI component AS3 as well.
    I have not touched the shipped AS3 for these components. What
    gives?
    Any ideas?
    Thanks
    Tim

    Thanks, by the way to everyone who has offered thoughts so
    far.
    xchanin - I've encountered issues with the FLVPlayback
    component as well as various of the UI components.
    I tried some example applications (from the web) not too long
    ago and this issue popped up shortly there after.
    But, I'm having issues with even a simple Flash with a single
    FLVPlayback instance and one .flv.
    There is nothing in the class path for my test file and the
    root .as files open from the Flash install when I click the compile
    errors in the output window.
    So, it really looks like I somehow corrupted those files. I
    read a post somewhere that someone had "strange invisible
    characters" show up in their .as that were throwing errors.
    I thought a clean install would do the trick.
    I may completely isolate the example files I was using and
    try another reinstall... that's about all I can think of at the
    moment.
    This has been a couple week search for a solution. I have a
    real project coming up an need to solve this.
    Thanks for any input! (I assume I can't call Adobe for an
    assist as I'm still on CS3 ;)
    Tim

  • HELP with Throwing a Vector into a JSP

    Hi,
    I have created a vector of Strings (for now) and i need to display it in a JSP page. I can't find references that don't use Beans...even then it makes no sense.
    Help please?

    yes so this is my JSP file
    <%@ taglib uri="/WEB-INF/tld/struts-form.tld" prefix="form" %>
    <html>
    <head>
    <title>Search Results</title>
    </head>
    Here is what you searched for:
    <%java.util.Vector vector=(Vector)request.getAttribute("SearchInfo");%>
    </html>
    and the snippet of my struts-config.xml file - which is completely wrong
    <action path="/Search"
    type="org.apache.struts.actions.ForwardAction"
    parameter="SearchAction" />
    I know the the looking at the database, lookup fuction, loading to vector is right....the problem is
    a) how do I get that vector passed into the jsp to begin with (or is that what you just gave me?)
    b) how do I setup my struts config file?

  • NoSuchMethodError in GUI program

    Howdy, I have a GUI program that gets decimal input from the user and converts it to a binary string. It uses JButtons, JTextFields, and JLabels. When I compile and run the program, it says:
    java.lang.NoSuchMethodError: main
    Exception in thread "main"
    I really can't figure it out. I have asked everyone around me that knows anything about java to no avail. Thank you. Any help would be greatly appreciated.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.lang.Integer;
    public class binConvertGUI extends JFrame implements ActionListener
           JButton enter = new JButton("Calculate");
           JLabel lbl1 = new JLabel("Enter decimal: ");
           JLabel lbl2 = new JLabel("Binary: ");
           JTextField txt1 = new JTextField(12);
           JTextField txt2 = new JTextField(12);
           JPanel panA = new JPanel();
           JPanel panB = new JPanel();
           String userInA;
           String num;
           int decnum;
           public binConvertGUI()
                  getContentPane().setLayout(
                        new FlowLayout());
                  panA.add(lbl1);
                  panA.add(txt1);
                  panB.add(lbl2);
                  panB.add(txt2);
                  getContentPane().setLayout(
                        new BoxLayout( getContentPane(), BoxLayout.Y_AXIS ));
                  getContentPane().add(panA);
                  getContentPane().add(panB);
                  getContentPane().add(enter);
                  enter.addActionListener(this);
                  txt1.addActionListener(this);
                  enter.setActionCommand("Calculate");
                  txt2.setEditable(false);
           public void actionPerformed(ActionEvent evt)
                  if(evt.getActionCommand().equals("Calculate"))
                        userInA = txt1.getText();
                        decnum = Integer.parseInt(userInA);
                        num = Integer.toBinaryString(decnum);
                        txt2.setText(num);
                  repaint();
           public void main (String[] args) throws NoSuchMethodError
                  binConvertGUI frm = new binConvertGUI();
                  WindowQuitter wquit = new WindowQuitter();
                  frm.addWindowListener( wquit );
                  frm.setSize( 300, 300 );
                  frm.setVisible( true );
    class WindowQuitter extends WindowAdapter
      public void windowClosing( WindowEvent e )
        System.exit( 0 );
    }

    You just forgot the fact that the main() method is always static:
       public static void main (String[] args) throws NoSuchMethodError {
       //...

  • Please help - issue with ng sound when scrolling

    Heya all,
    I have an ASUS P5B Deluxe Wi-Fi board with the latest BIOS (26), Vista Ultimate 32bit, a P82 case, E6400 @ 3.2GHz, 2GB RAM, 8800GTS and a lovely x-fi xtreme-music soundcard, which sits in the bottom PCI slot - the gfx card is obviously in the top PCI-E slot.
    Basically, whenever I'm listening to music via my PC (usual app Winamp, although WMP is used too at times) or watching DVDs etc, any movement of the mouse, or rather the scroll wheel of the mouse, results in a loud crackling and breakup of audio.
    In fact, after some further testing, it seems like whenever something graphically changes on the screen (whether it be scrolling, a web page loading, a window opening etc), anything at all, this loud and ultra annoying issue occurs. The sound at start-up also crackles and breaks up.
    I've tried reinstalling drivers for the x-fi and for my gfx card - neither helped. I've tried different drivers for both my GFX and x-fi. Again, no joy.
    I'm now using the Creative official vista drivers CD and we updated the drivers to 2.5.002. GFX-wise I'm using the latest NVidia publically released drivers as per their site.
    I'm at my wits end - can anyone help or throw any light on the issue please?
    Oddly, I've only just re-installed Vista as I've fitted a new HDD. The installation before, with exactly the same board, drivers etc etc, worked fine.
    Perhaps I should reformat Vista and try again?

    Amit,
    Thank you so much for your response. I also never thought that it would behave differently.
    I am just using one variable called CurrYear in my BR.
    Yes, I am guessing something is going wrong with the second point that you mentioned. That I have 0 level members selected in Page/POV and in EAS it is manually taking parent values.
    Well, I did a comparision but didn't see any differences though. I am using SETUPDATE CALC ON statement in my BR.
    Can you suggest me on how can I fix this?
    Thank you !
    ~ Adella

  • New to Macs - desparate for help.

    Hi all--I've seen nothing but decent answers here so I figured to give it a go and hope for the best.
    I've just recently bought an iMac G3 at a yard sale. I purchased it from a friend who acquired it from her father. While I am no stranger to things techie- this system and its issues are a bit overwhelming. Its running 256mb RAM on Mac OS 9.2. I should start by explaining that the system is completely intact, software and all. My difficulties are in implementing internet through my digital cable modem (I have TimeWarner Cable). I've tried to do a number of configurations with an ethernet cable, but to no avail. I've also heard that I can set up a network on my PC and allow the iMac to piggyback off that connection as well as transfer compatible files from PC to Mac.
    Is there a factory reset option that resets the system to "out of box" status? Maybe I could set up everything from scratch. (I don't have any actual OSs or anything).
    Please MAC gurus...help. Any sound advice would be most humbly appreciated.

    Hi, bylmdman78 -
    Part of this has been covered before -
    • Settings -
      - in the TCP/IP control panel, set
        Connect via    -to-    Ethernet
        Configure    -to-    Using DHCP server
      - in the Internet control panel, be sure to enter the appropriate info on the E-Mail tab
    • AppleTalk - unless you need to have AppleTalk enabled in order to connect to an ethernet-connected printer, set AppleTalk to connect via a bus other than ethernet. Having it enabled and set to use ethernet can sometimes interfere with other communications on that bus; unfortunately, just turning it off is often not enough.
    • Ethernet Cable - there are two kinds of ethernet cable, Crossover and Patch.
        - if your iMac G3 is connected directly to the cable modem, and your iMac G3 is an early model and the cable modem does not have an auto-switching ethernet port, you will need to use a Crossover type ethernet cable.
        - if your iMac G3 is connected to the cable modem through an intervening hub, switch, or router, and your iMac G3 is an early model and the hub/switch/router does not have an auto-switching ethernet port, you will need to use a Crossover type ethernet cable.
        - if the iMac G3 is an early one and the cable modem or intervening hub/switch/router does have an auto-switching port, or if you have a later model iMac G3, you can use either type of cable (Patch or Crossover).
        Article #42717 - Apple products that require an Ethernet Crossover cable
    • Device connected - many Macs will disable the ethernet bus during startup if a live device is not detected as being present on the bus at that time. This means that the device the Mac is connected to, modem or hub/switch/router, as applicable, must be on and warmed up a couple of minutes before starting up the Mac.
    • Preference files - it can sometimes help to throw away the file named ASLM Preferences, then restart. This will cause a new prefs file by that name to be created.
    • Specific extensions - be sure that both the extensions named Shared Library Manager and Shared Library Manager PPC are enabled in Extensions Manager; ditto any extensions whose names include OpenTransport or OpenTpt.
    Minor correction on OS version - the last OS 9 version is OS 9.2.2. The last retail OS 9 Install CD released was OS 9.2.1, but there is a download update available for OS 9.2.2. Some later model Macs (such as some G4 Quicksilver models) came with a separate install disk for OS 9.2.2 - although this was a bootable disk, it was a model-specific one, usable only on the machines it came with.

  • BPM Collect Transformation Step Raise Alert need help

    Hi,
    Scenario BPM Collect.
    Block 1 - Multiple xml messages received and collected into multiline container.
    Block 2 - Transform multiline container element into single message. Mapping Error throw Transformation Exception.
    Block 2:Exception Branch - Transform multiline container element to error multiline container element (based on BpmPatternReqRespTimeOut with a twist).
    Block 2:Exception Branch - Send multiline container element to Communication Channel for further error analysis.
    Block 2:Exception Branch - Throw Alert BPM_ALERT Transformation Failure message.
    Getting Compilation errors because I am not allowed to output a multiline container element...?
    Behaviour without the Exception Branch Transform and Send is that the first message collected in the ccBPM goes to Green Flag and the others goto chequered flag when the BPM_ALERT is thrown. This is not desirable behaviour.
    Would like to output multiple line container element so I easily know which group of messages failed ie file 1,2,3... so that I can go to the Error folder and repost them in the Sender Communication Channel if required.
    Once this is working I am trying to identify which file had the conversion problem so I can filter if out from the others and process the others attempting to pass information from a UDF as to which item in the multiline container element I reached before I had a problem int he original mapping...?
    I have read Michal Krawcyzk's blog on ALERT variables and Help on Throwing Alerts etc but I am progressing slowly with my solution...
    thanks,
    V

    Thankyou Chirag for those Blogs.
    The first is the one I have looked at most recently and the second has given me an idea.
    If I change my mapping of the multiline container element each line holds an xml message to the error element by calling a UDF to map the payload across then at least I would have output my Payload that errored? I will try it and see Java coding is not my forte currently.
    thanks,
    V

  • NoSuchMethodError compiling with 1.4 and running on 1.3

    Hi community,
    I have a little problem with code like the following when mixing both JDK versions:
    StringBuffer sb1 = new StringBuffer();
    sb1.append(new StringBuffer());In 1.3 this is linked to append(Object) and in 1.4 to the newly added append(StringBuffer) which does not exist in 1.3. The code compiles fine with both versions, but if compiled under 1.4 and run in 1.3 this throws NoSuchMethodError(as it should, of course).
    I understand why it is so, the question is if there is an easy way to overcome this problem. I played with the target option of javac without success(javap shows it is always linked as stated), also I read a bit in the JLS to make sure I am right why the exception is thrown.
    I see the following choices:
    1. Compile with 1.3. Not a good idea because all other our products are developed and run in 1.4;
    2. Ask the customers to upgrade to 1.4. There is some their reason for which they still stick to 1.3 and don't want to upgrade, we can't force them do it;
    3. Find such places in code and explicitly cast. But who will know what other cases like the above exist in the code. I can find where append(StringBuffer) is used in the code, but what about other methods of other JDK classes? And it is a bad idea because somewhere in time it will anyway run with 1.4.
    My question is if there is another easier option that I am missing at the moment.
    Thanks for you time and cooperation
    Mike

    Why is option 1 bad? You will be able to run it in 1.4 even if you compiled it using 1.3, so I don't see the problem? It will never run in 1.3 if you can't compile it in 1.3.Because it will always be a source of errors. Always there will be someone that will not set up their project to use 1.3 for compile or will deconfigure it while working with the other projects. Besides that as I stated source compiles fine in both versions, I don't have a compiletime problem, but a runtime one.
    I know this is the most reasonable option, I know what I would choose among the three listed above, I needed some confirmation if I have missed an option.
    and you are correct about the target flagI only mentioned the target tag just as one of the directions of my search, we always whine for others not putting effort in their problems ;)
    Thanks for opinions
    Mike

  • Z2 'throw' doesnt work with TV

    I was able to view my photo/video to my TV using my previous phone, but it does not work with my new Z2. Any help?

    Throw works kind of ok for me. I have a Samsung F6470 (it's almost the same as 6400). Throw can be actually one of two things: DLNA or ScreenMirroring.
    For DLNA to work you have to be connected to the same network. If you have your phone on mobile data and yout TV on a home network (WiFi or wired) it won't work.
    For ScreenMirroring to work, I go to "Source" menu in my TV and connect it from there. 
    I noticed that on DLNA I can see photos but videos stutter. On ScreenMirroring the videos look better but I have no sound from phone (or TV).

Maybe you are looking for

  • I get the following message when I attempt to create an event in iCal:

    The request for account "iCloud" failed. The server responded with "507" to operation CalDAVAddCalendarQueueableOperation. Also, nothing that I enter into my iPad's calendar get entered into the calendars of my iPhone or Mac.

  • Song into ringtone

    I downloaded the Star Wars song, and later tried to convert into a ringtone---only to be told by itunes that it can no longer be made into a ringtone. is there a way to tell if a song from itunes can be made into a ringtone without having to buy it f

  • Create a magnifying glass on an image.

    I am pretty new to Flex. I am trying to create a magnifying glass for an image viewer. I want to move the cursor over an image that will zoom in on a 200X200 area. I don't want to zoom in on the whole image. I can see I can probably do it with the Bi

  • Quality of Cursors created with java.awt.Toolkit(createCutsomCursor)

    Hi - I encountered a small problem while creating my own cursors for my Java application , I used the java.awt.Toolkit Objects createCustomCursor method to use a .GIF image as a cursor ... it worked but the quality of that cursor is horrible, the out

  • I can't get files to attach in e-mail quickly.

    I can't get files to attach in e-mail. I get a prompt to retry or switch and retry. Switching works but the process takes too long.