Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Voicetools » NullPointer Exception, when using BusinessObject in Database Query(Database Query Module - NullPointerException)
NullPointer Exception, when using BusinessObject in Database Query [message #758243] Tue, 22 November 2011 07:31 Go to next message
fantasia1993 is currently offline fantasia1993
Messages: 6
Registered: November 2011
Junior Member
Handling, how to reproduce the error:
- Application with Database-Definition
- Business Object "Customer" is defined to hold one DB-Row
- Begin-Module defines variable "customer_x" of type "Customer"(BusinessObject)
- add new DatabaseQuery-Module
- select "customer_x" as Target Variable

-> NullPointerException occures

I attach the eclipse .log with the NullPointer-Exception.

Is it a Problem in VTP?

Thanks in advance for any comments!

Wolfgang


Re: NullPointer Exception, when using BusinessObject in Database Query [message #760240 is a reply to message #758243] Thu, 01 December 2011 11:51 Go to previous messageGo to next message
Randy Childers is currently offline Randy Childers
Messages: 121
Registered: July 2009
Senior Member
Wolfgang, I apologize for the delay -- we're looking into this now.

Randy


In <jag4mh$nt2$1@news.eclipse.org> fantasia1993 wrote:
> Handling, how to reproduce the error:
> - Application with Database-Definition
> - Business Object "Customer" is defined to hold one DB-Row
> - Begin-Module defines variable "customer_x" of type "Customer"(
> BusinessObject) - add new DatabaseQuery-Module - select "customer_x"
> as Target Variable
>
> -> NullPointerException occures
>
> I attach the eclipse .log with the NullPointer-Exception.
>
> Is it a Problem in VTP?
>
> Thanks in advance for any comments!
>
> Wolfgang
Re: NullPointer Exception, when using BusinessObject in Database Query [message #994535 is a reply to message #758243] Thu, 27 December 2012 11:01 Go to previous message
Damian Nardelli is currently offline Damian Nardelli
Messages: 6
Registered: December 2012
Junior Member
Hello,

I'm experiencing exactly the same UI issue.
And also when trying to query an Oracle Database I'm getting the following exception:

java.lang.IllegalStateException
at org.eclipse.vtp.framework.engine.runtime.RuntimeUtils.createInstance(RuntimeUtils.java:146)
at org.eclipse.vtp.framework.engine.runtime.Builder.create(Builder.java:75)
at org.eclipse.vtp.framework.engine.runtime.Executable.createInstance(Executable.java:115)
at org.eclipse.vtp.framework.engine.runtime.Action.execute(Action.java:133)
at org.eclipse.vtp.framework.engine.runtime.Sequence.next(Sequence.java:114)
at org.eclipse.vtp.framework.engine.runtime.Execution$1.run(Execution.java:173)
at org.eclipse.vtp.framework.engine.http.DeploymentExecution.visitRunnable(DeploymentExecution.java:472)
at org.eclipse.vtp.framework.engine.runtime.Execution$1.accept(Execution.java:187)
at org.eclipse.vtp.framework.engine.http.DeploymentExecution.doNext(DeploymentExecution.java:191)
at org.eclipse.vtp.framework.engine.http.DeploymentSession.start(DeploymentSession.java:276)
at org.eclipse.vtp.framework.engine.http.Deployment.start(Deployment.java:176)
at org.eclipse.vtp.framework.engine.http.HttpConnector.invokeProcessEngine(HttpConnector.java:637)
at org.eclipse.vtp.framework.engine.http.HttpConnector.process(HttpConnector.java:466)
at org.eclipse.vtp.framework.engine.http.HttpConnectorServlet.process(HttpConnectorServlet.java:125)
at org.eclipse.vtp.framework.engine.http.HttpConnectorServlet.doGet(HttpConnectorServlet.java:146)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.eclipse.vtp.framework.engine.runtime.RuntimeUtils.createInstance(RuntimeUtils.java:142)
... 38 more
Caused by: java.lang.NullPointerException
at org.eclipse.vtp.framework.databases.actions.DatabaseQueryAction.<init>(DatabaseQueryAction.java:113)
... 43 more

I checked the source code and in org.eclipse.vtp.framework.databases.actions.DatabaseQueryAction
the following line is returning null:
String[] columnNames = database.getColumnNames(table);

And then it is crashing in this line because columnNames is null:
Map<String, IDataType> columns = new LinkedHashMap<String, IDataType>(columnNames.length);

Thanks in advance,
Damian
Previous Topic:Doubt in Advanced Transfer and WebService
Next Topic:Open Vxml Perspective.
Goto Forum:
  


Current Time: Fri Jul 25 06:41:18 EDT 2014

Powered by FUDForum. Page generated in 0.01794 seconds