exception

sl4j error in weblogic when deploying grails application war

南楼画角 提交于 2019-12-24 00:38:05
问题 I create a WAR for my grails application and when I deploy it in Weblogic 12c server I get the following Exception <Mar 27, 2012 12:38:55 PM PDT> <Warning> <HTTP> <BEA-101162> <User defined listener org.codehaus.groovy.grails.web.context.GrailsC ontextLoaderListener failed: java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/Strin g;ILjava/lang/String;Ljava/lang/Throwable;)V. java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg

SonarQube is unable to analyze file (NullPointerException)

做~自己de王妃 提交于 2019-12-24 00:28:20
问题 I have something like this in my Java 8 project: import java.util.function.Function; public class Foo { private static final Function<Object, Object> FOO = o -> { return null; }; } Every time I'm running SonarQube analysis, it fails with a NullPointerException mvn clean install mvn sonar:sonar Exception: SonarQube is unable to analyze file : '/Users/rzueger/Development/experimental/gitautomergetest/myclone/src/main/java/ch/rallo/automerge/Foo.java' at org.apache.maven.lifecycle.internal

System.Runtime.InteropServices.COMException caused while terminating the app

三世轮回 提交于 2019-12-24 00:17:28
问题 I have an app with 2 pages calendar.xaml(start page) and historystatistics.xaml. Error is thrown when I navigate to historystatistics and back to calendar and then try to terminate the app by the pulling down gesture. The mentioned error occurs at the SaveAsync function in OnSuspending of App.xaml. private async void OnSuspending(object sender, SuspendingEventArgs e) { CycleManager cycMan = CycleManager.Instance; var deferral = e.SuspendingOperation.GetDeferral(); //TODO: Save application

Catching Mysqli Errors

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 00:15:12
问题 I have a custom error handler defined, which catches all exceptions and saves them to a log. Right now, if I have a syntax error in a mysqli query, such as a typo, the page completely stops loading at that point. No exception is thrown, so therefore the error handler isn't triggered and nothing is logged. Is this normal? Is there a PHP setting that I should check to fix this so that any mysqli query errors throw exceptions? (I don't want an exception thrown if a query returns 0 results - only

org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject

半世苍凉 提交于 2019-12-24 00:04:55
问题 Hi i got a problem with Android JSON Parser in 2.3, all is ok in 4.0>. I look other topic they are talking about encoding (server) or other stuff server side, but i tried to put "test" in all my JSON field an the problem still persist. Here is my code : URL url = new URL(c.getString(R.string.url_ws) + url_ws); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setDoOutput(true); connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded")

What can cause an exception 16: “mutex: Resource busy” to be thrown (using Boost / BB10)?

自作多情 提交于 2019-12-23 23:46:18
问题 I've ported a long-working stable library written in C++ and Boost to Blackberry 10. The library transfers files between devices. The library compiles and links well, and runs just fine. However, I consistently encounter a thrown exception on my Blackberry 10 device after 1, 2, or 3 files have been transferred. Catching the exception as a boost::system::system_error in the source code shows it is exception 16, with a text of "mutex: Resource busy". Here is the source code where the exception

How to hide .env passwords in Lumen when you leave debug as false?

心已入冬 提交于 2019-12-23 23:27:00
问题 How can I hide my passwords and other sensitive environment variables on-screen in Lumen (Not Laravel)? Sometimes we either forget or test smth in development and make debug=false in the .env file. We maybe don't want other people to see such information even in development phase. Also for some people who don't know this, if an exception is thrown while opening a page or making a request, everything that is in the .env file is shown in the browser, including db passwords etc - "and this is

Getting ExitCode From Exception Handler

冷暖自知 提交于 2019-12-23 23:20:23
问题 I have following error handler in my console application Main Procedure: AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(ErrorHandler); Handler Procedure: static void ErrorHandler(object sender, UnhandledExceptionEventArgs args) { Exception e = (Exception)args.ExceptionObject; ... Loging Error ... //Environment.Exit(?); } And the problem is that error is logged but after that application failed and windows popup (application is not responding) is showed. So i

Boost lock_guard<boost::mutex> Throws EINVAL Exception

让人想犯罪 __ 提交于 2019-12-23 23:15:32
问题 I have some static user data like: private: static std::map<unsigned long, UserDataSharedPtr> userStore_; static boost::mutex mutexUserData; public: static void RemoveUserData(unsigned long id) { boost::lock_guard<boost::mutex> lock(mutexUserData); std::map<unsigned long, UserDataSharedPtr>::iterator it = userStore_.find(id); if (it != userStore_.end()) { userStore_.erase(it); } } static void AddUserData(unsigned long id, UserDataSharedPtr ud) { boost::lock_guard<boost::mutex> lock

How interpret stack traces when it stops on main

点点圈 提交于 2019-12-23 22:59:34
问题 Often I get stack traces such as this: 0 StackAsk 0x0007fc0d +[TFCrashHandler backtrace] + 429 1 StackAsk 0x0007fe4b TFHandleExceptions + 35 2 CoreFoundation 0x33d56987 __handleUncaughtException + 74 3 libobjc.A.dylib 0x3583d2d1 _objc_terminate + 128 4 libc++abi.dylib 0x34a763c5 _ZL19safe_handler_callerPFvvE + 76 5 libc++abi.dylib 0x34a76451 _ZdlPv + 0 6 libc++abi.dylib 0x34a77825 __cxa_current_exception_type + 0 7 libobjc.A.dylib 0x3583d235 objc_exception_rethrow + 12 8 CoreFoundation