Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    If you're unit testing, you should instantiate only the service and mock the dependencies. If you're testing integration, you should add all the mocking to the configurations file.

Solutions on the web

via Atlassian JIRA by Vanessa Roberts, 1 year ago
via Atlassian JIRA by Vanessa Roberts, 1 year ago
via Atlassian JIRA by Emmanuel Ratsimiala [Atlassian], 1 year ago
via Stack Overflow by sm4
, 1 year ago
via Stack Overflow by Klaus
, 1 year ago
[Assertion failed] - this argument is required; it must not be null
via Stack Overflow by samiksha
, 1 year ago
[Assertion failed] - this argument is required; it must not be null
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)