ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ File Transfer Edition » WebGateway - Samples UI not functioning

Post new topic  Reply to topic
 WebGateway - Samples UI not functioning « View previous topic :: View next topic » 
Author Message
Senthamizh
PostPosted: Mon Jan 19, 2015 8:37 am    Post subject: WebGateway - Samples UI not functioning Reply with quote

Apprentice

Joined: 21 Dec 2009
Posts: 47

Hello,

We are trying to implement a POC on the webgateway solution for our file transfer need so that users can just login to this gateway and make the transfer.

Queue Manager 1 : QM_EUR with an WebAgent "WEBAGENT_EUR"
Queue Manager 2 : QM_HNA with an MFT Agent "AGENT_HNA"

The webgateway has been configured to be connected with the QM_EUR.

Filespaces has been created for users. they will have to upload their file and this file will have to be retrieved in AGENT_HNA

As instructed in the infocenter, the webgateway has been installed correctly and verfication steps were successful.

But then, when we tried to use the samples UI provided in the installation folder \mqft\samples\web\servlet\com.ibm.wmqfte.web.samples.war, it was always throwing an error "FileUpload Status : An Error Occured" . Nothing else. Nothing in the application logs as well.

As the UI failed, we started to provide HTTP commands to the gateway.

Code:
curl -H "x-fte-checksum: MD5" -v -include --form upload=@filename.txt http://localhost:9083/wmqfte/file/agent/AGENT_HNA@QM_EUR -u admin:admin


