I am working with OrbixWeb 3.1c and JDK1.2 on WinNT4. When I start the
OrbixWeb Java Daemon (Orbixdj), I get the following error message:
java.lang.NullPointerException: Null output stream
at java.io.PrintStream.<init>(PrintStream.java:81)
at java.io.PrintStream.<init>(PrintStream.java:63)
at
IE.Iona.OrbixWeb.Activator.GuiConsolePrintStream.<init>(GuiConsolePrintStrea
m.java:15)
at
IE.Iona.OrbixWeb.Activator.ConsoleTextArea.<init>(ConsoleTextArea.java:42)
at IE.Iona.OrbixWeb.Activator.GuiConsole.<init>(GuiConsole.java:82)
at
IE.Iona.OrbixWeb.Activator.DJGuiConsole.<init>(DJGuiConsole.java:23)
at IE.Iona.OrbixWeb.Activator.orbixd.setupConsole(orbixd.java:194)
at IE.Iona.OrbixWeb.Activator.orbixd.main(orbixd.java:35)
I read more messages on this subject and I tried the proposed solution to
include the "Xbootclasspath" parameter. So, I edited orbixdj.bat as follows
(all software is installed in default directories):
set |
owjava -Xbootclasspath:C:\Iona\OrbixWeb3.1c\classes;C:\jdk1.2\jre\lib\rt.jar
-Dorbixweb.server_name=IT_daemon -Dorbixweb.server_comms=tcp -Dorbixweb.ser
ver_code=xdr IE.Iona.OrbixWeb.Activator.orbixd %1 %2 %3 %4 %5 %6
But the same error occurs.
Can somebody help me with this problem?
Regards,
Bart
> I am working with OrbixWeb 3.1c and JDK1.2 on WinNT4. When I start the
> OrbixWeb Java Daemon (Orbixdj), I get the following error message:
There are _big_ problems with JDK 1.2, it seems, and I mean showstoppers.
Inprise says "Stay with 1.1.*," Iona says "You want 1.1.5 or 1.1.7," there
are reports of trouble with callbacks in 1.2, and so on.
I don't know if this error is related, but you should downgrade anyway.
Hope this helps...
--
--------------------------------------------------------------
| Jean Zundel | j...@beru.com | jzu...@dial.oleane.com |
--------------------------------------------------------------
An alternative approach is to use jdk1.1.x for the OrbixWeb daemon, and the
other utilities, but to use jdk1.2 for your own applications.
method:
1. define the following Environment Variables at system level:
ORBIXWEB_HOME=<install dir of OrbixWeb, e.g. c:\iona\orbixweb3.1c>
JDK1_1_HOME=<install dir of jdk1.1.x, e.g. c:\jdk1.1.7b>
JDK1_2_HOME=<install dir of jdk1.2, e.g. c:\jdk1.2>
2. use jdk1.1.x for Orbixdj, and other OrbixWeb3.1c utilities
OrbixWeb provides two executables that wrap jdk utitilities
owjava.exe && owjavac.exe
replace owjava.exe with a .bat file like the following:
<owjava.bat>
@echo off
set JAVA=%JDK1_1_HOME%\bin\java.exe
set ORBIX_CLASSES=%ORBIXWEB_HOME%\classes
set JDK_CLASSES=%JDK1_1_HOME%\lib\classes.zip
set ORBIX_DEF=OrbixWeb.config=%ORBIX_CLASSES%\OrbixWeb.properties
set OWJAVA=%JAVA% -classpath %ORBIX_CLASSES%;%JDK_CLASSES% -D%ORBIX_DEF% %*
echo %OWJAVA%
%OWJAVA%
<end owjava.bat>
and owjavac.exe with owjavac.bat, so that applications use the Jdk 1.2
compiler
<owjavac.bat>
@echo off
set JAVAC=%JDK1_2_HOME%\bin\javac.exe
set ORBIX_CLASSES=%ORBIXWEB_HOME%\classes
set JDK_CLASSES=%JDK1_2_HOME%\jre\lib\rt.jar
%JAVAC% -bootclasspath %ORBIX_CLASSES%;%JDK_CLASSES% %*
<end owjavac.bat>
getting OWConfig to work using jdk1.1.x
edit OWConfig.bat
a. change all :: to % ( I presume owjava.exe interprets :: as % ? )
b. set JAVA_HOME=%JDK1_1_HOME%
used to locate content-type.properties
The new OWConfig.bat:
<OWConfig.bat>
@echo off
set JDK_CLASSES=%JDK1_1_HOME%\lib\classes.zip
set JAVA_HOME=%JDK1_1_HOME%
set CLASSPATH=%ORBIXWEB_HOME%\classes;%JDK_CLASSES%
owjava -classpath
"%CLASSPATH%;%ORBIXWEB_HOME%\tools\lib\bongo.zip;%ORBIXWEB_HOME%\tools\lib\ma
rim ba.zip;%ORBIXWEB_HOME%\tools\ConfigGUI\OWConfig.zip"
-DOrbixWeb.home=%ORBIXWEB_HOME% IE.Iona.OrbixWeb.ConfigTool.OrbixWebConfigApp
%* <end OWConfig.bat> (note: the line owjava ... %* should be on one line )
note: OWConfig hangs on exit when 'save before quit' is selected.
3. launching servers using jdk1.2 vm
in OrbixWeb.properties set the property
IT_JAVA_INTERPRETER=<full path to java.bat>
IT_DEFAULT_CLASSPATH=<application classpath>
<java.bat>
@echo off
set JAVA=%JDK1_2_HOME%\bin\java.exe
set ORBIX_CLASSES=%ORBIXWEB_HOME%\classes
set JDK_CLASSES=%JDK1_2_HOME%\jre\lib\rt.jar
set BOOTPATH=%ORBIX_CLASSES%;%JDK_CLASSES%
set PROPS=OrbixWeb.config=%ORBIXWEB_HOME%\classes\OrbixWeb.properties
set RUNJAVA=%JAVA% -Xbootclasspath:%BOOTPATH% -D%PROPS% %*
echo executing: %RUNJAVA%
%RUNJAVA%
<end java.bat>
4. starting clients
use java.bat
e.g.
java.bat -classpath f:\coghlang\classes ie.coghlang.bank.javaclient1
hope this helps,
regards,
Grainne
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
1. include both the Java 1.2 rt.jar and a jar with swing under com.sun
in your boot class path
2. start orbixdj with the -textConsole switch will start orbixdj without
a gui console window
hope this helps.
cheers,
/dkb