How to clear up message? ~ Can't load log handler "java.util.logging.FileHandler"

2,053 views
Skip to first unread message

Joshua Donnelly

unread,
Nov 10, 2013, 11:31:07 PM11/10/13
to ve...@googlegroups.com
Wondered how to clear up the following error message,
and what was the cause of... tried restarting the PC, 
will try rebooting and deleting C:\Users\Administrator\AppData\Local\Temp
thanks

Can't load log handler "java.util.logging.FileHandler"
java.io.IOException: Couldn't get lock for %t/vertx.log
java.io.IOException: Couldn't get lock for %t/vertx.log
at java.util.logging.FileHandler.openFiles(FileHandler.java:422)
at java.util.logging.FileHandler.(FileHandler.java:255)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:406)
at java.lang.Class.newInstance(Class.java:433)
at java.util.logging.LogManager$5.run(LogManager.java:939)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.loadLoggerHandlers(LogManager.java:931)
at java.util.logging.LogManager.initializeGlobalHandlers(LogManager.java:1519)
at java.util.logging.LogManager.access$1500(LogManager.java:145)
at java.util.logging.LogManager$RootLogger.getHandlers(LogManager.java:1609)
at java.util.logging.Logger.log(Logger.java:691)
at java.util.logging.Logger.doLog(Logger.java:714)
at java.util.logging.Logger.log(Logger.java:737)
at org.vertx.java.platform.impl.cli.Starter$1.handle(Starter.java:138)
at org.vertx.java.platform.impl.cli.Starter$1.handle(Starter.java:123)
at org.vertx.java.platform.impl.DefaultPlatformManager$15.handle(DefaultPlatformManager.java:710)
at org.vertx.java.platform.impl.DefaultPlatformManager$15.handle(DefaultPlatformManager.java:706)
at org.vertx.java.platform.impl.DefaultPlatformManager$18.handle(DefaultPlatformManager.java:1522)
at org.vertx.java.platform.impl.DefaultPlatformManager$18.handle(DefaultPlatformManager.java:1516)
at org.vertx.java.core.impl.CountingCompletionHandler$1.run(CountingCompletionHandler.java:77)
at org.vertx.java.core.impl.DefaultContext$3.run(DefaultContext.java:176)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:354)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:353)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
at java.lang.Thread.run(Thread.java:744)
Succeeded in deploying verticle 
^C

Norman Maurer

unread,
Nov 11, 2013, 12:50:15 AM11/11/13
to ve...@googlegroups.com
Are you sure you have permissions to log to this directory ?

I’m far from a windows expert but this is what is the first thought I had when I saw the error.

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

David Zhang

unread,
Jul 13, 2014, 12:47:02 PM7/13/14
to ve...@googlegroups.com
Hi,
 I have got the same warning, when I run 2nd command such as "vertx run ...".
 This is a log file locker, seems that we can not write to a same log file with more than one program.
 I can clean the warning when I stop 1st command.

yours,
David Zhang

在 2013年11月11日星期一UTC+8下午12时31分07秒,Joshua Donnelly写道:

Alexander Lehmann

unread,
Jul 13, 2014, 2:43:41 PM7/13/14
to ve...@googlegroups.com
Not sure how the implementation of jul handles that, but I would assume that it should be able to write to the same logfile from more than one program.
If this is exclusively locked, a solution would be to set a unique log file for each invocation or turning the file log off by putting logging.properties into $VERTX_HOME/conf or into src/main/platform_lib.

(When I run a test running a verticle twice that prints a message every second, I end up with 2 vertx.log files, one for each running instance.)
Reply all
Reply to author
Forward
0 new messages