runtimeexception

Spring data @transactional not rolling back with SQL Server and after runtimeexception

老子叫甜甜 提交于 2020-01-06 03:41:04
问题 I've enabled my spring application to use transactions and annotated my service method accordingly but the changes to my DB persist when a RuntimeException is thrown. My Spring configuration looks like this: <!-- Data Source. --> <jee:jndi-lookup id="dataSource" jndi-name="java:/jdbc/BeheermoduleDS"/> <!-- JPA Entity Manager. --> <jee:jndi-lookup id="entityManagerFactory" jndi-name="java:/jpa/BeheermoduleDS"/> <bean id="txManager" class="org.springframework.orm.jpa.JpaTransactionManager">

Groovy could not find matching constructor?

拟墨画扇 提交于 2020-01-05 07:51:12
问题 Please note: although this question mentions Mongo it is surely a pure Groovy question at heart. My MyApp#bootstrap method: def bootstrap(AppConfiguration config) { String h = config.dbHost String p = config.dbPort println "Mongo is at: ${h}:${p}." dao = new MongoDao(host: h, port: p) } My MongoDao class (snippet): class MongoDao implements BasicDao { String dbName Mongo mongo String host String port Morphia morphia Datastore datastore MongoDao(String host, String port) { this.dbName = "db

Unable to start receiver com.google.firebase.iid.FirebaseInstanceIdInternalReceiver

时光怂恿深爱的人放手 提交于 2020-01-03 11:02:30
问题 My app integrates FCM to receive push notifications and it works okay. However, I am facing issue that on installation it crashes randomly. It is very random and occurring on OS 6.0+ devices till latest but randomly occurs. Code wise, in service class only show notification code is written and added service in manifest. I am getting below exception on app loads Fatal Exception: java.lang.RuntimeException: Unable to start receiver com.google.firebase.iid.FirebaseInstanceIdInternalReceiver:

Unable to start receiver com.google.firebase.iid.FirebaseInstanceIdInternalReceiver

好久不见. 提交于 2020-01-03 11:02:22
问题 My app integrates FCM to receive push notifications and it works okay. However, I am facing issue that on installation it crashes randomly. It is very random and occurring on OS 6.0+ devices till latest but randomly occurs. Code wise, in service class only show notification code is written and added service in manifest. I am getting below exception on app loads Fatal Exception: java.lang.RuntimeException: Unable to start receiver com.google.firebase.iid.FirebaseInstanceIdInternalReceiver:

Java- RuntimeException- Uncompilable source code - Erroneous tree type

 ̄綄美尐妖づ 提交于 2019-12-30 23:43:09
问题 I'm new in Java also I'm new in this website, so I'm sorry if the error is obvious, but I got an error, that I dont know what it means, I have try everything to fix it. I'm currently writing a basic aplication library, with some swing interface, but the problem is when trying to create a window of the form of books, there is the relevant code. This is the principal window. public class VentanaPrincipal extends javax.swing.JFrame { public VentanaPrincipal() { initComponents(); this

Checked vs Unchecked exception

怎甘沉沦 提交于 2019-12-28 01:00:28
问题 I've studied that: With an unchecked exception, however, the compiler doesn't force client programmers either to catch the exception or declare it in a throws clause. In fact, client programmers may not even know that the exception could be thrown. eg, StringIndexOutOfBoundsException thrown by String's charAt() method. what its mean? according to that code there is no need to put try catch block in code, but i've seen compiler forces to put the code in try catch block. I'm very confused what

Runtime Exception while with 2d array

假装没事ソ 提交于 2019-12-24 20:38:51
问题 I wrote a class that has a 2d array that grows based on user input and allows user to enter numbers in array. The user would enter 2 2 for the size and 2 4 5 4 for the numbers It would print out like this 2 2 2 2 It works until I enter an array size 7 1 , 7 rows and 1 column. I get an Exception Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 at Assignment7.main(Assignment7.java:55) I don’t understand why import java.util.Scanner; public class Assignment7 { public static

Laravel Session store not set on request

此生再无相见时 提交于 2019-12-24 05:24:11
问题 I'm developing a small website and have problems with the session. When I try to login or make an AJAX call, I get the following RuntimeException: RuntimeException in Request.php line 758: Session store not set on request. in Request.php line 758 at Request->session() in VerifyCsrfToken.php line 87 at VerifyCsrfToken->tokensMatch(object(Request)) in VerifyCsrfToken.php line 49 at VerifyCsrfToken->handle(object(Request), object(Closure)) at call_user_func_array(array(object(VerifyCsrfToken),

Google Espresso java.lang.RuntimeException: Could not launch intent Intent { act=android.intent.action.MAIN

醉酒当歌 提交于 2019-12-23 07:59:30
问题 I am new to Espresso UI testing. I am getting this error while running tests (ADT Eclipse IDE ). The app is already developed and there are lots of request going on while launching the app. it is not possible to rewrite the app. but i need to find the way to test this UI even if there is any delay in the loading of the components. java.lang.RuntimeException: Could not launch intent Intent { act=android.intent.action.MAIN flg=0x14000000 cmp=com.xx.android/com.yy.core.android.map.MapActivity }

java.lang.ClassNotFoundException on working app?

拥有回忆 提交于 2019-12-23 05:39:36
问题 When i start app in Android 4.1.2 there are no any exception but when i start app in Android 2.3.5 i get this exception: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.russian.apps/com.russian.apps.TabActivity}: java.lang.ClassNotFoundException: com.russian.apps.TabActivity in loader dalvik.system.PathClassLoader[/data/app/com.russian.apps-1.apk] 05-20 16:23:57.668: E/AndroidRuntime(608): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java