Posts by phskate

    Hi,
    ok i downloaded the newest version of weasis portable (1.1.1?) and configure the parameters.
    (I wanna get it started with Windows)
    The Web-Interface works fine now and i get a dgate.jnlp data, by clicking on the "view" button.
    By opening the jnlp file, weasis is getting downloaded, but i get this error message:
    (and weasis doesnt start) :/


    I hope you can help me :/
    (I attached all files i have changed)


    Thanks a lot!!!
    phskate


    Error Message:


    java.lang.NullPointerException
    at java.io.File.<init>(Unknown Source)
    at org.weasis.launcher.WeasisLauncher.loadProperties(WeasisLauncher.java:647)
    at org.weasis.launcher.WeasisLauncher.launch(WeasisLauncher.java:238)
    at org.weasis.launcher.WebstartLauncher.main(WebstartLauncher.java:60)
    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)



    My jnlp File:

    XML
    <?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://127.0.0.1/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="http://127.0.0.1/weasis/conf/config.properties"</argument> <!-- Optional parameter. Define the location of ext-config.properties (extend/override config.properties) --> <argument>-VMPfelix.extended.config.properties="http://127.0.0.1/weasis/conf/ext-config.properties"</argument> <!-- Required parameter. Define the code base of Weasis for the JNLP --> <argument>-VMPweasis.codebase.url="http://127.0.0.1/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://127.0.0.1/weasis-i18n"</argument> <!-- Optional Weasis Documentation, appears in the menu Help > User Manual --> <!-- <argument>-VMPweasis.help.url="http://127.0.0.1/weasis-doc"</argument> --> <!-- ======================================================================================================= --> <argument>$dicom:get -w http://127.0.0.1/cgi-bin/dgate.exe?port=5678&address=127.0.0.1&mode=weasisseriesxml&series=0009703828:1.3.46.670589.5.2.10.2156913941.892665339.860724&dum=.xml</argument> </application-desc> </jnlp>


    My dicom.ini:

    Code
    ## This file contains configuration information for the conquest cgi web server;# it must be in the same directory as the dgate.exe in the web server script directory.# For wamp: dgate.exe runs if it is put in C:\wamp\Apache2\cgi-bin# The server home page is then "http://127.0.0.1/cgi-bin/dgate.exe?mode=top"# The cgi interface has been tested with wamp5, dgate4.12d, and ie6sp1## modified 20070213: default to n4, note about ocx only required on client# modified 20080902: webreadonly ON; graphics and viewer configs; sample scripted web pages# modified 20101121: Added wadoservers section# modified 20120213: Added SQLServer, SqLite (enables lua dbquery and sql, see sample3)# modified 20120213: Added ACRNemaMap, Dictionay (enables lua dicomquery, see sample3)# modified 20120219: Organized the general samples, ecrf, soap and json# modified 20130528: Added new viewers, OpenCLinica; For 1.4.17 release[sscscp]MicroPACS = sscscpTempdir = c:\temp# database layout (copy dicom.sql to the web server script directory or point to the one in your dicom server directory)kFactorFile = c:\dicomserver\dicom.sqlTruncateFieldNames = 10# gives access to the SQL server of the DICOM server# use of independent database is also allowed (depends on scripts used)SQLServer = c:\dicomserver\data\dbase\conquest.db3SQlite = 1# gives access to all DICOM servers known in acrnema.mapACRNemaMap = C:\dicomserver\acrnema.mapDictionary = C:\dicomserver\dgate.dic# default IP address and port of DICOM server (may be non-local, web pages empty if wrong)WebServerFor = 127.0.0.1TCPPort = 5678# AE title: only used if web client originates queries or movesMyACRNema = CONQUESTSRV1# path to script engine: ocx will not download images if wrong - shows as black square with controls# for wamp: dgate.exe runs if it is put in C:\wamp\Apache2\cgi-binWebScriptAddress = http://127.0.0.1/cgi-bin/dgate.exe# web or local location of ActiveFormProj1.ocx for download (include trailing / or \)# the activeX control will not download if wrong or security too high - shows as white square with red x# note: it only needs to be registered by the client, not the server!# for wamp: the ocx canNOT be in C:\wamp\Apache2\cgi-bin, I put it in c:\wamp\www (above cgi-bin)# - the default value is derived from WebScriptAddress#WebCodeBase = http://127.0.0.1/# if set to 1 (default), the web user cannot edit databases and (in future) other things# webpush enables push of data to other serversWebReadonly = 0WebPush = 1# this is an optional virtual directory used to http: all images from mag0# this entry is experimental and unused except for viewer=seriesviewer2# in this mode (only) ocx will not download images if wrong - shows as black square with # controls - the default value is derived from WebScriptAddress#WebMAG0Address = http://127.0.0.1/mag0# excerpt from C:\wamp\Apache2\conf\httpd.conf required for WebMAG0Address (un-# there)# or use the wamp traybar menu to create the alias#Alias /mag0/ "c:/dicomserver/data/" ##<Directory "c:/dicomserver/data"># Options Indexes MultiViews# AllowOverride None# Order allow,deny# Allow from all#</Directory># these settings control size of slice and series viewers, max size of transmitted dicom images # (0=original), compression for images sent to the activex (may be un,n1..4,j1,j2), the size of # the icons in the image list, the image type used for icons and slice display, and the dgate # mode containing the viewer (may be seriesviewer, seriesviewer2, noviewer, serversideviewer, # or aiviewer - java code of the latter not included with 1.4.14).# note: all items require at least one space left and right of the '=' ![webdefaults]size = 560dsize = 0compress = uniconsize = 48graphic = gifviewer = weasisviewerstudyviewer = weasisstudyviewer# enter address (up to not including the ?) of the WADO server for each DICOM AE listed# the sample (for AE TESTWADOSRV) comes from the DICOM standard and is not valid# the default is the local conquest server (which could use virtualservers as WADO bridge)# These WADO entries are used in 'list .... on ....'#[wadoservers]#TESTWADOSRV = http://www.hospital-stmarco/radiology/wado.php#bridge = AEOFDICOMSERVER# Here are scripted series viewers: ImageJA, dwv, flexviewer (=aiviewer), weasis# And one scripted study viewer: studyweasis[imagejaviewer]source = viewers\imagejaviewer.cq[dwv]source = viewers\dwv.lua[flexviewer]source = viewers\flexviewer.lua[weasisviewer]source = viewers\launchWeasis.cqheader = Content-Type: application/x-java-jnlp-file\[weasisstudyviewer]source = viewers\launchWeasisStudy.cqheader = Content-Type: application/x-java-jnlp-file\[weasisseriesxml]source = viewers\weasisseriesxml.lua[weasisstudyxml]source = viewers\weasisstudyxml.lua[DefaultPage]source = *.lua[OpenClinica]Source=(local)TargetServer=user@server.domain:password=xxxxx# Below here are all samples with no clear functionality# Here are some sample web pages to show how scripting works# this creates web page http://xxxxx/cgi-bin/dgate.exe?mode=sample[sample]variable = sample 1source = samples\sample.cq# this creates web page http://xxxxx/cgi-bin/dgate.exe?mode=sample2# This sample posts a file# Note: in the header parameter newline is written as \[sample2]variable = sample 2header= Content-type: text/html\Cache-Control: no-cache\line0 = <HEAD><TITLE>Conquest DICOM server - %variable%</TITLE></HEAD>line1 = <BODY BGCOLOR='CFDFCF'>line2 = <H2>Conquest DICOM server - %query_string%</H2>line3 = <FORM ACTION="dgate.exe" METHOD=POST ENCTYPE="multipart/form-data">line4 = <INPUT NAME=mode TYPE=HIDDEN VALUE=soaprequest>line5 = <INPUT NAME=port TYPE=HIDDEN VALUE=5678>line6 = <INPUT NAME=address TYPE=HIDDEN VALUE=127.0.0.1>line7 = Upload file to enter into server (dcm/v2/HL7/zip/7z/gz/tar): <INPUT NAME=filetoupload SIZE=40 TYPE=file VALUE=>line8 = <INPUT TYPE=SUBMIT VALUE=Go>line9 = </FORM>line10 = </BODY># this creates a web page scripted in lua http://xxxxx/cgi-bin/dgate.exe?mode=sample3#[sample3]#source = samples\sample3.lua# these entries create an experimental SOAP interface scripted in lua[wsdl]source = soap\wsdl.xmlheader = Content-type: text/xml\[soaprequest]source = soap\soaprequest.lua# these entries create an experimental JSON interface scripted in lua[sample4]source = json\json_sample.htmlheader = Content-type: text/html\Cache-Control: no-cache\[jsonrequest]source = json\jsonrequest.lua# these entries create a simple eCRF interface# ..?mode=studyfinder&dest=CONQUESTSRV1&key=afc0501:baseline&query==2040XXXX# creates SQL database and enters information[markstudy]source = ecrf\markstudyseries.luacaption= Select for submission[markseries]source = ecrf\markstudyseries.luacaption= Select for submission# show SQL database and selects processing[shoppingcart]source = ecrf\shoppingcart.luacaption= Process selected data# process information[ecrfprocess]source = ecrf\ecrfprocess.lua# new query form[queryforecrf]source = ecrf\queryforecrf.lua


    Launchweasis:

    XML
    <?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://%server_name%/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="http://%server_name%/weasis/conf/config.properties"</argument> <!-- Optional parameter. Define the location of ext-config.properties (extend/override config.properties) --> <argument>-VMPfelix.extended.config.properties="http://%server_name%/weasis/conf/ext-config.properties"</argument> <!-- Required parameter. Define the code base of Weasis for the JNLP --> <argument>-VMPweasis.codebase.url="http://%server_name%/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>


    Launweasisstudy:

    Hi,
    im trying to do the same with my conquest server.
    I got the newest version from sourceforge and the server and the web interface doing well.
    But by clicking the button "view" at the web-interface, i get a "dgate.exe" to download and not a jnlp File for weasis.


    Is there any link wrong?
    I changed the files in the web server directonary (dicom.ini, launchweasis, launchweasisstudy) and install the weasis-portable files.


    %server-name% has to be added in your code, right? is this the ip or CONQUESTSRV1?



    Thx