Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Develop a plugin with SDK, examples fails

Not the first time I thought that I should develop my own plugin instead of the built in macros or embedded "<html>" code over the last 10 years...

I download the SDK and try to follow the instructions - the project builds, but the plugin fails to load for some reason.

Then I download any of the examples provided in the SDK instructions - these also fail to start...

After trying some other versions of the SDK I give up and try on my Linux computer - they also fail.

Then I wait a few years and try again... This time fails with some other error...

This time I thought I'd ask the question to the community.

environment:



C:\atlas-version

ATLAS Version: 8.2.6
ATLAS Home: C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.6
ATLAS Scripts: C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.6\bin
ATLAS Maven Home: C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.6\apache-maven-3.5.4
AMPS Version: 8.1.0
--------
[INFO] Project POM found
Executing: "C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.6\apache-maven-3.5.4\bin\mvn.cmd" --version -gs C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.6\apache-maven-3.5.4/conf/settings.xml
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T20:33:14+02:00)
Maven home: C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.6\apache-maven-3.5.4\bin\..
Java version: 1.8.0_282, vendor: AdoptOpenJDK, runtime: C:\Program Files\AdoptOpenJDK\jdk-8.0.282.8-hotspot\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

...

atlasrun:

[INFO] [talledLocalContainer] apr 02, 2021 6:24:33 EM org.apache.catalina.startup.ContextConfig processAnnotationsJar
[INFO] [talledLocalContainer] SEVERE: Unable to process Jar entry [javassist/bytecode/FieldInfo.class] from Jar [jar:file:/C:/src/java/Atlassian/myconfluencemacro/target/container/tomcat8x/cargo-confluence-home/webapps/confluence/WEB-INF/lib/javassist-3.20.0-GA.jar!/] for annotations
[INFO] [talledLocalContainer] org.apache.tomcat.util.bcel.classfile.ClassFormatException: Expected class `CONSTANT_Utf8' at index 7 and got [9]
[INFO] [talledLocalContainer] at org.apache.tomcat.util.bcel.classfile.ConstantPool.getConstant(ConstantPool.java:207)
[INFO] [talledLocalContainer] at org.apache.tomcat.util.bcel.classfile.Attribute.readAttribute(Attribute.java:83)
[INFO] [talledLocalContainer] at org.apache.tomcat.util.bcel.classfile.FieldOrMethod.<init>(FieldOrMethod.java:76)
[INFO] [talledLocalContainer] at org.apache.tomcat.util.bcel.classfile.ClassParser.readMethods(ClassParser.java:226)
[INFO] [talledLocalContainer] at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:101)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:1987)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1940)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1915)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1876)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1145)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:767)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:302)
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5083)
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:919)
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1704)
[INFO] [talledLocalContainer] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[INFO] [talledLocalContainer] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[INFO] [tallContainer] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:748)

1 answer

0 votes

Hello there,

Sorry to hear you're having trouble developing your plugin with the SDK examples. It sounds like you might be having a similar issue here:

Can you try the workarounds listed there and tell me if you have any luck? If not, I recommend you redirect your question to our Atlassian Developer Community. They're pretty familiar with the SDK and will be able to help you with it. Best of luck!

Let me know f you have any questions about that.

Take care,

Shannon

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
Community showcase
Published in Confluence

⚡️NEW Group for Confluence Cloud Admins

Calling all Confluence Cloud Admins!  We created a new Community Group to support your unique needs as Confluence admins. This is a group where you can ask questions, access resou...

181 views 3 11
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you