Skip to content

Which version of JCIFS is exposed to rhino scripts? #6260

Discussion options

You must be logged in to vote

In mirth 4.5 I get

Function importPackage must be called with a package; had "[JavaClass jcifs.config.BaseConfiguration]" instead.

I tried this instead:

var BaseConfiguration = Packages.jcifs.config.BaseConfiguration
var config = new BaseConfiguration()

Which gave me

Java constructor for "jcifs.config.BaseConfiguration" with arguments "" not found.

And that led me to believe that it was finding the class now, but it does not have a zero-argument constructor.

https://github.com/AgNO3/jcifs-ng/blob/2d5b46907f6614b4d600e96128e0060982e03760/src/main/java/jcifs/config/BaseConfiguration.java#L145-L164

The zero-argument constructor does exist, but it's protected, so you can't call it. It cal…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@tonygermano
Comment options

Comment options

You must be logged in to vote
2 replies
@tonygermano
Comment options

Answer selected by why-not-try-calmer
@why-not-try-calmer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants