One more comment, I was able to jar the whole kit and kaboodle together and
get that to run as well. This was also JDK8 if that didn't appear anywhere in
my comments.
Thanks again!
On Thursday, October 21, 2021, 01:39:54 PM EDT, James Agnew
<[email protected]> wrote:
Great!
For anyone else who finds this conversation.. I think the issue may have been
with the version of Java the testpanel was running against. Adding JNA as Randy
did would be one solution, using an older JDK (e.g. JDK6) would be another. The
testpanel is definitely known not to work currently on JDK 9+.
Cheers,James
On Thu, Oct 21, 2021 at 1:37 PM W. Randal Clegg <[email protected]> wrote:
Thanks James,
I did discover 2.3 and it mostly runs but reports this error:
C:\1health\ilr\trunk\hapi\hapi-testpanel-2.3>java -cp
"C:/1health/ilr/trunk/hapi/hapi-testpanel-2.3/jna-5.9.0.jar" -jar
hapi-testpanel-2.3-jar-with-dependencies.jar13:31:40,910 INFO [main] Home:47 -
hapi.home is set to C:\1health\ilr\trunk\hapi\hapi-testpanel-2.3\.13:31:41,131
INFO [main] Controller:133 - Restoring work files from directory:
C:\Users\Randy\HapiTestPanel\workfiles13:31:41,132 INFO [main]
MessagesList:174 - Restoring work file:
94803e3f-409a-408b-b082-4389e7c72057-0000000001.xml13:31:41,171 INFO [main]
VersionLogger:77 - HAPI version is: 2.313:31:41,173 INFO [main]
VersionLogger:65 - Default Structure libraries found for HL7 versions 2.1, 2.2,
2.3, 2.3.1, 2.4, 2.5, 2.5.1, 2.6, 2.7, 2.8, 2.8.1,13:31:41,404 INFO [main]
Hl7V2MessageCollection:899 - About to set source message for
collection13:31:41,406 INFO [main] Hl7V2MessageCollection:277 - Found ER7
message13:31:41,408 INFO [main] Hl7V2MessageBase:256 - About to parse
message13:31:41,467 INFO [main] Hl7V2MessageBase:272 - Done parsing
message13:31:41,468 INFO [main] Hl7V2MessageCollection:916 - Firing message
change event13:31:41,472 INFO [main] Hl7V2MessageCollection:927 - Done setting
source message for collectionjava.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498) at
ca.uhn.hl7v2.testpanel.App.main(App.java:82)Caused by:
java.lang.NoClassDefFoundError: com/sun/jna/Library at
java.lang.ClassLoader.defineClass1(Native Method) at
java.lang.ClassLoader.defineClass(ClassLoader.java:756) at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) at
java.net.URLClassLoader.access$100(URLClassLoader.java:74) at
java.net.URLClassLoader$1.run(URLClassLoader.java:369) at
java.net.URLClassLoader$1.run(URLClassLoader.java:363) at
java.security.AccessController.doPrivileged(Native Method) at
java.net.URLClassLoader.findClass(URLClassLoader.java:362) at
java.lang.ClassLoader.loadClass(ClassLoader.java:418) at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) at
java.lang.ClassLoader.loadClass(ClassLoader.java:351) at
ca.uhn.hl7v2.testpanel.WindowsInitializer.setCurrentProcessExplicitAppUserModelID(WindowsInitializer.java:44)
at
ca.uhn.hl7v2.testpanel.WindowsInitializer.run(WindowsInitializer.java:51)
... 5 moreCaused by: java.lang.ClassNotFoundException: com.sun.jna.Library
at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at
java.lang.ClassLoader.loadClass(ClassLoader.java:418) at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) at
java.lang.ClassLoader.loadClass(ClassLoader.java:351) ... 19
more13:31:41,519 INFO [AWT-EventQueue-0] Controller:885 - Starting TestPanel
Controller...13:31:41,709 INFO [AWT-EventQueue-0] TestPanelWindow:198 -
Setting window size to 1493 x 84013:31:41,710 WARN [AWT-EventQueue-0]
TestPanelWindow:135 - Unknown type is selected: null13:31:41,935 INFO
[AWT-EventQueue-0] Hl7V2MessageEditorPanel:119 - Registered syntaxKitOct 21,
2021 1:31:42 PM jsyntaxpane.DefaultSyntaxKit installINFO: Monospaced Fonts:
[Bookshelf Symbol 7, Combat Ready BTN, Consolas, Courier New, Lucida Console,
Lucida Sans Typewriter, MS Outlook, MS Reference Specialty, MT Extra, Marlett,
MingLiU-ExtB, MingLiU_HKSCS-ExtB, NSimSun, Prime Sans Mono, SimSun,
SimSun-ExtB, Symbol, Webdings, Wingdings, Wingdings 2, Wingdings 3]13:31:42,453
INFO [AWT-EventQueue-0] Er7SyntaxKit:51 - Font is: java.awt.Font[family=Lucida
Sans Typewriter,name=Lucida Sans Typewriter,style=plain,size=12]13:31:42,626
INFO [Thread-3] Hl7V2MessageTree:2371 - Running an update of the Message
Tree13:31:42,736 INFO [pool-1-thread-1] Prefs:741 - Syncing user preferences
to disk13:31:42,738 INFO [pool-1-thread-1] Prefs:748 - Done synchronizing user
prefs (3378 chars)13:31:42,840 INFO [pool-1-thread-1] Prefs:741 - Syncing user
preferences to disk13:31:42,841 INFO [pool-1-thread-1] Prefs:748 - Done
synchronizing user prefs (3378 chars)13:31:42,842 INFO [pool-1-thread-1]
Hl7V2MessageEr7:364 - Highlited path is now: /MSH-113:31:42,897 INFO
[Thread-4] Controller:1025 - HAPI TestPanel is up to date. Great!13:31:42,952
INFO [AWT-EventQueue-0] Hl7V2MessageTree:285 - Opening default paths
By unzipping the distribution and downloading and unzipping the jna-5.9.0.jar
into the same folder I did get it to run without error as a regular set of
classes.
Thanks again!
-Randy
On Thursday, October 21, 2021, 01:28:31 PM EDT, James Agnew
<[email protected]> wrote:
Hi Randy,
HAPI HL7v2 is definitely more in maintenance mode at this point as opposed to
being actively developed, but it's still an active project.
You can get a copy of the 2.3 release of the testpanel, which needs to be run
from the command line but does work, here:
https://github.com/hapifhir/hapi-hl7v2/releases/tag/v2.3
Cheers,James
On Thu, Oct 21, 2021 at 12:19 PM randy_clegg--- via Hl7api-devel
<[email protected]> wrote:
Hello,
I don’t know if HAPI is still in any sense supported, but I’d like to use it.
The TestPanel project will neither build nor run in the lastest distribution
(2.2). Further, the install link at HAPI – Installing HAPI TestPanel
(hapifhir.github.io) is broken Encountered a 404 error (sourceforge.net).
Any suggestions?
Thx,
-Randy Clegg
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel