I am working on consolidating multiple plugins that used Appian versions 22.4.0 and 20.4.0.My consolidated plugins is being developed on Appian version 22.4.0.
However, I am getting the following error:
NamedTypedValue.class cannot access com.appiancorp.core.expr.portable.PortableNamedTypedValue
How would you solve such problem ?
Thanks,
-Bek
Discussion posts and replies are publicly visible
Recommend, Recompile all plugins with SDK 22.4.0 and Java 8 to match your runtime environment.
Thanks for the response.I am using appian version 22.4 and compiling using java 8.
I am running it locally using version 22.4 jar in .m2 repository.
I don't see the following class:
When I try to search for the missing compiled class in the jar, using java's jdk command , the class is actually missing.Yet the class appears as one of the imports of the "com.appiancorp.suiteapi.type.NamedTypedValue.class"I hope that give you more context to my issue.
Why don't you reference the sdk library (as external libraru) directly in you project and check if it works?
Hi David,
Thanks for the reply.I didn't think that would solve my problem since it is able to locate the jar from my .m2 forlder.
This is the class that is not able to access another compiled class which it imports:
Could you be missing some dependency in your POM file?
And could you get the SDK (which is included in the installation) and use it as a reference rather than using the dependency (which only encapsulates the call to the SDK)?
The imported classes referenced in a compiled class coming from the jar should also be in that same jar.The example I shared is the NamedTypedValue.class which I am able to find in the appian jar ver 22.4. But one of the classes referenced by the NamedTypedValue.class (com.appiancorp.core.expr.portable.PortableNamedTypedValue) is missing in the same jar.
That's because in java, you can reference in your class classes located in another library- Probably the class PortableNamedTypedvalue is located in another jar.
That's why you add dependencies in your pom project, or the classpath if you are using a non maven project
Got it. I think you are correct.I am reading that the com.appiancorp.core.expr.portable.PortableNamedTypedValue is not publicly available since it is an internal class. Any idea what dependency/jar I can find it at ?