Running into connect exception learning D4Lj examples [closed] - deep-learning

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
Can you please help me understand why I am running into this issue...
14:22:15.752 [main] INFO org.deeplearning4j.base.MnistFetcher - Downloading MNIST...
Exception in thread "main" java.net.ConnectException: Connection refused (Connection refused)
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:400)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:243)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:225)
at java.base/java.net.Socket.connect(Socket.java:591)
at java.base/java.net.Socket.connect(Socket.java:540)
at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:182)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569)
at java.base/sun.net.www.http.HttpClient.(HttpClient.java:242)
at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:341)
at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:362)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1242)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1181)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1075)
at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1009)
at java.base/sun.net.www.protocol.http.HttpURLConnection.followRedirect0(HttpURLConnection.java:2758)
at java.base/sun.net.www.protocol.http.HttpURLConnection.followRedirect(HttpURLConnection.java:2680)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1843)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1509)
at java.base/java.net.URL.openStream(URL.java:1117)
at org.apache.commons.io.FileUtils.copyURLToFile(FileUtils.java:1460)
at org.deeplearning4j.base.MnistFetcher.tryDownloadingAFewTimes(MnistFetcher.java:184)
at org.deeplearning4j.base.MnistFetcher.tryDownloadingAFewTimes(MnistFetcher.java:177)
at org.deeplearning4j.base.MnistFetcher.downloadAndUntar(MnistFetcher.java:156)
at org.deeplearning4j.datasets.fetchers.MnistDataFetcher.(MnistDataFetcher.java:67)
at org.deeplearning4j.datasets.iterator.impl.MnistDataSetIterator.(MnistDataSetIterator.java:67)
at org.deeplearning4j.datasets.iterator.impl.MnistDataSetIterator.(MnistDataSetIterator.java:53)

Please update to the latest version. The mnist binaries were moved to a new location. That or your place you are running the fetcher is not able to connect remotely to the server (hence connection refused)

Related

Exception gradle task assembly debug faild with exit code 1 [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 days ago.
Improve this question
Exception gradle task assembly debug faild with exit code 1
Exception gradle task assembly debug faild with exit code 1

MySQL 5.5.28 build errors [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I use mingw-w64 (ruben build) on Windows 7 64.
I need libmysqlclient.a to build libodb-mysql (http://www.codesynthesis.com/products/odb/). But in original Windows 64 mysql build there is no .a library (only mysqlclient.lib). Reimp does not work (generate a lot of files with different integer numbers in the names, but not .a library).
I am tying to build MySQL Community Server 5.5.28.
The command sequence:
cmake -G "MSYS Makefiles" .
make
I got
[ 11%] Building C object strings/CMakeFiles/strings.dir/ctype-mb.c.obj
[ 11%] Building C object strings/CMakeFiles/strings.dir/ctype-simple.c.obj
In file included from C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_sys.h:44:0,
from c:/Users/CanisMajor/Downloads/mysql-5.5.28/strings/ctype-simple.c:19:
C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_pthread.h:59:3: error: unknown type name 'CONDITION_VARIABL
E'
C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_pthread.h:102:8: error: redefinition of 'struct timespec'
In file included from d:\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/pro
cess.h:12:0,
from C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_global.h:128,
from c:/Users/CanisMajor/Downloads/mysql-5.5.28/strings/ctype-simple.c:16:
d:\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/include/sys/types.h:89:8: note: o
riginally defined here
In file included from C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_sys.h:44:0,
from c:/Users/CanisMajor/Downloads/mysql-5.5.28/strings/ctype-simple.c:19:
C:/Users/CanisMajor/Downloads/mysql-5.5.28/include/my_pthread.h:715:5: error: unknown type name 'SRWLOCK'
make[2]: *** [strings/CMakeFiles/strings.dir/ctype-simple.c.obj] Error 1
make[1]: *** [strings/CMakeFiles/strings.dir/all] Error 2
mak
e: *** [all] Error 2
Do you have any ideas?
Looks like a compiler issue. Specifically, it is not recognizing some tokens, due to your compilation flags and definitions.
CONDITION_VARIABLE in windows; wont compile

Unable to connect to host MySQL database on application deployed to CloudBees

I followed the instructions here but when attempted I got the following error:
hudson.util.IOException2: remote file operation failed: /scratch/jenkins/workspace/Xinco Demo Publish/Xinco/target/Xinco-2012-08-30_00-20-05.war at hudson.remoting.Channel#1fc6bdea:s-50b0ae50
at hudson.FilePath.act(FilePath.java:783)
at hudson.FilePath.act(FilePath.java:769)
at com.cloudbees.plugins.deployer.DeployPublisher.perform(DeployPublisher.java:108)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:707)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:682)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:660)
at hudson.model.Build$RunnerImpl.post2(Build.java:162)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:629)
at hudson.model.Run.run(Run.java:1433)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:238)
Caused by: hudson.remoting.ProxyException: hudson.util.IOException2: Server.InternalError - Invalid WEB-INF/cloudbees-web.xml: resource
at com.cloudbees.plugins.deployer.deployables.Deployable.deployFile(Deployable.java:151)
at com.cloudbees.plugins.deployer.deployables.Deployable$DeployFileCallable.invoke(Deployable.java:342)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2048)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:287)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: hudson.remoting.ProxyException: com.cloudbees.api.BeesClientException: Server.InternalError - Invalid WEB-INF/cloudbees-web.xml: resource
at com.cloudbees.api.BeesClient.readResponse(BeesClient.java:850)
at com.cloudbees.api.BeesClient.applicationDeployArchive(BeesClient.java:435)
at com.cloudbees.plugins.deployer.deployables.Deployable.deployFile(Deployable.java:123)
... 11 more
Build step 'Deploy to CloudBees' marked build as failure
The full output can be seen here.
Caused by: hudson.remoting.ProxyException: com.cloudbees.api.BeesClientException: Server.InternalError - Invalid WEB-INF/cloudbees-web.xml: resource
Your cloudbees-web.xml doesn't follow the correct format.
See http://wiki.cloudbees.com/bin/view/RUN/CloudBeesWebXml - as the cloudbees-web.xml needs to be wrapped in an outer <cloudbees-web-app> element
You also don't have to use cloudbees-web.xml if you don't want - if you bind your app to a DB it will make it available as a named datasource automatically.
(see bees app:bind command).
You only have to do this once - and then the app will know about the datasource.
http://developer.cloudbees.com/bin/view/RUN/Resource+Management
and
https://developer.cloudbees.com/bin/view/RUN/DatabaseGuide
(sorry, still working on docs).

