java.lang.IllegalArgumentException: content must not be null

GitHub | Creeperface01 | 3 months ago
  1. 0

    bug on startup

    GitHub | 3 months ago | Creeperface01
    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. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    h3. Summary When moving an image that was already present in a global template, the move will not be taken into account when saving the template as well as all other changes made during the edit. Image in the template was attached from another Confluence page. h3. Environment (Optional - If Applicable) * Confluence Cloud version 1000.132.1 h3. Steps to Reproduce # Edit a global template with an image present already in it (image coming from another Confluence page). # Copy the image and paste it in another section. # Make other changes to your template. # Save the template (no error message is displayed on the UI). h3. Expected Results Changes are saved and appear when using the template. Or an error message should be displayed if this is per design. h3. Actual Results Changes are not saved and the below exception is thrown in Confluence log: {noformat} Error unmarshaling editor embedded image java.lang.IllegalArgumentException: Content must not be null at org.springframework.util.Assert.notNull(Assert.java:115) at com.atlassian.confluence.pages.attachments.CachingAttachmentDao.getLatestAttachment(CachingAttachmentDao.java:70) at com.atlassian.confluence.pages.DefaultAttachmentManager.getAttachment(DefaultAttachmentManager.java:125) at com.atlassian.confluence.pages.DefaultAttachmentManager.getAttachment(DefaultAttachmentManager.java:99) at com.atlassian.confluence.pages.DelegatorAttachmentManager.getAttachment(DelegatorAttachmentManager.java:104) at com.atlassian.confluence.pages.CachingAttachmentManager.getAttachment(CachingAttachmentManager.java:163) ... 2 filtered {noformat} h3.Workaround Attach the image directly to the template and then it works.

    Atlassian JIRA | 5 months ago | Emmanuel Ratsimiala [Atlassian]
    java.lang.IllegalArgumentException: Content must not be null
  5. 0

    Steps to reproduce: # In admin panel, click "add global template page" # Copy/past content in from another page, including an image attachment. Note that all looks fine in the editor. # Click save The save action will (silently) fail, and the new template will not appear in the list. This is the relevant error log: {code:java} 2016-02-18 13:06:08,826 WARN [http-bio-8080-exec-3] [xhtml.editor.embed.EditorEmbeddedImageResourceUnmarshaller] unmarshal Error unmarshaling editor embedded image -- referer: http://localhost:8080/confluence/pages/templates2/createpagetemplate.action?key= | url: /confluence/pages/templates2/docreatepagetemplate.action | traceId: 7ce104360fdd84a6 | userName: ad min | action: docreatepagetemplate 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:67) at com.atlassian.confluence.pages.DefaultAttachmentManager.getAttachment(DefaultAttachmentManager.java:125) at com.atlassian.confluence.pages.DefaultAttachmentManager.getAttachment(DefaultAttachmentManager.java:91) at com.atlassian.confluence.pages.DelegatorAttachmentManager.getAttachment(DelegatorAttachmentManager.java:101) at com.atlassian.confluence.pages.CachingAttachmentManager.getAttachment(CachingAttachmentManager.java:158) at sun.reflect.GeneratedMethodAccessor668.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) 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 com.sun.proxy.$Proxy132.getAttachment(Unknown Source) at com.atlassian.confluence.content.render.xhtml.editor.embed.EditorEmbeddedImageResourceUnmarshaller.unmarshal(EditorEmbeddedImageResourceUnmarshaller.java:94) at com.atlassian.confluence.content.render.xhtml.editor.embed.EditorEmbeddedImageResourceUnmarshaller.unmarshal(EditorEmbeddedImageResourceUnmarshaller.java:41) at com.atlassian.confluence.content.render.xhtml.UnmarshalMarshalFragmentTransformer.transform(UnmarshalMarshalFragmentTransformer.java:28) at com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformer.transformFragment(DefaultFragmentTransformer.java:141) at com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformer.transform(DefaultFragmentTransformer.java:123) at com.atlassian.confluence.content.render.xhtml.editor.EditorXhtmlTransformer.transform(EditorXhtmlTransformer.java:45) at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:33) at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:33) at com.atlassian.confluence.content.render.xhtml.PluggableTransformerChain.transform(PluggableTransformerChain.java:39) at com.atlassian.confluence.content.render.xhtml.editor.DefaultEditorConverter.convert(DefaultEditorConverter.java:37) at com.atlassian.confluence.content.render.xhtml.DefaultFormatConverter.convertToStorageFormat(DefaultFormatConverter.java:123) at com.atlassian.confluence.plugins.templates.actions.CreatePageTemplateAction.createPageTemplate(CreatePageTemplateAction.java:36) at com.atlassian.confluence.plugins.templates.actions.CreatePageTemplateAction.execute(CreatePageTemplateAction.java:20) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:168) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:165) at com.atlassian.confluence.core.ConfluenceWorkflowInterceptor.intercept(ConfluenceWorkflowInterceptor.java:58) {code} !image-2016-02-11-16-45-24-485.png|thumbnail! Happens in Chrome, IE and Firefox.

    Atlassian JIRA | 10 months ago | Vanessa Roberts
    java.lang.IllegalArgumentException: Content must not be null

    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 cn.nukkit.utils.Utils.writeFile()
    2. cn.nukkit.utils
      Utils.writeFile
      1. cn.nukkit.utils.Utils.writeFile(Utils.java:27)
      2. cn.nukkit.utils.Utils.writeFile(Utils.java:18)
      2 frames
    3. cn.nukkit
      Nukkit.main
      1. cn.nukkit.Server.<init>(Server.java:233)
      2. cn.nukkit.Nukkit.main(Nukkit.java:65)
      2 frames