AUI Child Macro does not seem to function when showing pie charts.

Issue #100 resolved
DeArmond, Walter (DI CTO FDS DSI ITS XCD) created an issue

Description

Have a user that has lost the ability to use a macro to show a pie chart of issue data that they apparently was in place on a page.

Charts have been created in the space, but when the page is copied (along with the macro) I am unable to get it to work. The macro itself is a bit of a 'black box' in that i am unable to load it successfully from the edit and cannot even see a preview (it actually looks like a brand-new created macro with no data from the back end...as far as i can see).

I simply don't know what is wrong, as i do not have any experience with these AUI Marco's.

Could you help point me in the right direction on what is going on here?

BTW the Confluence page in question is: https://confluence.mindsphere-tools.siemens.cloud/pages/viewpage.action?pageId=109736743

And we have a ticket in our JSD system that might have some additional history that you may find useful: https://jirasd.mindsphere-tools.siemens.cloud/browse/COAS-248

I have/will add some screenshots that may prove helpful. Again thx for help here.

Some logs were explored from zupport zips, and they came up with the following, looking for any instances for this pageid 109736743 from the screenshots.

2020-05-20 06:39:28,651 ERROR [http-nio-8080-exec-426 url:/rest/table-fil.../export/multi-page username:Z003WD9N] [common.error.jersey.ThrowableExceptionMapper] toResponse Uncaught exception thrown by REST service: Object of class [java.lang.Object] with identifier [null]: optimistic locking failed; nested exception is net.sf.hibernate.StaleObjectStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
 -- referer: https://confluence.mindsphere-tools.siemens.cloud/pages/viewpage.action?pageId=109736743 | url: /rest/table-filter/1.0/service/export/multi-page | traceId: ca2b1b1f9192bdc8 | userName: Z003WD9N
org.springframework.orm.hibernate.HibernateOptimisticLockingFailureException: Object of class [java.lang.Object] with identifier [null]: optimistic locking failed; nested exception is net.sf.hibernate.StaleObjectStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
    at org.springframework.orm.hibernate.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:593)
    at org.springframework.orm.hibernate.HibernateTransactionManager.convertHibernateAccessException(HibernateTransactionManager.java:607)
    at org.springframework.orm.hibernate.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:518)
    at com.atlassian.confluence.impl.hibernate.ConfluenceHibernateTransactionManager.doCommit(ConfluenceHibernateTransactionManager.java:69)
    at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:765)

However, I don't believe it's related to this issue. So I moved to a search for the aui macros. This led to the following stack trace found through the logs.

2020-05-20 04:57:59,441 ERROR [http-nio-8080-exec-406 url:/pages/viewpage.action username:Z002WA0W] [confluence.util.velocity.VelocityUtils] getRenderedTemplate Error occurred rendering template: /com/keysight/html-elements/templates/aui-tab-group.vm
 -- url: /pages/viewpage.action | page: 147001706 | traceId: 0b5c701b7d950a29 | userName: Z002WA0W | referer: https://confluence.mindsphere-tools.siemens.cloud/display/BEAO | action: viewpage
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'title' in  class com.keysight.html.elements.helpers.TabInfo threw exception java.lang.StringIndexOutOfBoundsException: String index out of range: -3 at /com/keysight/html-elements/templates/aui-tab-group.vm[line 25, column 125]
    at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
    at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
    at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)
    at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:342)
    at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
    at org.apache.velocity.runtime.directive.Foreach.performIteration(Foreach.java:393)
    at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:316)
    at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
    at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
    at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
    at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
    at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
    at org.apache.velocity.Template.merge(Template.java:328)
    at org.apache.velocity.Template.merge(Template.java:235)
...
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -3
    at java.lang.String.substring(String.java:1967)
    at com.keysight.html.elements.helpers.TabInfo.title(TabInfo.java:149)

In the stack trace, the keysight plugin is mentioned. I searched the catalina log with the same timestamp since we hitting some classes.

20-May-2020 04:57:59.110 WARNING [http-nio-8080-exec-442 url:/rest/table-fil.../export/multi-page username:Z002WA0W] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI https://confluence.mindsphere-tools.siemens.cloud/rest/table-filter/1.0/service/export/multi-page, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.

I can supply you with support Zips from each of our nodes, or any addtional info you require.

Thx for the help here.

-Walt

Affects Version/s6.13.3

Customer TimezoneGMT-4

Phone Number828-273-1252

Comments (2)

  1. Log in to comment