ClassCastException: org.exist.memtree.ElementImpl

View: New views
4 Messages — Rating Filter:   Alert me  

ClassCastException: org.exist.memtree.ElementImpl

by Gary Larsen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I’m performing upgrade tests on the eXist-stable-1.2 branch. 

 

A query which ran well in revision 5823 (1.1) is throwing the exception.  

 

There was an error in the exist.log from loading the database. In older versions this would corrupt the database but has been fixed so I don’t believe this is the problem. I will try to load the db without the offending data.

 

2008-07-08 17:25:15,549 [Thread-38] WARN  (BFile.java [append]:211) - Key length exceeds page size! Skipping key ...

2008-07-08 17:25:18,003 [Thread-38] ERROR (NativeValueIndex.java [flush]:377) - Could not append index data for key 'org.exist.storage.NativeValueIndex$QNameKey@1b7a553'  

 

Any suggestions on how to proceed?  The database if 11G so may take some effort to find an easily reproducible query.

 

Thanks,

gary

 

 

Caused by: java.lang.ClassCastException: org.exist.memtree.ElementImpl

            at org.exist.xquery.value.ValueSequence.toNodeSet(ValueSequence.java:208)

            at org.exist.memtree.NodeImpl.toNodeSet(NodeImpl.java:590)

            at org.exist.xquery.Optimize.eval(Optimize.java:80)

            at org.exist.xquery.ExtensionExpression.eval(ExtensionExpression.java:71)

            at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)

            at org.exist.xquery.PathExpr.eval(PathExpr.java:238)

            at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:71)

            at org.exist.xquery.DynamicCardinalityCheck.eval(DynamicCardinalityCheck.java:71)

            at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)

            at org.exist.xquery.functions.FunCount.eval(FunCount.java:76)

            at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:49)

            at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)

            at org.exist.xquery.PathExpr.eval(PathExpr.java:238)

            at org.exist.xquery.EnclosedExpr.eval(EnclosedExpr.java:68)

            at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)

            at org.exist.xquery.PathExpr.eval(PathExpr.java:238)

            at org.exist.xquery.ElementConstructor.eval(ElementConstructor.java:251)

            at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)

            at org.exist.xquery.PathExpr.eval(PathExpr.java:238)

            at org.exist.xquery.ElementConstructor.eval(ElementConstructor.java:251)

            at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)

            at org.exist.xquery.PathExpr.eval(PathExpr.java:238)

            at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)

            at org.exist.xquery.ForExpr.eval(ForExpr.java:296)

            at org.exist.xquery.BindingExpression.eval(BindingExpression.java:144)

            at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)

            at org.exist.xquery.PathExpr.eval(PathExpr.java:238)

            at org.exist.xquery.EnclosedExpr.eval(EnclosedExpr.java:68)

            at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)

            at org.exist.xquery.PathExpr.eval(PathExpr.java:238)

            at org.exist.xquery.ElementConstructor.eval(ElementConstructor.java:251)

            at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)

            at org.exist.xquery.PathExpr.eval(PathExpr.java:238)

            at org.exist.xquery.ElementConstructor.eval(ElementConstructor.java:251)

            at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)

            at org.exist.xquery.PathExpr.eval(PathExpr.java:238)

            at org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:101)

            at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)

            at org.exist.xquery.PathExpr.eval(PathExpr.java:238)

            at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)

            at org.exist.xquery.LetExpr.eval(LetExpr.java:203)

            at org.exist.xquery.BindingExpression.eval(BindingExpression.java:144)

            at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)

            at org.exist.xquery.PathExpr.eval(PathExpr.java:238)

            at org.exist.xquery.EnclosedExpr.eval(EnclosedExpr.java:68)

            at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)

            at org.exist.xquery.PathExpr.eval(PathExpr.java:238)

            at org.exist.xquery.ElementConstructor.eval(ElementConstructor.java:251)

            at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)

            at org.exist.xquery.PathExpr.eval(PathExpr.java:238)

            at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)

            at org.exist.xquery.XQuery.execute(XQuery.java:217)

            at org.exist.xquery.XQuery.execute(XQuery.java:184)

            at org.exist.xmldb.LocalXPathQueryService.execute(LocalXPathQueryService.java:190)

            at org.exist.cocoon.XQueryGenerator.generate(XQueryGenerator.java:330)

            at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:578)

            ... 63 more


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: ClassCastException: org.exist.memtree.ElementImpl

by Gary Larsen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I was able to reproduce the exception with small database. The database backup has been renamed from ‘zip’ to ‘piz’ to get past the email filter.

 

Thanks,

gary

 

 



declare default element namespace 'http://developer.envisn.com/xmlns/envisn/netvisn/'; 
declare option exist:serialize 'indent=yes' ;
declare option exist:timeout '120000';
<analysisResults xmlns="http://developer.envisn.com/xmlns/envisn/netvisn/">
{let $allInfo := collection('/db/netvisn/content')/content/lookupInfo
[objectClass='report' or objectClass='powerPlayCube' or objectClass='memo' or objectClass='query' or objectClass='powerPlayReport' or objectClass='storedProcedureTask' or objectClass='analysis' or objectClass='URL' or objectClass='webServiceTask' or objectClass='reportView' or objectClass='agentDefinition' or objectClass='exportDeployment' or objectClass='package' or objectClass='agentDefinitionView' or objectClass='importDeployment' or objectClass='model' or objectClass='agentTaskDefinition' or objectClass='contentTask' or objectClass='folder' or objectClass='shortcutAgentRSSTask' or objectClass='indexUpdateTask' or objectClass='jobDefinition' or objectClass='shortcutRSSTask' or objectClass='shortcut' or objectClass='urlRSSTask']
[not(locationType='config')]
return if (count($allInfo) eq 0) then <noResultsFound/> else
<sections>
 <sectionSummaryTotal>
{for $objClass in distinct-values($allInfo/objectClass) order by $objClass return <objectClassTot><name>{$objClass}</name><count>{count($allInfo[objectClass=$objClass])}</count></objectClassTot>} </sectionSummaryTotal>
{for $grpName0 in distinct-values($allInfo/groupByLevel/String[1])   order by $grpName0 return
 <group>
  <groupName>{$grpName0}</groupName>
  <groupLvl>0</groupLvl>
  <groupType>location</groupType>
 {let $grpInfo := $allInfo[groupByLevel/String[1] = $grpName0] return

 <sectionGroupTotal>
{for $objClass in distinct-values($grpInfo/objectClass) order by $objClass return <objectClassTot><name>{$objClass}</name><count>{count($grpInfo[objectClass=$objClass])}</count></objectClassTot>} </sectionGroupTotal>
 }
 </group>
}
</sections>
}
</analysisResults>

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

xmldb-2008-07-09T1314.piz (99K) Download Attachment

Re: ClassCastException: org.exist.memtree.ElementImpl

by Wolfgang Meier-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

> A query which ran well in revision 5823 (1.1) is throwing the exception.  

Thanks for the test data. I fixed the issue in the eXist-stable-1.2 branch:

http://exist.svn.sourceforge.net/exist/?rev=7990&view=rev

The trunk version already had the required modifications.

Wolfgang

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: ClassCastException: org.exist.memtree.ElementImpl

by Gary Larsen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Thanks for the test data. I fixed the issue in the eXist-stable-1.2
> branch:
>
> http://exist.svn.sourceforge.net/exist/?rev=7990&view=rev
>
> The trunk version already had the required modifications.
>
> Wolfgang
>

Thanks as always for the quick response!

gary


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open