Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I got error in Mirth Connect #4251

Open
szekPeti opened this issue Jul 4, 2024 · 0 comments
Open

I got error in Mirth Connect #4251

szekPeti opened this issue Jul 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@szekPeti
Copy link

szekPeti commented Jul 4, 2024

Describe the bug
I got same error.

Environment
Which version of LinuxForHealth FHIR Server?
1.1.0
To Reproduce
Mirth Connect
Steps to reproduce the behavior:
I use the jar file in resources with all dependencies.
Here how I would like to use in Mirt connect channel:

var HL7ToFHIRConverter = Packages.io.github.linuxforhealth.hl7.HL7ToFHIRConverter;
var converter = new HL7ToFHIRConverter();

After I send the message I got error message:
Transformer error
ERROR MESSAGE: Error evaluating transformer
java.lang.NoClassDefFoundError: Could not initialize class io.github.linuxforhealth.hl7.data.SimpleDataTypeMapper
at io.github.linuxforhealth.hl7.expression.variable.DataTypeVariable.(DataTypeVariable.java:40)
at io.github.linuxforhealth.hl7.expression.variable.VariableGenerator.parse(VariableGenerator.java:47)
at io.github.linuxforhealth.hl7.expression.ExpressionAttributes.(ExpressionAttributes.java:91)
at io.github.linuxforhealth.hl7.expression.ExpressionAttributes$Builder.build(ExpressionAttributes.java:360)
at jdk.internal.reflect.GeneratedMethodAccessor212.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at com.fasterxml.jackson.databind.deser.BuilderBasedDeserializer.finishBuild(BuilderBasedDeserializer.java:200)
at com.fasterxml.jackson.databind.deser.BuilderBasedDeserializer.deserialize(BuilderBasedDeserializer.java:217)
at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:4388)
at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:4324)
at io.github.linuxforhealth.hl7.resource.deserializer.HL7DataBasedResourceDeserializer.generateExpressions(HL7DataBasedResourceDeserializer.java:100)
at io.github.linuxforhealth.hl7.resource.deserializer.HL7DataBasedResourceDeserializer.deserialize(HL7DataBasedResourceDeserializer.java:69)
at io.github.linuxforhealth.hl7.resource.deserializer.HL7DataBasedResourceDeserializer.deserialize(HL7DataBasedResourceDeserializer.java:31)
at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:323)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4674)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3629)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3597)
at io.github.linuxforhealth.hl7.resource.ResourceReader.generateResourceModel(ResourceReader.java:215)
at io.github.linuxforhealth.hl7.message.HL7FHIRResourceTemplateAttributes.generateResourceModel(HL7FHIRResourceTemplateAttributes.java:91)
at io.github.linuxforhealth.hl7.message.HL7FHIRResourceTemplateAttributes.(HL7FHIRResourceTemplateAttributes.java:46)
at io.github.linuxforhealth.hl7.message.HL7FHIRResourceTemplateAttributes$Builder.build(HL7FHIRResourceTemplateAttributes.java:165)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at com.fasterxml.jackson.databind.deser.BuilderBasedDeserializer.finishBuild(BuilderBasedDeserializer.java:200)
at com.fasterxml.jackson.databind.deser.BuilderBasedDeserializer.deserialize(BuilderBasedDeserializer.java:217)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer._deserializeFromArray(CollectionDeserializer.java:355)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:244)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:28)
at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:4388)
at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:4334)
at io.github.linuxforhealth.hl7.resource.ResourceReader.getMessageModel(ResourceReader.java:186)
at io.github.linuxforhealth.hl7.resource.ResourceReader.getMessageTemplates(ResourceReader.java:129)
at io.github.linuxforhealth.hl7.HL7ToFHIRConverter.(HL7ToFHIRConverter.java:55)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.mozilla.javascript.MemberBox.newInstance(MemberBox.java:171)
at org.mozilla.javascript.NativeJavaClass.constructInternal(NativeJavaClass.java:268)
at org.mozilla.javascript.NativeJavaClass.constructSpecific(NativeJavaClass.java:207)
at org.mozilla.javascript.NativeJavaClass.construct(NativeJavaClass.java:169)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1736)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1013)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:412)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3578)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:121)
at com.mirth.connect.server.util.javascript.JavaScriptTask.executeScript(JavaScriptTask.java:151)
at com.mirth.connect.server.transformers.JavaScriptFilterTransformer$FilterTransformerTask.doCall(JavaScriptFilterTransformer.java:224)
at com.mirth.connect.server.transformers.JavaScriptFilterTransformer$FilterTransformerTask.doCall(JavaScriptFilterTransformer.java:187)
at com.mirth.connect.server.util.javascript.JavaScriptTask.call(JavaScriptTask.java:114)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NoClassDefFoundError: org/hl7/fhir/exceptions/FHIRException [in thread "Destination Filter/Transformer JavaScript Task on 1 EESZT Delete Request (78e13710-c652-42fd-bb34-20661155335a), Send to BSI (1) < pool-1-thread-11"]
at io.github.linuxforhealth.hl7.data.SimpleDataTypeMapper.(SimpleDataTypeMapper.java:13)
at io.github.linuxforhealth.hl7.expression.variable.DataTypeVariable.(DataTypeVariable.java:40)
at io.github.linuxforhealth.hl7.expression.variable.VariableGenerator.parse(VariableGenerator.java:47)
at io.github.linuxforhealth.hl7.expression.ExpressionAttributes.(ExpressionAttributes.java:91)
at io.github.linuxforhealth.hl7.expression.ExpressionAttributes$Builder.build(ExpressionAttributes.java:360)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

Do you have any idea where the problem is? Is it correct like this?

@szekPeti szekPeti added the bug Something isn't working label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant