org.apache.velocity.exception.MethodInvocationException: Invocation of method 'diff' in class com.atlassian.jira.mail.DiffUtils threw exception java.lang.NullPointerException at templates/email/html/includes/patterns/worklog-top.vm[line 9, column 46]

Atlassian JIRA | Julian Rahmadiputra [Atlassian] | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    *Steps to Reproduce:* # Install JIRA that is connected to ORACLE DB. # Configure Outgoing Mail on the end of the Installation Wizard. # Create a User which have a working email address. # Create a Project and an Issue. # Assign the issue to the recently created user. # Log Work on the issue without any comment. # Wait until the notification is sent out. # After it, edit the Worklog comment and save. # Wait for another notification to sent out to the assignee. *Expected Result:* * The Email notification will sent out with content of the edited comment. *Actual Result:* * The email notification is filled out with an error. *Notes:* * What is shown in the logs: {noformat} 2015-03-10 21:43:55,470 Sending mailitem com.atlassian.jira.mail.IssueMailQueueItem@38356b0c[issue=com.atlassian.jira.issue.IssueImpl@7903c214[id=10006,summary=Worklog 1,key=DEMO-7,created=2015-03-10 21:43:02.0,updated=2015-03-10 21:43:55.202,assignee=internal1:1,reporter=admin:1],remoteUser=admin:1,notificationType=Current_Assignee,eventTypeId=15,templateId=15] ERROR ServiceRunner Mail Queue Service [velocity] Exception rendering #parse(templates/email/html/includes/patterns/worklog-top.vm) at templates/email/macros.vm[line 306, column 9] 2015-03-10 21:43:55,471 Sending mailitem com.atlassian.jira.mail.IssueMailQueueItem@38356b0c[issue=com.atlassian.jira.issue.IssueImpl@7903c214[id=10006,summary=Worklog 1,key=DEMO-7,created=2015-03-10 21:43:02.0,updated=2015-03-10 21:43:55.202,assignee=internal1:1,reporter=admin:1],remoteUser=admin:1,notificationType=Current_Assignee,eventTypeId=15,templateId=15] ERROR ServiceRunner Mail Queue Service [velocity] Exception in macro #genericChangelogMailWithWorklog at getEncodedBodyFromContent[line 4, column 1] 2015-03-10 21:43:55,473 Sending mailitem com.atlassian.jira.mail.IssueMailQueueItem@38356b0c[issue=com.atlassian.jira.issue.IssueImpl@7903c214[id=10006,summary=Worklog 1,key=DEMO-7,created=2015-03-10 21:43:02.0,updated=2015-03-10 21:43:55.202,assignee=internal1:1,reporter=admin:1],remoteUser=admin:1,notificationType=Current_Assignee,eventTypeId=15,templateId=15] ERROR ServiceRunner Mail Queue Service [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: java.lang.NullPointerException java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Unknown Source) at java.util.regex.Matcher.reset(Unknown Source) at java.util.regex.Matcher.<init>(Unknown Source) at java.util.regex.Pattern.matcher(Unknown Source) {noformat} {noformat} 2015-10-27 11:32:40,152 http-bio-8091-exec-79 ERROR username 692x12812362x1 a8x71z 10.101.80.31,127.0.0.1 /secure/UpdateWorklog.jspa [velocity] Exception rendering #parse(templates/email/html/includes/patterns/worklog-top.vm) at templates/email/macros.vm[line 306, column 9] 2015-10-27 11:32:40,152 http-bio-8091-exec-79 ERROR username 692x12812362x1 a8x71z 10.101.80.31,127.0.0.1 /secure/UpdateWorklog.jspa [velocity] Exception in macro #genericChangelogMailWithWorklog at getEncodedBodyFromContent[line 44, column 1] 2015-10-27 11:32:40,152 http-bio-8091-exec-79 ERROR username 692x12812362x1 a8x71z 10.101.80.31,127.0.0.1 /secure/UpdateWorklog.jspa [com.atlassian.velocity.DefaultVelocityManager] Exception getting message body from Velocity: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'diff' in class com.atlassian.jira.mail.DiffUtils threw exception java.lang.NullPointerException at templates/email/html/includes/patterns/worklog-top.vm[line 9, column 46] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'diff' in class com.atlassian.jira.mail.DiffUtils threw exception java.lang.NullPointerException at templates/email/html/includes/patterns/worklog-top.vm[line 9, column 46] 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.value(ASTReference.java:507) (...) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Matcher.java:1283) at java.util.regex.Matcher.reset(Matcher.java:309) at java.util.regex.Matcher.<init>(Matcher.java:229) at java.util.regex.Pattern.matcher(Pattern.java:1093) at com.atlassian.diff.WordLevelDiffer.tokenize(WordLevelDiffer.java:176) at com.atlassian.diff.DiffViewBean.createWordLevelDiff(DiffViewBean.java:124) at com.atlassian.jira.mail.DiffUtils.diff(DiffUtils.java:23) <+3> (NativeMethodAccessorImpl.java:62) (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:385) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:374) at com.atlassian.velocity.htmlsafe.introspection.UnboxingMethod.invoke(UnboxingMethod.java:30) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270) ... 256 more {noformat} * not replicable on HSQLDB

    Atlassian JIRA | 2 years ago | Julian Rahmadiputra [Atlassian]
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'diff' in class com.atlassian.jira.mail.DiffUtils threw exception java.lang.NullPointerException at templates/email/html/includes/patterns/worklog-top.vm[line 9, column 46]
  2. 0

    *Steps to Reproduce:* # Install JIRA that is connected to ORACLE DB. # Configure Outgoing Mail on the end of the Installation Wizard. # Create a User which have a working email address. # Create a Project and an Issue. # Assign the issue to the recently created user. # Log Work on the issue without any comment. # Wait until the notification is sent out. # After it, edit the Worklog comment and save. # Wait for another notification to sent out to the assignee. *Expected Result:* * The Email notification will sent out with content of the edited comment. *Actual Result:* * The email notification is filled out with an error. *Notes:* * What is shown in the logs: {noformat} 2015-03-10 21:43:55,470 Sending mailitem com.atlassian.jira.mail.IssueMailQueueItem@38356b0c[issue=com.atlassian.jira.issue.IssueImpl@7903c214[id=10006,summary=Worklog 1,key=DEMO-7,created=2015-03-10 21:43:02.0,updated=2015-03-10 21:43:55.202,assignee=internal1:1,reporter=admin:1],remoteUser=admin:1,notificationType=Current_Assignee,eventTypeId=15,templateId=15] ERROR ServiceRunner Mail Queue Service [velocity] Exception rendering #parse(templates/email/html/includes/patterns/worklog-top.vm) at templates/email/macros.vm[line 306, column 9] 2015-03-10 21:43:55,471 Sending mailitem com.atlassian.jira.mail.IssueMailQueueItem@38356b0c[issue=com.atlassian.jira.issue.IssueImpl@7903c214[id=10006,summary=Worklog 1,key=DEMO-7,created=2015-03-10 21:43:02.0,updated=2015-03-10 21:43:55.202,assignee=internal1:1,reporter=admin:1],remoteUser=admin:1,notificationType=Current_Assignee,eventTypeId=15,templateId=15] ERROR ServiceRunner Mail Queue Service [velocity] Exception in macro #genericChangelogMailWithWorklog at getEncodedBodyFromContent[line 4, column 1] 2015-03-10 21:43:55,473 Sending mailitem com.atlassian.jira.mail.IssueMailQueueItem@38356b0c[issue=com.atlassian.jira.issue.IssueImpl@7903c214[id=10006,summary=Worklog 1,key=DEMO-7,created=2015-03-10 21:43:02.0,updated=2015-03-10 21:43:55.202,assignee=internal1:1,reporter=admin:1],remoteUser=admin:1,notificationType=Current_Assignee,eventTypeId=15,templateId=15] ERROR ServiceRunner Mail Queue Service [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: java.lang.NullPointerException java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Unknown Source) at java.util.regex.Matcher.reset(Unknown Source) at java.util.regex.Matcher.<init>(Unknown Source) at java.util.regex.Pattern.matcher(Unknown Source) {noformat} {noformat} 2015-10-27 11:32:40,152 http-bio-8091-exec-79 ERROR username 692x12812362x1 a8x71z 10.101.80.31,127.0.0.1 /secure/UpdateWorklog.jspa [velocity] Exception rendering #parse(templates/email/html/includes/patterns/worklog-top.vm) at templates/email/macros.vm[line 306, column 9] 2015-10-27 11:32:40,152 http-bio-8091-exec-79 ERROR username 692x12812362x1 a8x71z 10.101.80.31,127.0.0.1 /secure/UpdateWorklog.jspa [velocity] Exception in macro #genericChangelogMailWithWorklog at getEncodedBodyFromContent[line 44, column 1] 2015-10-27 11:32:40,152 http-bio-8091-exec-79 ERROR username 692x12812362x1 a8x71z 10.101.80.31,127.0.0.1 /secure/UpdateWorklog.jspa [com.atlassian.velocity.DefaultVelocityManager] Exception getting message body from Velocity: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'diff' in class com.atlassian.jira.mail.DiffUtils threw exception java.lang.NullPointerException at templates/email/html/includes/patterns/worklog-top.vm[line 9, column 46] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'diff' in class com.atlassian.jira.mail.DiffUtils threw exception java.lang.NullPointerException at templates/email/html/includes/patterns/worklog-top.vm[line 9, column 46] 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.value(ASTReference.java:507) (...) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Matcher.java:1283) at java.util.regex.Matcher.reset(Matcher.java:309) at java.util.regex.Matcher.<init>(Matcher.java:229) at java.util.regex.Pattern.matcher(Pattern.java:1093) at com.atlassian.diff.WordLevelDiffer.tokenize(WordLevelDiffer.java:176) at com.atlassian.diff.DiffViewBean.createWordLevelDiff(DiffViewBean.java:124) at com.atlassian.jira.mail.DiffUtils.diff(DiffUtils.java:23) <+3> (NativeMethodAccessorImpl.java:62) (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:385) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:374) at com.atlassian.velocity.htmlsafe.introspection.UnboxingMethod.invoke(UnboxingMethod.java:30) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270) ... 256 more {noformat} * not replicable on HSQLDB

    Atlassian JIRA | 2 years ago | Julian Rahmadiputra [Atlassian]
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'diff' in class com.atlassian.jira.mail.DiffUtils threw exception java.lang.NullPointerException at templates/email/html/includes/patterns/worklog-top.vm[line 9, column 46]
  3. 0

    User reported error: unconfirmed, no logs provided. A user deleted a comment from a blog and this first caused the blog macro to fail (unable to render) and now the recent blogs icon when selected throws an exception. Cause: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getDatePath' in class com.atlassian.confluence.pages.BlogPost$$EnhancerByCGLIB$$94ea028 threw exception class java.lang.ClassCastException : null Stack Trace: [hide] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getDatePath' in class com.atlassian.confluence.pages.BlogPost$$EnhancerByCGLIB$$94ea028 threw exception class java.lang.ClassCastException : null at org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyExecutor.java:188) at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:226) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:357) Referer URL: http://issues.cassium.com/confluence/homepage.action Build Information: Uptime: 25 days, 17 hours, 9 minutes, 30 seconds Version: 1.1.2 Build Number: 57 Server Information: Application Server: Apache Tomcat/4.1.29 Servlet Version: 2.3 Database Dialect: net.sf.hibernate.dialect.SQLServerDialect Memory Information: Total Memory: 253 MB Free Memory: 40 MB Used Memory: 213 MB System Information: System Date: Tuesday, 03 Aug 2004 System Time: 12:42:48 System Favourite Colour: Almond Java Version: 1.4.2_02 Java Vendor: Sun Microsystems Inc. JVM Version: 1.0 JVM Vendor: Sun Microsystems Inc. JVM Implementation Version: 1.4.2_02-b03 Java Runtime: Java(TM) 2 Runtime Environment, Standard Edition Java VM: Java HotSpot(TM) Server VM User Name: SYSTEM User Timezone: Europe/London Operating System: Windows 2000 5.0 OS Architecture: x86

    Atlassian JIRA | 1 decade ago | Dave Loeng [Atlassian]
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getDatePath' in class com.atlassian.confluence.pages.BlogPost$$EnhancerByCGLIB$$94ea028 threw exception class java.lang.ClassCastException : null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Steps to reproduce: * Create a new page using Safari * Set the body of the page to !monkey.jpg! * Click on the preview tab Error: Cause: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getInheritedViewPermissions' in class com.atlassian.confluence.pages.actions.CreatePageAction threw exception class net.sf.hibernate.LazyInitializationException : Failed to lazily initialize a collection at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:309) caused by: net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:201) caused by: net.sf.hibernate.HibernateException: collection was evicted at net.sf.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:3305) Stack Trace: [hide] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getInheritedViewPermissions' in class com.atlassian.confluence.pages.actions.CreatePageAction threw exception class net.sf.hibernate.LazyInitializationException : Failed to lazily initialize a collection at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:309) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:357) ... Caused by: net.sf.hibernate.HibernateException: collection was evicted at net.sf.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:3305) at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:195) ... 149 more Referer URL: http://extranet.atlassian.com/pages/createpage.action Build Information: confluence.home: /opt/j2ee/domains/atlassian.com/extranet/webapps/atlassian-confluence/data system.uptime: 22 hours, 34 minutes, 12 seconds system.version: 2.3-SNAPSHOT build.number: 638 Server Information: Application Server: Apache Tomcat/5.0.28 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: 300 MB free.memory: 129 MB used.memory: 171 MB System Information: system.date: Monday, 04 Dec 2006 system.time: 16:56:53 system.favourite.colour: Viridian java.version: 1.4.2_12 java.vendor: Sun Microsystems Inc. jvm.version: 1.0 jvm.vendor: Sun Microsystems Inc. jvm.implementation.version: 1.4.2_12-b03 java.runtime: Java(TM) 2 Runtime Environment, Standard Edition java.vm: Java HotSpot(TM) Server VM user.name.word: j2ee user.timezone: America/Chicago operating.system: Linux 2.6.9-42.0.3.ELsmp os.architecture: i386 fs.encoding: ANSI_X3.4-1968 Cluster Information: Name: extranet Description: TangosolClusterInformation: extranet, listening on 235.54.69.161:32357 Members: Member(Id=1, Timestamp=2006-11-29 19:18:34.026, Address=172.16.0.10:8088, MachineId=57135) Member(Id=3, Timestamp=2006-12-03 18:22:43.801, Address=172.16.0.11:8088, MachineId=57136) Enabled Plugins: Basic Macros (confluence.macros.basic, Version: 1.3) Gliffy Plugin (com.gliffy.integration.confluence, Version: 0.88) HTML Macros (confluence.macros.html, Version: 1.3) Chart Plugin (confluence.extra.chart, Version: 1.5) User Listener (confluence.extra.userlister, Version: 1.2) Global Labels Sections (confluence.sections.labels, Version: 1.0) Information Macros (confluence.extra.information, Version: 0.1) Profile Tabs (confluence.sections.profile, Version: 1.0) Confluence Remote API (confluence.extra.confluencerpc, Version: 1.4) Core Startup and Shutdown (confluence.lifecycle.core, Version: 1) Admin Sections (confluence.sections.admin, Version: 1.0) Space Pages Sections (confluence.sections.space.pages, Version: 1.0) Voting Macros (com.nearinfinity.confluence.macros.vote, Version: 1.1) YourKit Profiling Plugin (com.atlassian.confluence.ext.yourkit, Version: 0.1) Find Email (com.atlassian.confluence.extra, Version: 1.0) News Tabs (confluence.sections.news, Version: 1.0) Space Advanced Sections (confluence.sections.space.advanced, Version: 1.0) Attachments Macros (confluence.extra.attachments, Version: 1.3) IM Presence Macros (confluence.extra.impresence, Version: 0.1) Space Actions Sections (confluence.sections.space.actions, Version: 1.0) Adaptavist Content Formatting Macros (com.adaptavist.confluence.contentFormattingMacros, Version: 1.6.2) Task List Macros (confluence.extra.tasklist, Version: 1.3) Space Labels Sections (confluence.sections.space.labels, Version: 1.0) Dynamic Task List Macros (confluence.extra.dynamictasklist, Version: 1.3) Core Extractors (confluence.extractors.core, Version: 1.4) Compatibility Macros (confluence.macros.compatibility, Version: 1.3) Page Tabs (confluence.sections.page, Version: 1.0) Core Listeners (confluence.listeners.core, Version: 1.3) Bamboo Theme (com.atlassian.confluence.themes.bamboo, Version: 0.1) Dashboard Macros (confluence.macros.dashboard, Version: 1.3) Live Search Macros (confluence.extra.livesearch, Version: 1.4) Page View Links (confluence.sections.page.actions, Version: 1.0) JIRA Macros (confluence.extra.jira, Version: 1.5) Clickr Theme (com.atlassian.confluence.themes.clickr, Version: 0.5) Layout Macros (confluence.extra.layout, Version: 0.1) Excel Plugin (org.swift.confluence.excel, Version: 3.0.1) Global Statistics Plugin (confluence.extra.globalstats, Version: 1.0) Tabular Metadata (confluence.extra.masterdetail, Version: 1.0) Space Admin Sections (confluence.sections.space.admin, Version: 1.0) Cache Plugin (org.swift.confluence.cache, Version: 3.0.2) Calendar Plugin (confluence.extra.calendar, Version: 2.1.11) Advanced Macros (confluence.macros.advanced, Version: 1.3) Confluence Repository Client (confluence.repository.client, Version: 1.3) IM Presence NG Plugin (confluence.extra.impresence2, Version: 2.0-rc3) Slideshow Plugin (com.atlassian.confluence.ext.slideshow, Version: 0.2) Edit Profile Sections (confluence.sections.profile.edit, Version: 1.0) FreeMind Plugin (com.atlassian.confluence.contrib.freemind, Version: 1.0.2) Contributors Plugin (confluence.authors, Version: 0.8) Attachment Extractors (confluence.extractors.attachments, Version: 1.4) SQL Plugin (org.swift.confluence.sql, Version: 3.0.1) Left Navigation Theme (com.atlassian.confluence.themes.leftnavigation, Version: 1.0) RSVP Plugin (com.atlassian.confluence.extra.rsvp, Version: 1.2_dev) Space Item Tabs (confluence.sections.space, Version: 1.0) Code Macro (confluence.macros.code, Version: 1.4) Request Information: URL: http://extranet.atlassian.com/pages/docreatepage.action - Scheme: http - Server: extranet.atlassian.com - Port: 80 - URI: /500page.jsp - - Context Path: - - Servlet Path: /500page.jsp - - Path Info: null - - Query String: null Attributes: - javax.servlet.forward.request_uri : /pages/docreatepage.action - javax.servlet.forward.context_path : - javax.servlet.forward.servlet_path : /pages/docreatepage.action - javax.servlet.forward.path_info : /500page.jsp - javax.servlet.error.exception : org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getInheritedViewPermissions' in class com.atlassian.confluence.pages.actions.CreatePageAction threw exception class net.sf.hibernate.LazyInitializationException : Failed to lazily initialize a collection - javax.servlet.error.message : - os_securityfilter_already_filtered : true - com.atlassian.johnson.filters.JohnsonFilter_already_filtered : true - __sitemesh__using_stream : false - javax.servlet.error.request_uri : /pages/docreatepage.action - javax.servlet.error.status_code : 500 - __sitemesh__filterapplied : true - javax.servlet.error.servlet_name : action - webwork.valueStack : com.opensymphony.xwork.util.OgnlValueStack@17138d8 - loginfilter.already.filtered : true - atlassian.core.seraph.original.url : /pages/docreatepage.action - javax.servlet.jsp.jspException : org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getInheritedViewPermissions' in class com.atlassian.confluence.pages.actions.CreatePageAction threw exception class net.sf.hibernate.LazyInitializationException : Failed to lazily initialize a collection - sessioninview.FILTERED : true - com.atlassian.core.filters.gzip.GzipFilter_already_filtered : true Parameters: - editPermission = - title = Customer signup form feedback - newSpaceKey = CHE - fromPageId = 527007810 - titleWritten = true - mode = markup - inPreview = false - content = A customer gave us some unintentional feedback today by replying to the invite email send by Confluence. Here is what he said: {quote} Cool - it's very slick and you get a nice sigh-up page too.... {quote} !signup_form.jpg! - spaceKey = CHE - sel2 = - xhtml = false - linkCreation = false - selectedText = - labelsString = - viewPermissionGroup = - preview = preview - editPermissionGroup = - sel1 = - viewPermission = - parentPageString = Home Confluence User: - anonymous Logging: 0 log statements generated by this request.

    Atlassian JIRA | 1 decade ago | Jens Schumacher
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getInheritedViewPermissions' in class com.atlassian.confluence.pages.actions.CreatePageAction threw exception class net.sf.hibernate.LazyInitializationException : Failed to lazily initialize a collection
  6. 0

    Steps to reproduce: * Create a new page using Safari * Set the body of the page to !monkey.jpg! * Click on the preview tab Error: Cause: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getInheritedViewPermissions' in class com.atlassian.confluence.pages.actions.CreatePageAction threw exception class net.sf.hibernate.LazyInitializationException : Failed to lazily initialize a collection at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:309) caused by: net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:201) caused by: net.sf.hibernate.HibernateException: collection was evicted at net.sf.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:3305) Stack Trace: [hide] org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getInheritedViewPermissions' in class com.atlassian.confluence.pages.actions.CreatePageAction threw exception class net.sf.hibernate.LazyInitializationException : Failed to lazily initialize a collection at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:309) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:357) ... Caused by: net.sf.hibernate.HibernateException: collection was evicted at net.sf.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:3305) at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:195) ... 149 more Referer URL: http://extranet.atlassian.com/pages/createpage.action Build Information: confluence.home: /opt/j2ee/domains/atlassian.com/extranet/webapps/atlassian-confluence/data system.uptime: 22 hours, 34 minutes, 12 seconds system.version: 2.3-SNAPSHOT build.number: 638 Server Information: Application Server: Apache Tomcat/5.0.28 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: 300 MB free.memory: 129 MB used.memory: 171 MB System Information: system.date: Monday, 04 Dec 2006 system.time: 16:56:53 system.favourite.colour: Viridian java.version: 1.4.2_12 java.vendor: Sun Microsystems Inc. jvm.version: 1.0 jvm.vendor: Sun Microsystems Inc. jvm.implementation.version: 1.4.2_12-b03 java.runtime: Java(TM) 2 Runtime Environment, Standard Edition java.vm: Java HotSpot(TM) Server VM user.name.word: j2ee user.timezone: America/Chicago operating.system: Linux 2.6.9-42.0.3.ELsmp os.architecture: i386 fs.encoding: ANSI_X3.4-1968 Cluster Information: Name: extranet Description: TangosolClusterInformation: extranet, listening on 235.54.69.161:32357 Members: Member(Id=1, Timestamp=2006-11-29 19:18:34.026, Address=172.16.0.10:8088, MachineId=57135) Member(Id=3, Timestamp=2006-12-03 18:22:43.801, Address=172.16.0.11:8088, MachineId=57136) Enabled Plugins: Basic Macros (confluence.macros.basic, Version: 1.3) Gliffy Plugin (com.gliffy.integration.confluence, Version: 0.88) HTML Macros (confluence.macros.html, Version: 1.3) Chart Plugin (confluence.extra.chart, Version: 1.5) User Listener (confluence.extra.userlister, Version: 1.2) Global Labels Sections (confluence.sections.labels, Version: 1.0) Information Macros (confluence.extra.information, Version: 0.1) Profile Tabs (confluence.sections.profile, Version: 1.0) Confluence Remote API (confluence.extra.confluencerpc, Version: 1.4) Core Startup and Shutdown (confluence.lifecycle.core, Version: 1) Admin Sections (confluence.sections.admin, Version: 1.0) Space Pages Sections (confluence.sections.space.pages, Version: 1.0) Voting Macros (com.nearinfinity.confluence.macros.vote, Version: 1.1) YourKit Profiling Plugin (com.atlassian.confluence.ext.yourkit, Version: 0.1) Find Email (com.atlassian.confluence.extra, Version: 1.0) News Tabs (confluence.sections.news, Version: 1.0) Space Advanced Sections (confluence.sections.space.advanced, Version: 1.0) Attachments Macros (confluence.extra.attachments, Version: 1.3) IM Presence Macros (confluence.extra.impresence, Version: 0.1) Space Actions Sections (confluence.sections.space.actions, Version: 1.0) Adaptavist Content Formatting Macros (com.adaptavist.confluence.contentFormattingMacros, Version: 1.6.2) Task List Macros (confluence.extra.tasklist, Version: 1.3) Space Labels Sections (confluence.sections.space.labels, Version: 1.0) Dynamic Task List Macros (confluence.extra.dynamictasklist, Version: 1.3) Core Extractors (confluence.extractors.core, Version: 1.4) Compatibility Macros (confluence.macros.compatibility, Version: 1.3) Page Tabs (confluence.sections.page, Version: 1.0) Core Listeners (confluence.listeners.core, Version: 1.3) Bamboo Theme (com.atlassian.confluence.themes.bamboo, Version: 0.1) Dashboard Macros (confluence.macros.dashboard, Version: 1.3) Live Search Macros (confluence.extra.livesearch, Version: 1.4) Page View Links (confluence.sections.page.actions, Version: 1.0) JIRA Macros (confluence.extra.jira, Version: 1.5) Clickr Theme (com.atlassian.confluence.themes.clickr, Version: 0.5) Layout Macros (confluence.extra.layout, Version: 0.1) Excel Plugin (org.swift.confluence.excel, Version: 3.0.1) Global Statistics Plugin (confluence.extra.globalstats, Version: 1.0) Tabular Metadata (confluence.extra.masterdetail, Version: 1.0) Space Admin Sections (confluence.sections.space.admin, Version: 1.0) Cache Plugin (org.swift.confluence.cache, Version: 3.0.2) Calendar Plugin (confluence.extra.calendar, Version: 2.1.11) Advanced Macros (confluence.macros.advanced, Version: 1.3) Confluence Repository Client (confluence.repository.client, Version: 1.3) IM Presence NG Plugin (confluence.extra.impresence2, Version: 2.0-rc3) Slideshow Plugin (com.atlassian.confluence.ext.slideshow, Version: 0.2) Edit Profile Sections (confluence.sections.profile.edit, Version: 1.0) FreeMind Plugin (com.atlassian.confluence.contrib.freemind, Version: 1.0.2) Contributors Plugin (confluence.authors, Version: 0.8) Attachment Extractors (confluence.extractors.attachments, Version: 1.4) SQL Plugin (org.swift.confluence.sql, Version: 3.0.1) Left Navigation Theme (com.atlassian.confluence.themes.leftnavigation, Version: 1.0) RSVP Plugin (com.atlassian.confluence.extra.rsvp, Version: 1.2_dev) Space Item Tabs (confluence.sections.space, Version: 1.0) Code Macro (confluence.macros.code, Version: 1.4) Request Information: URL: http://extranet.atlassian.com/pages/docreatepage.action - Scheme: http - Server: extranet.atlassian.com - Port: 80 - URI: /500page.jsp - - Context Path: - - Servlet Path: /500page.jsp - - Path Info: null - - Query String: null Attributes: - javax.servlet.forward.request_uri : /pages/docreatepage.action - javax.servlet.forward.context_path : - javax.servlet.forward.servlet_path : /pages/docreatepage.action - javax.servlet.forward.path_info : /500page.jsp - javax.servlet.error.exception : org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getInheritedViewPermissions' in class com.atlassian.confluence.pages.actions.CreatePageAction threw exception class net.sf.hibernate.LazyInitializationException : Failed to lazily initialize a collection - javax.servlet.error.message : - os_securityfilter_already_filtered : true - com.atlassian.johnson.filters.JohnsonFilter_already_filtered : true - __sitemesh__using_stream : false - javax.servlet.error.request_uri : /pages/docreatepage.action - javax.servlet.error.status_code : 500 - __sitemesh__filterapplied : true - javax.servlet.error.servlet_name : action - webwork.valueStack : com.opensymphony.xwork.util.OgnlValueStack@17138d8 - loginfilter.already.filtered : true - atlassian.core.seraph.original.url : /pages/docreatepage.action - javax.servlet.jsp.jspException : org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getInheritedViewPermissions' in class com.atlassian.confluence.pages.actions.CreatePageAction threw exception class net.sf.hibernate.LazyInitializationException : Failed to lazily initialize a collection - sessioninview.FILTERED : true - com.atlassian.core.filters.gzip.GzipFilter_already_filtered : true Parameters: - editPermission = - title = Customer signup form feedback - newSpaceKey = CHE - fromPageId = 527007810 - titleWritten = true - mode = markup - inPreview = false - content = A customer gave us some unintentional feedback today by replying to the invite email send by Confluence. Here is what he said: {quote} Cool - it's very slick and you get a nice sigh-up page too.... {quote} !signup_form.jpg! - spaceKey = CHE - sel2 = - xhtml = false - linkCreation = false - selectedText = - labelsString = - viewPermissionGroup = - preview = preview - editPermissionGroup = - sel1 = - viewPermission = - parentPageString = Home Confluence User: - anonymous Logging: 0 log statements generated by this request.

    Atlassian JIRA | 1 decade ago | Jens Schumacher
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getInheritedViewPermissions' in class com.atlassian.confluence.pages.actions.CreatePageAction threw exception class net.sf.hibernate.LazyInitializationException : Failed to lazily initialize a collection

    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. org.apache.velocity.exception.MethodInvocationException

      Invocation of method 'diff' in class com.atlassian.jira.mail.DiffUtils threw exception java.lang.NullPointerException at templates/email/html/includes/patterns/worklog-top.vm[line 9, column 46]

      at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException()
    2. Apache Velocity
      ASTReference.value
      1. org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
      2. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
      3. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)
      4. org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:507)
      4 frames