Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.26.13 throws exception "Unable to serialize AsciidocApplicationSettings state" #266

Closed
twogee opened this issue Jun 4, 2019 · 9 comments
Assignees

Comments

@twogee
Copy link

twogee commented Jun 4, 2019

Unable to serialize AsciidocApplicationSettings state

com.intellij.util.xmlb.XmlSerializationException: Can't serialize instance of class org.asciidoc.intellij.settings.AsciiDocApplicationSettings$State
	at com.intellij.configurationStore.XmlSerializer.serialize(xmlSerializer.kt:63)
	at com.intellij.configurationStore.XmlSerializer.serialize$default(xmlSerializer.kt:47)
	at com.intellij.configurationStore.SaveSessionBaseKt.serializeState(SaveSessionBase.kt:46)
	at com.intellij.configurationStore.SaveSessionBase.setState(SaveSessionBase.kt:20)
	at com.intellij.configurationStore.ComponentStoreImpl.commitComponent(ComponentStoreImpl.kt:283)
	at com.intellij.configurationStore.ComponentStoreImpl.commitComponents$intellij_platform_configurationStore_impl(ComponentStoreImpl.kt:199)
	at com.intellij.configurationStore.ComponentStoreWithExtraComponents.commitComponents$intellij_platform_configurationStore_impl(ComponentStoreWithExtraComponents.kt:89)
	at com.intellij.configurationStore.ComponentStoreImpl.doCreateSaveSessionManagerAndCommitComponents$intellij_platform_configurationStore_impl(ComponentStoreImpl.kt:155)
	at com.intellij.configurationStore.ComponentStoreImpl$createSaveSessionManagerAndSaveComponents$3.invokeSuspend(ComponentStoreImpl.kt:146)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)
	at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:236)
	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:315)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:435)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:419)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:403)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
	at java.awt.EventQueue.access$500(EventQueue.java:98)
	at java.awt.EventQueue$3.run(EventQueue.java:715)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:729)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:678)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:373)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.NullPointerException
	at org.asciidoc.intellij.settings.AsciiDocPreviewSettings.equals(AsciiDocPreviewSettings.java:143)
	at com.intellij.openapi.util.Comparing.equal(Comparing.java:45)
	at com.intellij.util.xmlb.SkipDefaultsSerializationFilter.equal(SkipDefaultsSerializationFilter.java:57)
	at com.intellij.util.xmlb.SkipDefaultsSerializationFilter.equal(SkipDefaultsSerializationFilter.java:25)
	at com.intellij.util.xmlb.BeanBinding.serializePropertyInto(BeanBinding.java:96)
	at com.intellij.util.xmlb.BeanBinding.serializeInto(BeanBinding.java:80)
	at com.intellij.configurationStore.KotlinAwareBeanBinding.serializeInto(xmlSerializer.kt:235)
	at com.intellij.util.xmlb.BeanBinding.serialize(BeanBinding.java:69)
	at com.intellij.configurationStore.XmlSerializer.serialize(xmlSerializer.kt:53)
	... 31 more
@ggrossetie
Copy link
Member

Given the stacktrace I believe this is related to the Intellij IDEA plugin ? Could you please describe how to reproduce this error and/or when this error happens ?

This issue should be moved to https://github.com/asciidoctor/asciidoctor-intellij-plugin

@twogee
Copy link
Author

twogee commented Jun 4, 2019

Sorry about barking the wrong tree. I have no permission to transfer the issue, though.

@twogee
Copy link
Author

twogee commented Jun 4, 2019

The other issue would be "Asciidoc IntelliJ plugin must refer to the correct Github project for issue reporting" under "IDE fatal errors".

@ggrossetie
Copy link
Member

ggrossetie commented Jun 4, 2019

Sorry about barking the wrong tree. I have no permission to transfer the issue, though.

No worries, I think only @mojavelinux can do it.

The other issue would be "Asciidoc IntelliJ plugin must refer to the correct Github project for issue reporting" under "IDE fatal errors".

Indeed, you should open a new issue in https://github.com/asciidoctor/asciidoctor-intellij-plugin

To be fair, since the IntelliJ plugin is using AsciidoctorJ which is using Asciidoctor (Ruby) an issue could potentially track back here. But anyway it's better if the plugin refers to https://github.com/asciidoctor/asciidoctor-intellij-plugin

@mojavelinux mojavelinux transferred this issue from asciidoctor/asciidoctor Jun 4, 2019
@mojavelinux
Copy link
Member

Issue transferred.

@mojavelinux
Copy link
Member

since the IntelliJ plugin is using AsciidoctorJ which is using Asciidoctor (Ruby) an issue could potentially track back here.

The plugin is using a mix of AsciidoctorJ and dedicated parser code for IntelliJ, depending on the operation being performed.

@ahus1
Copy link
Contributor

ahus1 commented Jun 4, 2019

@twogee - I'm sorry for this bug. Version 0.26.14 is available from Github Releases to fix this issue. Please give it a try. It should be available soon from the JetBrains plugin repository.

@ahus1
Copy link
Contributor

ahus1 commented Jun 4, 2019

... please use 0.26.15 directly, this fixes a bug that was present in 0.26.14.

@twogee
Copy link
Author

twogee commented Jun 5, 2019

Thanks for quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants