01-19-2012 08:23 AM
<bean id="patch.testClassPath" class="com.agilent.openlab.eln.TestPatchClass"
parent="basePatch">
<property name="id" value="patch.testClassPath0"/>
<property name="description" value="Test string"/>
<property name="fixesFromSchema" value="0"/>
<property name="fixesToSchema" value="5020" />
<property name="targetSchema" value="5020"/>
</bean>
<!– Test beans for Alfresco patch service –>
<bean id="patch.testPath1" class="com.agilent.openlab.eln.TestPatch1"
parent="basePatch">
<property name="id" value="patch.testClassPath1"/>
<property name="description" value="Test string"/>
<property name="fixesFromSchema" value="5020"/>
<property name="fixesToSchema" value="5021" />
<property name="targetSchema" value="5022"/>
</bean>
<bean id="patch.testPath2" class="com.agilent.openlab.eln.TestPatch2"
parent="basePatch">
<property name="id" value="patch.testClassPath2"/>
<property name="description" value="Test string"/>
<property name="fixesFromSchema" value="5020"/>
<property name="fixesToSchema" value="5021" />
<property name="targetSchema" value="5022"/>
</bean>
<bean id="patch.testPath3" class="com.agilent.openlab.eln.TestPatch3"
parent="basePatch">
<property name="id" value="patch.testClassPath3"/>
<property name="description" value="Test string"/>
<property name="fixesFromSchema" value="5022"/>
<property name="fixesToSchema" value="5023" />
<property name="targetSchema" value="5024"/>
</bean>
My schema version is 5019. But i have exception - Access Denied. But if I'm set <fixesToSchema> to ${version.schema} all is ok! But if i set to number - it's fail!!! The system is currently in read-only mode. But if i remove this declared from context - all is ok! Also, if i install new Alfresco, then declare ONE(!!!) bean(patch.testClassPath for example) - all is ok only first time. But when i'm restart Alfresco - i got the same exception!!! I'm really don't now why it's happen… Please, answer, how to eliminate of the exceptions?
01-19-2012 10:26 AM
01-19-2012 10:49 AM
public class TestPatchClass extends AbstractPatch {
@Override
protected String applyInternal() throws Exception {
return "Test string";
}
}
Trouble in next - when i'm set <fixesToSchema> to ${version.schema} - all is ok(my version.schema = 5019), but when i'm set <fixesToSchema> to 5019(or another number that more than my version.schema) - i got the exception. But when i'm set <fixesToSchema> from 0 to 5018 - all is ok.
01-20-2012 09:36 AM
for (Patch patch : patches)
{
if (patch.getFixesToSchema() > serverSchemaVersion)
{
logger.error(I18NUtil.getMessage(MSG_VALIDATION_FAILED, patch.getId(), serverSchemaVersion, patch
.getFixesToSchema(), patch.getTargetSchema()));
success = false;
}
}
So, when I set fixesToSchema to 5020(when version.schema is 5019) - i got this exeption.
01-20-2012 10:16 AM
01-22-2012 06:01 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.