Search results are inaccurate due to StackOverflowError in Indexer

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

The index fails to rebuild. It begins to rebuild accurately, but then skips to 100%. Searching does not return the accurate results.

The following appears in the std-out.log or catalina.out log file:

Oct 6, 2011 6:07:07 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 56478 ms Exception in thread "Indexer: 7" java.lang.StackOverflowError at java.lang.Math.getExponent(Math.java:1295) at java.lang.StrictMath.floorOrCeil(StrictMath.java:338) at java.lang.StrictMath.floor(StrictMath.java:323) at java.lang.Math.floor(Math.java:407) at java.lang.Math.round(Math.java:635) at net.sourceforge.jtds.jdbc.DateTime.unpackDateTime(DateTime.java:280) at net.sourceforge.jtds.jdbc.DateTime.toTimestamp(DateTime.java:363) at net.sourceforge.jtds.jdbc.Support.convert(Support.java:472) at net.sourceforge.jtds.jdbc.JtdsResultSet.getTimestamp(JtdsResultSet.java:1148) at net.sourceforge.jtds.jdbc.JtdsResultSet.getTimestamp(JtdsResultSet.java:1300) at com.mchange.v2.c3p0.impl.NewProxyResultSet.getTimestamp(NewProxyResultSet.java:3394) at net.sf.hibernate.type.TimestampType.get(TimestampType.java:27) at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:62) at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:53) at net.sf.hibernate.type.AbstractType.hydrate(AbstractType.java:67)

Diagnosis

  1. Reindex the site. Watch the progress bar, and note if it skips to 100%.
  2. There may or may not be errors in the atlassian-confluence.log.
  3. This was observed when running on a Windows Service, but may exist in other environments.

Cause

tip/resting Created with Sketch.

This is an in-progress knowledge base article. Atlassian has not yet discovered the root cause for this issue.

Workaround

Rather than starting from the Windows Service, double-click <confluence-install>\bin\startup.bat to start Confluence.

(info) Note that heap space parameters should be transferred to setenv.bat. See How to fix out of memory errors by increasing available memory.

Resolution

Because the root cause is still under investigation, the resolution to this issue is unknown at this time. Please consult the workaround, and comment below if you find any additional information.

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.