Results 1 to 2 of 2

Thread: Unable to compile Java Demo: unknown symbol "method throwUnknownWrapper"

  1. #1
    sm3.142 is offline Registered User
    Name: Stefan Moser
    Organization: Open Systems AG
    Project: Ditributed System Management Environment
    Join Date
    Jun 2007
    Posts
    1

    Unable to compile Java Demo: unknown symbol "method throwUnknownWrapper"

    Hi,

    I'm trying to build the Java HelloWorld demo as per the instructions in the documentation, section 3.4. However, when I try to compile the generated classes, I get a ton of errors such as:

    Code:
    generated/Demo/_PrinterDelD.java:64: cannot find symbol
    symbol  : method throwUnknownWrapper(java.lang.Throwable)
    location: class IceInternal.LocalExceptionWrapper
                    IceInternal.LocalExceptionWrapper.throwUnknownWrapper(__ex);
    This is on OS X, using the Ice 3.2.1 packages provided by MacPorts. I use the following commands to generate/compile:

    Code:
     slice2java --output-dir generated Printer.ice
     javac -d classes -classpath classes:/opt/local/share/java/Ice.jar -source 1.5 Server.java PrinterI.java generated/Demo/*.java
    I've tried with -source 1.4 as well, but then I get a bunch of

    Code:
    generics are not supported in -source 1.4
     ...
    errors, so that's not any better.

    Note that I'm a total noob in Java. I've written an Ice Application in C++ for which I want to expose some of the interfaces to Java for our web guys to use. When I tried to build a simple client based on my Slice definitions I got the exact same symbol errors. At that point I tried to see if I would fare any better with the demo, but no such luck. I did however check that the versions of slice2java and Ice.jar are the same (the latter using the program you've provided in this post).

    Apologies in advance if the question is exceedingly stupid.

    Any suggestions?

    Many thanks
    -stefan

  2. #2
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    This looks like you are using a slice2java from Ice 3.3b and compiling the generated code against the 3.2.1 run time. 3.3b and 3.2.1 are binary incompatible, so this cannot work.

    Can you check that your are using a slice2java that matches the run time version of Ice.jar?

    Cheers,

    Michi.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 03-14-2011, 05:08 PM
  2. Replies: 5
    Last Post: 06-22-2009, 08:15 AM
  3. Replies: 4
    Last Post: 10-26-2006, 11:23 AM
  4. Replies: 1
    Last Post: 11-05-2004, 02:23 PM
  5. Replies: 2
    Last Post: 05-30-2003, 03:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •