Posts by tbuziak

    github version will not compile


    Hi, when I enter to http://localhost/cgi-bin/dgate, Conquest server hang end return below error.

    I needs to deactivate magazines from 0 to 6 (Keep it just for read only).
    But I would like MAGDevice7 to be used for write new images.
    Is it possible to set up a server to keep MAGDevice numbers?


    Summing up to run Weasis 2.5.2:


    - Installation of Tomcat7 + Oracle Java JDK7 (maybe with OpenJDK-7 also works)
    - Weasis war files from https://sourceforge.net/projects/dcm4che/files/Weasis/2.5.2/
    - Put all war files to tomcat7/webapps/ (restart tomcat7)
    - configuration files below (change http://192.168.1.218:8080 to yours tomcat server address)


    cgi-bin/dicom.ini

    Code
    [webdefaults]compress = jkviewer = weasisstudyviewer = studyweasis[weasis]source = viewers/LaunchWeasis.cqheader = Content-Type: application/x-java-jnlp-file\[studyweasis]source = viewers/LaunchWeasisStudy.cqheader = Content-Type: application/x-java-jnlp-file\[weasisseriesxml]source = viewers/weasisseriesxml.lua[weasisstudyxml]source = viewers/weasisstudyxml.lua


    viewers/LaunchWeasis.cq

    Code
    <jnlp spec="1.6+" version="" codebase="http://192.168.1.218: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> </information> <security> <all-permissions /> </security> <resources> <!-- Requires Java SE 8 for Weasis 2.5 and superior --> <j2se version="1.8+" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="512m" /> <j2se version="1.8+" initial-heap-size="128m" max-heap-size="512m" /> <jar href="http://192.168.1.218:8080/weasis/weasis-launcher.jar" main="true" /> <jar href="http://192.168.1.218:8080/weasis/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:8080/weasis/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:8080/weasis/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:8080/weasis-ext/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:8080/weasis" /> <!-- 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:8080/weasis-ext" /> <!-- 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:8080/weasis-i18n" /> <!-- Optional Weasis Documentation --> <!-- <property name="jnlp.weasis.weasis.help.url" value="${cdb}/../weasis-doc" /> --> </resources> <application-desc main-class="org.weasis.launcher.WebstartLauncher"> <argument>$dicom:get -w %webscriptadress%?%extra%&mode=weasisseriesxml&compress=%compress%&series=%series2%&dum=.xml</argument> </application-desc></jnlp>


    viewers/LaunchWeasisStudy.cq

    Code
    <jnlp spec="1.6+" version="" codebase="http://192.168.1.218: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> </information> <security> <all-permissions /> </security> <resources> <!-- Requires Java SE 8 for Weasis 2.5 and superior --> <j2se version="1.8+" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="512m" /> <j2se version="1.8+" initial-heap-size="128m" max-heap-size="512m" /> <jar href="http://192.168.1.218:8080/weasis/weasis-launcher.jar" main="true" /> <jar href="http://192.168.1.218:8080/weasis/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:8080/weasis/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:8080/weasis/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:8080/weasis-ext/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:8080/weasis" /> <!-- 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:8080/weasis-ext" /> <!-- 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:8080/weasis-i18n" /> <!-- Optional Weasis Documentation --> <!-- <property name="jnlp.weasis.weasis.help.url" value="${cdb}/../weasis-doc" /> --> </resources> <application-desc main-class="org.weasis.launcher.WebstartLauncher"> <argument>$dicom:get -w %webscriptadress%?%extra%&mode=weasisstudyxml&compress=%compress%&study=%study2%&dum=.xml</argument> </application-desc></jnlp>


    viewers/weasisseriesxml.lua

    Code
    print('Content-Type: application/xml\n')local patid = string.gsub(series2, ':.*$', '')local seriesuid = string.gsub(series2, '^.*:', '')local q = DicomObject:new()q.QueryRetrieveLevel = 'IMAGE'q.PatientID = patidq.SeriesInstanceUID = seriesuidq.SOPInstanceUID = ''q.PatientBirthDate = ''q.PatientName = ''q.StudyInstanceUID = ''q.StudyDescription = ''q.StudyDate = ''q.StudyTime = ''q.SeriesDescription = ''q.SeriesNumber = ''q.Modality = ''q.ImageNumber = ''r = dicomquery(servercommand('get_param:MyACRNema'), 'IMAGE', q)wt = ""if compress=='J3' or compress=='j3' then wt = ' WadoTransferSyntaxUID="1.2.840.10008.1.2.4.50"' endif compress=='J4' or compress=='j4' then wt = ' WadoTransferSyntaxUID="1.2.840.10008.1.2.4.51"' endif compress=='J5' or compress=='j5' then wt = ' WadoTransferSyntaxUID="1.2.840.10008.1.2.4.53"' endif compress=='J1' or compress=='j1' then wt = ' WadoTransferSyntaxUID="1.2.840.10008.1.2.4.55"' endif compress=='J2' or compress=='j2' then wt = ' WadoTransferSyntaxUID="1.2.840.10008.1.2.4.57"' endif compress=='J1' or compress=='j1' then wt = ' WadoTransferSyntaxUID="1.2.840.10008.1.2.4.70"' endif compress=='JK' or compress=='jk' then wt = ' WadoTransferSyntaxUID="1.2.840.10008.1.2.4.90"' endif compress=='JL' or compress=='jl' then wt = ' WadoTransferSyntaxUID="1.2.840.10008.1.2.4.91"' endlocal s = DicomObject:new()print([[<?xml version="1.0" encoding="utf-8" ?><manifest xmlns="http://www.weasis.org/xsd/2.5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><arcQuery arcId="1000" baseUrl="]]..webscriptadress..[[" requireOnlySOPInstanceUID="false" additionnalParameters="" > <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..[[" > <Series SeriesInstanceUID="]]..r[0].SeriesInstanceUID..[[" SeriesDescription="]]..r[0].SeriesDescription..[[" SeriesNumber="]]..r[0].SeriesNumber..[[" Modality="]]..r[0].Modality..[["]]..wt..[[ >]])for i=0, #r-1 do print([[<Instance SOPInstanceUID="]]..r[i].SOPInstanceUID..[[" InstanceNumber="]]..i..[[" />]])endprint([[ </Series> </Study> </Patient></arcQuery></manifest>]])


    viewers/weasisstudyxml.lua

    tries to use weasis-pacs-connector and work well, I was able to get xml


    Weasis 2.5.2 work when placed on Tomcat7.


    JNLP look:



    When I use http://192.168.1.218/cgi-bin/d…0170222112803184&dum=.xml
    weasis starts, images are loaded, but then disappears, and becomes a blank window !!

    Hi, I use Weasis 2.0.7 with Conquest Dicom Server and works great, dgate generates jnlp + xml, but after updating weasis to 2.5 or 2.5.2 occurs mentioned error. I have java 1.8.121 on workstation.


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


    hi, my export rule is

    Code
    ExportConverters = 1
    ExportModality0 = CR
    ExportConverter0 = save jpg as %p/%b.dcm.jpg


    how should look the rule to write jpeg in negative?

    hi, I have the same error (Error reading dView2.Cursor3D: Property does not exist) on debian 7, my config is:


    Code
    ...WebServerFor = 192.168.3.90TCPPort = 4006...WebScriptAddress = http://192.168.3.90/cgi-bin/dgate...[webdefaults]size = 560dsize = 0compress = n4iconsize = 48graphic = gifviewer = seriesviewer


    addres from IE9:

    Code
    http://192.168.3.90/cgi-bin/dgate?port=4006&address=192.168.3.90&mode=seriesviewer&series=64389:1.2.392.200036.9125.3.4819992358.64714063430.24722226&size=560


    source code:


    ActiveFormProj1.ocx is registered in windows.
    I have no idea what I'm doing wrong, thanks for any advice.