PDF Stylesheet - Not saving Edited

As the "Export to PDF" is not exporting the colors in "Status" macro, I tried adding few lines into General Configuration -> PDF stylesheet. While saving the page, I am getting below error. 

Page: <ServerName> /admin/flyingpdf/editpdfstyleconfig.action

CSS lines trying to be added:

background-color: blue;    
opacity: 0.5;

background-color: green;    
opacity: 0.5; }  

background-color: red;    
opacity: 0.5;

background-color: yellow;    
opacity: 0.5;


Error While saving page:


java.lang.IllegalArgumentException: java.lang.ClassCastException@2aeb9add
    at sun.reflect.GeneratedMethodAccessor5294.invoke(Unknown Source)

Stack Trace:[hide]

java.lang.IllegalArgumentException: java.lang.ClassCastException@2aeb9add
	at sun.reflect.GeneratedMethodAccessor5294.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:302)
	at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:170)
	at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
	at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165)
	at com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:58)


1 answer

0 vote
Ann Worley Atlassian Team Aug 24, 2017

I am not sure why it is not saving for you, I saved your CSS on my test instance so it's nothing in the content:

Screen Shot 2017-08-24 at 2.42.59 PM.png

Please let me know:

  • What version of Confluence are you running?
  • What is the full stack trace, starting with the date stamp, in the atlassian.confluence.log when the error appears in the browser? 

The atlassian.confluence.log is in the <confluence_home>/logs directory. (The <confluence_home> directory is the path defined in the following file: <confluence_install>/confluence/WEB-INF/classes/confluence-init.properties)

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,909 views 27 12
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you