[
https://issues.apache.org/jira/browse/DERBY-6610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14173148#comment-14173148
]
Myrna van Lunteren commented on DERBY-6610:
-------------------------------------------
The next failure is:
test_001_basicNoGrant(org.apache.derbyTesting.functionTests.tests.lang.LuceneSupportPermsTest)java.sql.SQLException:
The exception 'java.security.AccessControlException: Access denied
("java.lang.RuntimePermission" "accessDeclaredMembers")' was thrown while
evaluating an expression.
Followed by more of the same and errors because an expected view does not exist.
I can see the same errors when I run LuceneSuite.
When I add the DeclaredMembers permission to the codeclassessection in
luceneSupport.policy, LuceneSuite runs successfully with classes..
I will attach and commit a patch for this issue.
(Note that apparently one cannot run the LuceneSupportPermsTest by itself, I
got the following error:
test_001_basicNoGrant(org.apache.derbyTesting.functionTests.tests.lang.LuceneSupportPermsTest)java.sql.SQLException:
The exception 'java.lang.ExceptionInInitializerError' was thrown while
evaluating an expression....
caused by: [...]
caused by: [...]
Caused by: java.lang.IllegalArgumentException: A SPI class of type
org.apache.lucene.codecs.Codec with name 'Lucene46' does not exist. You need to
add the corresponding JAR file supporting this SPI to your classpath.The
current classpath supports the following names: []
at org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:109)
at org.apache.lucene.codecs.Codec.forName(Codec.java:95)
at org.apache.lucene.codecs.Codec.<clinit>(Codec.java:122)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:237)
... 80 more
The lucene jars from the source tree are in my classpath)
> suites.All cannot be run with classes without failures
> ------------------------------------------------------
>
> Key: DERBY-6610
> URL: https://issues.apache.org/jira/browse/DERBY-6610
> Project: Derby
> Issue Type: Bug
> Components: Test
> Affects Versions: 10.11.1.1
> Reporter: Myrna van Lunteren
> Assignee: Myrna van Lunteren
> Priority: Minor
> Attachments: DERBY-6610_1.diff, DERBY-6610_pols1.diff,
> tmp-permission.diff
>
>
> suites.All no longer runs cleanly for me when I run with just classes.
> It still runs fine with jars.
> We accepted this behavior at some point, but it is frustrating when you want
> to 'quickly' run tests while still working on some details.
> One of the tests that failed for me was lang.DatabaseClassLoadingTest
> (complaining about one of the databases not found), another was
> lang.LuceneSupportPermsTest.
> If a test cannot run cleanly with classes, it should get skipped (preferably
> both in the test itself and from the _Suite in which it is included).
> I also think some of the network server tests complain if derbynet.jar is not
> found - I cannot off-hand remember if this causes the test to fail.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)