Why would output values from neural network increase / 'explode'? - machine-learning

I'm training a neural network as part of reinforcement learning using PPO, and when the model is first initialised the outputs look 'normal' like this:
[-0.00611657 -0.01238834 0.00284606 0.02600986 -0.00587347 -0.00182077
-0.00975011]
But gradually the outputs increase and after a few hours of training look like this:
[-3119.771 1075.3921 513.0797 -3039.5288 -2695.9114 388.93564
-3112.1418 ]
The rewards from the environment is always between -5 to +5 and they're normalized:
rewards = (rewards - rewards.mean()) / torch.max(rewards.std(), torch.tensor(1e-5))
I'm thinking that points to an error somewhere? Any ideas of what could cause outputs to 'explode' like this?
Model architecture is as follows:
Sequential(
(0): Linear(in_features=174, out_features=500, bias=True)
(1): ReLU()
(2): Linear(in_features=500, out_features=500, bias=True)
(3): ReLU()
(4): Linear(in_features=500, out_features=500, bias=True)
(5): ReLU()
(6): Linear(in_features=500, out_features=500, bias=True)
(7): ReLU()
(8): Linear(in_features=500, out_features=500, bias=True)
(9): ReLU()
(10): Linear(in_features=500, out_features=500, bias=True)
(11): ReLU()
(12): Linear(in_features=500, out_features=7, bias=True)
)

Related

