com.atlassian.confluence.importexport.ImportExportException: java.lang.IllegalArgumentException: Content entity object

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

,
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 Don Willis [Atlassian], 1 year ago
java.lang.IllegalArgumentException: Content entity object
via Atlassian JIRA by Don Willis [Atlassian], 1 year ago
java.lang.IllegalArgumentException: Content entity object
com.atlassian.confluence.importexport.ImportExportException: java.lang.IllegalArgumentException: Content entity object
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:171)
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.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)
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:171)
at undefined.$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 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)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 11 months ago
5 times, 1 year ago
2 times, 3 months ago
2 times, 5 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.