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

TopicType not serializable exception #231

Closed
GoogleCodeExporter opened this issue Mar 16, 2015 · 10 comments
Closed

TopicType not serializable exception #231

GoogleCodeExporter opened this issue Mar 16, 2015 · 10 comments

Comments

@GoogleCodeExporter
Copy link

GoogleCodeExporter commented Mar 16, 2015

Installed ontopoly 5.1.0b1 trunk 994

I get this exception in stderr log. Running on weblogic 11g app server.

2010-04-15 14:02:32,993  [ERROR] (org.apache.wicket.util.lang.Objects:1138)
 Error serializing object class ontopoly.pages.InstancePage [object=[Page
class = ontopoly.pages.InstancePage, id = 2, version = 0]]
org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
Unable to serialize class: ontopoly.model.TopicType
Field hierarchy is:
  2 [class=ontopoly.pages.InstancePage, path=2]
    private java.lang.Object org.apache.wicket.MarkupContainer.children
[class=[Ljava.lang.Object;]
      private java.lang.Object
org.apache.wicket.MarkupContainer.children[0]
[class=org.apache.wicket.markup.html.form.Form, path=2:form]
        private java.lang.Object org.apache.wicket.MarkupContainer.children
[class=[Ljava.lang.Object;]
          private java.lang.Object
org.apache.wicket.model.AbstractPropertyModel.target[1]
[class=ontopoly.pages.InstancePage$2, path=2:form:instancePanel]
            private java.lang.Object
org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
              private
org.apache.wicket.markup.html.ContainerWithAssociatedMarkupHelper
org.apache.wicket.markup.html.WebMarkupContainerWithAssociatedMarkup.markupHelpe
r[1]
[class=ontopoly.components.FieldInstancesPanel,
path=2:form:instancePanel:fieldsPanel]
                private java.lang.Object
org.apache.wicket.MarkupContainer.children
[class=ontopoly.components.FieldInstancesPanel$1,
path=2:form:instancePanel:fieldsPanel:fields]
                  private java.lang.Object
org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
                    protected final ontopoly.models.RoleFieldModel
ontopoly.components.FieldInstanceAssociationBinaryPanel.roleFieldModel[5]
[class=org.apache.wicket.markup.html.list.ListItem,
path=2:form:instancePanel:fieldsPanel:fields:5]
                      private java.lang.Object
org.apache.wicket.MarkupContainer.children
[class=ontopoly.components.FieldInstanceAssociationBinaryPanel,
path=2:form:instancePanel:fieldsPanel:fields:5:field]
                        private java.lang.Object
org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
                          private
org.apache.wicket.markup.html.form.FormComponent
ontopoly.components.FieldInstanceAssociationBinaryField.formComponent[2]
[class=org.apache.wicket.markup.html.WebMarkupContainer,
path=2:form:instancePanel:fieldsPanel:fields:5:field:fieldInstanceButtons]
                            private java.lang.Object
org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
                              private java.lang.Object
org.apache.wicket.MarkupContainer.children[0]
[class=org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow,
path=2:form:instancePanel:fieldsPanel:fields:5:field:fieldInstanceButtons:findMo
dal]
                                private java.lang.Object
org.apache.wicket.MarkupContainer.children
[class=ontopoly.components.FieldInstanceAssociationBinaryPanel$5,
path=2:form:instancePanel:fieldsPanel:fields:5:field:fieldInstanceButtons:findMo
dal:content]
                                  private java.lang.Object
org.apache.wicket.MarkupContainer.children
[class=org.apache.wicket.markup.html.WebMarkupContainer,
path=2:form:instancePanel:fieldsPanel:fields:5:field:fieldInstanceButtons:findMo
dal:content:popupContent]
                                    private java.lang.Object
org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
                                      private java.lang.Object
org.apache.wicket.markup.html.form.FormComponent.validators[2]
[class=org.apache.wicket.markup.html.WebMarkupContainer,
path=2:form:instancePanel:fieldsPanel:fields:5:field:fieldInstanceButtons:findMo
dal:content:popupContent:browseTab]
                                        private java.lang.Object
org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
                                          private java.lang.Object
org.apache.wicket.MarkupContainer.children[0]
[class=org.apache.wicket.markup.html.WebMarkupContainer,
path=2:form:instancePanel:fieldsPanel:fields:5:field:fieldInstanceButtons:findMo
dal:content:popupContent:browseTab:resultsContainer]
                                            private java.lang.Object
org.apache.wicket.MarkupContainer.children
[class=org.apache.wicket.markup.html.form.CheckGroup,
path=2:form:instancePanel:fieldsPanel:fields:5:field:fieldInstanceButtons:findMo
dal:content:popupContent:browseTab:resultsContainer:checkGroup]
                                              private java.lang.Object
org.apache.wicket.MarkupContainer.children
[class=ontopoly.pages.ModalFindPage$13,
path=2:form:instancePanel:fieldsPanel:fields:5:field:fieldInstanceButtons:findMo
dal:content:popupContent:browseTab:resultsContainer:checkGroup:results]
                                                java.lang.Object
org.apache.wicket.Component.data [class=ontopoly.pages.ModalFindPage$17]
                                                  final
ontopoly.model.TopicType ontopoly.pages.ModalFindPage$17.val$topicType
[class=ontopoly.model.TopicType] <----- field that is not serializable
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:346
)
    at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.ja
va:615)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538
)
    at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.ja