Gerrit Error 500 (Server Error): Internal server error Endpoint: /changes/*~*/revisions/*/files?reviewed

I followed the instructions on this blog to install Gerrit:
https://blogs.sap.com/2021/06/17/how-to-setup-gerrit-locally-on-windows/
But after I uploaded a change to my local Gerrit site for review, when opening this change, an HTML popup showed up saying:
An error occurred
Error 500 (Server Error): Internal server error
Endpoint: /changes/*~*/revisions/*/files?reviewed
DISMISS
And the list of changed files was not loaded. Java 17 is installed on the computer. When an error message appeared in the browser, the following entry appeared in the error_log.txt log file:
[HTTP GET /changes/inventory~41/revisions/1/files?reviewed (zakharovsergey1000 from [fe80:0:0:0:94c5:da3e:51b:2b5e%6])] ERROR com.google.gerrit.httpd.restapi.RestApiServlet : Error in GET /changes/inventory~41/revisions/1/files?reviewed: InaccessibleObjectException [CONTEXT project="inventory" request="REST /changes/*/revisions/*/files" ]
java.lang.reflect.InaccessibleObjectException: Unable to make private java.util.Collections$EmptyList() accessible: module java.base does not "opens java.util" to unnamed module #49c43f4e
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
at java.base/java.lang.reflect.Constructor.checkCanSetAccessible(Constructor.java:188)
at java.base/java.lang.reflect.Constructor.setAccessible(Constructor.java:181)
at com.google.gson.internal.reflect.UnsafeReflectionAccessor.makeAccessible(UnsafeReflectionAccessor.java:44)
at com.google.gson.internal.ConstructorConstructor.newDefaultConstructor(ConstructorConstructor.java:103)
at com.google.gson.internal.ConstructorConstructor.get(ConstructorConstructor.java:85)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory.create(CollectionTypeAdapterFactory.java:54)
at com.google.gson.Gson.getAdapter(Gson.java:458)
at com.google.gson.Gson.toJson(Gson.java:696)
at com.google.gson.Gson.toJson(Gson.java:683)
at com.google.gson.Gson.toJson(Gson.java:658)
at com.google.gerrit.httpd.restapi.RestApiServlet.replyJson(RestApiServlet.java:1444)
at com.google.gerrit.httpd.restapi.RestApiServlet.service(RestApiServlet.java:653)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:290)
at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:280)
at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:184)
at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:89)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)
at com.google.gerrit.httpd.raw.StaticModule$PolyGerritFilter.doFilter(StaticModule.java:391)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.GetUserFilter.doFilter(GetUserFilter.java:92)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.RunAsFilter.doFilter(RunAsFilter.java:120)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.SetThreadNameFilter.doFilter(SetThreadNameFilter.java:62)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.AllRequestFilter$FilterProxy$1.doFilter(AllRequestFilter.java:139)
at com.google.gerrit.httpd.AllowRenderInFrameFilter.doFilter(AllowRenderInFrameFilter.java:56)
at com.google.gerrit.httpd.AllRequestFilter$FilterProxy$1.doFilter(AllRequestFilter.java:135)
at com.google.gerrit.httpd.AllRequestFilter$FilterProxy.doFilter(AllRequestFilter.java:141)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.RequestCleanupFilter.doFilter(RequestCleanupFilter.java:60)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.RequestMetricsFilter.doFilter(RequestMetricsFilter.java:92)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.gerrit.httpd.RequestContextFilter.doFilter(RequestContextFilter.java:64)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:121)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:133)
at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1435)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1350)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:54)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:516)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905)
at java.base/java.lang.Thread.run(Thread.java:833)
How can I fix this error?
As explained in this stackoverflow answer:
How to solve InaccessibleObjectException ("Unable to make {member} accessible: module {A} does not 'opens {package}' to {B}") on Java 9?
add
--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED
to java command line:
java --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED -jar bin\gerrit.war daemon

Loading data into fuseki server

I want to load .nt file into fuseki server which is running in my computer through http using jena.
I can able to connect fuseki server using RDFConnectionFactory but while loading I am getting following error.
500 - 501: Unsupported Content-Encoding
org.apache.jena.atlas.web.HttpException: 500 - 501: Unsupported Content-Encoding
def getConnection(serviceUri:String): RDFConnection =
RDFConnectionFactory.connectFuseki(serviceUri)
def upload(graphName: String, path: String): Unit = {
val conn = getConnection
if (graphName.isEmpty) conn.load(path)
else conn.load(graphName, path)
}
val serviceUri = "http://localhost:3030/sample"
upload("","file:///F:/IdeaProjects/Knowledge-BI/dataset/data.nt")
server Log
[2019-06-09 14:22:56] Fuseki INFO [9] POST http://localhost:3030/sample/?graph=http://www.knowldegeBi.com
[2019-06-09 14:22:56] Fuseki WARN [9] RC = 500 : 501: Unsupported Content-Encoding
org.eclipse.jetty.http.BadMessageException: 501: Unsupported Content-Encoding
at org.eclipse.jetty.server.Request.extractContentParameters(Request.java:460)
at org.eclipse.jetty.server.Request.getParameters(Request.java:386)
at org.eclipse.jetty.server.Request.getParameter(Request.java:1029)
at javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:194)
at org.apache.jena.fuseki.servlets.ServiceRouter.chooseOperation(ServiceRouter.java:142)
at org.apache.jena.fuseki.servlets.ActionService.execCommonWorker(ActionService.java:118)
at org.apache.jena.fuseki.servlets.ActionBase.doCommon(ActionBase.java:74)
at org.apache.jena.fuseki.servlets.FusekiFilter.doFilter(FusekiFilter.java:73)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
at org.apache.jena.fuseki.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:285)
at org.apache.jena.fuseki.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:248)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1634)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1340)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1242)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:690)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:503)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)
at java.lang.Thread.run(Unknown Source)
[2019-06-09 14:22:56] Fuseki INFO [9] 500 501: Unsupported Content-Encoding (316 ms)
file I want to upload is https://drive.google.com/file/d/1bIoy_UyWXhLSlfQbN6ufpEz6RgM9u4l4/view
Server is Apache Jena Fuseki 3.11.0
I just need to upload .nt/.nq/.rdf files into my local fuseki server without any error.

Timeout errors in cassandra

Read Queries Are timing out in cassandra whenever secondary indexes are involved...
Getting the following errors in cassandra logs
DEBUG [Thrift:275] 2013-11-15 02:30:56,565 ClientState.java (line 130) logged out: #<User allow_all groups=[]>
DEBUG [Thrift:280] 2013-11-15 02:30:56,764 CassandraServer.java (line 588) batch_mutate
DEBUG [Thrift:280] 2013-11-15 02:30:56,765 StorageProxy.java (line 175) Mutations/ConsistencyLevel are [RowMutation(keyspace='Checkout', key='37396539383637612d33616433
2d343636662d383135612d303163386562343839616437', modifications=[ColumnFamily(User [content:false:294#1384504256763002,email_address:false:13#1384504256763001,user_id:fa
lse:36#1384504256763000,])])]/QUORUM
DEBUG [Thrift:280] 2013-11-15 02:30:56,765 StorageProxy.java (line 448) insert writing local RowMutation(keyspace='Checkout', key='37396539383637612d336164332d343636662
d383135612d303163386562343839616437', modifications=[User])
DEBUG [Thrift:280] 2013-11-15 02:30:56,765 StorageProxy.java (line 212) Write timeout java.util.concurrent.TimeoutException for one (or more) of:
DEBUG [Thrift:280] 2013-11-15 02:30:56,765 CassandraServer.java (line 641) ... timed out
DEBUG [Thrift:280] 2013-11-15 02:30:56,765 CustomTThreadPoolServer.java (line 196) Thrift transport error occurred during processing of message.
org.apache.thrift.transport.TTransportException: Cannot read. Remote side has closed. Tried to read 4 bytes, but only got 0 bytes. (This is often indicative of an inter
nal error on the server side. Please check your server logs.)
at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86)
at org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:378)
at org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:297)
at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:204)
at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:22)
at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:186)
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)
DEBUG [Thrift:280] 2013-11-15 02:30:56,765 ClientState.java (line 130) logged out: #<User allow_all groups=[]>
DEBUG [Thrift:204] 2013-11-15 02:30:56,768 CassandraServer.java (line 588) batch_mutate
DEBUG [Thrift:204] 2013-11-15 02:30:56,768 StorageProxy.java (line 175) Mutations/ConsistencyLevel are [RowMutation(keyspace='Checkout', key='37396539383637612d33616433
2d343636662d383135612d303163386562343839616437', modifications=[ColumnFamily(User [content:false:294#1384504256763002,email_address:false:13#1384504256763001,user_id:fa
lse:36#1384504256763000,])])]/QUORUM
Also getting this sometimes
ERROR 13:54:12,177 Exception in thread Thread[SSTableBatchOpen:7,5,main]
java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.nio.ByteBuffer
at org.apache.cassandra.db.marshal.UTF8Type.compare(UTF8Type.java:27)
at org.apache.cassandra.dht.LocalToken.compareTo(LocalToken.java:45)
at org.apache.cassandra.db.DecoratedKey.compareTo(DecoratedKey.java:89)
at org.apache.cassandra.db.DecoratedKey.compareTo(DecoratedKey.java:38)
at java.util.TreeMap.getEntry(TreeMap.java:328)
at java.util.TreeMap.containsKey(TreeMap.java:209)
at java.util.TreeSet.contains(TreeSet.java:217)
at org.apache.cassandra.io.sstable.SSTableReader.load(SSTableReader.java:396)
at org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:187)
at org.apache.cassandra.io.sstable.SSTableReader$1.run(SSTableReader.java:225)
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)
INFO 13:54:12,181 reading saved cache /opt/cassandra/saved_caches/OpsCenter-pdps-KeyCache

What does IOException mean on a javamail IMAPS connection?

I'm trying to connect to an exchange server with IMAPS on port 443 (it's been configured this way on the other end) using the following code:
.
.
.
props.setProperty("javax.net.ssl.trustStore", "C:/Program Files/Java/jdk1.6.0_30/jre/lib/security/cacerts");
props.setProperty("javax.net.ssl.trustStorePassword", "changeit");
props.setProperty("javax.net.ssl.trustStoreType", "jks");
props.setProperty("javax.net.debug", "ssl");
System.setProperties(props);
props = System.getProperties();
final Session session = Session.getInstance(props, null);
session.setDebug(debug);
com.sun.mail.imap.IMAPFolder inbox = null;
Store store = null;
store = session.getStore("imaps");
store.connect(host, 443, username, password);
inbox = (com.sun.mail.imap.IMAPFolder) store.getFolder("INBOX");
.
.
.
Judging from the fact that I get no certificate errors, they are correctly loaded from the store location. However, I get the following trace once the code reaches the connect statement:"
[29/01/13 18:23:02:811 CST] 0000007d SystemOut O DEBUG: getProvider() returning javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc]
[29/01/13 18:23:02:812 CST] 0000007d SystemOut O DEBUG: mail.imap.fetchsize: 16384
[29/01/13 18:18:42:814 CST] 0000007d SystemErr R javax.mail.MessagingException;
nested exception is:
java.io.IOException
[29/01/13 18:18:42:814 CST] 0000007d SystemErr R at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:479)
[29/01/13 18:18:42:814 CST] 0000007d SystemErr R at javax.mail.Service.connect(Service.java:275)
[29/01/13 18:18:42:814 CST] 0000007d SystemErr R at com.scots.utils.MailPoller$1.run(MailPoller.java:74)
[29/01/13 18:18:42:815 CST] 0000007d SystemErr R at java.lang.Thread.run(Thread.java:738)
[29/01/13 18:18:42:815 CST] 0000007d SystemErr R Caused by: java.io.IOException
[29/01/13 18:18:42:815 CST] 0000007d SystemErr R at com.sun.mail.iap.ResponseInputStream.read0(ResponseInputStream.java:99)
[29/01/13 18:18:42:815 CST] 0000007d SystemErr R at com.sun.mail.iap.ResponseInputStream.readResponse(ResponseInputStream.java:67)
[29/01/13 18:18:42:815 CST] 0000007d SystemErr R at com.sun.mail.iap.Response.<init>(Response.java:83)
[29/01/13 18:18:42:815 CST] 0000007d SystemErr R at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:48)
[29/01/13 18:18:42:815 CST] 0000007d SystemErr R at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:122)
[29/01/13 18:18:42:815 CST] 0000007d SystemErr R at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:230)
[29/01/13 18:18:42:815 CST] 0000007d SystemErr R at com.sun.mail.iap.Protocol.<init>(Protocol.java:91)
[29/01/13 18:18:42:815 CST] 0000007d SystemErr R at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:87)
[29/01/13 18:18:42:815 CST] 0000007d SystemErr R at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:446)
[29/01/13 18:18:42:816 CST] 0000007d SystemErr R ... 3 more
And nothing else! I've searched everywhere for the possible meanings or causes for an IOException thrown during the connect execution, but I've got nothing so far.
Given that the stacktrace doesn't go any further and the only line of my own code referenced in it is the connect statement itself (com.scots.utils.MailPoller$1.run(MailPoller.java:74), I really don't have much to go on.
The only thing that comes to mind that could be causing throuble is that I've put the mail polling mechanics inside another thread (a run method). Could that be causing trouble?
Any ideas you could provide will be greatly appreciated!
Thanks in advance.
There's not much information in the exceptions, but I think the underlying cause is most likely that you really aren't handling the SSL connection properly. The JavaMail SSLNOTES.txt file has some debugging tips and pointers.

Error 404 on not found JSF-file

When request not exists jsf-page (for example blabla.jsf) I have a problem in Glassfish 3.1: the server response error 500:
SEVERE: PWC6117: File "C%3A%5Cglassfish3%5Cglassfish%5Cdomains%5Cdomain1%5CeclipseApps%5CMyApp2%5Cblabla.jsp" not found
WARNING: StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception
java.lang.NullPointerException
at com.sun.faces.context.flash.ELFlash.doLastPhaseActions(ELFlash.java:607)
at com.sun.faces.context.ExternalContextImpl.responseFlushBuffer(ExternalContextImpl.java:857)
at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:155)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:100)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:410)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
How can I tune server for response error 404?

Resources