JAVAMAILSMTP error - jakarta-mail

I am using javamail tp send emails.I hava added the javamail and JAF libraries to my project.but when i run it from websphere in RAD 7.0 i am getting the following error.
2/16/12 19:16:15:445 IST] 00000026 SystemOut O DEBUG SMTP: trying to connect to host "webmail.emailmyname.com", port 25, isSSL false
[2/16/12 19:16:17:437 IST] 00000026 SystemOut O Exiting MailServlet
[2/16/12 19:16:17:430 IST] 00000026 SystemErr R javax.mail.MessagingException: Could not connect to SMTP host: webmail.emailmyname.com, port: 25;
nested exception is:
java.net.ConnectException: Connection refused: connect
[2/16/12 19:16:17:430 IST] 00000026 SystemErr R at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)
[2/16/12 19:16:17:430 IST] 00000026 SystemErr R at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
[2/16/12 19:16:17:430 IST] 00000026 SystemErr R at javax.mail.Service.connect(Service.java:275)
[2/16/12 19:16:17:430 IST] 00000026 SystemErr R at javax.mail.Service.connect(Service.java:156)
[2/16/12 19:16:17:430 IST] 00000026 SystemErr R at javax.mail.Service.connect(Service.java:105)
[2/16/12 19:16:17:430 IST] 00000026 SystemErr R at javax.mail.Transport.send0(Transport.java:168)
[2/16/12 19:16:17:431 IST] 00000026 SystemErr R at javax.mail.Transport.send(Transport.java:98)
[2/16/12 19:16:17:431 IST] 00000026 SystemErr R at com.devx.example.MailServlet.doPost(MailServlet.java:64)
[2/16/12 19:16:17:431 IST] 00000026 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
[2/16/12 19:16:17:431 IST] 00000026 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
[2/16/12 19:16:17:431 IST] 00000026 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1449)
[2/16/12 19:16:17:431 IST] 00000026 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)
[2/16/12 19:16:17:431 IST] 00000026 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
[2/16/12 19:16:17:431 IST] 00000026 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
[2/16/12 19:16:17:431 IST] 00000026 SystemErr R at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3610)
[2/16/12 19:16:17:431 IST] 00000026 SystemErr R at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:274)
[2/16/12 19:16:17:432 IST] 00000026 SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:926)
[2/16/12 19:16:17:432 IST] 00000026 SystemErr R at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
[2/16/12 19:16:17:432 IST] 00000026 SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
[2/16/12 19:16:17:432 IST] 00000026 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(H

Wither your server is down or configured to run on a different port . You can issue "telnet webmail.emailmyname.com 25" , if you get a response back "telnet: Unable to connect to remote host: Connection refused" then chances are that your server is configured on a different port (You can also verify whether your server is down by issuing "ping webmail.emailmyname.com " ).

Related

I am getting this error when trying test connection to websphere server 8.5

The error coming out of test connection is:
Caused by: java.io.IOException: Connection reset ClientConnectionId:8ffbbfac-bddc-4b02-97e0-46227bd4b03a
[3/30/22 15:06:36:460 IST] 0000006f SystemErr R at com.microsoft.sqlserver.jdbc.TDSChannel$SSLHandshakeInputStream.ensureSSLPayload(IOBuffer.java:651)
[3/30/22 15:06:36:460 IST] 0000006f SystemErr R at com.microsoft.sqlserver.jdbc.TDSChannel$SSLHandshakeInputStream.readInternal(IOBuffer.java:708)
[3/30/22 15:06:36:460 IST] 0000006f SystemErr R at com.microsoft.sqlserver.jdbc.TDSChannel$SSLHandshakeInputStream.read(IOBuffer.java:700)
[3/30/22 15:06:36:460 IST] 0000006f SystemErr R at com.microsoft.sqlserver.jdbc.TDSChannel$ProxyInputStream.readInternal(IOBuffer.java:895)
[3/30/22 15:06:36:460 IST] 0000006f SystemErr R at com.microsoft.sqlserver.jdbc.TDSChannel$ProxyInputStream.read(IOBuffer.java:883)
[3/30/22 15:06:36:460 IST] 0000006f SystemErr R at com.ibm.jsse2.b.a(b.java:49)
[3/30/22 15:06:36:460 IST] 0000006f SystemErr R at com.ibm.jsse2.b.a(b.java:192)
[3/30/22 15:06:36:460 IST] 0000006f SystemErr R at com.ibm.jsse2.av.a(av.java:407)
[3/30/22 15:06:36:460 IST] 0000006f SystemErr R at com.ibm.jsse2.av.i(av.java:45)
[3/30/22 15:06:36:460 IST] 0000006f SystemErr R at com.ibm.jsse2.av.a(av.java:637)
[3/30/22 15:06:36:461 IST] 0000006f SystemErr R at com.ibm.jsse2.av.startHandshake(av.java:1020)
[3/30/22 15:06:36:461 IST] 0000006f SystemErr R at com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1618)
[3/30/22 15:06:36:461 IST] 0000006f SystemErr R ... 104 more
[3/30/22 15:06:46:738 IST] 000000de SystemErr R java.sql.SQLException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "Connection reset ClientConnectionId:cc6ab39e-6ec0-4688-a15f-359067e2215f". DSRA0010E: SQL State = 08S01, Error Code = 0
[3/30/22 15:06:46:738 IST] 000000de SystemErr R at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:1668)
[3/30/22 15:06:46:739 IST] 000000de SystemErr R at com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1668)
[3/30/22 15:06:46:739 IST] 000000de SystemErr R at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1324)
[3/30/22 15:06:46:739 IST] 000000de SystemErr R at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServe
The database is Microsoft SQLServer.