va:615)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538
)
    at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.ja
va:615)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538
)
    at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.ja
va:615)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538
)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:392
)
    at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.ja
va:615)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538
)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:392
)
    at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.ja
va:615)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538
)
    at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.ja
va:615)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538
)
    at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.ja
va:615)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538
)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:392
)
    at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.ja
va:615)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538
)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:392
)
    at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.ja
va:615)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538
)
    at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.ja
va:615)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538
)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:392
)
    at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.ja
va:615)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538
)
    at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.ja
va:615)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538
)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:392
)
    at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.ja
va:615)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538
)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:392
)
    at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.ja
va:615)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538
)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:392
)
    at
org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.ja
va:615)
    at
org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:538
)
    at
org.apache.wicket.util.io.SerializableChecker.writeObjectOverride(SerializableCh
ecker.java:684)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
    at
org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writ
eObjectOverride(IObjectStreamFactory.java:129)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
    at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1124)
    at
org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(Abstra
ctPageStore.java:203)
    at
org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.
java:840)
    at
org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePag
eMap.put(SecondLevelCacheSessionStore.java:332)
    at org.apache.wicket.Session.requestDetached(Session.java:1404)
    at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1176)
    at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1454)
    at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
    at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)
    at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAp
pServletContext.java:3588)
    at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.ja
va:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletConte
xt.java:2200)
    at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java
:2106)
    at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.io.NotSerializableException: ontopoly.model.TopicType
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:416)
    at org.apache.wicket.Component.writeObject(Component.java:4439)
    at sun.reflect.GeneratedMethodAccessor1405.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
    at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
    at
org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writ
eObjectOverride(IObjectStreamFactory.java:121)
    ... 20 more

Original issue reported on code.google.com by idar.borlaug@gmail.com on 15 Apr 2010 at 12:14

@GoogleCodeExporter
Copy link
Author

GoogleCodeExporter commented Mar 16, 2015

Everything seems to work except we get a big log :)

Original comment by idar.borlaug@gmail.com on 15 Apr 2010 at 12:15

@GoogleCodeExporter
Copy link
Author

GoogleCodeExporter commented Mar 16, 2015

Original comment by indiapaleale@gmail.com on 15 Apr 2010 at 2:16

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

GoogleCodeExporter commented Mar 16, 2015

Original comment by indiapaleale@gmail.com on 15 Apr 2010 at 2:16

  • Added labels: Component-Ontopoly

@GoogleCodeExporter
Copy link
Author

GoogleCodeExporter commented Mar 16, 2015

Just committed revision 1000, which might fix the issue. Please verify on 
Weblogic.

Original comment by indiapaleale@gmail.com on 15 Apr 2010 at 4:42

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

GoogleCodeExporter commented Mar 16, 2015

This issue is still open, same exception. It happens often when i go to edit 
topic
page in ontopoly.

Original comment by idar.borlaug@gmail.com on 23 Apr 2010 at 10:43

@GoogleCodeExporter
Copy link
Author

GoogleCodeExporter commented Mar 16, 2015

Original comment by lar...@gmail.com on 23 Apr 2010 at 10:46

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

GoogleCodeExporter commented Mar 16, 2015

Just committed revision 1016. Please try once more. Thanks.

Original comment by indiapaleale@gmail.com on 23 Apr 2010 at 11:44

@GoogleCodeExporter
Copy link
Author

GoogleCodeExporter commented Mar 16, 2015

Commit 1016 didn't help. Same error.

Original comment by idar.borlaug@gmail.com on 26 Apr 2010 at 10:30

@GoogleCodeExporter
Copy link
Author

GoogleCodeExporter commented Mar 16, 2015

Just committed revision 1024. Please try once more. Thanks. :)

Original comment by indiapaleale@gmail.com on 4 May 2010 at 7:36

@GoogleCodeExporter
Copy link
Author

GoogleCodeExporter commented Mar 16, 2015

Original comment by indiapaleale@gmail.com on 4 May 2010 at 7:37

  • Changed state: Fixed

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

No branches or pull requests

1 participant