Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle 8i: NumberFormatException trying to call oracle.aurora.ejb.deployment.GenerateEjb from java program
Upgrade your JDK to 1.1.8 or any other without a character in its
versionstring....
Regards
Erik.
In article <7kvssr$aph$1_at_fe1.cs.interbusiness.it>,
"Alberto Lagna" <Lagna_at_gendev.com> wrote:
> Hi all,
>
> env Oracle 8i 8.1.5, VCafe' 3.0a, NT
>
> I'm making a plugin for the common java IDEs and I need to call
deployejb
> from within a java class, so I wrotethe following for example to
compile the
> helloworld example.
>
> static public void main(String args[])
> {
> oracle.aurora.ejb.deployment.GenerateEjb gen =
> new oracle.aurora.ejb.deployment.GenerateEjb();
>
> String asCmd[] = {"-republish", "-temp", "ejb", "-u", "scott",
"-p",
> "tiger", "-s", "sess_iiop://localhost:2481:alberto",
> "-descriptor",
> "Hello.ejb", "Hello.jar"};
>
> Properties prp = System.getProperties();
> String user = (String)prp.get("user.dir");
> prp.put("user.dir",
>
>
"D:\\myDocuments\\Lavoro\\Progetti\\Inline\\oracle8i\\EJBs\\hello\\ejb")
;
> System.setProperties(prp);
> gen.main(asCmd);
>
> prp.put("user.dir", user);
> }
>
> And when I run it I got the following exception
>
> D:\personalities>java
com.gendev.personality.oracle8i.O8iContainerGenerator
> Symantec Java! JustInTime Compiler Version 3.10.093(i) for JDK 1.1.x
> Copyright (C) 1996-98 Symantec Corporation
>
> java.lang.NumberFormatException: 7A
> at java.lang.Integer.parseInt(Integer.java:344)
> at java.lang.Integer.parseInt(Integer.java:382)
> at
>
oracle.aurora.ejb.deployment.GenerateEjb.checkJDKVersion(GenerateEjb.jav
a:11
> 7)
> at
> oracle.aurora.ejb.deployment.GenerateEjb.invoke(GenerateEjb.java:365)
> at
>
oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(ToolImpl.java:122)
> at
> oracle.aurora.ejb.deployment.GenerateEjb.main(GenerateEjb.java:445)
> at
>
com.gendev.personality.oracle8i.O8iContainerGenerator.main(O8iContainerG
ener
> ator.java:275)
>
> Why?
>
> If I call the deployejb from a command line I can successfully compile
and
> deploy the EJB (and of course I'm using the same parameters I'm
passing to
> the java class).
>
> TIA
> Alberto
>
>
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Received on Thu Jul 01 1999 - 10:21:40 CDT
![]() |
![]() |