tags:

views:

65

answers:

3

I have no particular Java knowledge whatsoever. We are running an opensource application which is mainly written in Java. Internet connection dropped while I was editing a job (this is some sort of a translation project management tool) and I cannot open the job anymore.

I checked the database to see if anything is wrong there and all looks fine (I compared values to a working job). Then I logged in to the server and checked logs and seems like this application may be relying on some data which is stored somewhere other than the database.

The log contains tons of lines but I guess this is the one that provides the hint:

ERROR;com.globalsight.everest.workflow.WorkflowProcessAdapter;There is error in create the workflowinstance for the process instance id 54
java.lang.IllegalArgumentException: the userrole value cannot be null

Looks like userrole got messed up while the connection dropped. Now that userrole is not assigned anywhere in the database. I thought I will browse the source files to see where it may be coming from but I am not able to find those. For instance, an exception line says :

com.globalsight.everest.taskmanager.TaskManagerLocal.acceptTask(TaskManagerLocal.java:165)

I browse to that localization and there is a TaskManagerLocal folder there but it is empty. I assume this is compiled in the jar file (right?). Can somebody with Java knowledge shed a light as to how I can dig and find where userrole may be saved and bring by application back up?

Many thanks in advance

+2  A: 

If the project is open source, the code may be packaged inside the JAR file. This is not always the case, as the actual code that is run from the JAR is in compiled bytecode form.

You could try unzipping the JAR using:

jar -xvf the_jar_file.jar

This will create a number of directories/files which may include a src directory. If not, the source is probably not included in the JAR in its un-compiled form, in which case you'd have to download the source from the project site.

Tom
Thanks Tom, I am downloading the source now to further investigate. If the files are packed in the jar, why do I have the folder structure on the installation (all empty)?
eakkas
That's a good question; perhaps the developer left the folder structure in there by mistake when putting together the install package.
Tom
A: 

Since this error is specifically related to that tool, I'd go to the GlobalSite at http://globalsight.com and ask there. I did a quick search of the site for this error and didn't find anything but you should be able to get some answers (I would think) after posting this on their forum.

SOA Nerd
Support on the site is pretty slow since the community is rather small. I have enough programming knowledge that I should be able to figure this out but needed a quick light which I got on the first answer. Thanks for the input.
eakkas
+4  A: 

com.globalsight... -> globalsight.com The website states that the sources are on SourceForge

CuriousPanda