aspose file tools*
The moose likes GWT and the fly likes Facing issue in Internet Explorer, but same works fine in Mozilla Firefox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Facing issue in Internet Explorer, but same works fine in Mozilla Firefox" Watch "Facing issue in Internet Explorer, but same works fine in Mozilla Firefox" New topic
Author

Facing issue in Internet Explorer, but same works fine in Mozilla Firefox

sudheer goud
Greenhorn

Joined: Nov 22, 2011
Posts: 2
SEVERE: Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String com.navteq.featurerecognition.featuremgmt.client.FeatureGuideService.saveOrUpdateSignData(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)' threw an unexpected exception: java.lang.NullPointerException
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:403)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:301)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:162)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at com.navteq.featurerecognition.model.TemplateImage.setImage(TemplateImage.java:56)
at com.navteq.featurerecognition.dao.impl.DefaultSignDao.saveOrUpdateSignData(DefaultSignDao.java:278)
at com.navteq.featurerecognition.service.impl.DefaultSignService.saveOrUpdateSignData(DefaultSignService.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10355
    
    8

Welcome to the Ranch.
As the error tells you,

some variable on line 56 is null.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
sudheer goud
Greenhorn

Joined: Nov 22, 2011
Posts: 2
Thanks Maneesh Godbole, looking into the issue.

The issue was resolved, actually the file name i am retrieving using the method file.getFileName() is giving me the relative path.
In Mozilla Firefox it is converting into absolute path, where as in Internet Explorer it is sending the relative path. Due to which it is giving the NPE.

I need to change the method to file.getBaseName().
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10355
    
    8

Well done figuring out the problem and thanks for sharing the solution with everyone
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Facing issue in Internet Explorer, but same works fine in Mozilla Firefox