We create an Java Adapter that calls the API to upload files via MobileFoundation. However, when the application calls the Adapter, it will result in a server error and will not work.
In addition, I have created a JavaScript Adapter, but the same error occurred.
Please tell me how to resolve.
Adapter that was created is as follows.
#POST
#Path("/uploadimage")
#Produces(MediaType.APPLICATION_JSON)
#Consumes(MediaType.MULTIPART_FORM_DATA)
#OAuthSecurity(enabled=false)
public void postFileUpload(#Context HttpServletResponse response,
#FormParam("image_type") #DefaultValue("") String image_type,
#Encoded #FormParam("file") File file
)
throws IOException, IllegalStateException, SAXException {
(Since it is an error before reaching the logic inside, method contents are omitted.)
The error is as follows.
[12/5/17 6:09:38:687 UTC] 0000af3f SystemErr R java.lang.RuntimeException: Invalid URL encoding: not a valid digit (radix 16): 14
[12/5/17 6:09:38:688 UTC] 0000af3f SystemErr R at org.apache.cxf.common.util.UrlUtils.digit16(UrlUtils.java:114)
[12/5/17 6:09:38:688 UTC] 0000af3f SystemErr R at org.apache.cxf.common.util.UrlUtils.urlDecode(UrlUtils.java:94)
[12/5/17 6:09:38:689 UTC] 0000af3f SystemErr R at org.apache.cxf.common.util.UrlUtils.urlDecode(UrlUtils.java:66)
[12/5/17 6:09:38:689 UTC] 0000af3f SystemErr R at org.apache.cxf.common.util.UrlUtils.urlDecode(UrlUtils.java:121)
[12/5/17 6:09:38:689 UTC] 0000af3f SystemErr R at org.apache.cxf.jaxrs.utils.HttpUtils.urlDecode(HttpUtils.java:94)
[12/5/17 6:09:38:689 UTC] 0000af3f SystemErr R at org.apache.cxf.jaxrs.utils.FormUtils.populateMapFromMultipart(FormUtils.java:223)
[12/5/17 6:09:38:689 UTC] 0000af3f SystemErr R at org.apache.cxf.jaxrs.utils.JAXRSUtils.processFormParam(JAXRSUtils.java:956)
[12/5/17 6:09:38:691 UTC] 0000af3f SystemErr R at org.apache.cxf.jaxrs.utils.JAXRSUtils.createHttpParameterValue(JAXRSUtils.java:877)
[12/5/17 6:09:38:692 UTC] 0000af3f SystemErr R at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameter(JAXRSUtils.java:837)
[12/5/17 6:09:38:692 UTC] 0000af3f SystemErr R at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameters(JAXRSUtils.java:787)
......
Dummy JavaScript Adapter that was created is as follows.
function postImage() {
var input = {
method : 'post',
returnedContentType : 'json',
path : "test/"
};
return MFP.Server.invokeHttp(input);}
The request is as follows.
POST https://*****.mybluemix.net/mfp/api/adapters/JsAdapter/postImage
POST data:
--4ds9bnG-WijS3-W773egmV2-qxb8LBZeUfEr
Content-Disposition: form-data; name="timestamp"
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
2017-11-20 14:55:22.128000
--4ds9bnG-WijS3-W773egmV2-qxb8LBZeUfEr
Content-Disposition: form-data; name="file"; filename="button_no.png"
Content-Type: image/png
Content-Transfer-Encoding: binary
--4ds9bnG-WijS3-W773egmV2-qxb8LBZeUfEr
Content-Disposition: form-data; name="thumbnail"; filename="button_yes.png"
Content-Type: image/png
Content-Transfer-Encoding: binary
--4ds9bnG-WijS3-W773egmV2-qxb8LBZeUfEr--
[no cookies]
Request Headers:
Connection: close
Content-Length: 107452
Content-Type: multipart/form-data; boundary=4ds9bnG-WijS3-W773egmV2-qxb8LBZeUfEr
Host: *****.mybluemix.net
User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_151)
Related
I am getting HTTP response code: 500 in logs for wladmin user..because of this I am unable to deploy runtime for worklight console
[2/7/18 5:33:39:138 EST] 000000ab ServiceProxy E Received status 500 for GET https://localhost:9444/wladmin/management-apis/1.0/loginAudit
java.io.IOException: Server returned HTTP response code: 500 for URL: https://localhost:9444/wladmin/management-apis/1.0/loginAudit
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
Any help?
Error log:
NDIUtils I Resource conf/jndi/default.properties not found. This is not an error. Context path is __globalscope__
[2/7/18 5:33:38:815 EST] 000000ad RuntimeServic E Failed to obtain JMX connection to access an MBean.
There might be a JMX configuration error: null
[2/7/18 5:33:39:138 EST] 000000ab ServiceProxy E Received status 500 for GET https://localhost:9444/wladmin/management-apis/1.0/loginAudit
java.io.IOException: Server returned HTTP response code: 500 for URL: https://localhost:9444/wladmin/management-apis/1.0/loginAudit
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:80)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:57)
at java.lang.reflect.Constructor.newInstance(Constructor.java:539)
at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1686)
at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1684)
at java.security.AccessController.doPrivileged(AccessController.java:280)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1682)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1255)
at com.ibm.net.ssl.www2.protocol.https.b.getInputStream(b.java:49)
at com.ibm.worklight.management.ui.servlet.ServiceProxy.service(ServiceProxy.java:172)
at com.ibm.worklight.management.ui.servlet.ConsoleServicesServlet.service(ConsoleServicesServlet.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1227)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:776)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:458)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:97)
at com.ibm.worklight.admin.common.filter.HSTSFilter.doFilter(HSTSFilter.java:110)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:928)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1025)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3761)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:976)
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.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784)
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:1862)
I am experiencing the "GenericSignatureFormatError" exception in production runtime occasionally. When things go smoothly, we have following information in log:
[11/4/15 15:40:01:354 CST] 0000013b SystemOut O [RequestId:240c17e6-b8a5-4c55-a6ff-f923df9fcd11] c.f.s.w.s.SDKControllerAspect[50] incoming request: GET /api/v1/csr/account/0 ? appKey=0
[11/4/15 15:40:01:355 CST] 0000013b SystemOut O [RequestId:240c17e6-b8a5-4c55-a6ff-f923df9fcd11] c.f.s.w.s.SDKControllerAspect[68] invoking method:V1CSRController.showAnyAccount(..), argument[0]:com.fet.sdp.ws.sdk.spec.SDKRqAttrAuthorization#128cb1c0, argument[1]:0
[11/4/15 15:40:01:359 CST] 0000013b SystemOut O [RequestId:240c17e6-b8a5-4c55-a6ff-f923df9fcd11] c.f.s.s.sdk.sso.AAService[54] Cannot find any SDP_CLIENT_SVC_MAP record at time:'Wed Nov 04 15:40:01 CST 2015', with appkey:'0' and apiId:'101020'
[11/4/15 15:40:01:360 CST] 0000013b SystemOut O [RequestId:240c17e6-b8a5-4c55-a6ff-f923df9fcd11] c.f.s.w.s.SDKControllerAspect[84] result:failed, returning:{"code":"1010200300","message":"authorize error"}
[11/4/15 15:40:01:361 CST] 0000013b SystemOut O [RequestId:240c17e6-b8a5-4c55-a6ff-f923df9fcd11] c.f.s.w.i.LogInterceptor[66] sessionId:-none-, duration:6ms, path:'GET /api/v1/csr/account/0'
However, the request fails from time to time with same input parameters and leaves the following information in log:
[11/4/15 15:20:01:530 CST] 000002dc SystemOut O [RequestId:50922d40-3eaa-49a1-b400-6fc5becbcc20] c.f.s.w.s.SDKControllerAspect[50] incoming request: GET /api/v1/csr/account/0 ? appKey=0
[11/4/15 15:20:01:530 CST] 000002dc SystemOut O [RequestId:50922d40-3eaa-49a1-b400-6fc5becbcc20] c.f.s.w.i.LogInterceptor[66] sessionId:-none-, duration:1ms, path:'GET /api/v1/csr/account/0'
[11/4/15 15:20:01:531 CST] 000002dc ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0014E: Uncaught service() exception root cause spring: org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.reflect.GenericSignatureFormatError
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:972)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
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.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:97)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:964)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1104)
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:463)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:287)
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$1.run(AsyncChannelFuture.java:205)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1865)
Caused by: java.lang.reflect.GenericSignatureFormatError
at sun.reflect.generics.parser.SignatureParser.error(SignatureParser.java:138)
at sun.reflect.generics.parser.SignatureParser.parseFieldTypeSignature(SignatureParser.java:311)
at sun.reflect.generics.parser.SignatureParser.parseFieldTypeSignature(SignatureParser.java:297)
at sun.reflect.generics.parser.SignatureParser.parseTypeSignature(SignatureParser.java:499)
at sun.reflect.generics.parser.SignatureParser.parseTypeSig(SignatureParser.java:202)
at sun.reflect.annotation.AnnotationParser.parseSig(AnnotationParser.java:399)
at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:212)
at sun.reflect.annotation.AnnotationParser.parseParameterAnnotations2(AnnotationParser.java:164)
at sun.reflect.annotation.AnnotationParser.parseParameterAnnotations(AnnotationParser.java:141)
at java.lang.reflect.Method.getParameterAnnotations(Method.java:780)
at org.springframework.core.MethodParameter.getParameterAnnotations(MethodParameter.java:283)
at org.springframework.core.MethodParameter.getParameterAnnotation(MethodParameter.java:301)
at org.springframework.core.MethodParameter.hasParameterAnnotation(MethodParameter.java:321)
at org.springframework.web.method.annotation.ModelFactory.findSessionAttributeArguments(ModelFactory.java:141)
at org.springframework.web.method.annotation.ModelFactory.initModel(ModelFactory.java:99)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:614)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
... 31 more
[11/4/15 15:20:01:532 CST] 000002dc webapp E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[spring]: java.lang.reflect.GenericSignatureFormatError
at sun.reflect.generics.parser.SignatureParser.error(SignatureParser.java:138)
at sun.reflect.generics.parser.SignatureParser.parseFieldTypeSignature(SignatureParser.java:311)
at sun.reflect.generics.parser.SignatureParser.parseFieldTypeSignature(SignatureParser.java:297)
at sun.reflect.generics.parser.SignatureParser.parseTypeSignature(SignatureParser.java:499)
at sun.reflect.generics.parser.SignatureParser.parseTypeSig(SignatureParser.java:202)
at sun.reflect.annotation.AnnotationParser.parseSig(AnnotationParser.java:399)
at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:212)
at sun.reflect.annotation.AnnotationParser.parseParameterAnnotations2(AnnotationParser.java:164)
at sun.reflect.annotation.AnnotationParser.parseParameterAnnotations(AnnotationParser.java:141)
at java.lang.reflect.Method.getParameterAnnotations(Method.java:780)
at org.springframework.core.MethodParameter.getParameterAnnotations(MethodParameter.java:283)
at org.springframework.core.MethodParameter.getParameterAnnotation(MethodParameter.java:301)
at org.springframework.core.MethodParameter.hasParameterAnnotation(MethodParameter.java:321)
at org.springframework.web.method.annotation.ModelFactory.findSessionAttributeArguments(ModelFactory.java:141)
at org.springframework.web.method.annotation.ModelFactory.initModel(ModelFactory.java:99)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:614)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
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.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:97)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:964)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1104)
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:463)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:287)
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$1.run(AsyncChannelFuture.java:205)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1865)
This looks very similar to the bug reported few years ago (https://bugs.eclipse.org/bugs/show_bug.cgi?id=207186), but it is for JDK 1.5.
More environment information is provided as follows:
OS >>
$ lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 6.6 (Santiago)
Release: 6.6
Codename: Santiago
WAS & JVM >>
WebSphere [IBMJAVA7 7.0.4.1 gm1318.03]Platform 8.5.5.4 [ND 8.5.5.4 cf041446.03] running with process name xxx\yyy\zzz and process id 21955
Host Operating System is Linux, version 2.6.32-504.el6.x86_64
Java version = 1.7.0, Java Runtime Version = pxa6470sr4fp1ifx-20130423_02 (SR4 FP1+IV38579+IV38399+IV40208), Java Compiler = j9jit26, Java VM name = IBM J9 VM
AspectJ >>
v 1.7.0
Hope someone can give me a hand on this.
Thanks
I am trying to use my API through the Swagger UI through the WSO2 API Manager:
Me->Browser->SwaggerUI->WSO2->MyBackend
Now I got the problem, that Swagger UI always gives me:
{ "error": "no response from server" }
I was making some research and figured out, that the Problem here is associated to CORS. While I am attempting a GET request, the Firefox sends an OPTION request first (because of CORS) to the WSO2 gateway.
Now the same scenario is explained and described here as well:
https://wso2.org/jira/browse/APIMANAGER-1819
The solution/workarounds described in the links is, that in the API publisher you have to create an endpoint for the requested resource with method OPTION and to set the auth type of that OPTION endpoint to "none".
However this doesn't work for me, since I get an exception in WSO, when the request is passed in.
The HTTP Request going into WSO2:
TID: [0] [AM] [2015-05-07 09:32:50,707] DEBUG {org.apache.synapse.transport.http.wire} - >> "OPTIONS /bankapi/v1/cashAccounts HTTP/1.1[\r][\n]" {org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2015-05-07 09:32:50,707] DEBUG {org.apache.synapse.transport.http.wire} - >> "Host: 10.88.13.104:8243[\r][\n]" {org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2015-05-07 09:32:50,707] DEBUG {org.apache.synapse.transport.http.wire} - >> "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0[\r][\n]" {org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2015-05-07 09:32:50,707] DEBUG {org.apache.synapse.transport.http.wire} - >> "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8[\r][\n]" {org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2015-05-07 09:32:50,708] DEBUG {org.apache.synapse.transport.http.wire} - >> "Accept-Language: en-US,en;q=0.5[\r][\n]" {org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2015-05-07 09:32:50,708] DEBUG {org.apache.synapse.transport.http.wire} - >> "Accept-Encoding: gzip, deflate[\r][\n]" {org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2015-05-07 09:32:50,708] DEBUG {org.apache.synapse.transport.http.wire} - >> "Origin: http://10.88.13.104:8080[\r][\n]" {org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2015-05-07 09:32:50,708] DEBUG {org.apache.synapse.transport.http.wire} - >> "Access-Control-Request-Method: GET[\r][\n]" {org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2015-05-07 09:32:50,708] DEBUG {org.apache.synapse.transport.http.wire} - >> "Connection: keep-alive[\r][\n]" {org.apache.synapse.transport.http.wire}
TID: [0] [AM] [2015-05-07 09:32:50,708] DEBUG {org.apache.synapse.transport.http.wire} - >> "[\r][\n]" {org.apache.synapse.transport.http.wire}
The exception and stack trace:
TID: [0] [AM] [2015-05-07 09:32:50,878] ERROR {org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler} - API authentication failure {org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler}
org.wso2.carbon.apimgt.gateway.handlers.security.APISecurityException: Access failure for API: /bankapi, version: v1 with key: null
at org.wso2.carbon.apimgt.gateway.handlers.security.oauth.OAuthAuthenticator.authenticate(OAuthAuthenticator.java:212)
at org.wso2.carbon.apimgt.gateway.handlers.security.APIAuthenticationHandler.handleRequest(APIAuthenticationHandler.java:94)
at org.apache.synapse.rest.API.process(API.java:284)
at org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:83)
at org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:64)
at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220)
at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:344)
at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:168)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
The important thing here is 2.... there is an error while authenticating even though the auth type is none and the authentication should always be successful. The request is not even forwarded to the backend (this is why my question is not a duplicate, but there is a very different problem underlying).
I am running WSO2 API Manager in version 1.8.0 on Windows (the binary package you can download on the WSO2 site).
Can you help me out here? Am I missing something? Is this a plain bug (it looks to me that way)?
I have 2 questions on deploying mobile first apps to the appcenter.
What I did:
Installed eclipse then Mobile First 6.3 studio, followed the IBM WebSphere Application Server Liberty Core and finally the appcenter.
All installed no problems. Setup a MobileFirst server configuration and a runtime following the instructions on here
What didn't work:
Added an android environment to my project, built it and tried to add the apk. Got the "file not uploaded" message, appear next to the upload field. Was happy to find some responses here.
What I have tried:
I have tried to increase max_allowed_size from 256 to 500 then 1000 in my.ini. No change, then I tried pointing to the right aapt.exe in the server.xml, that didn't help, commented out the aapt line and still nothing.
Also I am finding my apk in the the /android/native/bin and not apps/bin as the documentation and I think a few on here have pointed out. Any idea what I might have missed?
Not sure where to go from here. Any ideas what I might be doing wrong?
I have the following setup:
Eclipse + Mobile First Studio
IBM WebSphere Application Server Liberty Core
IBM Mobile First Platform Server + a config and runtime deployed.
Appcenter Console
Running on an average machine with Windows server 2008 r2 and a mysql db.
Thank you any help would be much appreciated.
Logs from \IBM\WebSphere\Liberty\usr\servers\sigmaServer\logs (I hope these are right ones)
console.log
[12/8/14 23:03:00:811 CET] 00000012 SystemErr R 8814 WorklightManagementPU-mysql INFO [Scheduled Executor-thread-1] openjpa.Runtime - Though you are using optimistic transactions, OpenJPA is now beginning a datastore transaction because you have requested a lock on some data.
[12/8/14 23:03:00:889 CET] 00000012 SystemErr R 8892 WorklightManagementPU-mysql INFO [Scheduled Executor-thread-1] openjpa.Runtime - Though you are using optimistic transactions, OpenJPA is now beginning a datastore transaction because you have requested a lock on some data.
[12/8/14 23:03:00:904 CET] 00000012 org.springframework.web.context.ContextLoader I Root WebApplicationContext: initialization completed in 11216 ms
[12/8/14 23:03:00:904 CET] 00000012 ht.admin.listeners.WorklightManagementServletContextListener I MobileFirst Administration Services servlet context listener initialized
[12/8/14 23:03:00:920 CET] 00000012 ht.admin.listeners.WorklightManagementServletContextListener I FWLSE3199I: ========= MobileFirst Administration Services version 6.3.0.00-20141127-1357 started.
[12/8/14 23:03:01:029 CET] 00000012 org.apache.wink.server.internal.servlet.RestServlet I The system is using the com.ibm.worklight.admin.services.ManagementServiceServlet JAX-RS application class that is named in the javax.ws.rs.Application init-param initialization parameter.
[12/8/14 23:03:01:341 CET] 00000012 apache.wink.server.internal.application.ApplicationProcessor I The following JAX-RS application has been processed: com.ibm.worklight.admin.services.ManagementServiceServlet
[12/8/14 23:03:01:357 CET] 00000012 org.apache.wink.server.internal.log.Resources I The server has registered the JAX-RS resource class com.ibm.worklight.admin.services.ManagementService with #Path(/).
[12/8/14 23:03:01:372 CET] 00000012 org.apache.wink.server.internal.log.Providers I The class com.ibm.worklight.admin.util.ByteArrayWorkaroundProvider was registered as a JAX-RS MessageBodyReader provider for com.ibm.worklight.admin.util.ByteArrayWorkaround Java types and */* media types.
[12/8/14 23:03:01:372 CET] 00000012 org.apache.wink.server.internal.log.Providers I The class com.ibm.worklight.admin.util.ByteArrayWorkaroundProvider was registered as a JAX-RS MessageBodyWriter provider for com.ibm.worklight.admin.util.ByteArrayWorkaround Java types and */* media types.
[12/8/14 23:03:02:511 CET] 00000012 com.ibm.ws.webcontainer.servlet I SRVE0242I: [wladmin] [/wladmin] [ManagementServlet]: Initialization successful.
[12/8/14 23:03:02:527 CET] 00000012 com.ibm.ws.app.manager.internal.statemachine.StartAction A CWWKZ0001I: Application wladmin started in 20.264 seconds.
[12/8/14 23:03:13:696 CET] 00000038 com.worklight.core.ilmt.WorklightILMTLogger I FWLSE0277I: Creating an ILMT record in the file 'C:\Program Files\ibm\common\slm\85a30bb123bab8037ee6e789807592ae.slmtag'.
[12/8/14 23:04:13:366 CET] 00000037 SystemErr R Exception in thread "Thread-20"
[12/8/14 23:04:13:366 CET] 00000037 SystemErr R java.lang.RuntimeException: Timeout while waiting for the management service to start up.120 secs.
[12/8/14 23:04:13:366 CET] 00000037 SystemErr R at com.worklight.core.init.WorklightServletInitializer$1.run(WorklightServletInitializer.java:121)
[12/8/14 23:04:13:366 CET] 00000037 SystemErr R at java.lang.Thread.run(Thread.java:745)
[12/8/14 23:16:19:410 CET] 000000b4 com.ibm.puremeap.services.UploadService I file uploaded
[12/8/14 23:16:19:628 CET] 000000b4 com.ibm.puremeap.util.android.AAPT I Resolving APK without AAPT
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R java.io.IOException: Expected chunk of type 0x11c0200, read 0x1200200.
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at com.ibm.puremeap.util.android.ReadUtil.readCheckType(ReadUtil.java:32)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at com.ibm.puremeap.util.android.AndroidResourceParser.readPackage(AndroidResourceParser.java:80)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at com.ibm.puremeap.util.android.AndroidResourceParser.read(AndroidResourceParser.java:62)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at com.ibm.puremeap.util.android.AndroidAPKResolver.resolve(AndroidAPKResolver.java:138)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at com.ibm.puremeap.util.android.AAPT.getMetadata(AAPT.java:362)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at com.ibm.puremeap.services.UploadService.fileUploaded(UploadService.java:158)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at com.ibm.puremeap.services.UploadService.__fileUploadedJSON__(UploadService.java:109)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at java.lang.reflect.Method.invoke(Method.java:606)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at org.apache.wink.server.internal.handlers.InvokeMethodHandler.handleRequest(InvokeMethodHandler.java:63)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.AbstractHandler.handleRequest(AbstractHandler.java:33)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at org.apache.wink.server.internal.handlers.CreateInvocationParametersHandler.handleRequest(CreateInvocationParametersHandler.java:54)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.AbstractHandler.handleRequest(AbstractHandler.java:34)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleSubResourceMethod(FindResourceMethodHandler.java:183)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:110)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleSubResourceLocator(FindResourceMethodHandler.java:230)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:115)
[12/8/14 23:16:19:706 CET] 000000b4 SystemErr R at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleSubResourceLocator(FindResourceMethodHandler.java:230)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:115)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.internal.handlers.FindRootResourceHandler.handleRequest(FindRootResourceHandler.java:95)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.internal.handlers.HeadMethodHandler.handleRequest(HeadMethodHandler.java:53)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.internal.handlers.OptionsMethodHandler.handleRequest(OptionsMethodHandler.java:46)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.internal.handlers.SearchResultHandler.handleRequest(SearchResultHandler.java:33)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.internal.log.ResourceInvocation.handleRequest(ResourceInvocation.java:92)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.internal.log.Requests.handleRequest(Requests.java:76)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.handlers.AbstractHandlersChain.run(AbstractHandlersChain.java:52)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.internal.RequestProcessor.handleRequestWithoutFaultBarrier(RequestProcessor.java:207)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:154)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at org.apache.wink.server.internal.servlet.RestServlet.service(RestServlet.java:133)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at com.ibm.puremeap.services.RestServlet.service(RestServlet.java:56)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1240)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:760)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:127)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:88)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at com.ibm.puremeap.services.RestFilter.doFilter(RestFilter.java:60)
[12/8/14 23:16:19:722 CET] 000000b4 SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
[12/8/14 23:16:19:737 CET] 000000b4 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:85)
[12/8/14 23:16:19:737 CET] 000000b4 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:949)
[12/8/14 23:16:19:737 CET] 000000b4 SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1029)
[12/8/14 23:16:19:737 CET] 000000b4 SystemErr R at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:78)
[12/8/14 23:16:19:737 CET] 000000b4 SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:885)
[12/8/14 23:16:19:737 CET] 000000b4 SystemErr R at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.run(DynamicVirtualHost.java:252)
[12/8/14 23:16:19:737 CET] 000000b4 SystemErr R at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink$TaskWrapper.run(HttpDispatcherLink.java:584)
[12/8/14 23:16:19:737 CET] 000000b4 SystemErr R at com.ibm.ws.threading.internal.Worker.executeWork(Worker.java:439)
[12/8/14 23:16:19:737 CET] 000000b4 SystemErr R at com.ibm.ws.threading.internal.Worker.run(Worker.java:421)
[12/8/14 23:16:19:737 CET] 000000b4 SystemErr R at java.lang.Thread.run(Thread.java:745)
[12/8/14 23:16:19:737 CET] 000000b4 com.ibm.puremeap.services.UploadService E Exception during resource upload. null
[12/8/14 23:16:19:737 CET] 000000b4 com.ibm.puremeap.services.UploadService E {
"id": "86ba5d65-f9d9-44d9-8d91-692106bdfbb1",
"message": "FWLAC0000E: A server error was detected.",
"productVersion": "6.3.0.00-20141127-1357"
}
java.lang.NullPointerException
at java.util.HashMap.putAll(HashMap.java:614)
at com.ibm.puremeap.services.UploadService.putAll(UploadService.java:326)
at com.ibm.puremeap.services.UploadService.fileUploaded(UploadService.java:158)
at com.ibm.puremeap.services.UploadService.__fileUploadedJSON__(UploadService.java:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.wink.server.internal.handlers.InvokeMethodHandler.handleRequest(InvokeMethodHandler.java:63)
at org.apache.wink.server.handlers.AbstractHandler.handleRequest(AbstractHandler.java:33)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
at org.apache.wink.server.internal.handlers.CreateInvocationParametersHandler.handleRequest(CreateInvocationParametersHandler.java:54)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
at org.apache.wink.server.handlers.AbstractHandler.handleRequest(AbstractHandler.java:34)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleSubResourceMethod(FindResourceMethodHandler.java:183)
at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:110)
at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleSubResourceLocator(FindResourceMethodHandler.java:230)
at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:115)
at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleSubResourceLocator(FindResourceMethodHandler.java:230)
at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:115)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
at org.apache.wink.server.internal.handlers.FindRootResourceHandler.handleRequest(FindRootResourceHandler.java:95)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
at org.apache.wink.server.internal.handlers.HeadMethodHandler.handleRequest(HeadMethodHandler.java:53)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
at org.apache.wink.server.internal.handlers.OptionsMethodHandler.handleRequest(OptionsMethodHandler.java:46)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
at org.apache.wink.server.internal.handlers.SearchResultHandler.handleRequest(SearchResultHandler.java:33)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
at org.apache.wink.server.internal.log.ResourceInvocation.handleRequest(ResourceInvocation.java:92)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
at org.apache.wink.server.internal.log.Requests.handleRequest(Requests.java:76)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:67)
at org.apache.wink.server.handlers.AbstractHandlersChain.run(AbstractHandlersChain.java:52)
at org.apache.wink.server.internal.RequestProcessor.handleRequestWithoutFaultBarrier(RequestProcessor.java:207)
at org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:154)
at org.apache.wink.server.internal.servlet.RestServlet.service(RestServlet.java:133)
at com.ibm.puremeap.services.RestServlet.service(RestServlet.java:56)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1240)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:760)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:127)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:88)
at com.ibm.puremeap.services.RestFilter.doFilter(RestFilter.java:60)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:85)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:949)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1029)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:78)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:885)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.run(DynamicVirtualHost.java:252)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink$TaskWrapper.run(HttpDispatcherLink.java:584)
at com.ibm.ws.threading.internal.Worker.executeWork(Worker.java:439)
at com.ibm.ws.threading.internal.Worker.run(Worker.java:421)
at java.lang.Thread.run(Thread.java:745)
Messages.log puts this post over the limit, let me know if that would help troubleshooting though.
And thanks.
It's a known issue that will be fixed as soon as possible: if an APK built with latest Android 5 (level 21) is uploaded to the Application Center console and the AAPT tool is not used to decode the APK metadata (cf "Resolving APK without AAPT" trace), the upload is failing with a exception in the server log.
To fix this issue, set up your server to use the AAPT tool from the Android SDK as described in the documentation: https://www-01.ibm.com/support/knowledgecenter/SSHS8R_6.3.0/com.ibm.worklight.installconfig.doc/admin/t_configuring_websphere_application_server_for_appcenter_manually.html
Step 9.
You have to set the android.aapt or android.aapt.dir JNDI property.
Hope this helps
After downloading this two libraries it will work fine.
zlib.i686 and libstdc++.i686
Regards,
Mahdi.
I'm trying to call an external web service whose endpoint is beyond https.
We are trying to make the call with JAX-WS (Oracle standard implementation from Java EE 6).
From SoapUI after setting the proxy it works correctly, but from our code we get this stack trace:
[11/13/12 12:46:55:389 CET] 00000024 SystemErr R javax.xml.ws.WebServiceException: java.net.ConnectException: Connection timed out: no further information
[11/13/12 12:46:55:405 CET] 00000024 SystemErr R at org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:175)
[11/13/12 12:46:55:405 CET] 00000024 SystemErr R at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:70)
[11/13/12 12:46:55:405 CET] 00000024 SystemErr R at org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:128)
[11/13/12 12:46:55:405 CET] 00000024 SystemErr R at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.execute(AxisInvocationController.java:586)
[11/13/12 12:46:55:405 CET] 00000024 SystemErr R at org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController.doInvoke(AxisInvocationController.java:130)
[11/13/12 12:46:55:405 CET] 00000024 SystemErr R at org.apache.axis2.jaxws.core.controller.impl.InvocationControllerImpl.invoke(InvocationControllerImpl.java:93)
[11/13/12 12:46:55:405 CET] 00000024 SystemErr R at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod(JAXWSProxyHandler.java:364)
[11/13/12 12:46:55:405 CET] 00000024 SystemErr R at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSProxyHandler.java:185)
We don't know why we obtain a connection timeout, because from SoapUI everything is ok...
Here's the code we are using:
ResultBlock rb = null;
Matching stub=new Matching();
MatchingSoap soapPort = stub.getMatchingSoap();
BindingProvider provider = (BindingProvider) soapPort;
Map<String, Object> context = provider.getRequestContext();
if(!"".equals("cvsa"))//Conf.getPROXY_URL()
{
System.getProperties().get("http.proxyPort");
//Authenticator.setDefault(new ProxyAuthenticator("user", "password"));
System.getProperties().put("proxySet", "true");
System.setProperty("http.proxyHost", "proxy.xxxxx.xxxx.xx");
System.setProperty("http.proxyPort", "3128");
}
context.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "https://xxx.xxx.xxx.xxx/OnlineMatchingCore/OnlineMatching.asmx" );
//context.put(JAXWSProperties.HTTP_CLIENT_STREAMING_CHUNK_SIZE, 8192);
System.out.println(provider.getEndpointReference().toString());
// Authenticator.setDefault(new ProxyAuthenticator("USER", "PASSWORD"));
// Security.setProperty("ssl.SocketFactory.provider", "com.ibm.jsse2.SSLSocketFactoryImpl");
// Security.setProperty("ssl.ServerSocketFactory.provider", "com.ibm.jsse2.SSLServerSocketFactoryImpl");
String result = soapPort.match(controlXml, batchXml, "USER", "PASSWORD");
I saw lot of threads on the internet about problems like this, but I couldn't find any solution:
Invoking HTTPS webservice (already checked everything in this post)
JAX-WS invoking webservice using SSL throws the following exception (already checked)
I don't know what to try, my idea is that I'm missing something about telling java the webservice is on https...
Did you try setting the https proxy, instead of http proxy?
System.setProperty("https.proxyHost", "proxy ip");
System.setProperty("https.proxyPort", "port");