Skip to content

Non-serializable attribute defectViewModel #1782

@adetlefsen-rms

Description

@adetlefsen-rms

I get the following error when attempting to view a previously configured Application, e.g. at:

http://localhost:8080/threadfix-main/organizations/1/applications/1?nonce=XXXXXXXXX

Commit: 9892390
Diagnostics: 120 megabytes memory available out of 507 megabytes. 308 gigabytes disk space available.

java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute with name defectViewModel
	at org.apache.catalina.session.ManagerBase.checkSessionAttribute(ManagerBase.java:835)
	at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1841)
	at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:178)
	at org.springframework.web.context.request.ServletRequestAttributes.setAttribute(ServletRequestAttributes.java:163)
	at org.springframework.web.bind.support.DefaultSessionAttributeStore.storeAttribute(DefaultSessionAttributeStore.java:55)
	at org.springframework.web.method.annotation.SessionAttributesHandler.storeAttributes(SessionAttributesHandler.java:124)
	at org.springframework.web.method.annotation.ModelFactory.updateModel(ModelFactory.java:232)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.getModelAndView(RequestMappingHandlerAdapter.java:877)
[...etc...]

It appears that the class com.denimgroup.threadfix.viewmodels.DefectViewModel does not implement the interface java.io.Serializable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions