File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Analysing a StackTrace Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Analysing a StackTrace" Watch "Analysing a StackTrace" New topic

Analysing a StackTrace

Abhishk Singh
Ranch Hand

Joined: Aug 19, 2010
Posts: 50
I have following understanding regarding stacktraces:
If method1 calls method2 which calls method3 and so on...
then a stacktrace prints up the methods from the memory stack in Last In First Out order, like if an error occurred in method(N), then the statck trace would contain something like:
Hence we can try and resolve the error at methodN.

Now in the web application I am working on, I am getting following exception stack trace:

Caused by: error in opening zip file
at Method)
at weblogic.webservice.core.encoding.DefaultRegistry.loadResource(
at weblogic.webservice.core.encoding.DefaultRegistry.<init>(
at weblogic.webservice.core.rpc.ServiceImpl.<init>(
at myapp.worklist_new.WorklistComponent1INFExport_WorklistComponent1INFHttpService_Impl.<init>(
at myapp.worklist_new.WorklistComponent1INFExport_WorklistComponent1INFHttpService_Impl.<init>(
at com.ultimatix.framework.util.WPSWorkflowImpl.getWorklistComponent1INF(
at com.ultimatix.framework.util.WPSWorkflowImpl.getFilteredWorklist(
at com.ultimatix.framework.util.WPSWorkflowImpl.getWorklist(
at com.ultimatix.framework.util.WorkflowDelegate.getWorklist(
at com.ultimatix.sample.clientUtils.WorklistDelegate.getList(
at com.ultimatix.framework.jsf.component.DataTablePaginatorBean.getDataPage(
at com.ultimatix.framework.jsf.component.DataTablePaginatorBean$LocalDataModel.fetchPage(
at com.ultimatix.framework.jsf.component.PagedListDataModel.getPage(
at com.ultimatix.framework.jsf.component.PagedListDataModel.getRowCount(

the statement: "myapp.worklist_new.WorklistComponent1INFExport_WorklistComponent1INFHttpService_Impl.<init>(" is used while invoking a web service from our web application. I am not able to realize how ZipException is coming in this stack trace, since the functionality to invoke the web service dosen't include opening any Zipped file.

Can it be due to any filters in the web application where some code related to Zip files may be present.

I would also like to mention that in the web application , at the place where code for opening and writing zipped file is present, there is no finally block after try/catch blocks to close ZipOutputStream. ZipOutputStream is closed in case of successful operation only and in case of an exception there is no finally block in the code to close this stream. Could this be a problem.

I understand that the question posted above is abstract and not very explanatory of the issue. Still request you to provide your inputs.

The good thing about being a nobody is that you are perfect.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15082

The <init> refers to a constructor, so if you see a line like this:


it refers to code in the constructor of class

HTTP requests and responses can be zipped, to save bandwidth (the less bytes you have to send over the network, the better). Probably you're calling a webservice here via WebLogic and the response to the request is zipped. WebLogic uses Java's built-in ZIP classes to unzip the response. Note that one of the classes used is named That sounds a lot like a HTTP connection class that uses ZIP.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Abhishk Singh
Ranch Hand

Joined: Aug 19, 2010
Posts: 50
Thanks for the input.
I agree. Here's the link:
subject: Analysing a StackTrace
jQuery in Action, 3rd edition