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

Error rendering WebPanel Edited

Hi Team

I am getting the below error when I restarted the confluence Server.

Error rendering WebPanel (com.atlassian.confluence.plugins.confluence-dashboard:dashboard-server-side-soy/DashboardTemplates.App.serverSideLayout): Could not find custom mapper jackson2soy for class class com.atlassian.confluence.api.model.web.WebItemView

How to resolve this ?

Regards

Sushma

1 answer

0 votes
Elifcan_Cakmak Community Leader Oct 04, 2019

Hello,

It looks like something is wrong with web panel plugin. Did you apply the resolution stated here:

https://confluence.atlassian.com/confkb/error-rendering-webpanel-no-renderer-found-for-resource-type-300814261.html

Regards,

Elifcan

Hi @Elifcan_Cakmak

I tried with both the resolutions. Both didn't worked for me

1.With the First resolution

I followed the first procedure i.e I added the -Datlassian.plugins.enable.wait=300

argument to Java properties in the setenv.sh file. Then I restarted the server.But No luck

2.With the Second resolution

[root@inblrvyd lib]# java -cp h2-1.3.176.jar org.h2.tools.Shell

Welcome to H2 Shell 1.3.176 (2014-04-05)
Exit with Ctrl+C
[Enter] jdbc:h2:~/test
URL jdbc:h2:/var/atlassian/application-data/confluence/database/h2db
[Enter] org.h2.Driver
Driver org.h2.Driver
[Enter]
User sa
[Enter] Hide
Password
Password
Connected
Commands are case insensitive; SQL statements end with ';'
help or ? Display this help
list Toggle result list / stack trace mode
maxwidth Set maximum column width (default is 100)
autocommit Enable or disable autocommit
history Show the last 20 statements
quit or exit Close the connection and exit

sql> SELECT BANDANAVALUE FROM BANDANA WHERE BANDANAKEY = 'plugin.manager.state.Map';
BANDANAVALUE
<map>
<entry>
<string>de.scandio.confluence.plugins.pocketquery</string>
<boolean>false</boolean>
</entry>
<entry>
<string>confluence.macros.html:html-xhtml</string>
<boolean>true</boolean>
</entry>
<entry>
<string>confluence.macros.html:html</string>
<boolean>true</boolean>
</entry>
</map>
(1 row, 21 ms)

As you can see , BANDANAVALUE not containing the below lines which are expected to be deleted.

<entry>
  <string>confluence.web.panel.renderers</string>
  <boolean>false</boolean>
</entry>

 I am really confused .Both the solutions are not working

please help me out.

Thanks in advance

Logs :

