🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #648

Runtime exception on eneterprise platfrom

#648
From: Paul Murray
Date: Thu, 29 Jun 2000 00:00
44 lines
2154 bytes
Arrrgh! It was working fine yesterday, I swear!

I have an EJB.

It has two methods:

java.lang.String getTest1()

    java.lang.String t = "Hi There!";
    system.out.println("returning \"" + t + "\".");
    return t;
}

java.math.BigDecimal getTest2()

    java.math.BigDecimal t = new BigDecimal(123);
    system.out.println("returning " + t + ".");
    return t;
}


I call it from a client like this:

    t = (MyEJB) home.getByPrimaryKey(new BigDecimal(1));
    System.out.println("test1 " + t.getTest1());
    System.out.println("test2 " + t.getTest2());

Now on the server, both methods seem to run fine. I get correct debugging
output in the logs directory. But on the client, the method that returns the
BigDecimal crashes. I get a java.lang.RuntimeError with a null message and
"no stack trace available".

It looks to me like the MyEJB_stub is doing the wrong thing, somehow. So I
redeployed the bean from scratch and got a whole new Client jar to compile
the client with. Same bug. I was flinging big decimals around *fine*
yeseterday. In fact, the findbyprimarykey takes a bigdecimal as a parameter,
and it works great - pulls the right record out of the database and
everything.

Weird bug. Any ideas?

--------------------------------------------------------------
http://www.users.bigpond.com/pmurray
ICQ: 26066755
Technical Details
Message-ID: <0AF65.2567$c5.7554@newsfeeds.bigpond.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcfbb,eb77b047a3e6c946,start
X-Google-Attributes: gidfcfbb,public
X-Google-Thread: 10d6db,eb77b047a3e6c946,start
X-Google-Attributes: gid10d6db,public
From: "Paul Murray" <pmurray@nospam.bigpond.com>
Subject: Runtime exception on eneterprise platfrom
Date: 2000/06/29
Message-ID: <0AF65.2567$c5.7554@newsfeeds.bigpond.com>
X-Deja-AN: 640346683
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
X-Trace: newsfeeds.bigpond.com 962274684 139.134.123.62 (Thu, 29 Jun 2000 20:31:24 EST)
Organization: Telstra BigPond Internet Services (http://www.bigpond.com)
X-MSMail-Priority: Normal
NNTP-Posting-Date: Thu, 29 Jun 2000 20:31:24 EST
Newsgroups: aus.computers.java,comp.lang.java.beans