Return to Jive Software

This Question is Not Answered

1 "correct" answer available (4 pts) 1 "helpful" answer available (2 pts)
431 Views 5 Replies Last post: Nov 17, 2009 2:28 PM by Sasha Voynow RSS
Sasha Voynow Novice 17 posts since
Oct 15, 2009
Currently Being Moderated

Nov 6, 2009 3:51 PM

Problem bootstrapping a new 4.0 project

I've found what I think is a little bug.

I create a new 4.0 project using maven, package it and start it up using cargo.

I run through set up just fine and restart.

During the ensuing startup I get a bunch of error messages like this:

 

[INFO] [talledLocalContainer] 13:56:31,774 [main] INFO com.jivesoftware.community.util.ClassPathUtils  - JAR copy for resource 'jar:file:/C:/dev/projects/vistage/vistage-sitecore-integration/web/target/tomcat6x/webapps/jive/WEB-INF/lib/jive-sbs-employee-4.0.0.jar!/resources/spelling'.
[INFO] [talledLocalContainer] 13:56:31,790 [main] ERROR com.jivesoftware.community.util.ClassPathUtils  - Unexpected resource scheme: 'jar:file:/C:/dev/projects/vistage/vistage-sitecore-integration/web/target/tomcat6x/webapps/jive/WEB-INF/lib/jive-sbs-employee-4.0.0.jar!/resources/spelling'. Resource 'resources/spelling' not copied.
[INFO] [talledLocalContainer] 13:56:31,790 [main] INFO com.jivesoftware.community.util.ClassPathUtils  - JAR copy for resource 'jar:file:/C:/dev/projects/vistage/vistage-sitecore-integration/web/target/tomcat6x/webapps/jive/WEB-INF/lib/jive-sbs-employee-4.0.0.jar!/resources/images/attachments'.
[INFO] [talledLocalContainer] 13:56:31,790 [main] ERROR com.jivesoftware.community.util.ClassPathUtils  - Unexpected resource scheme: 'jar:file:/C:/dev/projects/vistage/vistage-sitecore-integration/web/target/tomcat6x/webapps/jive/WEB-INF/lib/jive-sbs-employee-4.0.0.jar!/resources/images/attachments'. Resource 'resources/images/attachments' not copied.
Which then leads to this:
[INFO] [talledLocalContainer] 2009-11-06 13:56:54,774 [main] [:] ERROR com.jivesoftware.community.objecttype.impl.ObjectTypeManagerImpl - Error initializing content type com.jivesoftware.community.objecttype.impl.AnnouncementObjectType@84b2c2
[INFO] [talledLocalContainer] java.lang.StackOverflowError
[INFO] [talledLocalContainer]   at java.lang.ThreadLocal.get(ThreadLocal.java:125)
[INFO] [talledLocalContainer]   at org.springframework.transaction.interceptor.TransactionAspectSupport$TransactionInfo.bindToThread(TransactionAspectSupport.java:440)
[INFO] [talledLocalContainer]   at org.springframework.transaction.interceptor.TransactionAspectSupport$TransactionInfo.access$100(TransactionAspectSupport.java:394)
[INFO] [talledLocalContainer]   at org.springframework.transaction.interceptor.TransactionAspectSupport.prepareTransactionInfo(TransactionAspectSupport.java:307)
[INFO] [talledLocalContainer]   at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:272)
[INFO] [talledLocalContainer]   at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:220)
[INFO] [talledLocalContainer]   at org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc$before$org_springframework_transaction_aspectj_AbstractTransactionAspect$1$2a73e96c(AbstractTransactionAspect.aj:63)
[INFO] [talledLocalContainer]   at com.jivesoftware.community.impl.DbJiveProperties.get(DbJiveProperties.java:192)
[INFO] [talledLocalContainer]   at com.jivesoftware.community.impl.DbJiveProperties.get(DbJiveProperties.java:34)
[INFO] [talledLocalContainer]   at com.jivesoftware.community.JiveGlobals.getJiveProperty(JiveGlobals.java:674)
[INFO] [talledLocalContainer]   at com.jivesoftware.util.spell.SpellChecker.init(SpellChecker.java:486)
[INFO] [talledLocalContainer]   at com.jivesoftware.util.spell.SpellChecker.getAvailableLanguages(SpellChecker.java:165)
[INFO] [talledLocalContainer]   at com.jivesoftware.community.web.JiveResourceResolver.resetLanguageString(JiveResourceResolver.java:53)
[INFO] [talledLocalContainer]   at com.jivesoftware.util.spell.SpellChecker.init(SpellChecker.java:611)
[INFO] [talledLocalContainer]   at com.jivesoftware.util.spell.SpellChecker.getAvailableLanguages(SpellChecker.java:165)
[INFO] [talledLocalContainer]   at com.jivesoftware.community.web.JiveResourceResolver.resetLanguageString(JiveResourceResolver.java:53)
[INFO] [talledLocalContainer]   at com.jivesoftware.util.spell.SpellChecker.init(SpellChecker.java:611)
[INFO] [talledLocalContainer]   at com.jivesoftware.util.spell.SpellChecker.getAvailableLanguages(SpellChecker.java:165)
i.e an infinite loop / stack overflow initializing the spellchecker
This only happens on windows. So I think what's happening is that your ClassPathUtils are having trouble with the silly windows paths C:/ etc, and are not able to copy the spelling files to JIVE_HOME, which in turn causes the infinite loop.
So there seem to be a couple of problems here. (As a very minor side issue, com/jivesoftware/util/spell isn't in the source jar)

 

Anybody else run into this?

Anastasios Georgousakis Novice 1 posts since
Jan 9, 2008
Currently Being Moderated
Nov 17, 2009 8:28 AM in response to: Sasha Voynow
Re: Problem bootstrapping a new 4.0 project

I have a similar problem when I installed SBS 4.0. It cannot start after the initial configuration

 

2009-11-17 18:24:24,963 [main] [:] ERROR com.jivesoftware.community.objecttype.impl.ObjectTypeManagerImpl - Error initializing content type com.jivesoftware.community.objecttype.impl.AnnouncementObjectType@9f26c7

java.lang.StackOverflowError

    at org.springframework.transaction.interceptor.TransactionAspectSupport$TransactionInfo.bindToThread(TransactionAspectSupport.java:440)

    at org.springframework.transaction.interceptor.TransactionAspectSupport$TransactionInfo.access$100(TransactionAspectSupport.java:394)

  ...

Wayne Heaney Novice 69 posts since
Oct 22, 2008
Currently Being Moderated
Nov 17, 2009 2:21 PM in response to: Sasha Voynow
Re: Problem bootstrapping a new 4.0 project

I'm running into this as well.  The problem is that ClassPathUtils seems designed for Linux:

 

String[] split = uriString.split(":");
 if(split.length != 3) {
    log.error(String.format("Unexpected resource scheme: '%s'. Resource '%s' not copied.", uriString, classPathSource));
    return;
 }

 

The Windows path to the JAR file will begin with "C:\..." which contains a semi-colon, so the split results in 4 Strings, rather than the 3 that are expected.

More Like This

  • Retrieving data ...

Bookmarked By (0)