But even this command failed with the following exception,
Code:
C:\Program Files\cURL>curl -H "x-fte-checksum: MD5" -v -include --form upload=@f
ilename.txt http://localhost:9083/wmqfte/file/agent/AGENT_HNA@QM_EUR -u admin:ad
min
* Couldn't find host localhost in the _netrc file; using defaults
* Hostname was NOT found in DNS cache
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 9083 (#0)
* Server auth using Basic with user 'admin'
> POST /wmqfte/file/agent/AGENT_HNA@QM_EUR HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.39.0
> Host: localhost:9083
> Accept: */*
> x-fte-checksum: MD5
> Content-Length: 167824
> Expect: 100-continue
> Content-Type: multipart/form-data; boundary=------------------------91d8b66307
8906a7
>
< HTTP/1.1 100 Continue
HTTP/1.1 100 Continue
< Content-Length: 0
Content-Length: 0
< Date: Mon, 19 Jan 2015 16:11:22 GMT
Date: Mon, 19 Jan 2015 16:11:22 GMT

< HTTP/1.1 500 Internal Server Error
HTTP/1.1 500 Internal Server Error
< Date: Mon, 19 Jan 2015 16:11:22 GMT
Date: Mon, 19 Jan 2015 16:11:22 GMT
< X-Powered-By: Servlet/3.0
X-Powered-By: Servlet/3.0
< Content-Type: text/plain
Content-Type: text/plain
< Content-Language: en-IN
Content-Language: en-IN
* Added cookie LtpaToken2="D52U05OIRUoSRzkG1J/QtTM+sD1PJmt4w4v96hg4Ho8CXN7rRw6O2
+akKn1oWnq/BFH+mxCVWzCUgR16Sfx26hTRpowFqVDE0LCP6EFrzTL2MaxIQAkMjMYOWH21MoXwM1mHM
QuHtmfH7eK9aXd8LqjgMbDi9dMNfjstcdKQCISOfMGAXq/Uzv7TcAHRnDjf70iys/JlOTI9bSu258DSI
bOHYpCjLj9bKrUh4XcnQj9BXTE46Vynw7vQ715lK/6QF68vGu4YnUSk7i5M0YEVotEKRQaT1Ipu3Wb0K
t2P7SHNpbWn6W5op8IdeRyeQVMHO9/7ZsFtOeAO9y3UNDFPss9TUbxXyI/rSHbjhU6x+LpEAVLehLEVY
I0lBa8dCb3UCSmiIBaa9yMQO1Ep4E4gF6Nl86RRGYDPFnzIHU36RMyfK5xF6Sv2HBM3H4Fiq44ZeE4jJ
FBByn1wopboCXwetgNTVNyFWFSpURQS+jxL5K7zwDj4c9MKr6V1S3oydrre5BKz5yslRov1tvvcxOTXK
nWg9OQm1e8soOUkxf63FfI7UhqsV9gAtExGDZjrAAHd89aSwZ6VwczbD7PNE+H251qlVL8CWwwIAz7eH
kVVEJr7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jMYOWH21MoXwM1mHMQuHt
mfH7eK9aXd8LqjgMbDi9dMNfjstcdKQCISOfMGAXq/Uzv7TcAHRnDjf70iys/JlOTI9bSu258DSIbOHY
pCjLj9bKrUh4XcnQj9BXTE46Vynw7vQ715lK/6QF68vGu4YnUSk7i5M0YEVotEKRQaT1Ipu3Wb0Kt2P7
SHNpbWn6W5op8IdeRyeQVMHO9/7ZsFtOeAO9y3UNDFPss9TUbxXyI/rSHbjhU6x+LpEAVLehLEVYI0lB
a8dCb3UCSmiIBaa9yMQO1Ep4E4gF6Nl86RRGYDPFnzIHU36RMyfK5xF6Sv2HBM3H4Fiq44ZeE4jJFBBy
n1wopboCXwetgNTVNyFWFSpURQS+jxL5K7zwDj4c9MKr6V1S3oydrre5BKz5yslRov1tvvcxOTXKnWg9
OQm1e8soOUkxf63FfI7UhqsV9gAtExGDZjrAAHd89aSwZ6VwczbD7PNE+H251qlVL8CWwwIAz7eHkVVE
Jr7lo36yxAvb1/k2Plg0JuoviwnNCHWAW626fm6Fo5+MEgexQro/lROZ7PlHM9wMUtZGSw4GvL4gj9Ry
DRS9KS7Vd55izWOqxjcGwdVMgObh4Ts8J5ylHPChyOFxIzCWNU=; Path=/; HttpOnly
* Added cookie JSESSIONID="00005PsmnS9qcMsGsPz07sTCRLU:-1" for domain localhost,
 path /, expire 0
< Set-Cookie: JSESSIONID=00005PsmnS9qcMsGsPz07sTCRLU:-1; Path=/; HttpOnly
Set-Cookie: JSESSIONID=00005PsmnS9qcMsGsPz07sTCRLU:-1; Path=/; HttpOnly
< Transfer-Encoding: chunked
Transfer-Encoding: chunked
< Connection: Close
Connection: Close
< Expires: Thu, 01 Dec 1994 16:00:00 GMT
Expires: Thu, 01 Dec 1994 16:00:00 GMT
< Cache-Control: no-cache="set-cookie, set-cookie2"
Cache-Control: no-cache="set-cookie, set-cookie2"

<
BFGWI0018E: The request could not be completed due to an internal web applicatio
n server error.* Closing connection 0
* WARNING: failed to save cookies in lude


We would like to understand how the webgateway works, what does it exactly need as input parameters in the http command.

Could someone help me on this http command parameters
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jan 19, 2015 10:03 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Potentially this has nothing to do with http parameters.
Which part of
Code:
BFGWI0018E: The request could not be completed due to an internal web application server error.* Closing connection 0
* WARNING: failed to save cookies in lude
did you not understand??
This could be due to some permission error...on the FS...
Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Senthamizh
PostPosted: Tue Jan 20, 2015 7:39 am    Post subject: Reply with quote

Apprentice

Joined: 21 Dec 2009
Posts: 47

Thanks fjb for your response.

I saw lot of lock files in the temp filespace directory. I cleared them and re-executed the same command, the same error came for the curl output.

I enabled trace for the application server and found this exception in the sevrer logs.


Code:
00000076               E com.ibm.wmqfte.web.rest.response.FTEServletResponseImpl  java.lang.NullPointerException
   at com.ibm.wmqfte.web.rest.request.FTEFileUploadRequestHandler.process(FTEFileUploadRequestHandler.java:336)
   at com.ibm.wmqfte.web.rest.FTEServlet.doPost(FTEServlet.java:253)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
   at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1230)
   at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
   at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
   at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
   at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1071)
   at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)
   at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:914)
   at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
   at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)
   at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:459)
   at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:526)
   at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:312)
   at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:283)
   at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
   at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
   at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
   at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
   at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
   at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
   at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
   at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
   at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
   at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1864)


I could not clearly get this error, could someone help me
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ File Transfer Edition » WebGateway - Samples UI not functioning
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.