c3p0 - hibernate - mysql

hibernate 3.6.8 final
c3p0 jar that came with hibernate 3.6.8 package -> c3p0-0.9.1.jar
1
15
40
0
5
2
The app seems to be working fine, however I get massive log calls with the following stacktrace:
org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already. Could not load com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1566)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.mysql.jdbc.Util.getInstance(Util.java:386)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1013)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2411)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2153)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:792)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
at sun.reflect.GeneratedConstructorAccessor38.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:381)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:152)
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1074)
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1061)
at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1796)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:620)
Any information on how to remove that INFO log would be very much helpful thanks!
UPDATE: Is this a critical error? Or can should I just ignore it?
After a search on the web regarding this issue, I found some similar issues reported by several people. All of them point to a common problem: Threads. Basically, if you start new threads in your application (either in your code or by using a third party tool like Quartz, you have to make sure that all of the threads are stopped appropriately when the application is undeployed from the server. Here are some quotes from the searches:
Mikolaj Rydzewski wrote:
It looks like after webapp's instance has been undeployed, background quartz thread wants to do something and then exception occurs.
Another (and better explanation) on jspwiki.org:
It is possible that this is caused by Tomcat unsuccessfully reloading the web application. The app is unloaded, but all threads don't get shut down properly. As a result, when the threads try to run, they get clobbered by the fact that Tomcat has shut down its classloader, and an error is logged.
So, in order to solve this issue you have to make sure all threads started by your application will be stopped at application undeployment (or redeployment, it's the same). You can do this by registering a ServletContextListener to your application server and stopping your threads inside contextDestroyed(ServletContextEvent) method.
If you are using log4j, change your logging settings to something like this (the word ERROR replace INFO) :
log4j.rootLogger=ERROR, file, stdout
log4j.logger.org.hibernate=ERROR
They are located in the the log4j.properties file in yr project.
OK I switched to boneCP, c3p0 does not really seem to work for java6!!!

Ejabberd start issue. RPC Failed Node Down error [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Im trying to configure my Ejabberd to run on Ubuntu. I have managed to successfully install the Ejabberd without any problems. When I try to start my server using
ejabberdctl sid#domU-12-31-39-01-7C-F5.compute-1.internal start
I get the following error
RPC failed on the node 'ejabberd#domU-12-31-39-01-7C-F5': nodedown
Im using Ejabberd 2.0.5 and I had a few installation issues earlier where I encountered a 'Post installation script error'. However after uninstalling and re-installing a couple of times I managed to get around it. I've used the installer to do my setup. I'd appreciate any help on how to solve this issue.
My log file shows the following:
This is what the log file says
`=INFO REPORT==== 2010-02-03 07:52:44 ===
I(<0.319.0>:mod_pubsub:155) : pubsub init "domu-12-31-39-01-7c-f5.compute-1.internal" [{access_createnode,
pubsub_createnode},
{plugins,
["default",
"pep"]}]
=INFO REPORT==== 2010-02-03 07:52:44 ===
I(<0.319.0>:mod_pubsub:212) : ** tree plugin is nodetree_default
=INFO REPORT==== 2010-02-03 07:52:44 ===
I(<0.319.0>:mod_pubsub:216) : ** init default plugin
=INFO REPORT==== 2010-02-03 07:52:44 ===
I(<0.319.0>:mod_pubsub:216) : ** init pep plugin
=INFO REPORT==== 2010-02-03 07:52:45 ===
I(<0.319.0>:mod_pubsub:224) : ** terminate default plugin
=INFO REPORT==== 2010-02-03 07:52:45 ===
I(<0.319.0>:mod_pubsub:224) : ** terminate pep plugin
You will get that error if you dont 'sudo' . Use 'sudo ejabberdctl ...'