Wildfly 9.0.2 Error while deploying app - java

While deploying I see in form message Cannot upload deployment: Unable to parse response with content-type text/html and in the command-line full error:
15:18:28,849 ERROR [io.undertow.request] (XNIO-1 task-2) Undertow request failed
HttpServerExchange{ POST /management-upload}: java.io.IOException: UT000036: Co
nnection terminated parsing multipart data
at io.undertow.server.handlers.form.MultiPartParserDefinition$MultiPartU
ploadHandler.parseBlocking(MultiPartParserDefinition.java:203)
at org.jboss.as.domain.http.server.DomainApiGenericOperationHandler.hand
leRequest(DomainApiGenericOperationHandler.java:104)
at io.undertow.server.handlers.encoding.EncodingHandler.handleRequest(En
codingHandler.java:72)
at org.jboss.as.domain.http.server.security.SubjectDoAsHandler$1.run(Sub
jectDoAsHandler.java:72)
at org.jboss.as.domain.http.server.security.SubjectDoAsHandler$1.run(Sub
jectDoAsHandler.java:68)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:422)
at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.ja
va:92)
at org.jboss.as.domain.http.server.security.SubjectDoAsHandler.handleReq
uest(SubjectDoAsHandler.java:68)
at org.jboss.as.domain.http.server.security.SubjectDoAsHandler.handleReq
uest(SubjectDoAsHandler.java:63)
at io.undertow.server.handlers.BlockingHandler.handleRequest(BlockingHan
dler.java:56)
at org.jboss.as.domain.http.server.DomainApiCheckHandler.handleRequest(D
omainApiCheckHandler.java:87)
at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest
(AuthenticationCallHandler.java:52)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:199)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:7
74)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:617)
at java.lang.Thread.run(Thread.java:745)
I use Standalone Mode, when I downloaded new Wildfly server same issue happened - idk if this could be related to ports..

I had same question with you, and can't solve it now.
But I find a strange thing is that only occur in IE and Chrome,
try to use Firefox to upload file, it's OK.
Hope this can help you.

Related

java.net.UnknownHostException in WildFly start

I'm getting the following error when I start up a Java server process (WildFly application server):
Caused by: java.net.UnknownHostException: proxy01.phx2.fedoraproject.org: Name or service not known
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324)
at java.net.InetAddress.getLocalHost(InetAddress.java:1501)
The server is not harmed by this error, but it bothers me to have this error in the logs. It is something related with my environment. Indeed, the problem happens no matter which version of the server and on any location of my file system.
I have checked in /etc/hosts and /etc/resolv.conf but I really don't have idea where the "proxy01.phx2.fedoraproject.org" comes from.
Any idea?
Thanks

Websphere: No recipient has been provided on the MailMessage or the 'MailHeaders.TO' header

while trying to debug an API through Postman, deployed in IBm websphere Community Edition 3.x with JDK 1.6,
I am getting following error.
2017-04-26 16:14:57,779 ERROR [LoggingHandler] org.springframework.messaging.MessageHandlingException: error occurred in message handler [org.springframework.integration.mail.MailSendingMessageHandler#3]; nested exception is java.lang.IllegalStateException: No recipient has been provided on the MailMessage or the 'MailHeaders.TO' header.
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:139)
at org.springframework.integration.dispatcher.BroadcastingDispatcher.invokeHandler(BroadcastingDispatcher.java:227)
at org.springframework.integration.dispatcher.BroadcastingDispatcher.access$000(BroadcastingDispatcher.java:51)
at org.springframework.integration.dispatcher.BroadcastingDispatcher$2.run(BroadcastingDispatcher.java:207)
at org.springframework.integration.util.ErrorHandlingTaskExecutor$1.run(ErrorHandlingTaskExecutor.java:55)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalStateException: No recipient has been provided on the MailMessage or the 'MailHeaders.TO' header.
at org.springframework.util.Assert.state(Assert.java:392)
at org.springframework.integration.mail.MailSendingMessageHandler.applyHeadersToMailMessage(MailSendingMessageHandler.java:175)
at org.springframework.integration.mail.MailSendingMessageHandler.convertMessageToMailMessage(MailSendingMessageHandler.java:121)
at org.springframework.integration.mail.MailSendingMessageHandler.handleMessageInternal(MailSendingMessageHandler.java:77)
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:127)
... 7 more
API works fine with other environments but my local and Dev env.
One of the database was empty and after feeding related data, it got solved.

