Weasis 2.5 and 2.5.2 run with jnpl

154 views
Skip to first unread message

Tomasz Buziak

unread,
Feb 22, 2017, 12:19:13 PM2/22/17
to dcm4che
I have a problem running weasis from Java Webstart file jnpl.

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.launch(WebstartLauncher.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)

I created a file based on guide from

<?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+" codebase="http://192.168.1.218/weasis25" href="">
 
<information>
   
<title>Weasis</title>
   
<vendor>Weasis Team</vendor>
   
<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>
 
</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" />
 
   
<jar href="http://192.168.1.218/weasis25/weasis-launcher.jar" main="true" />
   
<jar href="http://192.168.1.218/weasis25/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="http://192.168.1.218/weasis25/substance.jnlp" />
 
   
<!-- Allows to get files in pack200 compression, only since Weasis 1.1.2 -->
   
<property name="jnlp.packEnabled" value="true" />
 
   
<!-- ================================================================================================================= -->
   
<!-- Security Workaround. Add prefix "jnlp.weasis" for having a fully trusted application without signing jnlp (only since weasis 1.2.9), http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6653241 -->
   
<!-- Required parameter. Define the location of config.properties (the OSGI configuration and the list of plug-ins to install/start) -->
   
<property name="jnlp.weasis.felix.config.properties" value="http://192.168.1.218/weasis25/conf/config.properties" />
   
<!-- Optional parameter. Define the location of ext-config.properties (extend/override config.properties) -->
   
<property name="jnlp.weasis.felix.extended.config.properties" value="http://192.168.1.218/weasis25/conf/ext-config.properties" />
   
<!-- Required parameter. Define the code base of Weasis for the JNLP -->
   
<property name="jnlp.weasis.weasis.codebase.url" value="http://192.168.1.218/weasis25" />
   
<!-- Optional parameter. Define the code base ext of Weasis for the JNLP -->
   
<property name="jnlp.weasis.weasis.codebase.ext.url" value="http://192.168.1.218/weasis25" />
   
<!-- Required parameter. OSGI console parameter -->
   
<property name="jnlp.weasis.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="jnlp.weasis.apple.laf.useScreenMenuBar" value="true" />
   
<!-- Optional parameter. Allows to get plug-ins translations -->
   
<property name="jnlp.weasis.weasis.i18n" value="http://192.168.1.218/weasis25/bundle-i18n" />
   
<!-- Optional Weasis Documentation -->
   
<!-- <property name="jnlp.weasis.weasis.help.url" value="${cdb}/../weasis-doc" /> -->
   
<!-- ================================================================================================================= -->
 
</resources>
 
 
<application-desc main-class="org.weasis.launcher.WebstartLauncher">
 
   
<!-- Example for opening dicom files from local foler -->
   
<argument>$dicom:get -l "\\http://192.168.1.35\arch1\CT\20170222\xxxxxx\"</argument>
 

 
</application-desc>
 
</jnlp>



Nicolas Roduit

unread,
Feb 22, 2017, 2:18:43 PM2/22/17
to dcm4che
Weasis requires Java 8. For a valid jnlp use a recent version of weasis-pacs-connector or look at samples.

For the arguments, look at this documentation.

Tomasz Buziak

unread,
Feb 22, 2017, 2:48:44 PM2/22/17
to dcm4che
I use java 1.8.121, weasis 2.0.7 with Conquest Dicom Server 1.4.19 and works great, the server generates jnlp + xml, but after updating weasis to 2.5 or 2.5.2 occurs mentioned error.

Nicolas Roduit

unread,
Feb 24, 2017, 2:11:27 AM2/24/17
to dcm4che
I don't know the implementation in Conquest server but there are some changes since weasis 2.5.0.

Implementation of jnlp should match with this jnlp template (it contains some variables which are replaced during build). The only difference with the previous template use by weasis inferior to 2.5 is the Java 8 requirement.

Concerning the implementation of the xml manifest, it must be validate by the following schema:
However weasis 2.5 can still use the schema 1. The schema 2.5 allows to have new features (multiple archives or PACS, load directly xml Presentation State).

Tomasz Buziak

unread,
Feb 24, 2017, 8:38:10 AM2/24/17
to dcm4che
experimenting with weasis-pacs-connector solved the problem, thx

Reply all
Reply to author
Forward
0 new messages