pcserna opened a new issue, #5657:
URL: https://github.com/apache/hop/issues/5657

   ### Apache Hop version?
   
   2.15.0
   
   ### Java version?
   
   openjdk 11.0.21 2023-10-17 LTS
   
   ### Operating system
   
   Linux
   
   ### What happened?
   
   Hello Community, I could run workflows with Asynchronous Web Service without 
any problem. Thanks for the shared information!
   However, running a pipeline in Web Service gave me the following error 
message:
   
   HTTP ERROR 500 javax.servlet.ServletException: Error producing web service 
output
   URI: /hop/webService/
   STATUS:      500
   MESSAGE:     javax.servlet.ServletException: Error producing web service 
output
   SERVLET:     org.apache.hop.www.WebServiceServlet-457692cb
   CAUSED BY:   javax.servlet.ServletException: Error producing web service 
output
   CAUSED BY:   java.lang.NullPointerException: Cannot invoke 
"org.apache.hop.pipeline.engine.IEngineComponent.addRowListener(org.apache.hop.pipeline.transform.IRowListener)"
 because "component" is null
   Caused by:
   javax.servlet.ServletException: Error producing web service output
        at 
org.apache.hop.www.WebServiceServlet.doGet(WebServiceServlet.java:230)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
        at org.apache.hop.www.BaseHttpServlet.service(BaseHttpServlet.java:102)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
        at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:550)
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
        at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
        at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1435)
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
        at 
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
        at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
        at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1350)
        at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at 
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:234)
        at 
org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:59)
        at 
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:567)
        at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
        at org.eclipse.jetty.server.Server.handle(Server.java:516)
        at 
org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)
        at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)
        at 
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
        at 
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
        at 
org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:540)
        at 
org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:395)
        at 
org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:161)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
        at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
        at 
org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:383)
        at 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:882)
        at 
org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1036)
        at java.base/java.lang.Thread.run(Thread.java:840)
   Caused by: java.lang.NullPointerException: Cannot invoke 
"org.apache.hop.pipeline.engine.IEngineComponent.addRowListener(org.apache.hop.pipeline.transform.IRowListener)"
 because "component" is null
        at 
org.apache.hop.www.WebServiceServlet.doGet(WebServiceServlet.java:202)
        ... 39 more
   
   My web service's json setting is the following:
   {
     "transformName": "OUTPUT",
     "virtualPath": "",
     "fieldName": "AuctionDate",
     "filename": "${PROJECT_HOME}/Import/Sync_IDA_HUPX.hpl",
     "bodyContentVariable": "",
     "listingStatus": true,
     "name": "syncIdaHupx",
     "runConfigurationName": "local",
     "contentType": "application/json",
     "enabled": true
   }
   
   The invoked pipeline is in "waiting" status. The pipeline log halted at 
Azure SQL server connection.
   
   I can overcome this with wrapping up in a workflow and run it in async. 
   Thanks for the clues! Br, Peter
   
   ### Issue Priority
   
   Priority: 3
   
   ### Issue Component
   
   Component: Hop Server


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@hop.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to