java.lang.IllegalArgumentException: Content must not be null

Atlassian JIRA | Michael Seager [Atlassian] | 6 years ago
  1. 0

    [CONF-21439] Content must not be null error when uploading global logo - Atlassian JIRA

    atlassian.com | 11 months ago
    java.lang.IllegalArgumentException: Content must not be null
  2. 0

    Attempting to upload a global logo results in an error similar to this: {code:none} java.lang.IllegalArgumentException: Content must not be null at org.springframework.util.Assert.notNull(Assert.java:112) at com.atlassian.confluence.pages.attachments.CachingAttachmentDao.getLatestAttachment(CachingAttachmentDao.java:59) at com.atlassian.confluence.pages.DefaultAttachmentManager.getAttachment(DefaultAttachmentManager.java:41) at com.atlassian.confluence.pages.DelegatorAttachmentManager.getAttachment(DelegatorAttachmentManager.java:68) at sun.reflect.GeneratedMethodAccessor388.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy18.getAttachment(Unknown Source) {code} {panel:title=Workaround|borderStyle=solid|borderColor=#3C78B5| titleBGColor=#3C78B5| bgColor=#E7F4FA} Insert the Global Description [manually|http://jira.atlassian.com/browse/CONF-13767?focusedCommentId=139652&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-139652] into your database as suggested in the related issue [CONF-13767|http://jira.atlassian.com/secure/QuickSearch.jspa?searchString=CONF-13767] and then restart your Confluence server. {panel}

    Atlassian JIRA | 6 years ago | Michael Seager [Atlassian]
    java.lang.IllegalArgumentException: Content must not be null
  3. 0

    Attempting to upload a global logo results in an error similar to this: {code:none} java.lang.IllegalArgumentException: Content must not be null at org.springframework.util.Assert.notNull(Assert.java:112) at com.atlassian.confluence.pages.attachments.CachingAttachmentDao.getLatestAttachment(CachingAttachmentDao.java:59) at com.atlassian.confluence.pages.DefaultAttachmentManager.getAttachment(DefaultAttachmentManager.java:41) at com.atlassian.confluence.pages.DelegatorAttachmentManager.getAttachment(DelegatorAttachmentManager.java:68) at sun.reflect.GeneratedMethodAccessor388.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy18.getAttachment(Unknown Source) {code} {panel:title=Workaround|borderStyle=solid|borderColor=#3C78B5| titleBGColor=#3C78B5| bgColor=#E7F4FA} Insert the Global Description [manually|http://jira.atlassian.com/browse/CONF-13767?focusedCommentId=139652&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-139652] into your database as suggested in the related issue [CONF-13767|http://jira.atlassian.com/secure/QuickSearch.jspa?searchString=CONF-13767] and then restart your Confluence server. {panel}

    Atlassian JIRA | 6 years ago | Michael Seager [Atlassian]
    java.lang.IllegalArgumentException: Content must not be null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    testHtmlExportSpaceWithIncludedImage has failed at least twice recently with the following message: {panel} null junit.framework.AssertionFailedError at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.assertTrue(Assert.java:20) at junit.framework.Assert.assertTrue(Assert.java:27) at com.atlassian.confluence.HtmlExportAcceptanceTest.doHtmlExport(HtmlExportAcceptanceTest.java:318) at com.atlassian.confluence.HtmlExportAcceptanceTest.testHtmlExportSpaceWithIncludedImage(HtmlExportAcceptanceTest.java:164) {panel} The logs contained the following error: {panel} com.atlassian.confluence.importexport.ImportExportException: java.lang.IllegalArgumentException: Content entity object at com.atlassian.confluence.importexport.impl.HtmlExporter.doExportEntity(HtmlExporter.java:203) at com.atlassian.confluence.importexport.impl.HtmlExporter.exportPage(HtmlExporter.java:87) at com.atlassian.confluence.importexport.impl.HtmlExporter.exportSpace(HtmlExporter.java:99) at com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl.doExport(AbstractRendererExporterImpl.java:86) at com.atlassian.confluence.importexport.impl.HtmlExporter.doExport(HtmlExporter.java:31) at com.atlassian.confluence.importexport.DefaultImportExportManager.exportAs(DefaultImportExportManager.java:112) 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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy69.exportAs(Unknown Source) at com.atlassian.confluence.importexport.actions.ExportSpaceLongRunningTask$1.doInTransactionWithoutResult(ExportSpaceLongRunningTask.java:87) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127) at com.atlassian.confluence.importexport.actions.ExportSpaceLongRunningTask.runInternal(ExportSpaceLongRunningTask.java:58) at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:21) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.IllegalArgumentException: Content entity object at org.springframework.util.Assert.notNull(Assert.java:112) at com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao.getLatestVersionsOfAttachments(AbstractHibernateAttachmentDao.java:78) at com.atlassian.confluence.pages.DefaultAttachmentManager.getLatestVersionsOfAttachments(DefaultAttachmentManager.java:63) at com.atlassian.confluence.pages.AbstractAttachmentManager.getAttachment(AbstractAttachmentManager.java:51) at com.atlassian.confluence.pages.DelegatorAttachmentManager.getAttachment(DelegatorAttachmentManager.java:78) at sun.reflect.GeneratedMethodAccessor1193.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:304) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy20.getAttachment(Unknown Source) at com.atlassian.confluence.servlet.download.AttachmentUrlParser.getAttachment(AttachmentUrlParser.java:33) at com.atlassian.confluence.importexport.impl.ExportPathUtils.getExportPathFromAttachment(ExportPathUtils.java:76) at com.atlassian.confluence.importexport.impl.ExportPathUtils.constructRelativeExportPath(ExportPathUtils.java:50) at com.atlassian.confluence.importexport.impl.HtmlImageProcessingRule.process(HtmlImageProcessingRule.java:42) at com.opensymphony.module.sitemesh.html.HTMLProcessor$2.tag(HTMLProcessor.java:99) at com.opensymphony.module.sitemesh.html.tokenizer.Parser.parsedTag(Parser.java:303) at com.opensymphony.module.sitemesh.html.tokenizer.Parser.parseFullTag(Parser.java:215) at com.opensymphony.module.sitemesh.html.tokenizer.Parser.parseTag(Parser.java:156) at com.opensymphony.module.sitemesh.html.tokenizer.Parser.start(Parser.java:112) at com.opensymphony.module.sitemesh.html.tokenizer.TagTokenizer.start(TagTokenizer.java:33) at com.opensymphony.module.sitemesh.html.HTMLProcessor.process(HTMLProcessor.java:90) at com.atlassian.confluence.importexport.impl.HtmlImageParser.parse(HtmlImageParser.java:27) at com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl.exportImages(AbstractRendererExporterImpl.java:141) at com.atlassian.confluence.importexport.impl.HtmlExporter.doExportEntity(HtmlExporter.java:182) ... 22 more {panel} See: https://bamboo.extranet.atlassian.com/build/viewBuildResults.action?buildKey=CONFFUNC-T5PG&buildNumber=2130 https://bamboo.extranet.atlassian.com/browse/CONFFUNC-T5PG-2099 Unfortunately bamboo is lying to us about the number of failures: https://bamboo.extranet.atlassian.com/build/viewTestCaseHistory.action?buildKey=CONFFUNC-T5PG&testClassName=com.atlassian.confluence.HtmlExportAcceptanceTest&testCaseName=testHtmlExportSpaceWithIncludedImage

    Atlassian JIRA | 8 years ago | Don Willis [Atlassian]
    com.atlassian.confluence.importexport.ImportExportException: java.lang.IllegalArgumentException: Content entity object
  6. 0

    testHtmlExportSpaceWithIncludedImage has failed at least twice recently with the following message: {panel} null junit.framework.AssertionFailedError at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.assertTrue(Assert.java:20) at junit.framework.Assert.assertTrue(Assert.java:27) at com.atlassian.confluence.HtmlExportAcceptanceTest.doHtmlExport(HtmlExportAcceptanceTest.java:318) at com.atlassian.confluence.HtmlExportAcceptanceTest.testHtmlExportSpaceWithIncludedImage(HtmlExportAcceptanceTest.java:164) {panel} The logs contained the following error: {panel} com.atlassian.confluence.importexport.ImportExportException: java.lang.IllegalArgumentException: Content entity object at com.atlassian.confluence.importexport.impl.HtmlExporter.doExportEntity(HtmlExporter.java:203) at com.atlassian.confluence.importexport.impl.HtmlExporter.exportPage(HtmlExporter.java:87) at com.atlassian.confluence.importexport.impl.HtmlExporter.exportSpace(HtmlExporter.java:99) at com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl.doExport(AbstractRendererExporterImpl.java:86) at com.atlassian.confluence.importexport.impl.HtmlExporter.doExport(HtmlExporter.java:31) at com.atlassian.confluence.importexport.DefaultImportExportManager.exportAs(DefaultImportExportManager.java:112) 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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy69.exportAs(Unknown Source) at com.atlassian.confluence.importexport.actions.ExportSpaceLongRunningTask$1.doInTransactionWithoutResult(ExportSpaceLongRunningTask.java:87) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:127) at com.atlassian.confluence.importexport.actions.ExportSpaceLongRunningTask.runInternal(ExportSpaceLongRunningTask.java:58) at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:21) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.IllegalArgumentException: Content entity object at org.springframework.util.Assert.notNull(Assert.java:112) at com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao.getLatestVersionsOfAttachments(AbstractHibernateAttachmentDao.java:78) at com.atlassian.confluence.pages.DefaultAttachmentManager.getLatestVersionsOfAttachments(DefaultAttachmentManager.java:63) at com.atlassian.confluence.pages.AbstractAttachmentManager.getAttachment(AbstractAttachmentManager.java:51) at com.atlassian.confluence.pages.DelegatorAttachmentManager.getAttachment(DelegatorAttachmentManager.java:78) at sun.reflect.GeneratedMethodAccessor1193.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:304) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy20.getAttachment(Unknown Source) at com.atlassian.confluence.servlet.download.AttachmentUrlParser.getAttachment(AttachmentUrlParser.java:33) at com.atlassian.confluence.importexport.impl.ExportPathUtils.getExportPathFromAttachment(ExportPathUtils.java:76) at com.atlassian.confluence.importexport.impl.ExportPathUtils.constructRelativeExportPath(ExportPathUtils.java:50) at com.atlassian.confluence.importexport.impl.HtmlImageProcessingRule.process(HtmlImageProcessingRule.java:42) at com.opensymphony.module.sitemesh.html.HTMLProcessor$2.tag(HTMLProcessor.java:99) at com.opensymphony.module.sitemesh.html.tokenizer.Parser.parsedTag(Parser.java:303) at com.opensymphony.module.sitemesh.html.tokenizer.Parser.parseFullTag(Parser.java:215) at com.opensymphony.module.sitemesh.html.tokenizer.Parser.parseTag(Parser.java:156) at com.opensymphony.module.sitemesh.html.tokenizer.Parser.start(Parser.java:112) at com.opensymphony.module.sitemesh.html.tokenizer.TagTokenizer.start(TagTokenizer.java:33) at com.opensymphony.module.sitemesh.html.HTMLProcessor.process(HTMLProcessor.java:90) at com.atlassian.confluence.importexport.impl.HtmlImageParser.parse(HtmlImageParser.java:27) at com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl.exportImages(AbstractRendererExporterImpl.java:141) at com.atlassian.confluence.importexport.impl.HtmlExporter.doExportEntity(HtmlExporter.java:182) ... 22 more {panel} See: https://bamboo.extranet.atlassian.com/build/viewBuildResults.action?buildKey=CONFFUNC-T5PG&buildNumber=2130 https://bamboo.extranet.atlassian.com/browse/CONFFUNC-T5PG-2099 Unfortunately bamboo is lying to us about the number of failures: https://bamboo.extranet.atlassian.com/build/viewTestCaseHistory.action?buildKey=CONFFUNC-T5PG&testClassName=com.atlassian.confluence.HtmlExportAcceptanceTest&testCaseName=testHtmlExportSpaceWithIncludedImage

    Atlassian JIRA | 8 years ago | Don Willis [Atlassian]
    com.atlassian.confluence.importexport.ImportExportException: java.lang.IllegalArgumentException: Content entity object

  1. batwalrus76 4 times, last 2 weeks ago
  2. serious2monkeys 1 times, last 2 weeks ago
  3. tvrmsmith 1 times, last 4 weeks ago
  4. fima 1 times, last 2 months ago
  5. dafman 2 times, last 2 months ago
8 more registered users
87 unregistered visitors
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.IllegalArgumentException

    Content must not be null

    at org.springframework.util.Assert.notNull()
  2. Spring Core
    Assert.notNull
    1. org.springframework.util.Assert.notNull(Assert.java:112)
    1 frame
  3. com.atlassian.confluence
    DelegatorAttachmentManager.getAttachment
    1. com.atlassian.confluence.pages.attachments.CachingAttachmentDao.getLatestAttachment(CachingAttachmentDao.java:59)
    2. com.atlassian.confluence.pages.DefaultAttachmentManager.getAttachment(DefaultAttachmentManager.java:41)
    3. com.atlassian.confluence.pages.DelegatorAttachmentManager.getAttachment(DelegatorAttachmentManager.java:68)
    3 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor388.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:597)
    3 frames
  5. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    3 frames
  6. Spring Tx
    TransactionInterceptor.invoke
    1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
    1 frame
  7. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    2 frames
  8. Unknown
    $Proxy18.getAttachment
    1. $Proxy18.getAttachment(Unknown Source)
    1 frame