WEASIS: Cannot read properties file: /weasis/conf/config.properties?

521 views
Skip to first unread message

Stephen Walters

unread,
Nov 28, 2013, 9:22:11 PM11/28/13
to dcm...@googlegroups.com
Any help would be much appreciated, this error started after the JAVA updates.   It was working prior to the r40 java update.

I'm not sure what the source of the issue is.   I've included the exception and a sample of the JNLP that is used to launch the program. 

Thank you for you help in advance!

Java Web Start 10.45.2.18
Using JRE version 1.7.0_45-b18 Java HotSpot(TM) Client VM
User home directory = C:\Users\N550JV
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
m:   print memory usage
o:   trigger logging
p:   reload proxy configuration
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
0-5: set trace level to <n>
----------------------------------------------------
Cannot read properties file: /weasis/conf/config.properties
Cannot read properties file: /weasis/conf/ext-config.properties
***** Starting Configuration *****
Operating system: windows-x86
#### Java Web Start Error:
#### null



The Exception thrown:
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)


the JNLP to launch the program:

<?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://www.dvminsight.com/weasis" 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>
  <icon href="images/logo-button.png" kind="default" />
  <icon href="images/about.png" kind="splash" />
  <shortcut online="false">
   <desktop />
   <menu submenu="Weasis" />
  </shortcut>
 </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="weasis-launcher.jar" main="true" />
  <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 the file in pack200 compression -->
  <property name="jnlp.packEnabled" value="true" />
 </resources>
 <application-desc main-class="org.weasis.launcher.WebstartLauncher">
  <!-- =======================================================================================================
   Workaround for Java security restriction which only allow to put property in resources when starting
   with "java." or "jnlp.". So property is passed here as argument with prefix "-VMP": <argument>-VMPpropertyname="value"</argument>.
   This workaround allows to have a fully trusted application with dynamic jnlp (only since weasis 1.1.2,
   for previous version see revision=16573), 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) -->
  <argument>-VMPfelix.config.properties="${weasis.base.url}/weasis/conf/config.properties"</argument>
  <!-- Optional parameter. Define the location of ext-config.properties (extend/override config.properties) -->
  <argument>-VMPfelix.extended.config.properties="${weasis.base.url}/weasis/conf/ext-config.properties"</argument>
  <!-- Required parameter. Define the code base of Weasis for the JNLP -->
  <argument>-VMPweasis.codebase.url="${weasis.base.url}/weasis"</argument>
  <!-- Required parameter. Start local OSGI console on the port 17179 -->
  <argument>-VMPgosh.args="-sc telnetd -p 17179 start"</argument>
  <!-- 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) -->
  <argument>-VMPapple.laf.useScreenMenuBar="true"</argument>
  <!-- Optional parameter. Allows to get plug-ins translations -->
  <argument>-VMPweasis.i18n="${weasis.base.url}/weasis-i18n"</argument>
  <!-- Optional Weasis Documentation, appears in the menu Help > User Manual -->
  <!-- <argument>-VMPweasis.help.url="${weasis.base.url}/weasis-doc"</argument> -->
  <argument>$dicom:get -r http://www.dvminsight.com/test.dcm</argument>
    </application-desc>
  </jnlp>


nicolas...@gmail.com

unread,
Nov 29, 2013, 2:54:15 AM11/29/13
to dcm...@googlegroups.com
You must replace "${weasis.base.url}" by "http://www.dvminsight.com".

I would recommend to use weasis-pacs-connector (build JNLP + xml manifest) or JNLP-Builder (only build JNLP but let give in properties the URL of the manifest or the URL of images).

Stephen Walters

unread,
Dec 1, 2013, 6:33:46 PM12/1/13
to dcm...@googlegroups.com
Perfect!  That's exactly what was wrong!   I was assuming that the $ would be replaced with the base URL string.

FDH

unread,
Apr 1, 2022, 5:43:54 PM4/1/22
to dcm4che
please can you g+hel me? i have this error

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.6+" codebase="http://localhost:8080/weasis">

    <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>

        <icon href="images/logo-button.png" kind="default" />
        <icon href="images/about.png" kind="splash" />

        <shortcut online="false">
            <desktop />
            <menu submenu="Weasis" />
        </shortcut>

    </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" />

        <!-- Allows to get the file in pack200 compression -->
        <property name="jnlp.packEnabled" value="true" />

        <jar href="weasis-launcher.jar" main="true" />
        <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" />
    </resources>

    <application-desc main-class="org.weasis.launcher.WebstartLauncher">
        <!-- Should be in property tag of resources. Workaround for having a fully trusted application with dynamic jnlp (only
            since weasis 1.1.2, for previous version see revision=16573), 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) -->
        <argument>-VMPfelix.config.properties="http://localhost:8080/weasis/conf/config.properties"</argument>


        <!-- Optional parameter. Define the location of ext-config.properties (extend/override config.properties) -->
        <argument>-VMPfelix.extended.config.properties="http://localhost:8080/weasis/conf/ext-config.properties"</argument>


        <!-- Required parameter. Define the code base of Weasis for the JNLP -->
        <argument>-VMPweasis.codebase.url="http://localhost:8080/weasis"</argument>


        <!-- Required parameter. Start local OSGI console on the port 17179 -->
        <argument>-VMPgosh.args="-sc telnetd -p 17179 start"</argument>

        <!-- 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) -->
        <argument>-VMPapple.laf.useScreenMenuBar="true"</argument>

        <!-- Optional parameter. Allows to get plug-ins translations -->
        <argument>-VMPweasis.i18n="http://localhost:8080/weasis-i18n"</argument>


        <!-- Optional Weasis Documentation, appears in the menu Help > User Manual -->
        <!-- <argument>-VMPweasis.help.url="http://localhost:8080/weasis-doc"</argument> -->

        <argument>$dicom:get -i H4sIAAAAAAAAAIVSy27bMBC89ysI3kORetuIEqSWURjwQ5BkoMmlYCXGJqBHQlK1/fch9XDiXHoRF7szOzNY3T+e6wr8Y0LytokgQRgC1hRtyZtDBDv1ehdC8Pjw4/5Ey/bPe8fEBWhGIyMAj0q9zS3rdDqhE6OSS9SKg3WWJRwg87Pk0Q3K6RE2xsT6vVlnxZHV9I43UtGmYBAYjX26vnKqtqDVsZVqHuIQW2YMgWDvHRds11SXbJesRvJ+FUfwlVZSr6FlyZWO09AqoYLWTOl4EYSg1TkFL1nMi7bO6UGuuVRmoPMlVHHWKDC+Zh0m2CEBnFpbvSmC6S5OV7/2yxeQPOX5M0i3V8BPLtQxpkqjbEwC7GBynWXsHMFNr5SprryA/nvjniAbhS5GhDgBdhHRBUGe64eIuDMSurNZ4OkeHKgxk4Xgb6o/W74Ai/Rpu9yBbLVJ1ssJ8+nFJXhs5tzEIB72XWdsGXXbCVxv8McEZxIMz/8d+j7xB4cesXGIbDhSbxxOzW1X/2VCr4Jg05a04uoSwUXeC09a4Ptdv+kGRhn5wRddlxjdifRFxNJ7rUG6r0xcU4xnMeXnn/3wAbCff7UOAwAA</argument>
    </application-desc>
</jnlp>

Reply all
Reply to author
Forward
0 new messages