java.lang.NoClassDefFoundError: com/singularity/ee/agent/appagent/services/bciengine/templates/IHttpServletRequest

I need to implement an application performance monitoring (APM) for my application so I implemented appdynamic.
I am Using Payara server and in order to configure it for appdynamic I follow the below url
GlassFish+Startup+Settings
I setup every thing properly and I am able to connect with appdynamic. I am damn sure about it because I tested it with a demo application that is working properly. But when I am doing same thing for my actual application on server which is Struts2 based application then I am facing following two things.
When I am trying to access root URL then server is asking username and password and it's showing error 401 (plz see the attached image 1)
When I am trying to access login url then I am getting error 404 (plz see the attached image 2).
My concern is this that why I am facing above two issues for my application ? if I remove the APM configuration from the application then the both points not occur for me. Everything work properly.
I am using Struts 2.3.24 Payara Server(glassfish).
If any one face this issue or have any idea then let me know I will be very thank full to you.
Any think else is required from my side then let me know I will update.
Suggestion are most welcomed.
This shows when I try to access root url
This shows when I try to access login url
I am getting below error when I hit for root url (Error occur only when APM is configured with the server)
java.lang.NoClassDefFoundError: com/singularity/ee/agent/appagent/services/bciengine/templates/IHttpServletRequest
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:1233)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1763)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1646)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:1233)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1763)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1646)
at org.apache.struts2.dispatcher.ng.InitOperations.createDispatcher(InitOperations.java:110)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:73)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:131)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:5329)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5974)
at com.sun.enterprise.web.WebModule.start(WebModule.java:692)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1041)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:1024)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:747)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2296)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1942)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:139)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:353)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:501)
at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:406)
at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:243)
at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:326)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:374)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:471)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:228)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:85)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2022)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:114)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:88)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
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:745)
Caused by: java.lang.ClassNotFoundException: com.singularity.ee.agent.appagent.services.bciengine.templates.IHttpServletRequest
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1796)
at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1646)
... 45 more
]]
com/singularity/ee/agent/appagent/services/bciengine/templates/IHttpServletRequest class can be found in appaggent-boot.jar (AppServerAgent-4.2.12.1/ver.4.2.12.1/lib/appagent-boot.jar)
I solved this problem by including the jar in WEB-INF/lib/ folder.
Hope it helps!

Intellij Can't import Gradle Project Because of Proxy

