Mr Marcel,
I am needing your help, please.
I am using dgate 1.4.17beta3 on conquest server and on apache cgi-bin. My JRE is 1.7
I have had a relative success deploying weasis with conquest on my sistem with informations from this post http://forum.image-systems.biz…?f=33&t=3676&hilit=weasis .
I have two remotes PC. I have a PC with conquest server and I have an other PC hosting apache and tomcat.
So I have tomcat and apache installed and working.
1. From my PC station, If I am requesting studies via tomcat server, there is no problem.
In my PC, when I use http://my_site_with_tomcat/wea…iewer.jnlp?patientID=XXXX all works well showing stuydies.
2. From my PC station, If I am using wado server via apache server I have a problem.
When I use http://my_site_with_apache/cgi…=patientid+=+%27183692%27, JRE is showing and ask for confirmation to execute the file. I agree to execute and i have an exception after.
I get this exception:
Unexpected Exception
java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at java.util.Properties.setProperty(Unknown Source)
at java.lang.System.setProperty(Unknown Source)
at org.weasis.launcher.WeasisLauncher.loadProperties(WeasisLauncher.java)
at org.weasis.launcher.WeasisLauncher.launch(WeasisLauncher.java)
at org.weasis.launcher.WebstartLauncher.main(WebstartLauncher.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
and here is the code issuing the exception
<jnlp spec="1.6+" version="1.1.3" codebase="http://dicom.vital-it.ch:8089/weasis" href=""> <information> <title>Weasis</title> <vendor>Hôpitaux Universitaires de Genève (HUG)</vendor> <homepage href="docs/help.html"/> <description>DICOM images viewer</description> <description kind="short">An application to visualize and analyze DICOM images.</description> <description kind="one-line">DICOM images viewer</description> <description kind="tooltip">Weasis</description> <icon href="images/logo-button.png" kind="default"/> <icon href="images/about.png" kind="splash"/> </information> <security> <all-permissions/> </security> <resources> <j2se version="1.6.0_10+" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="512m"/> <j2se version="1.6.0_10+" initial-heap-size="128m" max-heap-size="512m"/> <jar href="weasis-launcher.jar" main="true"/> <jar href="felix.jar"/> <extension href="substance.jnlp"/> <property name="jnlp.packEnabled" value="true"/> <property name="felix.config.properties" value="http://dicom.vital-it.ch:8089/weasis/conf/config.properties"/> <property name="weasis.codebase.url" value="http://dicom.vital-it.ch:8089/weasis"/> <property name="gosh.args" value="-sc telnetd -p 17179 start"/> <property name="apple.laf.useScreenMenuBar" value="true"/> <property name="weasis.i18n" value="http://dicom.vital-it.ch:8089/weasis-i18n"/> </resources> <application-desc main-class="org.weasis.launcher.WebstartLauncher"> <argument>$dicom:get -w http://my_site_with_apache/cgi-bin/dgate.exe?port=3010&address=192.168.10.7&mode=weasisstudyxml&study=183692:1.3.46.670589.30.1.3.1.116520970982.1332416922140.1&dum=.xml </argument> </application-desc></jnlp>
Here is my dicom.ini
[sscscp]MicroPACS = sscscp# database layout (copy dicom.sql to the web server script directory or point to the one in your dicom server directory)kFactorFile = C:\wamp\www\dicomserver\dicom.sqlTruncateFieldNames = 10 # default IP address and port of DICOM server (may be non-local, web pages empty if wrong)# use version 1.4.14 up, if an older version some feautues will not workWebServerFor = 192.168.10.7TCPPort = 3010# AE title: only used if web client originates queries or movesACRNemaMap = C:\wamp\www\dicomserver\acrnema.mapDictionary = C:\wamp\www\dicomserver\dgate.dicMyACRNema = CONQUESTSRV1WebScriptAddress = http://my_site_with_apache/cgi-bin/dgate.exe[webdefaults]size = 560dsize = 0compress = uniconsize = 48 graphic = gifviewer = weasisviewerstudyviewer = weasisstudyviewer[weasisviewer]source = launchWeasis.cqheader = Content-Type: application/x-java-jnlp-file\[weasisseriesxml]source = weasisseriesxml.lua[weasisstudyviewer]source = launchWeasisStudy.cqheader = Content-Type: application/x-java-jnlp-file\[weasisstudyxml]source = weasissstudyxml.lua
Here is launchWeasis.cq
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc//DTD JNLP Descriptor 6.0//EN" "http://java.sun.com/dtd/JNLP-6.0.dtd"> <jnlp spec="1.6+" version="1.1.3" codebase="http://dicom.vital-it.ch:8089/weasis" href=""> <information> <title>Weasis</title> <vendor>Hôpitaux Universitaires de Genève (HUG)</vendor> <homepage href="docs/help.html"/> <description>DICOM images viewer</description> <description kind="short">An application to visualize and analyze DICOM images.</description> <description kind="one-line">DICOM images viewer</description> <description kind="tooltip">Weasis</description> <icon href="images/logo-button.png" kind="default" /> <icon href="images/about.png" kind="splash" /> </information> <security> <all-permissions/> </security> <resources> <!-- Requires Java SE 6 update 10 release for jnlp extension without codebase (substance.jnlp) --> <j2se version="1.6.0_10+" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="512m" /> <j2se version="1.6.0_10+" initial-heap-size="128m" max-heap-size="512m" /> <!-- Weasis launcher --> <jar href="weasis-launcher.jar" main="true" /> <!-- OSGI Felix framework --> <jar href="felix.jar" /> <!-- Optional library (Substance Look and feel, only since version 1.0.8). Requires the new Java Plug-in introduced in the Java SE 6 update 10 release.For previous JRE 6, substance.jnlp needs a static codebase URL --> <extension href="substance.jnlp"/> <!-- Allows to get files in pack200 compression, only available from Weasis 1.1.2 --> <property name="jnlp.packEnabled" value="true" /> <!-- Required parameter. Define the location of config.properties (the OSGI configuration and the list of plug-ins to install/start) --> <property name="felix.config.properties" value="http://dicom.vital-it.ch:8089/weasis/conf/config.properties" /> <!-- Required parameter. Define the code base of Weasis for the JNLP --> <property name="weasis.codebase.url" value="http://dicom.vital-it.ch:8089/weasis" /> <!-- Required parameter. Start OSGI console on the port 17179 --> <property name="gosh.args" value="-sc telnetd -p 17179 start" /> <!-- Optional parameter. Allows to have the Weasis menu bar in the top bar on Mac OS X (works only with the native Aqua look and feel) --> <property name="apple.laf.useScreenMenuBar" value="true" /> <!-- Optional parameter. Allows to get plug-ins translations --> <property name="weasis.i18n" value="http://dicom.vital-it.ch:8089/weasis-i18n" /> <!-- Optional Weasis Documentation, appears in the menu Help > User Manual --> <!-- <property name="weasis.help.url" value="http://dicom.vital-it.ch:8089/weasis-doc" /> --> </resources> <!-- Main class --> <application-desc main-class="org.weasis.launcher.WebstartLauncher"> <!-- Example for opening dicom files from URLs --> <argument>$dicom:get -w %webscriptadress%?%extra%&mode=weasisseriesxml&series=%series2%&dum=.xml </argument> </application-desc> </jnlp>
Here is weasisseriesxml.lua
<wado_query xmlns= "http://www.weasis.org/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" wadoURL="]]..webscriptadress..[[" requireOnlySOPInstanceUID="false" overrideDicomTagsList="0x00000000" >
<Patient PatientID="]]..patid..[[" PatientName="]]..r[0].PatientName..[[" PatientBirthDate="]]..r[0].PatientBirthDate..[[" >
<Study StudyInstanceUID="]]..r[0].StudyInstanceUID..[[" StudyDescription="]]..r[0].StudyDescription..[[" StudyDate="]]..r[0].StudyDate..[[" StudyTime="]]..r[0].StudyTime..[[" >
Thanks in advance,
Luiz