Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,

    try new webdriver if you have this error with firefox while uploading files

Solutions on the web

via GitHub by beijingcn
, 1 year ago
This exception has no message.
java.io.FileNotFoundException: velocity.log (拒绝访问。)	at java.io.FileOutputStream.open0(Native Method)	at java.io.FileOutputStream.open(FileOutputStream.java:270)	at java.io.FileOutputStream.(FileOutputStream.java:213)	at java.io.FileOutputStream.(FileOutputStream.java:133)	at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)	at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)	at org.apache.log4j.FileAppender.(FileAppender.java:110)	at org.apache.log4j.RollingFileAppender.(RollingFileAppender.java:79)	at org.apache.velocity.runtime.log.Log4JLogChute.initAppender(Log4JLogChute.java:118)	at org.apache.velocity.runtime.log.Log4JLogChute.init(Log4JLogChute.java:85)	at org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:157)	at org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:269)	at org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:871)	at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:262)	at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:93)	at com.xiaohansong.codemaker.util.VelocityUtil.(VelocityUtil.java:19)	at com.xiaohansong.codemaker.action.CodeMakerAction.actionPerformed(CodeMakerAction.java:74)	at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:197)	at com.intellij.openapi.application.TransactionGuardImpl.a(TransactionGuardImpl.java:88)	at com.intellij.openapi.application.TransactionGuardImpl.submitTransactionAndWait(TransactionGuardImpl.java:156)	at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:211)	at com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep.performAction(PopupFactoryImpl.java:875)	at com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep.a(PopupFactoryImpl.java:863)	at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:199)	at com.intellij.ui.popup.AbstractPopup.a(AbstractPopup.java:1390)	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)	at java.awt.EventQueue.access$500(EventQueue.java:97)	at java.awt.EventQueue$3.run(EventQueue.java:709)	at java.awt.EventQueue$3.run(EventQueue.java:703)	at java.security.AccessController.doPrivileged(Native Method)	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)	at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:863)	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:699)	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:385)	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)