java.lang.NullPointerException

Atlassian JIRA | Matt Ryall | 9 years ago
  1. 0

    Trying to add a new item to the plugin wishlist failed. Cause: java.lang.NullPointerException at com.atlassian.confluence.links.LinkParserHelper.handleMacro(LinkParserHelper.java:41) Stack Trace: [hide] java.lang.NullPointerException at com.atlassian.confluence.links.LinkParserHelper.handleMacro(LinkParserHelper.java:41) at com.atlassian.renderer.v2.WikiMarkupParser.makeMacro(WikiMarkupParser.java:126) at com.atlassian.renderer.v2.WikiMarkupParser.makeMacro(WikiMarkupParser.java:121) at com.atlassian.renderer.v2.WikiMarkupParser.handlePotentialMacro(WikiMarkupParser.java:94) at com.atlassian.renderer.v2.WikiMarkupParser.parse(WikiMarkupParser.java:60) at com.atlassian.confluence.links.LinkParserHelper.extractLinks(LinkParserHelper.java:67) at com.atlassian.confluence.links.LinkParserHelper.extractLinks(LinkParserHelper.java:60) at com.atlassian.confluence.links.ConfluenceLinkResolver.extractLinkTextList(ConfluenceLinkResolver.java:58) at sun.reflect.GeneratedMethodAccessor1431.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176) at $Proxy33.extractLinkTextList(Unknown Source) at com.atlassian.confluence.links.OutgoingLinkHelper.getOutgoingLinks(OutgoingLinkHelper.java:31) at com.atlassian.confluence.links.DefaultLinkManager.updateOutgoingLinks(DefaultLinkManager.java:191) at sun.reflect.GeneratedMethodAccessor1430.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148) at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:20) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176) at $Proxy9.updateOutgoingLinks(Unknown Source) at com.atlassian.confluence.core.DefaultContentEntityManager.saveContentEntity(DefaultContentEntityManager.java:55) at sun.reflect.GeneratedMethodAccessor1629.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148) at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:20) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176) at $Proxy15.saveContentEntity(Unknown Source) at com.atlassian.confluence.pages.actions.AbstractCreatePageAction.doAdd(AbstractCreatePageAction.java:107) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) 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.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.intercept(DefaultWorkflowInterceptor.java:55) at com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:39) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.atlassian.confluence.core.ConfluenceValidationInterceptor.intercept(ConfluenceValidationInterceptor.java:16) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.util.LoggingContextInterceptor.intercept(LoggingContextInterceptor.java:48) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.security.actions.PermissionCheckInterceptor.intercept(PermissionCheckInterceptor.java:47) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.pages.actions.PageAwareInterceptor.intercept(PageAwareInterceptor.java:114) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.spaces.actions.SpaceAwareInterceptor.intercept(SpaceAwareInterceptor.java:67) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.core.actions.LastModifiedInterceptor.intercept(LastModifiedInterceptor.java:39) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.core.ConfluenceAutowireInterceptor.intercept(ConfluenceAutowireInterceptor.java:25) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.xwork.interceptors.XWorkTransactionInterceptor.intercept(XWorkTransactionInterceptor.java:98) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:115) at com.opensymphony.webwork.dispatcher.ServletDispatcher.serviceAction(ServletDispatcher.java:229) at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:199) at javax.servlet.http.HttpServlet.service(HttpServlet.java:92) at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118) at com.atlassian.confluence.util.profiling.ProfilingPageFilter.parsePage(ProfilingPageFilter.java:137) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:54) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.core.filters.ServletContextThreadLocalFilter.doFilter(ServletContextThreadLocalFilter.java:21) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.confluence.util.LoggingContextFilter.doFilter(LoggingContextFilter.java:46) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.confluence.util.UserThreadLocalFilter.doFilter(UserThreadLocalFilter.java:44) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:182) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.seraph.filter.LoginFilter.doFilter(LoginFilter.java:159) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.confluence.util.ClusterHeaderFilter.doFilter(ClusterHeaderFilter.java:35) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.johnson.filters.JohnsonFilter.doFilter(JohnsonFilter.java:96) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at org.springframework.orm.hibernate.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174) at com.atlassian.spring.filter.FlushingSpringSessionInViewFilter.doFilterInternal(FlushingSpringSessionInViewFilter.java:29) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:140) at com.atlassian.core.filters.ProfilingAndErrorFilter.doFilter(ProfilingAndErrorFilter.java:27) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.confluence.util.RequestCacheThreadLocalFilter.doFilter(RequestCacheThreadLocalFilter.java:25) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.core.filters.gzip.GzipFilter.doFilter(GzipFilter.java:53) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:37) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:511) at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520) at com.caucho.util.ThreadPool.run(ThreadPool.java:442) at java.lang.Thread.run(Thread.java:595) Referer URL: http://confluence.atlassian.com/pages/docreatepage.action Build Information: confluence.home: /opt/j2ee/domains/atlassian.com/confluence/webapps/atlassian-confluence/data system.uptime: 18 hours, 31 minutes, 58 seconds system.version: 2.6.0-rc2 build.number: 909 Server Information: Application Server: Resin/3.0.23 Servlet Version: 2.4 Database Dialect: net.sf.hibernate.dialect.PostgreSQLDialect Database Driver Name: N/A Database Driver Version: N/A Memory Information: total.memory: 971 MB free.memory: 378 MB used.memory: 593 MB System Information: system.date: Monday, 10 Sep 2007 system.time: 18:28:59 system.favourite.colour: Ecru java.version: 1.5.0_11 java.vendor: Sun Microsystems Inc. jvm.version: 1.0 jvm.vendor: Sun Microsystems Inc. jvm.implementation.version: 1.5.0_11-b03 java.runtime: Java(TM) 2 Runtime Environment, Standard Edition java.vm: Java HotSpot(TM) 64-Bit Server VM user.name.word: j2ee user.timezone: America/Chicago operating.system: Linux 2.6.9-55.ELsmp os.architecture: amd64 fs.encoding: ANSI_X3.4-1968 Cluster Information: Not clustered. Enabled Plugins: WAP Plugin (org.randombits.confluence.wap, Version: 1.0) SVG Image Macros (revere.confluence.svgimage, Version: 1.0) Redirection Plugin (net.customware.confluence.plugin.redirection, Version: 2.3) Linking Plugin (net.customware.confluence.plugin.linking, Version: 2.4.1) Basic Macros (confluence.macros.basic, Version: 1.3) Fisheye Plugin (com.atlassian.confluence.extra.fisheye-plugin, Version: 0.2) Gliffy Plugin (com.gliffy.integration.confluence, Version: 1.3.4) Adaptavist Advanced Search (com.adaptavist.confluence.advancedSearch, Version: 1.0.4) Chart Plugin (confluence.extra.chart, Version: 1.8) User Listener (confluence.extra.userlister, Version: 2.0) Global Labels Sections (confluence.sections.labels, Version: 1.0) Information Macros (confluence.extra.information, Version: 1.0) Pagetree Search (com.atlassian.confluence.plugins.pagetreesearch, Version: 1.0) Page Operations (confluence.sections.page.operations, Version: 1.0) Adaptavist SubSection (com.adaptavist.confluence.subsection, Version: 1.0.4) Zen Foundation (com.stepstonetech.confluence.zenfoundation, Version: 2.0.2) WebDAV Plugin (confluence.extra.webdav, Version: 1.1) Profile Tabs (confluence.sections.profile, Version: 1.0) Confluence Remote API (confluence.extra.confluencerpc, Version: 2.6.0-rc2) French language pack (confluence.languages.fr_FR, Version: 1.5) Core Startup and Shutdown (confluence.lifecycle.core, Version: 1) Admin Sections (confluence.sections.admin, Version: 1.0) OPML Plugin (au.edu.cci.confluence.opml, Version: 1.2.1) Table of Contents Plugin (org.randombits.confluence.toc, Version: 2.4.1) Confluence Feedburner Plugin (com.atlassian.confluence.plugin.feedburner.confluence-feedburner-plugin, Version: confluence26-1.0) TinyMCE Editor Plugin (com.atlassian.confluence.extra.tinymceplugin, Version: 2.2) Space Pages Sections (confluence.sections.space.pages, Version: 1.0) Voting Macros (com.nearinfinity.confluence.macros.vote, Version: 1.2) Confluence Classic Theme (com.atlassian.confluence.themes.classic, Version: 1.3) News Tabs (confluence.sections.news, Version: 1.0) Space Advanced Sections (confluence.sections.space.advanced, Version: 1.0) Confluence Contributors Plugin (com.atlassian.confluence.contributors, Version: 1.1) Attachments Macros (confluence.extra.attachments, Version: 2.7) Include Random Macro (com.macadamian.confluence.macros.includerandom, Version: 2.1.2) Basic Calendar Macros (com.goodbers.confluence.calendar, Version: 1.0) Adaptavist Content Formatting Macros (com.adaptavist.confluence.contentFormattingMacros, Version: 1.6.5) Space Actions Sections (confluence.sections.space.actions, Version: 1.0) Task List Macros (confluence.extra.tasklist, Version: 1.3) New Code Macro (confluence.ext.code, Version: 1.0.2) Space Labels Sections (confluence.sections.space.labels, Version: 1.0) Page Menus Sections (confluence.pages.menus, Version: 1.0) Dynamic Task List Macros (confluence.extra.dynamictasklist, Version: 1.5) Web Sharing Plugin (com.atlassian.confluence.ext.websharing, Version: 0.2) Core Extractors (confluence.extractors.core, Version: 1.4) Composition Plugin (org.randombits.confluence.composition, Version: 2.2) Confluence Repository Macros (confluence.repository.macros, Version: 1.2.4) Compatibility Macros (confluence.macros.compatibility, Version: 1.3) Page Tabs (confluence.sections.page, Version: 1.0) Page Tree (bnpparibas.confluence.pagetree, Version: 1.3) Core Listeners (confluence.listeners.core, Version: 1.3) Linking Plugin (org.randombits.confluence.linking, Version: 2.2.0) Dashboard Macros (confluence.macros.dashboard, Version: 1.3) Near Infinity Survey Macros (com.nearinfinity.confluence.macros, Version: 1.0) Live Search Macros (confluence.extra.livesearch, Version: 2.6) Reporting Plugin (net.customware.confluence.plugin.reporting, Version: 1.3.2) Page View Links (confluence.sections.page.actions, Version: 1.0) Metadata Plugin (com.pantero.confluence.plugins.metadata, Version: 1.6) JIRA Macros (confluence.extra.jira, Version: 2.0) Clickr Theme (com.atlassian.confluence.themes.clickr, Version: 1.3) Layout Macros (confluence.extra.layout, Version: 1.0) Doppler Theme (com.atlassian.confluence.theme.bamboo, Version: 0.9) German language pack (confluence.languages.de_DE, Version: 1.1) Copy Space Plugin (com.atlassian.confluence.plugin.copyspace, Version: 0.0.10) Excel Plugin (org.swift.confluence.excel, Version: 3.3.0) Slideshow (com.atlassian.confluence.extra.slideshow, Version: 1.0) Global Statistics Plugin (confluence.extra.globalstats, Version: 1.0) Tabular Metadata (confluence.extra.masterdetail, Version: 2.7) Google Maps (com.atlassian.confluence.ext.gmaps, Version: 0.4.1) Space Admin Sections (confluence.sections.space.admin, Version: 1.0) Cache Plugin (org.swift.confluence.cache, Version: 3.1.0) Atlassian Plugin Repository (confluence.repository.client, Version: 2.0.8) IM Presence NG Plugin (confluence.extra.impresence2, Version: 2.0-rc3) Advanced Macros (confluence.macros.advanced, Version: 1.3) Atlassian Proxy Statistics (com.atlassian.ext.proxystat, Version: 2.0.4) Slideshow Plugin (com.atlassian.confluence.ext.slideshow, Version: 0.3) Edit Profile Sections (confluence.sections.profile.edit, Version: 1.0) Social Bookmarking Plugin (com.atlassian.confluence.plugins.socialbookmarking, Version: 1.0.5) Attachment Extractors (confluence.extractors.attachments, Version: 1.4) Left Navigation Theme (com.atlassian.confluence.themes.leftnavigation, Version: 1.5.1) RSVP Plugin (com.atlassian.confluence.extra.rsvp, Version: 1.1) Table Plugin (org.swift.confluence.table, Version: 3.3.1) BloggingRPC (com.atlassian.confluence.plugins.xmlrpc.bloggingrpc, Version: 1.2.2) Space Item Tabs (confluence.sections.space, Version: 1.0) Code Macro (confluence.macros.code, Version: 1.4) Dynamic Table Macros (revere.confluence.dynamictable, Version: 1.0) Request Information: URL: http://j2ee.confluence.atlassian.com:8080/500page.jsp * Scheme: http * Server: j2ee.confluence.atlassian.com * Port: 8080 * URI: /500page.jsp * - Context Path: * - Servlet Path: /500page.jsp * - Path Info: null * - Query String: null Attributes: * webwork.valueStack : com.opensymphony.xwork.util.OgnlValueStack@2e56cad7 * javax.servlet.error.message : Internal Server Error * sessioninview.FILTERED : true * com.atlassian.johnson.filters.JohnsonFilter_already_filtered : true * javax.servlet.error.exception : java.lang.NullPointerException * javax.servlet.forward.servlet_path : /pages/docreatepage.action * os_securityfilter_already_filtered : true * caucho.forward : true * com.atlassian.core.filters.gzip.GzipFilter_already_filtered : true * javax.servlet.error.servlet_name : action * javax.servlet.jsp.jspException : java.lang.NullPointerException * _sitemesh_filterapplied : true * javax.servlet.forward.request_uri : /pages/docreatepage.action * javax.servlet.error.status_code : 500 * javax.servlet.error.request_uri : /pages/docreatepage.action * atlassian.core.seraph.original.url : /pages/docreatepage.action * loginfilter.already.filtered : true * javax.servlet.forward.context_path : Parameters: * confirm = Save * pagePermissionTypeRadio = view * labelsShowing = false * parentPageString = Plugin Wishlist * wysiwygcontent = <div class="wikisrc"> {metadata-list}</div> <table class="confluenceTable"><tbody> <tr> <th class="confluenceTh"> Name </th> <td class="confluenceTd"> Rename label </td> </tr> <tr> <th class="confluenceTh"> Priority </th> <td class="confluenceTd"> </td> </tr> <tr> <th class="confluenceTh"> C

    Atlassian JIRA | 9 years ago | Matt Ryall
    java.lang.NullPointerException
  2. 0

    According to the API for the V2 Macro object's 'getBodyRenderMode()' method: {quote} If this method returns null, it causes the macro processor to treat the macro as one that returns wiki-text rather than HTML. The body of the macro will be passed in un-rendered, and the macro's output will be inserted back into the page for further normal processing by the wiki-engine. {quote} Unfortunately, there seems to be a bug in the {{com.atlassian.confluence.links.LinkParserHelper}} object, where it assumes that the 'getBodyRenderMode()' method will always return an object (line 41): {code:java} if (macro != null && macro.hasBody() && macro.getBodyRenderMode().renderLinks()) {code} This causes the following exception to be thrown when saving a page containing said macro: {noformat} 2007-10-26 10:13:38,539 ERROR [http-8080-Processor2] [com.opensymphony.xwork.ActionSupport] doSaveEditPageBean An error occured while storing the requested page! -- url: /pages/doeditpage.action | userName: admin | action: doeditpage | page: 2031618 java.lang.NullPointerException at com.atlassian.confluence.links.LinkParserHelper.handleMacro(LinkParserHelper.java:41) at com.atlassian.renderer.v2.WikiMarkupParser.makeMacro(WikiMarkupParser.java:126) at com.atlassian.renderer.v2.WikiMarkupParser.makeMacro(WikiMarkupParser.java:121) at com.atlassian.renderer.v2.WikiMarkupParser.handlePotentialMacro(WikiMarkupParser.java:94) at com.atlassian.renderer.v2.WikiMarkupParser.parse(WikiMarkupParser.java:60) at com.atlassian.confluence.links.LinkParserHelper.extractLinks(LinkParserHelper.java:67) at com.atlassian.confluence.links.LinkParserHelper.extractLinks(LinkParserHelper.java:60) at com.atlassian.confluence.links.ConfluenceLinkResolver.extractLinkTextList(ConfluenceLinkResolver.java:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ... {noformat} ...which in turn, spits this out to the browser: {noformat} Cause: org.springframework.transaction.UnexpectedRollbackException: Transaction has been rolled back because it has been marked as rollback-only at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:469) Stack Trace: [hide] org.springframework.transaction.UnexpectedRollbackException: Transaction has been rolled back because it has been marked as rollback-only at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:469) at org.springframework.transaction.interceptor.TransactionAspectSupport.doCommitTransactionAfterReturning(TransactionAspectSupport.java:266) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176) at $Proxy5.findUserByUsername(Unknown Source) at com.opensymphony.user.provider.hibernate.HibernateProfileProvider.handles(HibernateProfileProvider.java:79) at bucket.user.providers.ChainedUserProvider.handles(ChainedUserProvider.java:125) at bucket.user.providers.CachingProfileProvider.handles(CachingProfileProvider.java:71) at com.atlassian.user.impl.osuser.properties.OSUPropertySetFactory.getPropertySet(OSUPropertySetFactory.java:30) at com.atlassian.user.impl.delegation.properties.DelegatingPropertySetFactory.getPropertySet(DelegatingPropertySetFactory.java:34) at bucket.user.DefaultUserAccessor.getPropertySet(DefaultUserAccessor.java:561) at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176) at $Proxy19.getPropertySet(Unknown Source) at com.atlassian.confluence.languages.DefaultLocaleManager.getLocale(DefaultLocaleManager.java:27) at com.atlassian.confluence.core.ConfluenceActionSupport.getLocale(ConfluenceActionSupport.java:546) at com.atlassian.confluence.core.ConfluenceActionSupport.getI18n(ConfluenceActionSupport.java:600) at com.atlassian.confluence.core.ConfluenceActionSupport.getText(ConfluenceActionSupport.java:128) at com.atlassian.confluence.pages.actions.AbstractEditPageAction.doSaveEditPageBean(AbstractEditPageAction.java:185) at com.atlassian.confluence.pages.actions.EditPageAction.doSaveEditPageBean(EditPageAction.java:172) at com.atlassian.confluence.pages.actions.EditPageAction.doEdit(EditPageAction.java:244) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {noformat} Not pretty. A workaround it to return a RenderMode from the 'getBodyRenderMode()' method, however there is no way to have Confluence behave in the same way as returning 'null' is supposed to, which effects how the macros render in the final page.

    Atlassian JIRA | 9 years ago | David Peterson
    java.lang.NullPointerException
  3. 0

    Trying to add a new item to the plugin wishlist failed. Cause: java.lang.NullPointerException at com.atlassian.confluence.links.LinkParserHelper.handleMacro(LinkParserHelper.java:41) Stack Trace: [hide] java.lang.NullPointerException at com.atlassian.confluence.links.LinkParserHelper.handleMacro(LinkParserHelper.java:41) at com.atlassian.renderer.v2.WikiMarkupParser.makeMacro(WikiMarkupParser.java:126) at com.atlassian.renderer.v2.WikiMarkupParser.makeMacro(WikiMarkupParser.java:121) at com.atlassian.renderer.v2.WikiMarkupParser.handlePotentialMacro(WikiMarkupParser.java:94) at com.atlassian.renderer.v2.WikiMarkupParser.parse(WikiMarkupParser.java:60) at com.atlassian.confluence.links.LinkParserHelper.extractLinks(LinkParserHelper.java:67) at com.atlassian.confluence.links.LinkParserHelper.extractLinks(LinkParserHelper.java:60) at com.atlassian.confluence.links.ConfluenceLinkResolver.extractLinkTextList(ConfluenceLinkResolver.java:58) at sun.reflect.GeneratedMethodAccessor1431.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176) at $Proxy33.extractLinkTextList(Unknown Source) at com.atlassian.confluence.links.OutgoingLinkHelper.getOutgoingLinks(OutgoingLinkHelper.java:31) at com.atlassian.confluence.links.DefaultLinkManager.updateOutgoingLinks(DefaultLinkManager.java:191) at sun.reflect.GeneratedMethodAccessor1430.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148) at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:20) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176) at $Proxy9.updateOutgoingLinks(Unknown Source) at com.atlassian.confluence.core.DefaultContentEntityManager.saveContentEntity(DefaultContentEntityManager.java:55) at sun.reflect.GeneratedMethodAccessor1629.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148) at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:20) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176) at $Proxy15.saveContentEntity(Unknown Source) at com.atlassian.confluence.pages.actions.AbstractCreatePageAction.doAdd(AbstractCreatePageAction.java:107) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) 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.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.intercept(DefaultWorkflowInterceptor.java:55) at com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:39) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.atlassian.confluence.core.ConfluenceValidationInterceptor.intercept(ConfluenceValidationInterceptor.java:16) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.util.LoggingContextInterceptor.intercept(LoggingContextInterceptor.java:48) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.security.actions.PermissionCheckInterceptor.intercept(PermissionCheckInterceptor.java:47) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.pages.actions.PageAwareInterceptor.intercept(PageAwareInterceptor.java:114) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.spaces.actions.SpaceAwareInterceptor.intercept(SpaceAwareInterceptor.java:67) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.core.actions.LastModifiedInterceptor.intercept(LastModifiedInterceptor.java:39) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.core.ConfluenceAutowireInterceptor.intercept(ConfluenceAutowireInterceptor.java:25) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.xwork.interceptors.XWorkTransactionInterceptor.intercept(XWorkTransactionInterceptor.java:98) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:115) at com.opensymphony.webwork.dispatcher.ServletDispatcher.serviceAction(ServletDispatcher.java:229) at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:199) at javax.servlet.http.HttpServlet.service(HttpServlet.java:92) at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118) at com.atlassian.confluence.util.profiling.ProfilingPageFilter.parsePage(ProfilingPageFilter.java:137) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:54) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.core.filters.ServletContextThreadLocalFilter.doFilter(ServletContextThreadLocalFilter.java:21) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.confluence.util.LoggingContextFilter.doFilter(LoggingContextFilter.java:46) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.confluence.util.UserThreadLocalFilter.doFilter(UserThreadLocalFilter.java:44) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:182) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.seraph.filter.LoginFilter.doFilter(LoginFilter.java:159) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.confluence.util.ClusterHeaderFilter.doFilter(ClusterHeaderFilter.java:35) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.johnson.filters.JohnsonFilter.doFilter(JohnsonFilter.java:96) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at org.springframework.orm.hibernate.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174) at com.atlassian.spring.filter.FlushingSpringSessionInViewFilter.doFilterInternal(FlushingSpringSessionInViewFilter.java:29) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:140) at com.atlassian.core.filters.ProfilingAndErrorFilter.doFilter(ProfilingAndErrorFilter.java:27) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.confluence.util.RequestCacheThreadLocalFilter.doFilter(RequestCacheThreadLocalFilter.java:25) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.core.filters.gzip.GzipFilter.doFilter(GzipFilter.java:53) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:37) at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274) at com.caucho.server.port.TcpConnection.run(TcpConnection.java:511) at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520) at com.caucho.util.ThreadPool.run(ThreadPool.java:442) at java.lang.Thread.run(Thread.java:595) Referer URL: http://confluence.atlassian.com/pages/docreatepage.action Build Information: confluence.home: /opt/j2ee/domains/atlassian.com/confluence/webapps/atlassian-confluence/data system.uptime: 18 hours, 31 minutes, 58 seconds system.version: 2.6.0-rc2 build.number: 909 Server Information: Application Server: Resin/3.0.23 Servlet Version: 2.4 Database Dialect: net.sf.hibernate.dialect.PostgreSQLDialect Database Driver Name: N/A Database Driver Version: N/A Memory Information: total.memory: 971 MB free.memory: 378 MB used.memory: 593 MB System Information: system.date: Monday, 10 Sep 2007 system.time: 18:28:59 system.favourite.colour: Ecru java.version: 1.5.0_11 java.vendor: Sun Microsystems Inc. jvm.version: 1.0 jvm.vendor: Sun Microsystems Inc. jvm.implementation.version: 1.5.0_11-b03 java.runtime: Java(TM) 2 Runtime Environment, Standard Edition java.vm: Java HotSpot(TM) 64-Bit Server VM user.name.word: j2ee user.timezone: America/Chicago operating.system: Linux 2.6.9-55.ELsmp os.architecture: amd64 fs.encoding: ANSI_X3.4-1968 Cluster Information: Not clustered. Enabled Plugins: WAP Plugin (org.randombits.confluence.wap, Version: 1.0) SVG Image Macros (revere.confluence.svgimage, Version: 1.0) Redirection Plugin (net.customware.confluence.plugin.redirection, Version: 2.3) Linking Plugin (net.customware.confluence.plugin.linking, Version: 2.4.1) Basic Macros (confluence.macros.basic, Version: 1.3) Fisheye Plugin (com.atlassian.confluence.extra.fisheye-plugin, Version: 0.2) Gliffy Plugin (com.gliffy.integration.confluence, Version: 1.3.4) Adaptavist Advanced Search (com.adaptavist.confluence.advancedSearch, Version: 1.0.4) Chart Plugin (confluence.extra.chart, Version: 1.8) User Listener (confluence.extra.userlister, Version: 2.0) Global Labels Sections (confluence.sections.labels, Version: 1.0) Information Macros (confluence.extra.information, Version: 1.0) Pagetree Search (com.atlassian.confluence.plugins.pagetreesearch, Version: 1.0) Page Operations (confluence.sections.page.operations, Version: 1.0) Adaptavist SubSection (com.adaptavist.confluence.subsection, Version: 1.0.4) Zen Foundation (com.stepstonetech.confluence.zenfoundation, Version: 2.0.2) WebDAV Plugin (confluence.extra.webdav, Version: 1.1) Profile Tabs (confluence.sections.profile, Version: 1.0) Confluence Remote API (confluence.extra.confluencerpc, Version: 2.6.0-rc2) French language pack (confluence.languages.fr_FR, Version: 1.5) Core Startup and Shutdown (confluence.lifecycle.core, Version: 1) Admin Sections (confluence.sections.admin, Version: 1.0) OPML Plugin (au.edu.cci.confluence.opml, Version: 1.2.1) Table of Contents Plugin (org.randombits.confluence.toc, Version: 2.4.1) Confluence Feedburner Plugin (com.atlassian.confluence.plugin.feedburner.confluence-feedburner-plugin, Version: confluence26-1.0) TinyMCE Editor Plugin (com.atlassian.confluence.extra.tinymceplugin, Version: 2.2) Space Pages Sections (confluence.sections.space.pages, Version: 1.0) Voting Macros (com.nearinfinity.confluence.macros.vote, Version: 1.2) Confluence Classic Theme (com.atlassian.confluence.themes.classic, Version: 1.3) News Tabs (confluence.sections.news, Version: 1.0) Space Advanced Sections (confluence.sections.space.advanced, Version: 1.0) Confluence Contributors Plugin (com.atlassian.confluence.contributors, Version: 1.1) Attachments Macros (confluence.extra.attachments, Version: 2.7) Include Random Macro (com.macadamian.confluence.macros.includerandom, Version: 2.1.2) Basic Calendar Macros (com.goodbers.confluence.calendar, Version: 1.0) Adaptavist Content Formatting Macros (com.adaptavist.confluence.contentFormattingMacros, Version: 1.6.5) Space Actions Sections (confluence.sections.space.actions, Version: 1.0) Task List Macros (confluence.extra.tasklist, Version: 1.3) New Code Macro (confluence.ext.code, Version: 1.0.2) Space Labels Sections (confluence.sections.space.labels, Version: 1.0) Page Menus Sections (confluence.pages.menus, Version: 1.0) Dynamic Task List Macros (confluence.extra.dynamictasklist, Version: 1.5) Web Sharing Plugin (com.atlassian.confluence.ext.websharing, Version: 0.2) Core Extractors (confluence.extractors.core, Version: 1.4) Composition Plugin (org.randombits.confluence.composition, Version: 2.2) Confluence Repository Macros (confluence.repository.macros, Version: 1.2.4) Compatibility Macros (confluence.macros.compatibility, Version: 1.3) Page Tabs (confluence.sections.page, Version: 1.0) Page Tree (bnpparibas.confluence.pagetree, Version: 1.3) Core Listeners (confluence.listeners.core, Version: 1.3) Linking Plugin (org.randombits.confluence.linking, Version: 2.2.0) Dashboard Macros (confluence.macros.dashboard, Version: 1.3) Near Infinity Survey Macros (com.nearinfinity.confluence.macros, Version: 1.0) Live Search Macros (confluence.extra.livesearch, Version: 2.6) Reporting Plugin (net.customware.confluence.plugin.reporting, Version: 1.3.2) Page View Links (confluence.sections.page.actions, Version: 1.0) Metadata Plugin (com.pantero.confluence.plugins.metadata, Version: 1.6) JIRA Macros (confluence.extra.jira, Version: 2.0) Clickr Theme (com.atlassian.confluence.themes.clickr, Version: 1.3) Layout Macros (confluence.extra.layout, Version: 1.0) Doppler Theme (com.atlassian.confluence.theme.bamboo, Version: 0.9) German language pack (confluence.languages.de_DE, Version: 1.1) Copy Space Plugin (com.atlassian.confluence.plugin.copyspace, Version: 0.0.10) Excel Plugin (org.swift.confluence.excel, Version: 3.3.0) Slideshow (com.atlassian.confluence.extra.slideshow, Version: 1.0) Global Statistics Plugin (confluence.extra.globalstats, Version: 1.0) Tabular Metadata (confluence.extra.masterdetail, Version: 2.7) Google Maps (com.atlassian.confluence.ext.gmaps, Version: 0.4.1) Space Admin Sections (confluence.sections.space.admin, Version: 1.0) Cache Plugin (org.swift.confluence.cache, Version: 3.1.0) Atlassian Plugin Repository (confluence.repository.client, Version: 2.0.8) IM Presence NG Plugin (confluence.extra.impresence2, Version: 2.0-rc3) Advanced Macros (confluence.macros.advanced, Version: 1.3) Atlassian Proxy Statistics (com.atlassian.ext.proxystat, Version: 2.0.4) Slideshow Plugin (com.atlassian.confluence.ext.slideshow, Version: 0.3) Edit Profile Sections (confluence.sections.profile.edit, Version: 1.0) Social Bookmarking Plugin (com.atlassian.confluence.plugins.socialbookmarking, Version: 1.0.5) Attachment Extractors (confluence.extractors.attachments, Version: 1.4) Left Navigation Theme (com.atlassian.confluence.themes.leftnavigation, Version: 1.5.1) RSVP Plugin (com.atlassian.confluence.extra.rsvp, Version: 1.1) Table Plugin (org.swift.confluence.table, Version: 3.3.1) BloggingRPC (com.atlassian.confluence.plugins.xmlrpc.bloggingrpc, Version: 1.2.2) Space Item Tabs (confluence.sections.space, Version: 1.0) Code Macro (confluence.macros.code, Version: 1.4) Dynamic Table Macros (revere.confluence.dynamictable, Version: 1.0) Request Information: URL: http://j2ee.confluence.atlassian.com:8080/500page.jsp * Scheme: http * Server: j2ee.confluence.atlassian.com * Port: 8080 * URI: /500page.jsp * - Context Path: * - Servlet Path: /500page.jsp * - Path Info: null * - Query String: null Attributes: * webwork.valueStack : com.opensymphony.xwork.util.OgnlValueStack@2e56cad7 * javax.servlet.error.message : Internal Server Error * sessioninview.FILTERED : true * com.atlassian.johnson.filters.JohnsonFilter_already_filtered : true * javax.servlet.error.exception : java.lang.NullPointerException * javax.servlet.forward.servlet_path : /pages/docreatepage.action * os_securityfilter_already_filtered : true * caucho.forward : true * com.atlassian.core.filters.gzip.GzipFilter_already_filtered : true * javax.servlet.error.servlet_name : action * javax.servlet.jsp.jspException : java.lang.NullPointerException * _sitemesh_filterapplied : true * javax.servlet.forward.request_uri : /pages/docreatepage.action * javax.servlet.error.status_code : 500 * javax.servlet.error.request_uri : /pages/docreatepage.action * atlassian.core.seraph.original.url : /pages/docreatepage.action * loginfilter.already.filtered : true * javax.servlet.forward.context_path : Parameters: * confirm = Save * pagePermissionTypeRadio = view * labelsShowing = false * parentPageString = Plugin Wishlist * wysiwygcontent = <div class="wikisrc"> {metadata-list}</div> <table class="confluenceTable"><tbody> <tr> <th class="confluenceTh"> Name </th> <td class="confluenceTd"> Rename label </td> </tr> <tr> <th class="confluenceTh"> Priority </th> <td class="confluenceTd"> </td> </tr> <tr> <th class="confluenceTh"> C

    Atlassian JIRA | 9 years ago | Matt Ryall
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    According to the API for the V2 Macro object's 'getBodyRenderMode()' method: {quote} If this method returns null, it causes the macro processor to treat the macro as one that returns wiki-text rather than HTML. The body of the macro will be passed in un-rendered, and the macro's output will be inserted back into the page for further normal processing by the wiki-engine. {quote} Unfortunately, there seems to be a bug in the {{com.atlassian.confluence.links.LinkParserHelper}} object, where it assumes that the 'getBodyRenderMode()' method will always return an object (line 41): {code:java} if (macro != null && macro.hasBody() && macro.getBodyRenderMode().renderLinks()) {code} This causes the following exception to be thrown when saving a page containing said macro: {noformat} 2007-10-26 10:13:38,539 ERROR [http-8080-Processor2] [com.opensymphony.xwork.ActionSupport] doSaveEditPageBean An error occured while storing the requested page! -- url: /pages/doeditpage.action | userName: admin | action: doeditpage | page: 2031618 java.lang.NullPointerException at com.atlassian.confluence.links.LinkParserHelper.handleMacro(LinkParserHelper.java:41) at com.atlassian.renderer.v2.WikiMarkupParser.makeMacro(WikiMarkupParser.java:126) at com.atlassian.renderer.v2.WikiMarkupParser.makeMacro(WikiMarkupParser.java:121) at com.atlassian.renderer.v2.WikiMarkupParser.handlePotentialMacro(WikiMarkupParser.java:94) at com.atlassian.renderer.v2.WikiMarkupParser.parse(WikiMarkupParser.java:60) at com.atlassian.confluence.links.LinkParserHelper.extractLinks(LinkParserHelper.java:67) at com.atlassian.confluence.links.LinkParserHelper.extractLinks(LinkParserHelper.java:60) at com.atlassian.confluence.links.ConfluenceLinkResolver.extractLinkTextList(ConfluenceLinkResolver.java:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ... {noformat} ...which in turn, spits this out to the browser: {noformat} Cause: org.springframework.transaction.UnexpectedRollbackException: Transaction has been rolled back because it has been marked as rollback-only at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:469) Stack Trace: [hide] org.springframework.transaction.UnexpectedRollbackException: Transaction has been rolled back because it has been marked as rollback-only at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:469) at org.springframework.transaction.interceptor.TransactionAspectSupport.doCommitTransactionAfterReturning(TransactionAspectSupport.java:266) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176) at $Proxy5.findUserByUsername(Unknown Source) at com.opensymphony.user.provider.hibernate.HibernateProfileProvider.handles(HibernateProfileProvider.java:79) at bucket.user.providers.ChainedUserProvider.handles(ChainedUserProvider.java:125) at bucket.user.providers.CachingProfileProvider.handles(CachingProfileProvider.java:71) at com.atlassian.user.impl.osuser.properties.OSUPropertySetFactory.getPropertySet(OSUPropertySetFactory.java:30) at com.atlassian.user.impl.delegation.properties.DelegatingPropertySetFactory.getPropertySet(DelegatingPropertySetFactory.java:34) at bucket.user.DefaultUserAccessor.getPropertySet(DefaultUserAccessor.java:561) at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176) at $Proxy19.getPropertySet(Unknown Source) at com.atlassian.confluence.languages.DefaultLocaleManager.getLocale(DefaultLocaleManager.java:27) at com.atlassian.confluence.core.ConfluenceActionSupport.getLocale(ConfluenceActionSupport.java:546) at com.atlassian.confluence.core.ConfluenceActionSupport.getI18n(ConfluenceActionSupport.java:600) at com.atlassian.confluence.core.ConfluenceActionSupport.getText(ConfluenceActionSupport.java:128) at com.atlassian.confluence.pages.actions.AbstractEditPageAction.doSaveEditPageBean(AbstractEditPageAction.java:185) at com.atlassian.confluence.pages.actions.EditPageAction.doSaveEditPageBean(EditPageAction.java:172) at com.atlassian.confluence.pages.actions.EditPageAction.doEdit(EditPageAction.java:244) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {noformat} Not pretty. A workaround it to return a RenderMode from the 'getBodyRenderMode()' method, however there is no way to have Confluence behave in the same way as returning 'null' is supposed to, which effects how the macros render in the final page.

    Atlassian JIRA | 9 years ago | David Peterson
    java.lang.NullPointerException
  6. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.confluence.links.LinkParserHelper.handleMacro()
    2. com.atlassian.confluence
      LinkParserHelper.handleMacro
      1. com.atlassian.confluence.links.LinkParserHelper.handleMacro(LinkParserHelper.java:41)
      1 frame