Jenkins failure while installing 'slack Notification' Plugin

Getting below failure message while trying to install 'slack Notification' Plugin in Jenkins. Here Jenkins is running on AWS ec2 instance and I'm trying with 'install without restart' option.
I checked by logging manually to the ec2 instance and can see that there are few hidden files at path "/var/lib/jenkins/plugins/slack/WEB-INF/lib".
jenkins.util.io.CompositeIOException: Unable to delete '/var/lib/jenkins/plugins/slack'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:99)
at hudson.Util.deleteRecursive(Util.java:293)
at hudson.Util.deleteRecursive(Util.java:282)
at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:476)
at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:175)
at hudson.PluginManager.dynamicLoad(PluginManager.java:910)
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2052)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1740)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:111)
at java.lang.Thread.run(Thread.java:748)
jenkins.util.io.CompositeIOException: Unable to remove file /var/lib/jenkins/plugins/slack/WEB-INF/lib/.nfs6cd47c1b7f5964f000013284
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:252)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96)
at hudson.Util.deleteRecursive(Util.java:293)
at hudson.Util.deleteRecursive(Util.java:282)
at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:476)
at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:175)
at hudson.PluginManager.dynamicLoad(PluginManager.java:910)
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2052)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1740)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:111)
at java.lang.Thread.run(Thread.java:748)
java.nio.file.FileSystemException: /var/lib/jenkins/plugins/slack/WEB-INF/lib/.nfs6cd47c1b7f5964f000013284: Device or resource busy
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244)
at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:237)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96)
at hudson.Util.deleteRecursive(Util.java:293)
at hudson.Util.deleteRecursive(Util.java:282)
at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:476)
at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:175)
at hudson.PluginManager.dynamicLoad(PluginManager.java:910)
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2052)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1740)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:111)
at java.lang.Thread.run(Thread.java:748)
java.nio.file.FileSystemException: /var/lib/jenkins/plugins/slack/WEB-INF/lib/.nfs6cd47c1b7f5964f000013284: Device or resource busy
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244)
at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:241)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96)
at hudson.Util.deleteRecursive(Util.java:293)
at hudson.Util.deleteRecursive(Util.java:282)
at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:476)
at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:175)
at hudson.PluginManager.dynamicLoad(PluginManager.java:910)
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2052)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1740)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:111)
at java.lang.Thread.run(Thread.java:748)
jenkins.util.io.CompositeIOException: Unable to remove directory /var/lib/jenkins/plugins/slack with directory contents: [/var/lib/jenkins/plugins/slack/WEB-INF]
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:250)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96)
at hudson.Util.deleteRecursive(Util.java:293)
at hudson.Util.deleteRecursive(Util.java:282)
at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:476)
at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:175)
at hudson.PluginManager.dynamicLoad(PluginManager.java:910)
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2052)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1740)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:111)
at java.lang.Thread.run(Thread.java:748)
java.nio.file.DirectoryNotEmptyException: /var/lib/jenkins/plugins/slack
at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)
at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:237)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96)
at hudson.Util.deleteRecursive(Util.java:293)
at hudson.Util.deleteRecursive(Util.java:282)
at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:476)
at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:175)
at hudson.PluginManager.dynamicLoad(PluginManager.java:910)
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2052)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1740)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:111)
at java.lang.Thread.run(Thread.java:748)
java.nio.file.DirectoryNotEmptyException: /var/lib/jenkins/plugins/slack
at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242)
at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:241)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96)
at hudson.Util.deleteRecursive(Util.java:293)
at hudson.Util.deleteRecursive(Util.java:282)
at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:476)
at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:175)
at hudson.PluginManager.dynamicLoad(PluginManager.java:910)
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2052)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1740)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:111)
at java.lang.Thread.run(Thread.java:748)
Caused: java.io.IOException: Failed to dynamically deploy this plugin
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2056)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1740)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:111)
at java.lang.Thread.run(Thread.java:748)

