dcsimg
Exception in importing files using TOOL API remotely.
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Madhukar_Govindiah
Posted On:   Tuesday, June 19, 2001 01:35 AM

I am trying to use the TOOL API remotely to import a jar file into work space.While importing, it is throwing the following exception: com.ibm.ivj.util.base.IvjImportException: Error(s) on import java.lang.Throwable(java.lang.String) java.lang.Exception(java.lang.String) com.ibm.ivj.util.base.IvjException(java.lang.String, java.lang.String []) com.ibm.ivj.util.base.IvjImportException(java.lang.String, java.lang.String []) com.ibm.ivj.util.base.Type [] com.ibm.ivj.util.base.local.Workspace.importData(com.ibm.ivj.util.base.ImportCodeSpec) void com.ibm.ivj.toolserver.samples.ImportJarServlet.doGet(com.ibm.ivj.toolserver.servletclasses.servlet.http.HttpServletRequest, com.ibm.ivj.toolserver.servl   More>>

I am trying to use the TOOL API remotely to import a jar file into work space.While importing, it is throwing the following exception:


com.ibm.ivj.util.base.IvjImportException: Error(s) on import
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
com.ibm.ivj.util.base.IvjException(java.lang.String, java.lang.String [])
com.ibm.ivj.util.base.IvjImportException(java.lang.String, java.lang.String [])
com.ibm.ivj.util.base.Type [] com.ibm.ivj.util.base.local.Workspace.importData(com.ibm.ivj.util.base.ImportCodeSpec)
void com.ibm.ivj.toolserver.samples.ImportJarServlet.doGet(com.ibm.ivj.toolserver.servletclasses.servlet.http.HttpServletRequest, com.ibm.ivj.toolserver.servletclasses.servlet.http.HttpServletResponse)
void com.ibm.ivj.toolserver.servletclasses.servlet.http.HttpServlet.service(com.ibm.ivj.toolserver.servletclasses.servlet.http.HttpServletRequest, com.ibm.ivj.toolserver.servletclasses.servlet.http.HttpServletResponse)
void com.ibm.ivj.toolserver.servletclasses.servlet.http.HttpServlet.service(com.ibm.ivj.toolserver.servletclasses.servlet.ServletRequest, com.ibm.ivj.toolserver.servletclasses.servlet.ServletResponse)
void com.ibm.ivj.toolserver.ToolHttpServerHandler.serveServlet(com.ibm.ivj.toolserver.server.servlet.http.HttpRequest, com.ibm.ivj.toolserver.server.servlet.http.HttpResponse, java.lang.String)
void com.ibm.ivj.toolserver.ToolHttpServerHandler.sendResponse(com.ibm.ivj.toolserver.server.servlet.http.HttpRequest, com.ibm.ivj.toolserver.server.servlet.http.HttpResponse)
void com.ibm.ivj.toolserver.server.servlet.http.HttpServerHandler.handleConnection(java.net.Socket)
void com.ibm.ivj.toolserver.server.servlet.http.HttpServerHandler.run()
void java.lang.Thread.run()

The following is the code snippet doing the import:


ImportCodeSpec importCodeSpec = new ImportCodeSpec();


importCodeSpec.setClassFiles(classFiles);


importCodeSpec.setDefaultProject(project);


try


{


os.println(bundle.getString("InfoImport"));


types = workspace.importData(importCodeSpec);


}


catch (IvjException e)


{


e.printStackTrace();


os.println(e.getMessage());


return;


}




Here classFiles - String array of class files to be imported.However, the normal import, using import->jar works perfectly.

Can any one out there help me out on this? Thanks in anticipation.


-Madhu

   <<Less
About | Sitemap | Contact