Trying to install a Gradle project into Intellij IDEA 14 and it stays on Resolve dependencies 'classpath' for about 10 minutes before failing. Everything works on the command line.
The error I'm getting is "Malformed reply from SOCKS server". Here is the whole stacktrace from Intellij:
2015-08-26 15:34:00,401 [1859339] WARN nal.AbstractExternalSystemTask - Malformed reply from SOCKS server com.intellij.openapi.externalSystem.model.ExternalSystemException: Malformed reply from SOCKS server
at org.jetbrains.plugins.gradle.service.project.AbstractProjectImportErrorHandler.createUserFriendlyError(AbstractProjectImportErrorHandler.java:106)
at org.jetbrains.plugins.gradle.service.project.BaseProjectImportErrorHandler.getUserFriendlyError(BaseProjectImportErrorHandler.java:158)
at org.jetbrains.plugins.gradle.service.project.BaseGradleProjectResolverExtension.getUserFriendlyError(BaseGradleProjectResolverExtension.java:438)
at org.jetbrains.plugins.gradle.service.project.AbstractProjectResolverExtension.getUserFriendlyError(AbstractProjectResolverExtension.java:164)
at com.android.tools.idea.gradle.project.AndroidGradleProjectResolver.getUserFriendlyError(AndroidGradleProjectResolver.java:322)
at org.jetbrains.plugins.gradle.service.project.AbstractProjectResolverExtension.getUserFriendlyError(AbstractProjectResolverExtension.java:164)
at org.jetbrains.plugins.gradle.service.project.AbstractProjectResolverExtension.getUserFriendlyError(AbstractProjectResolverExtension.java:164)
at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver$ProjectConnectionDataNodeFunction.fun(GradleProjectResolver.java:366)
at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver$ProjectConnectionDataNodeFunction.fun(GradleProjectResolver.java:332)
at org.jetbrains.plugins.gradle.service.project.GradleExecutionHelper.execute(GradleExecutionHelper.java:215)
at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.resolveProjectInfo(GradleProjectResolver.java:97)
at org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.resolveProjectInfo(GradleProjectResolver.java:65)
at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl$1.produce(RemoteExternalSystemProjectResolverImpl.java:41)
at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl$1.produce(RemoteExternalSystemProjectResolverImpl.java:37)
at com.intellij.openapi.externalSystem.service.remote.AbstractRemoteExternalSystemService.execute(AbstractRemoteExternalSystemService.java:59)
at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl.resolveProjectInfo(RemoteExternalSystemProjectResolverImpl.java:37)
at com.intellij.openapi.externalSystem.service.remote.wrapper.ExternalSystemProjectResolverWrapper.resolveProjectInfo(ExternalSystemProjectResolverWrapper.java:49)
at com.intellij.openapi.externalSystem.service.internal.ExternalSystemResolveProjectTask.doExecute(ExternalSystemResolveProjectTask.java:51)
at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:138)
at com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:124)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$4.execute(ExternalSystemUtil.java:540)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$5$1.run(ExternalSystemUtil.java:612)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563)
at com.intellij.openapi.progress.impl.CoreProgressManager$8.run(CoreProgressManager.java:367)
at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:152)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:452)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:402)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:137)
at com.intellij.openapi.application.impl.ApplicationImpl$10$1.run(ApplicationImpl.java:617)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:400)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:56)
To me, that says there is a problem on the proxy wall. But Intellij works fine going through the proxy with other places, like the plugins. I do it by setting java.net.useSystemProxies to `true.
Anyone see this before?
I had a similar error when I left an active SOCKS connection on my system open. Make sure there are no live SOCKS connections like tunnels etc.
What fixed it for me was to upgrade to Intellij IDEA 15. It has much better Gradle support.

Exception " UT000004: getResponseChannel() has already been called" when i invoked the service using curl command

When am trying to invoke the rest service (Spring) deployed in jboss wildfly am getting following exception
18:33:00,767 ERROR [io.undertow.request] (default task-9) Blocking request failed HttpServerExchange{ POST /webResults/tx/jurisdiction/SridharJurisdiction/election/election/processFile}: java.lang.IllegalStateException: UT000004: getResponseChannel() has already been called
at io.undertow.server.protocol.http.HttpContinue.createResponseSender(HttpContinue.java:78)
at io.undertow.server.handlers.HttpContinueReadHandler$ContinueConduit.read(HttpContinueReadHandler.java:104)
at org.xnio.conduits.ConduitStreamSourceChannel.read(ConduitStreamSourceChannel.java:127) [xnio-api-3.2.2.Final.jar:3.2.2.Final]
at io.undertow.channels.DetachableStreamSourceChannel.read(DetachableStreamSourceChannel.java:181)
at io.undertow.server.HttpServerExchange$ReadDispatchChannel.read(HttpServerExchange.java:1952)
at org.xnio.channels.Channels.readBlocking(Channels.java:294) [xnio-api-3.2.2.Final.jar:3.2.2.Final]
at io.undertow.servlet.spec.ServletInputStreamImpl.readIntoBuffer(ServletInputStreamImpl.java:146)
at io.undertow.servlet.spec.ServletInputStreamImpl.close(ServletInputStreamImpl.java:218)
at io.undertow.servlet.spec.HttpServletRequestImpl.closeAndDrainRequest(HttpServletRequestImpl.java:588)
at io.undertow.servlet.core.ServletBlockingHttpExchange.close(ServletBlockingHttpExchange.java:69)
at io.undertow.server.HttpServerExchange.endExchange(HttpServerExchange.java:1404)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:193)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_21]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_21]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]
Please let me know your thoughts
Thanks in advance
It's a issue related to WildFly 8 and 9 and still open.
But a workround was found, dropping the header definition about Expect:100-continue in sender....
I hope this help you.
When I use Postman plugin to test my restful services I have no problem..
I think Postman dont send "Expection: 100-continue" and "keep-alive"..
I solve my problem using cURL in this way:
curl -v -X POST -H "Expect:" -F facebookId=12313123123 http://localhost:8080/desafio-webapp/person/
Track issue link:
track 1
track 2

Categories