Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ClassNotFoundException while running index updater #40

Merged
merged 3 commits into from Oct 19, 2015

Conversation

pychuang
Copy link
Contributor

@pychuang pychuang commented Sep 2, 2015

Currently, there are mixed versions of Spring libraries in lib/. Although they builds OK and works sometimes, e.g. webapp, it seems that they are not compatible in some cases. While running index updater, I got the ClassNotFoundException like below.

This pull request rollbacks to the original Spring libraries (although I don't know the version), so that at least both webapp and command line utilities like index updater work.

Tested on csxstaging01.

Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/core/OrderComparator$OrderSourceProvider
at org.springframework.context.support.AbstractRefreshableApplicationContext.createBeanFactory(AbstractRefreshableApplicationContext.java:200)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:126)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:452)
at org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:140)
at org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:94)
at edu.psu.citeseerx.loaders.ContextReader.loadContext(ContextReader.java:37)
at edu.psu.citeseerx.loaders.IndexUpdateLoader.main(IndexUpdateLoader.java:29)
Caused by: java.lang.ClassNotFoundException: org.springframework.core.OrderComparator$OrderSourceProvider
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 8 more

This reverts commit 4273e0e.
Partially revert "return a 404 summary/download page for removed docs"

This partially reverts commit 412fe2a.
@fanchyna
Copy link
Contributor

The ingestion code is tested on the ingestion server. Both new documents and duplicates are handled properly. I am OK with merging the pull request.

@kylemarkwilliams
Copy link
Contributor

All good by me. Please go ahead.

fanchyna added a commit that referenced this pull request Oct 19, 2015
Fix ClassNotFoundException while running index updater
@fanchyna fanchyna merged commit 35d7706 into SeerLabs:master Oct 19, 2015
@pychuang pychuang deleted the wip-fix-spring-init branch October 21, 2015 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants