cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Misha Doronin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAY-2033) Specifying filter name in web.xml not starting with "cayenne-" ends up with an obscure error HTTP Status 500 - DataRowStore name can't be null
Date Mon, 05 Oct 2015 15:07:26 GMT
Misha Doronin created CAY-2033:
----------------------------------

             Summary: Specifying filter name in web.xml not starting with "cayenne-" ends
up with an obscure error HTTP Status 500 - DataRowStore name can't be null
                 Key: CAY-2033
                 URL: https://issues.apache.org/jira/browse/CAY-2033
             Project: Cayenne
          Issue Type: Bug
          Components: Core Library, Documentation
    Affects Versions: 3.1
            Reporter: Misha Doronin
            Priority: Minor


In version prior to 3.1 it was possible to specify an arbitrary filter-name in web.xml and
3.0 documentation uses <filter-name>CayenneFilter</filter-name> as an example.

When upgrading to Cayenne 3.1, if a user keeps the naming in web.xml and renames instead cayenne-project.xml
into CayenneFilter.xml he will get an obscure error "HTTP Status 500 - DataRowStore name can't
be null".
(Stack trace:
java.lang.IllegalArgumentException: DataRowStore name can't be null.
	org.apache.cayenne.access.DataRowStore.<init>(DataRowStore.java:101)
	org.apache.cayenne.access.DataDomain.nonNullSharedSnapshotCache(DataDomain.java:367)
	org.apache.cayenne.access.DataDomain.getSharedSnapshotCache(DataDomain.java:355)
	org.apache.cayenne.configuration.server.DataContextFactory.createdFromDataDomain(DataContextFactory.java:108)
	org.apache.cayenne.configuration.server.DataContextFactory.createContext(DataContextFactory.java:56)
	org.apache.cayenne.configuration.web.SessionContextRequestHandler.requestStart(SessionContextRequestHandler.java:70)
	org.apache.cayenne.configuration.web.CayenneFilter.doFilter(CayenneFilter.java:105)
)

It should be specified in the 3.0 to 3.1 upgrade guide, as well as in the 3.1 documentation,
that the name of the filter in web.xml must start with "cayenne-".



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message