07-Oct-2019 11:44:47.000 INFO [localhost-startStop-3] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor /opt/atlassian/confluence/conf/Standalone/localhost/synchrony-proxy.xml
07-Oct-2019 11:44:47.017 WARNING [localhost-startStop-3] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'debug' to '0' did not find a matching property.
07-Oct-2019 11:44:48.208 INFO [localhost-startStop-3] org.apache.catalina.core.ApplicationContext.log Spring WebApplicationInitializers detected on classpath: [com.atlassian.synchrony.proxy.SynchronyDispatcherServletInitializer@6c2ca9fb]
07-Oct-2019 11:44:48.437 INFO [localhost-startStop-3] org.apache.catalina.core.ApplicationContext.log Initializing Spring FrameworkServlet 'dispatcher'
07-Oct-2019 11:44:48.437 INFO [localhost-startStop-3] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'dispatcher': initialization started
07-Oct-2019 11:44:48.444 INFO [localhost-startStop-3] org.springframework.web.context.support.AnnotationConfigWebApplicationContext.prepareRefresh Refreshing WebApplicationContext for namespace 'dispatcher-servlet': startup date [Mon Oct 07 11:44:48 IST 2019]; root of context hierarchy
07-Oct-2019 11:44:48.528 INFO [localhost-startStop-3] org.springframework.web.context.support.AnnotationConfigWebApplicationContext.loadBeanDefinitions Registering annotated classes: [class com.atlassian.synchrony.proxy.websocket.WebSocketConfig,class com.atlassian.synchrony.proxy.web.SynchronyWebMvcConfig]
07-Oct-2019 11:44:49.073 INFO [localhost-startStop-3] org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler.initialize Initializing ExecutorService 'defaultSockJsTaskScheduler'
07-Oct-2019 11:44:49.120 INFO [localhost-startStop-3] org.springframework.web.socket.server.support.WebSocketHandlerMapping.registerHandler Mapped URL path [/v1/bayeux-sync1] onto handler of type [class org.springframework.web.socket.server.support.WebSocketHttpRequestHandler]
07-Oct-2019 11:44:49.651 INFO [localhost-startStop-3] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/healthcheck]}" onto public com.atlassian.synchrony.proxy.web.HealthCheckResult com.atlassian.synchrony.proxy.web.SynchronyProxyRestController.getSynchronyProxyInfo()
07-Oct-2019 11:44:49.652 INFO [localhost-startStop-3] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.register Mapped "{[/reload],methods=[PUT]}" onto public org.springframework.http.ResponseEntity com.atlassian.synchrony.proxy.web.SynchronyProxyRestController.reloadConfiguration(com.atlassian.synchrony.proxy.web.SynchronyProxyConfigPayload)
07-Oct-2019 11:44:49.676 INFO [localhost-startStop-3] org.springframework.web.servlet.handler.SimpleUrlHandlerMapping.registerHandler Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler]
07-Oct-2019 11:44:49.707 INFO [localhost-startStop-3] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache Looking for @ControllerAdvice: WebApplicationContext for namespace 'dispatcher-servlet': startup date [Mon Oct 07 11:44:48 IST 2019]; root of context hierarchy
07-Oct-2019 11:44:49.825 INFO [localhost-startStop-3] org.springframework.context.support.DefaultLifecycleProcessor.start Starting beans in phase 2147483647
07-Oct-2019 11:44:49.854 INFO [localhost-startStop-3] org.springframework.web.servlet.DispatcherServlet.initServletBean FrameworkServlet 'dispatcher': initialization completed in 1417 ms
07-Oct-2019 11:44:49.856 INFO [localhost-startStop-3] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor /opt/atlassian/confluence/conf/Standalone/localhost/synchrony-proxy.xml has finished in 2,855 ms
07-Oct-2019 11:44:49.864 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8090"]
07-Oct-2019 11:44:49.884 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 1287938 ms
07-Oct-2019 11:44:51.140 INFO [http-nio-8090-exec-8] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'
07-Oct-2019 11:44:56.615 INFO [http-nio-8090-exec-2] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'
07-Oct-2019 11:44:56.746 INFO [http-nio-8090-exec-7] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'
07-Oct-2019 11:44:56.934 INFO [http-nio-8090-exec-7] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.sun.jersey.server.wadl.generators.WadlGeneratorApplicationDoc
07-Oct-2019 11:44:56.938 INFO [http-nio-8090-exec-7] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.atlassian.plugins.rest.doclet.generators.grammars.WadlGrammarsAdaptor
07-Oct-2019 11:44:56.939 INFO [http-nio-8090-exec-7] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.atlassian.plugins.rest.doclet.generators.resourcedoc.AtlassianWadlGeneratorResourceDocSupport
07-Oct-2019 11:44:57.904 INFO [http-nio-8090-exec-9] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'
07-Oct-2019 11:46:09.614 INFO [http-nio-8090-exec-8] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'
07-Oct-2019 11:46:09.847 INFO [http-nio-8090-exec-8] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.sun.jersey.server.wadl.generators.WadlGeneratorApplicationDoc
07-Oct-2019 11:46:09.847 INFO [http-nio-8090-exec-8] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.atlassian.plugins.rest.doclet.generators.grammars.WadlGrammarsAdaptor
07-Oct-2019 11:46:09.847 INFO [http-nio-8090-exec-8] com.sun.jersey.api.wadl.config.WadlGeneratorLoader.loadWadlGenerator Loading wadlGenerator com.atlassian.plugins.rest.doclet.generators.resourcedoc.AtlassianWadlGeneratorResourceDocSupport
07-Oct-2019 11:46:09.900 INFO [http-nio-8090-exec-9] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'

Regards

Sushma

Elifcan_Cakmak Community Leader Oct 07, 2019

Hello,

These are all info logs. Are there any error logs in the log file? Also you can try to stop confluence, delete plugin cache directories and restart confluence again. These are the directories:

<confluence-home>/bundled-plugins
<confluence-home>/plugins-cache
<confluence-home>/plugins-osgi-cache
<confluence-home>/plugins-temp
<confluence-home>/bundled-plugins_language

I suggest taking backups of these directories before deleting them.

Regards,

Elifcan 

Hi @Elifcan_Cakmak

Thanks for the quick reply :)

2019-10-07 12:20:13,164 WARN [http-nio-8090-exec-2] [plugin.web.model.ResourceTemplateWebPanel] writeHtml Error rendering WebPanel (com.atlassian.confluence.plugins.confluence-dashboard:dashboard-server-side-soy/DashboardTemplates.App.serverSideLayout): Could not find custom mapper jackson2soy for class class com.atlassian.confluence.api.model.web.WebItemView
-- referer: http://<baseUrl>/index.action | url: / | traceId: a3bba50137de32cc | userName: sushma | action: dashboard
com.atlassian.plugin.web.renderer.RendererException: Could not find custom mapper jackson2soy for class class com.atlassian.confluence.api.model.web.WebItemView
at com.atlassian.soy.impl.webpanel.SoyWebPanelRenderer.render(SoyWebPanelRenderer.java:39)
at com.atlassian.plugin.web.model.ResourceTemplateWebPanel.writeHtml(ResourceTemplateWebPanel.java:50)
at com.atlassian.plugin.web.model.ResourceTemplateWebPanel.getHtml(ResourceTemplateWebPanel.java:65)
at com.atlassian.plugin.web.descriptors.DefaultWebPanelModuleDescriptor$ContextAwareWebPanel.getHtml(DefaultWebPanelModuleDescriptor.java:144)
at com.atlassian.confluence.plugin.descriptor.web.ConfluenceWebInterfaceManager$ExceptionHandlingWebPanel.getHtml(ConfluenceWebInterfaceManager.java:110)
at sun.reflect.GeneratedMethodAccessor535.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:385)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:374)

.

.

.So on.....

Caused by: com.atlassian.soy.renderer.SoyException: Could not find custom mapper jackson2soy for class class com.atlassian.confluence.api.model.web.WebItemView
at com.atlassian.soy.impl.data.AtlassianSoyCustomValueConverter.findMapper(AtlassianSoyCustomValueConverter.java:88)
at com.atlassian.soy.impl.data.AtlassianSoyCustomValueConverter.convert(AtlassianSoyCustomValueConverter.java:56)

.

.

. so on.....

I am getting the above errors in the logs

Regards

Sushma

I didn't cleared the cache .I will clear it and let u know 

Thanks :)

Sushma 

Hi @Elifcan_Cakmak

I cleared the cache directories and restarted the server . But No luck....

Still facing the same issue.

Regards

Sushma

Elifcan_Cakmak Community Leader Oct 07, 2019

Hello,

I see that you are using h2 database. I can't think of or find anything else to solve the issue :( Maybe you can try using an external database? 

Regards,

Elifcan

Hi @Elifcan_Cakmak

If I restore the backup file (1 week back)will it resolve the problem ?

Regards

Sushma

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What project did you transition or start on Confluence with the shift to remote work?

It’s been great to hear from fellow users over the last few weeks about the best tips and fun moments you’ve had working on Confluence since the transition to working remote. I’d love to keep the c...

157 views 3 8
Join discussion

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