Could not publish to the server. java.lang.IndexOutOfBoundsException

13,810 views
Skip to first unread message

Fabio Serragnoli

unread,
Jun 28, 2013, 11:04:22 AM6/28/13
to crowdg...@googlegroups.com
I've reset my environment and checksumed all the dependencies of the project and I'm sure they are OK. However I'm still getting the bloody java.lang.IndexOutOfBoundsException when I try to start the webapps in my Apache. I can't find any logs with stacktraces.

Any ideas what this may be.

Thanks a lot

Koray Gülcü

unread,
Jun 28, 2013, 2:34:07 PM6/28/13
to crowdguru-dev
Hi Fabio,

Have you tried to follow maven phases as in the .travis.xml? Alternatively, if build succeeds, you can run the webapp directly using maven:

# cd webapp && mvn cargo:run

And go to your favourite browser. Default url must be http://localhost:8080/crowdguru


Koray Gülcü
koray...@gmail.com


--
CrowdGuru Developers Group
www.crowdguru.org
https://github.com/crowdguru/crowdguru
---
You received this message because you are subscribed to the Google Groups "CrowdGuru Development Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crowdguru-de...@googlegroups.com.
To post to this group, send an email to crowdg...@googlegroups.com.
Visit this group at http://groups.google.com/group/crowdguru-dev.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

GR

unread,
Aug 9, 2013, 1:23:52 PM8/9/13
to crowdg...@googlegroups.com
I have faced similar problem in eclipse, I tried closing and re-opening the project, and it worked.

----
GR

general...@gmail.com

unread,
Sep 10, 2013, 10:43:19 AM9/10/13
to crowdg...@googlegroups.com
We all face these kind of issues in Eclipse and MAven. Nothing to worry. Keep trying multiple options.

1 -- Try right click on your project and choose Maven --> Update Project and then update your project
2 -- see if your project is not showing any red mark on it
3 -- keep using maven clean and package option
4 -- sometime its better to delete existing Tomcat Server from Eclipse and recreate it and add project again and publish
5 -- reboot your machine is also a better option most of the time
6 -- Maven command prompt utility is also be considered to resolve many issues
7 -- try to see if your machine has multiple web server running on same port then better manually close all of them except Tomcat
8 -- Make sure your project has Maven Dependencies attached and if not make sure you know how to add it. This error could be happened because of missing JARS. Right click your project and choose Properties --> Deployment Assemblies --> Make sure you have shown there MAVEN DEPENDENCIES folder there. (If not then add it by clicking Add --> Java Build Path Entries --> Choose Maven Dependencies
9 -- Make sure your POM file has no issue and if YES .. Try resolve them one by one. for example check first REPOSITORY section ... then DEPENDENCIES and so and so on
10 -- Sometime you need to CLEAN and BUILD your project MANUALLY ....Choose the project then click on Project menu --> CLEAN ....
11 -- Always keep your working project copy some where with complete WORKSPACE and also take backup of working MAVEN repository some where in case if you just use it back... (in some case your environment doesnot allow you to connect to certain sites and you created those JARS maually added under maven repositories, you should keep the back up , so that not to do this exercise in case of failure)

There are always other option ... Keep try and Enjoy the JAVA WORLD!

Regards
Syed Imam
Reply all
Reply to author
Forward
0 new messages