[JBoss JIRA] Created: (JBAS-6961) simpleweb tests involving file-based cache loader fail if directories and/or files exist
by Richard Achmatowicz (JIRA)
simpleweb tests involving file-based cache loader fail if directories and/or files exist
-----------------------------------------------------------------------------------------
Key: JBAS-6961
URL: https://jira.jboss.org/jira/browse/JBAS-6961
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Clustering
Affects Versions: JBossAS-5.1.0.CR1
Environment: HPUX, risc architcture
Reporter: Richard Achmatowicz
Assignee: Brian Stansberry
Priority: Minor
The tests in org.jboss.test.cluster.defaultcfg.simpleweb.test which use a file-based cache loader fail if a directory and/or file is left over from a previous failed execution:
Error Message
init org.jboss.cache.config.Configuration@2f23dca failed
Stacktrace
org.jboss.cache.pojo.PojoCacheException: init org.jboss.cache.config.Configuration@2f23dca failed
at org.jboss.cache.pojo.impl.PojoCacheImpl.<init>(PojoCacheImpl.java:75)
at org.jboss.cache.pojo.PojoCacheFactory.createCache(PojoCacheFactory.java:54)
at org.jboss.test.cluster.testutil.SessionTestUtil.createCache(SessionTestUtil.java:137)
at org.jboss.test.cluster.testutil.CacheConfigTestSetup.setUp(CacheConfigTestSetup.java:84)
at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
at junit.extensions.TestSetup.run(TestSetup.java:25)
Caused by: org.jboss.cache.CacheException: java.lang.reflect.InvocationTargetException
at org.jboss.cache.util.reflect.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:148)
at org.jboss.cache.factories.ComponentRegistry$PrioritizedMethod.invoke(ComponentRegistry.java:1012)
at org.jboss.cache.factories.ComponentRegistry.internalStart(ComponentRegistry.java:778)
at org.jboss.cache.factories.ComponentRegistry.start(ComponentRegistry.java:632)
at org.jboss.cache.invocation.CacheInvocationDelegate.start(CacheInvocationDelegate.java:345)
at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:121)
at org.jboss.cache.pojo.impl.PojoCacheImpl.<init>(PojoCacheImpl.java:71)
Caused by: java.lang.reflect.InvocationTargetException
at org.jboss.cache.util.reflect.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:144)
Caused by: org.jboss.cache.CacheException: Unable to start cache loaders
at org.jboss.cache.loader.CacheLoaderManager.startCacheLoader(CacheLoaderManager.java:467)
Caused by: java.io.IOException: Unable to create cache loader location /var/tmp/BuddyReplicationFailoverUnitTestCase/1242786803043
at org.jboss.cache.loader.FileCacheLoader.create(FileCacheLoader.java:171)
at org.jboss.cache.loader.CacheLoaderManager.startCacheLoader(CacheLoaderManager.java:459)
The file /var/tmp/BuddyReplicationFailoverUnitTestCase/1242786803043 cannot be created in order to initialise the cache.
I have found that deleting the directory /var/tmp/BuddyReplicationFailoverUnitTestCase and rerunning the tests fixes the problem.
I tried to recreate the problem by writing a small program which mimics the same file creation process, used, but even if I left files in place, I couldn't recreate the problem.
The tests pass OK otherwise.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 10 months
[JBoss JIRA] Created: (JBPORTAL-2454) CMS identity queries with case sensitive DB fails
by Magesh Kumar B (JIRA)
CMS identity queries with case sensitive DB fails
-------------------------------------------------
Key: JBPORTAL-2454
URL: https://jira.jboss.org/jira/browse/JBPORTAL-2454
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Portal CMS
Affects Versions: 2.7.2 Final
Environment: MS SQL Server 2005
Reporter: Magesh Kumar B
Assignee: Sohil Shah
Create a new user and login with the new user's id. We get the following exception
ERROR [org.hibernate.util.JDBCExceptionReporter] Invalid column name 'id'.
ERROR [org.jboss.portal.cms.security.AuthorizationProviderImpl] org.jboss.portal.cms.security.AuthorizationProviderImpl@3c205c
org.hibernate.exception.SQLGrammarException: could not execute query
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.loader.Loader.doList(Loader.java:2223)
at org.hibernate.loader.Loader.listUsingQueryCache(Loader.java:2136)
at org.hibernate.loader.Loader.list(Loader.java:2096)
at org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:289)
at org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1695)
at org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:142)
at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:152)
at org.jboss.portal.cms.security.AuthorizationProviderImpl.findPermissionsByUser(AuthorizationProviderImpl.java:480)
at org.jboss.portal.cms.security.AuthorizationProviderImpl.getSecurityBindings(AuthorizationProviderImpl.java:221)
at org.jboss.portal.cms.impl.jcr.command.ACLEnforcer.getPermissions(ACLEnforcer.java:572)
This is due to the fact that hibernate mappings instructs the DB to create the table jbp_cms_perm with column name 'ID', but AuthorizationProviderImpl.findPermissionsByUser has a hard coded SQL query with lower case.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 10 months
[JBoss JIRA] Created: (JBREFLECT-74) Cleanup ClassPool tests
by Flavia Rainone (JIRA)
Cleanup ClassPool tests
-----------------------
Key: JBREFLECT-74
URL: https://jira.jboss.org/jira/browse/JBREFLECT-74
Project: JBoss Reflection
Issue Type: Task
Components: Class Pool
Affects Versions: JBossReflection.2.0.2.GA
Reporter: Flavia Rainone
Assignee: Flavia Rainone
Fix For: JBossReflection.2.2.0-Alpha
Currently the class pool tests contain duplicate code and big class files.
This task includes:
- moving CL and CP creation to other classes/ redesign this
- replace cleanup code on finally blocks by automatic cleanup
- remove duplicate test scenarios (follow example of ArchiveTest and subclasses)
- remove file names that are currently lost in the middle of code (see ArchiveTest for example)
- move archives to their own directory instead of target
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 10 months