Unable to backup and restore on Solr Cloud

I'm trying to test a backup and restore of a collection on SolrCloud but having no joy (Version 6.6.5).
I'm doing a backup with:
curl -f "http://127.0.0.1:8080/solr/admin/collections?action=BACKUP&name=$BACKUP_NAME&collection=$TARGET_COLLECTION&location=$BACKUP_LOCATION&wt=json"
{"responseHeader":{"status":0,"QTime":6370},"success":{"solr-2.search-solr.svc.cluster.local:8080_solr":{"responseHeader":{"status":0,"QTime":6143}}}}
But then I'm trying to run a restore:
curl -v -f "http://127.0.0.1:8080/solr/admin/collections?action=RESTORE&name=at-uk&collection=at-uk-restore&location=/tmp&wt=json"
* About to connect() to 127.0.0.1 port 8080 (#0)
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> GET /solr/admin/collections?action=RESTORE&name=at-uk&collection=at-uk-restore&location=/tmp&wt=json HTTP/1.1
> User-Agent: curl/7.29.0
> Host: 127.0.0.1:8080
> Accept: */*
>
* The requested URL returned error: 500 Server Error
* Closing connection 0
curl: (22) The requested URL returned error: 500 Server Error
And in the solr logs:
ERROR 2019-02-11 13:24:23,547 [OverseerThreadFactory-42-thread-5-processing-n:solr-2.search-solr.svc.cluster.local:8080_solr][SolrException.java:159] : Collection: at-uk-restore operation: restore failed:java.lang.NullPointerException
at org.apache.solr.cloud.RestoreCmd.call(RestoreCmd.java:110)
at org.apache.solr.cloud.OverseerCollectionMessageHandler.processMessage(OverseerCollectionMessageHandler.java:226)
at org.apache.solr.cloud.OverseerTaskProcessor$Runner.run(OverseerTaskProcessor.java:464)
at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:229)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
ERROR 2019-02-11 13:24:23,555 [qtp157456214-655][SolrException.java:159] : null:org.apache.solr.common.SolrException
at org.apache.solr.handler.admin.CollectionsHandler.handleResponse(CollectionsHandler.java:300)
at org.apache.solr.handler.admin.CollectionsHandler.invokeAction(CollectionsHandler.java:237)
at org.apache.solr.handler.admin.CollectionsHandler.handleRequestBody(CollectionsHandler.java:215)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:173)
at org.apache.solr.servlet.HttpSolrCall.handleAdmin(HttpSolrCall.java:748)
at org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:729)
at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:510)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:361)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:305)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1691)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at org.eclipse.jetty.server.Server.handle(Server.java:534)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
at java.lang.Thread.run(Thread.java:748)

Launch Dataflow template from Google App Engine

I want to launch a dataflow template using Google App Engine. I've written the code but I get a runtime error 'NoClassDefFoundError'.
My App Engine Code:-
doGet(HttpServletRequest request, HttpServletResponse response){
HttpTransport httpTransport = GoogleNetHttpTransport.newTrustedTransport();
JsonFactory jsonFactory = JacksonFactory.getDefaultInstance();
Dataflow dataflowService = new Dataflow.Builder(httpTransport, jsonFactory, credential).build();
System.out.println(dataflowService.getApplicationName());
com.google.api.services.dataflow.Dataflow.Projects.Locations.Templates.Launch request1 = dataflowService.projects().locations()
.templates().launch(projectId,"us-central1",null);
request1.setGcsPath("gs://bucket/MyTemplate");
request1.setLocation("us-central1");
request1.setValidateOnly(false);
LaunchTemplateResponse response1 = request1.execute();
The error that I'm getting:-
2017-10-27 17:16:14.177:WARN:oejs.ServletHandler:qtp1811044090-14: Error for /hello
java.lang.NoClassDefFoundError: com/google/api/services/dataflow/Dataflow$Builder
at com.testing.HelloAppEngine.doGet(HelloAppEngine.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1772)
at com.google.appengine.tools.development.ResponseRewriterFilter.doFilter(ResponseRewriterFilter.java:134)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:34)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:63)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:48)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
at com.google.appengine.tools.development.jetty9.StaticFileFilter.doFilter(StaticFileFilter.java:123)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
at com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectRequest(DevAppServerModulesFilter.java:366)
at com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectModuleRequest(DevAppServerModulesFilter.java:349)
at com.google.appengine.tools.development.DevAppServerModulesFilter.doFilter(DevAppServerModulesFilter.java:116)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1751)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
at com.google.appengine.tools.development.jetty9.DevAppEngineWebAppContext.doScope(DevAppEngineWebAppContext.java:94)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at com.google.appengine.tools.development.jetty9.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:597)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at org.eclipse.jetty.server.Server.handle(Server.java:534)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
at java.lang.Thread.run(Unknown Source)
Caused by:
java.lang.ClassNotFoundException: com.google.api.services.dataflow.Dataflow$Builder
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:196)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.testing.HelloAppEngine.doGet(HelloAppEngine.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1772)
at com.google.appengine.tools.development.ResponseRewriterFilter.doFilter(ResponseRewriterFilter.java:134)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:34)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:63)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:48)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
at com.google.appengine.tools.development.jetty9.StaticFileFilter.doFilter(StaticFileFilter.java:123)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
at com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectRequest(DevAppServerModulesFilter.java:366)
at com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectModuleRequest(DevAppServerModulesFilter.java:349)
at com.google.appengine.tools.development.DevAppServerModulesFilter.doFilter(DevAppServerModulesFilter.java:116)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1751)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
at com.google.appengine.tools.development.jetty9.DevAppEngineWebAppContext.doScope(DevAppEngineWebAppContext.java:94)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at com.google.appengine.tools.development.jetty9.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:597)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at org.eclipse.jetty.server.Server.handle(Server.java:534)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
at java.lang.Thread.run(Unknown Source)
2017-10-27 17:16:35.782:INFO:oejs.AbstractConnector:pool-1-thread-1: Stopped NetworkTrafficSelectChannelConnector#741a8937{HTTP/1.1,[http/1.1]}{localhost:8080}
2017-10-27 17:16:35.786:INFO:oejsh.ContextHandler:pool-1-thread-1: Stopped c.g.a.t.d.j.DevAppEngineWebAppContext#6283d8b8{/,file:///C:/Users/kishank/KishanTester/.metadata/.plugins/org.eclipse.wst.server.core/tmp4/FinalTesting/,UNAVAILABLE}{C:\Users\kishank\KishanTester\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\FinalTesting}
Oct 27, 2017 5:16:35 PM com.google.appengine.tools.development.AbstractModule shutdown
Shutting down.
INFO: Shutting down module instance default
The same code to launch the template works fine within Dataflow. Am I missing anything here? Does anything need to done differently within App Engine?
Thanks.
The Problem OCcured Due To Dependency in Dataflow API So I Updated To latest Version and Problem Resolved
Dataflow API Latest Version Must Be Used

Firefox doesn't run through selenium grid

After upgrading Firefox to version 35.0 I can't run functional tests on it. I am using Selenium Grid.
Linux 3.16.1-1-apparmor x86_64
Archlinux
selenium-server 2.44.0;
FF 35.0
bundle exec cucumber features/ -p firefox
Process timed out after waiting for 45000 ms. (java.lang.InterruptedException) (Selenium::WebDriver::Error::UnknownError)
[remote server] org.openqa.selenium.os.UnixProcess(UnixProcess.java):148:in `waitFor'
[remote server] org.openqa.selenium.os.CommandLine(CommandLine.java):129:in `waitFor'
[remote server] org.openqa.selenium.firefox.FirefoxBinary(FirefoxBinary.java):222:in `waitFor'
[remote server] org.openqa.selenium.firefox.FirefoxBinary(FirefoxBinary.java):242:in `clean'
[remote server] org.openqa.selenium.firefox.internal.NewProfileExtensionConnection(NewProfileExtensionConnection.java):91:in `start'
[remote server] org.openqa.selenium.firefox.FirefoxDriver(FirefoxDriver.java):246:in `startClient'
[remote server] org.openqa.selenium.remote.RemoteWebDriver(RemoteWebDriver.java):114:in `<init>'
[remote server] org.openqa.selenium.firefox.FirefoxDriver(FirefoxDriver.java):193:in `<init>'
[remote server] org.openqa.selenium.firefox.FirefoxDriver(FirefoxDriver.java):186:in `<init>'
[remote server] org.openqa.selenium.firefox.FirefoxDriver(FirefoxDriver.java):104:in `<init>'
[remote server] sun.reflect.NativeConstructorAccessorImpl(NativeConstructorAccessorImpl.java):-2:in `newInstance0'
[remote server] sun.reflect.NativeConstructorAccessorImpl(NativeConstructorAccessorImpl.java):57:in `newInstance'
[remote server] sun.reflect.DelegatingConstructorAccessorImpl(DelegatingConstructorAccessorImpl.java):45:in `newInstance'
[remote server] java.lang.reflect.Constructor(Constructor.java):526:in `newInstance'
[remote server] org.openqa.selenium.remote.server.DefaultDriverProvider(DefaultDriverProvider.java):59:in `callConstructor'
[remote server] org.openqa.selenium.remote.server.DefaultDriverProvider(DefaultDriverProvider.java):53:in `newInstance'
[remote server] org.openqa.selenium.remote.server.DefaultDriverFactory(DefaultDriverFactory.java):54:in `newInstance'
[remote server] org.openqa.selenium.remote.server.DefaultSession$BrowserCreator(DefaultSession.java):214:in `call'
[remote server] org.openqa.selenium.remote.server.DefaultSession$BrowserCreator(DefaultSession.java):1:in `call'
[remote server] java.util.concurrent.FutureTask(FutureTask.java):262:in `run'
[remote server] org.openqa.selenium.remote.server.DefaultSession$1(DefaultSession.java):168:in `run'
[remote server] java.util.concurrent.ThreadPoolExecutor(ThreadPoolExecutor.java):1145:in `runWorker'
[remote server] java.util.concurrent.ThreadPoolExecutor$Worker(ThreadPoolExecutor.java):615:in `run'
[remote server] java.lang.Thread(Thread.java):744:in `run'
/home/user/.rvm/gems/ruby-2.1.3/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/remote/response.rb:52:in `assert_ok'
/home/user/.rvm/gems/ruby-2.1.3/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/remote/response.rb:15:in `initialize'
/home/user/.rvm/gems/ruby-2.1.3/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/remote/http/common.rb:59:in `new'
/home/user/.rvm/gems/ruby-2.1.3/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/remote/http/common.rb:59:in `create_response'
/home/user/.rvm/gems/ruby-2.1.3/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/remote/http/default.rb:66:in `request'
/home/user/.rvm/gems/ruby-2.1.3/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/remote/http/common.rb:40:in `call'
/home/user/.rvm/gems/ruby-2.1.3/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/remote/bridge.rb:640:in `raw_execute'
/home/user/.rvm/gems/ruby-2.1.3/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/remote/bridge.rb:101:in `create_session'
/home/user/.rvm/gems/ruby-2.1.3/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/remote/bridge.rb:68:in `initialize'
/home/user/.rvm/gems/ruby-2.1.3/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/common/driver.rb:33:in `new'
/home/user/.rvm/gems/ruby-2.1.3/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver/common/driver.rb:33:in `for'
/home/user/.rvm/gems/ruby-2.1.3/gems/selenium-webdriver-2.44.0/lib/selenium/webdriver.rb:67:in `for'
/home/user/.rvm/gems/ruby-2.1.3/gems/watir-webdriver-0.6.11/lib/watir-webdriver/browser.rb:46:in `initialize'
/home/user/.rvm/gems/ruby-2.1.3/bundler/gems/test_core-1e3a7755532c/lib/test_core/support/env.rb:25:in `new'
/home/user/.rvm/gems/ruby-2.1.3/bundler/gems/test_core-1e3a7755532c/lib/test_core/support/env.rb:25:in `remote_browser'
/home/user/.rvm/gems/ruby-2.1.3/bundler/gems/test_core-1e3a7755532c/lib/test_core/support/env.rb:20:in `browser'
/home/user/.rvm/gems/ruby-2.1.3/bundler/gems/test_core-1e3a7755532c/lib/test_core/support/hooks.rb:3:in `<top (required)>'
/home/user/.rvm/gems/ruby-2.1.3/bundler/gems/test_core-1e3a7755532c/lib/test_core.rb:3:in `require'
/home/user/.rvm/gems/ruby-2.1.3/bundler/gems/test_core-1e3a7755532c/lib/test_core.rb:3:in `<top (required)>'
/home/user/work/tmp/billing/features/support/env.rb:1:in `require'
/home/user/work/tmp/billing/features/support/env.rb:1:in `<top (required)>'
/home/user/.rvm/gems/ruby-2.1.3/gems/cucumber-1.3.18/lib/cucumber/rb_support/rb_language.rb:95:in `load'
/home/user/.rvm/gems/ruby-2.1.3/gems/cucumber-1.3.18/lib/cucumber/rb_support/rb_language.rb:95:in `load_code_file'
/home/user/.rvm/gems/ruby-2.1.3/gems/cucumber-1.3.18/lib/cucumber/runtime/support_code.rb:180:in `load_file'
/home/user/.rvm/gems/ruby-2.1.3/gems/cucumber-1.3.18/lib/cucumber/runtime/support_code.rb:83:in `block in load_files!'
/home/user/.rvm/gems/ruby-2.1.3/gems/cucumber-1.3.18/lib/cucumber/runtime/support_code.rb:82:in `each'
/home/user/.rvm/gems/ruby-2.1.3/gems/cucumber-1.3.18/lib/cucumber/runtime/support_code.rb:82:in `load_files!'
/home/user/.rvm/gems/ruby-2.1.3/gems/cucumber-1.3.18/lib/cucumber/runtime.rb:184:in `load_step_definitions'
/home/user/.rvm/gems/ruby-2.1.3/gems/cucumber-1.3.18/lib/cucumber/runtime.rb:42:in `run!'
/home/user/.rvm/gems/ruby-2.1.3/gems/cucumber-1.3.18/lib/cucumber/cli/main.rb:47:in `execute!'
/home/user/.rvm/gems/ruby-2.1.3/gems/cucumber-1.3.18/bin/cucumber:13:in `<top (required)>'
/home/user/.rvm/gems/ruby-2.1.3/bin/cucumber:23:in `load'
/home/user/.rvm/gems/ruby-2.1.3/bin/cucumber:23:in `<main>'
/home/user/.rvm/gems/ruby-2.1.3/bin/ruby_executable_hooks:15:in `eval'
/home/user/.rvm/gems/ruby-2.1.3/bin/ruby_executable_hooks:15:in `<main>'
If I just run FF:
# firefox -v
(process:6367): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
Mozilla Firefox 35.0
Browsers run via vnc server.
Selenium WebDriver 2.44.0 is not supporting FF35 yet.
(see https://code.google.com/p/selenium/source/browse/java/CHANGELOG)
Try to downgrade your FF to get the full support.

Resources