Weasis help

  • 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

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

    Code
    [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
    <?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


    Thanks in advance,
    Luiz

  • Hi Luiz,


    you need 1.4.17c to run in the web server such that the scripts work. Not sure if you need to upgrade the dicom server itself too, I guess not.


    Maybe best to start with all 1.4.17c files for cgi-bin.


    Marcel

  • Hi,


    the entries:


    [weasisseriesxml]
    source = viewers\weasisseriesxml.lua


    [weasisstudyxml]
    source = viewers\weasisstudyxml.lua


    are missing from the dicom.ini from the distribution. If you add those everything works.


    Marcel

  • Mr Marcel,


    Thansk for your response.


    If you look at my dicom.ini I already have setttings to
    [weasisseriesxml]
    source = weasisseriesxml.lua


    [weasisstudyxml]
    source = weasisstudyxml.lua


    I had put all .lua, .cq into cgi-bin.
    I just created a viewers subdirectory and move all .lua and .cq files to it.


    I think it make no difference the location of .lua or .cq, since thy are setting in dicom.ini correcttly. I already have weasis working and showing images when I call studies via tomcat. Eg; http://my_site_with_tomcat/weasis-pacs- ... entID=XXXX all works well showing stuydies.


    I just change dgate.exe from to 1.4.17c .



    To upgrade to 1.4.17c , I only substitue dgate.exe on conquest server and on my cgi-bin. Is it ok?


    After it I test again and when I call studies via tomcat. Eg; http://my_site_with_tomcat/weasis-pacs- ... entID=XXXX all works well showing stuydies images.
    But, If i use weasis serie viewer with dgate: http://my_site_with_apache/cgi-bin/dgat ... 7183692%27, JRE is showing and ask for confirmation to execute the file. I agree to execute and i have tyhe same exception after.


    The exception occurs only with weasis series viewer via dgate.exe on apache.


    I have all last files in cgi-bin, cgi-bin/viewers.


    The dgate.exe on apache server and conquest server is the same as 1.4.17c .


    Regards,
    Luiz

  • Hi Luiz,


    are these files OK?


    ACRNemaMap = C:\wamp\www\dicomserver\acrnema.map
    Dictionary = C:\wamp\www\dicomserver\dgate.dic


    And is the servers own AE, IP and port specified in acrnema.map?


    Marcel

  • Mr Marcel,


    >>are these files OK?
    >>ACRNemaMap = C:\wamp\www\dicomserver\acrnema.map
    >>Dictionary = C:\wamp\www\dicomserver\dgate.dic
    Yes, It was setting ok. I just copied these files from my other PC running Conquest Server and put them in the other PC running WAMP.
    They are identical copies from files of my other PC running conquest server.


    I am using firefox 26.0 with windows XP.
    if I change the dicom.ini configuration to viewer = imagejaviewer all works well. But with weasisviewer, I have an exception and Weasis doesn´t load.


    I also tested it with a notebook running win 7. In this case, weasis viewer is loading but no imagens are showing.



    I don´t know if the next log help, but I get the next log in java console when the error occurs:


    Here is the log from java console in WIN XP:
    "Usando a versão do JRE 1.7.0_45-b18 Java HotSpot(TM) Client VM
    Diretório home do usuário = C:\Documents and Settings\Luiz
    ----------------------------------------------------
    c: limpar janela da console
    f: concluir objetos da fila de finalização
    g: coleta de lixo
    h: exibir esta mensagem de ajuda
    m: imprimir uso de memória
    o: log do trigger
    p: recarregar configuração do proxy
    q: ocultar console
    r: recarregar configuração da política
    s: descartar propriedades do sistema e de implantação
    t: descartar lista de threads
    v: descartar pilha de threads
    0-5: definir nível de rastreamento como <n>
    ----------------------------------------------------
    Cannot read properties file: file:/C:/DOCUME~1/Luiz/CONFIG~1/Temp/conf/config.properties
    Cannot read properties file: file:/C:/DOCUME~1/Luiz/CONFIG~1/Temp/conf/ext-config.properties


    ***** Starting Configuration *****
    Operating system: windows-x86
    #### Java Web Start Error:
    #### null
    "
    Luiz

  • Mr Marcel,


    Only as additional information, here is my acrnema.map.
    On PC runnning conquest server it is in default location directory
    and on pc running WAMP : C:\wamp\www\dicomserver\acrnema.map


    "
    CONQUESTSRV1 192.168.10.7 3010 un
    Eleva 192.168.10.8 3050 un
    ...
    ...


    "
    Luiz

  • Mr Marcel,


    I have installed JRE 1.7.0_45 and JRE 1.6.0_31.


    At https://groups.google.com/forum/#!topic/dcm4che/L3d_Oer2qGU and https://groups.google.com/forum/#!topic/dcm4che/bOzKxH9EH6c, I found something about this problem related for others weasis users. Here is a snippet.


    "Except the Java security restrictions described here, I forgot to mention another blocking issue (since JRE 1.7.0_40) which only allows to put property in resources when starting with "java." or "jnlp." in jnlp file. This issue has been fixed since Weasis 1.1.2 and in recent versions of weasis-pacs-connector. So, it concerns only other implementations that build the jnlp file (also the old dcm4chee-web implementation), see the workaround in the updated documentation on how to build jnlp."


    If this is the problem, could you provide a fix?


    Thanks in advance
    Luiz

  • Hi,


    I indeed use an older jav. You can try to use the updated jnlp file from:


    http://www.dcm4che.org/conflue…sis+from+any+environments


    to create a new launcweasis.cq


    And insert:


    <argument>$dicom:get -w %webscriptadress%?%extra%&mode=weasisseriesxml&series=%series2%&dum=.xml </argument>

    in the correct place. This should enable the workaround.


    Marcel

  • Mr Marcel.


    Thank you. The first part is solved. I had success loading series.


    But with studies I have another problem.
    I have settings in dicom.ini to
    viewer = weasisviewer
    studyviewer = weasisstudyviewer


    [weasisviewer]
    source = viewers\launchWeasis.cq
    header = Content-Type: application/x-java-jnlp-file\


    [weasisseriesxml]
    source = viewers\weasisseriesxml.lua


    [weasisstudyviewer]
    source = viewers\launchWeasisStudy.cq
    header = Content-Type: application/x-java-jnlp-file\


    [weasisstudyxml]
    source = viewers\weasissstudyxml.lua


    Here is my jnlp to studies:



    I did similar modifications at launchWeasisStudy.cq. But I am having the next error.



    ***** Starting Configuration *****
    Operating system: windows-x86
    Installation directory: C:\Documents and Settings\Luiz\.weasis
    weasis.language: en
    weasis.country: US
    weasis.variant:
    weasis.confirm.closing: true
    weasis.export.dicom: true
    org.apache.sling.commons.log.level: INFO
    org.apache.sling.commons.log.file:
    org.apache.sling.commons.log.file.number: 5
    org.apache.sling.commons.log.file.size: 10MB
    org.apache.sling.commons.log.pattern: {0,date,dd.MM.yyyy HH:mm:ss.SSS} *{4}* [{2}] {3} {5}
    weasis.look: org.pushingpixels.substance.api.skin.SubstanceTwilightLookAndFeel
    Last running version: 1.2.7
    Current version: 1.2.7
    ***** End of Configuration *****


    Weasis Starting...
    ========================


    13.01.2014 16:29:15.252 *INFO* [FelixStartLevel] org.apache.sling.commons.log.internal.LogManager LogManager: Logging set up from context
    ____________________________
    Welcome to Apache Felix Gogo


    telnetd is running on 127.0.0.1:17179
    13.01.2014 16:29:15.987 *INFO* [FelixStartLevel] org.weasis.core.api.internal.Activator Register Codec Plug-in: Sun java imageio
    13.01.2014 16:29:16.018 *INFO* [FelixStartLevel] org.weasis.core.api.internal.Activator Register Codec Plug-in: dcm4che
    13.01.2014 16:29:16.409 *INFO* [AWT-EventQueue-2] org.weasis.base.ui.gui.WeasisWin End of loading the GUI...
    13.01.2014 16:29:16.971 *INFO* [pool-1-thread-1] org.weasis.dicom.explorer.wado.DownloadManager Downloading WADO references: http://mysite.myvnc.com/cgi-bi….1332978647125.1&dum=.xml
    java.io.IOException: Server returned HTTP response code: 500 for URL: http://177.43.160.62:8040/cgi-….1332978647125.1&dum=.xml
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at org.weasis.dicom.explorer.wado.DownloadManager.buildDicomSeriesFromXml(DownloadManager.java)
    at org.weasis.dicom.explorer.wado.LoadRemoteDicomManifest.doInBackground(LoadRemoteDicomManifest.java)
    at org.weasis.dicom.explorer.wado.LoadRemoteDicomManifest.doInBackground(LoadRemoteDicomManifest.java)
    at javax.swing.SwingWorker$1.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at javax.swing.SwingWorker.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)



    Could you give me a clue?


    Luiz

  • >>I cannot see what is wrong. Can you load the xml file with the link:
    >>http://177.43.160.62:8040/cgi-bin/dgate ... 1&dum=.xml
    I can´t.
    I get
    "Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log."

    I have no problem with series viewer, only with studies.
    My LaunchWeasis.cq is working.
    My LaunchWeasisStudy.cq is not working.


    My dicom.ini is:

    Code
    [sscscp]MicroPACS = sscscpkFactorFile = C:\wamp\www\dicomserver\dicom.sqlTruncateFieldNames = 10 WebServerFor = 192.168.10.7TCPPort = 3010ACRNemaMap = C:\wamp\www\dicomserver\acrnema.mapDictionary = C:\wamp\www\dicomserver\dgate.dicMyACRNema = CONQUESTSRV1WebScriptAddress = http://mysite.com.net:8040/cgi-bin/dgate.exeWebReadonly = 1WebPush = 0[webdefaults]size = 560dsize = 0compress = uniconsize = 48 graphic = gifviewer = weasisviewerstudyviewer = weasisstudyviewer[weasisviewer]source = viewers\launchWeasis.cqheader = Content-Type: application/x-java-jnlp-file\[weasisseriesxml]source = viewers\weasisseriesxml.lua[weasisstudyviewer]source = viewers\launchWeasisStudy.cqheader = Content-Type: application/x-java-jnlp-file\[weasisstudyxml]source = viewers\weasissstudyxml.lua


    My LaunchWeasisStudy.cq is:

    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+" 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=weasisstudyxml&study=%study2%&dum=.xml </argument> </application-desc> </jnlp>


    My LaunchWeasis.cq is:


    Thanks for your help,


    Luiz

  • Hi, Mr Marcel,


    >>it works for me 1.4.17c release. Is this the weasisstudyxml.lua
    I am using a copy of weasisstudyxml.lua from 1.4.17c.
    I don´t understand why weasisseriesxml.lua works and weasisstudyxml.lua doesn´t work.


    To locate the problem, Is possible use only parts of weasisstudyxml.lua for test?
    Could you suggest something?



    Here is my weasisstudyxml.lua:


    Regards,
    Luiz

  • Nver mind, I make a typo in dicom.ini
    [weasisstudyxml]
    source = viewers\weasissstudyxml.lua ----> I put many "s" letters
    The correct would be source = viewers\weasisstudyxml.lua


    Thank you so much for your help.


    I have another question. I don´t know if I need open a new topic.


    Is it possible you help to setting jpeg compression to send imagens from CQ via dicom wado server to client browser.
    My imagens are stored uncompressed in conquest server.


    Best regards,
    Luiz

  • Hi,


    Great that it is solved. Can you please post both updated cq files in the weasis 'sticky' post, so that others can find them as well? In addition, the WADO server responds to compression requests, so if you ask for jpeg (transferSyntax=1.2.840.10008.1.2.4.55) in the WADO request through the weasisseriesxml file conquest should compress on the fly. You will have to lookup weasis examples on how to do that.


    Marcel

  • Mr Marcel,
    >>Great that it is solved. Can you please post both updated cq files in the weasis 'sticky' post, so that others can find them as well?
    Certainly, I will do. But, sorry, my English is not so good. What is 'sticky' post? Is the current post or that I change the subject adding "Solved"? Or I have to create a new topic to post the files?


    >> In addition, the WADO server responds to compression requests, so if you ask for jpeg (transferSyntax=1.2.840.10008.1.2.4.55) in the WADO request through the weasisseriesxml >>file conquest should compress on the fly. You will have to lookup weasis examples on how to do that.
    I am going lookup weasis examples on how to do that.
    Do i have to change some configuration in dicom.ini?


    Regards,
    Luiz

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!