I'm running a Grails application in "PRODUCTION ENV." with version 2.3.1. It runs fine for some time. But after some time, it starts failing with exception "InvalidDataAccessApiUsageException". Again when I delete target folder and re run the application, it works good.
There is no error while working in "DEVELOPMENT ENV".
Detailed exception is
[[ErrorType:class org.springframework.dao.InvalidDataAccessApiUsageException],
[ErrorMessage:The given object has a null identifier: com.test.model.Test;
nested exception is org.hibernate.TransientObjectException:
The given object has a null identifier: com.test.model.Test]]
Related
I am trying to perform scroll operation using robot framework - appium, but I end up with the error:-
WebDriver' object has no attribute 'w3c'
My code:
*** Settings ***
Library AppiumLibrary
*** Test Cases ***
test_case1
Open Application http://localhost:4723/wd/hub platformName=Android deviceName=xxx
appPackage=com.android.settings appActivity=com.android.settings.Settings
automationName=Uiautomator2
Swipe 200 300 200 100
Error observed:-
AttributeError: 'WebDriver' object has no attribute 'w3c'
Note:- Other keywords like click element etc are working fine.
Today I have the exact same error as yours. It take me more than 1 hour to figure out what happen.
The problem is the Appium_Python_Client-2.1.2 library. Try to uninstall and reinstall it. And it will fix your error.
I needed to downgrade the Appium_Python_Client to version 1.3 and that fixed my issues.
pip uninstall Appium-Python-Client
pip install "Appium-Python-Client<2"
Maybe related to this bug.
I receive a NotImplementedException for the following line:
serviceBusClient <- new ServiceBusClient(connectionString) // NotImplementedException
The context is as follows:
open Azure.Messaging.ServiceBus
...
let mutable serviceBusClient : ServiceBusClient = null
...
serviceBusClient <- new ServiceBusClient(connectionString) // NotImplementedException
IAsyncDisposable:
I received the same exception when removing the "new" declaration since the class no longer implemented IDisposable, but rather IAsyncDisposable:
serviceBusClient <- ServiceBusClient(connectionString) // NotImplementedException
Additional Information:
I was unable to reproduce this anomaly in a separate integration test (NUnit)
I only observe this anomaly when running a Xamarin.Forms app using the Android emulator
The same code was working two months ago
Originally observed exception using Azure.Messaging.ServiceBus version 7.3.0 (Nuget)
Also observed exception using Azure.Messaging.ServiceBus version 7.1.2 (Nuget)
Using .NetStandard 2.1
I increased output verbosity to Diagnostics without observing any additional clues
Azure.Messaging.ServiceBus (version 7.0 works)
QuickWatch:
Call Stack:
I made a game in Unity, and built it for iOS devices. The clients asked if we could implement WebTrends into the game, and so I followed this getting started guide for instructions on how to install it.
I was able to set it up, and got to Step 5, which suggests the following:
Lifecycle events can be logged automatically by setting the
wt_dc_automatics_enabled config setting to true
This is where I got stumped. I then added the above setting to my webtrends.plist, so it now looks like this:
When attempting to build and run that, I get an error in Xcode, and the game refuses to run:
Uncaught exception: NSInvalidArgumentException: -[__NSCFBoolean hasPrefix:]: unrecognized selector sent to instance 0x11294d238
This guide suggests setting wt_dc_enabled to true instead of wt_dc_automatics_enabled.
But even after replacing that in the plist, it returns the same error.
Notably, the project runs fine if I remove the wt_dc_automatics_enabled / wt_dc_enabled from the plist file, though it doesn't sent any logs, to my knowledge.
Is there anything else I can do?
Can you trying making wt_dc_automatics_enabled as String type and not boolean type and add its value as YES.
Because your error says somewhere in the code hasPrefix method is called on Boolean value. hasPrefix method is defined in String class and there is no such method in Boolean class.
I recently started to get this error (detailed error below) in my iOS mobile app built using react-native. This only happens when I try to run the app on the phone by using Option 2 which is to load using a static bundle. I have tried:
Clean and rebuild in Xcode
Reset cache and run react packager
Uninstall the app on the phone
Coming from Windows background, I have also tried to reboot my machine
Error in Xcode
2016-08-04 09:34:37.611 GalarmApp[367:165469] *** Assertion failure in
-[RCTBatchedBridge loadSource:](), /Users/abc/Projects/GalarmApp/node_modules/react-native/React/Base/RCTBatchedBridge.m:180 2016-08-04 09:34:37.613 GalarmApp[367:165469] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'bundleURL must be non-nil when not implementing loadSourceForBridge'
*** First throw call stack: (0x182b32db0 0x182197f80 0x182b32c80 0x1834b81c0 0x1000af788 0x1000adefc 0x1000adca4 0x1000e73d8 0x1000e7368 0x1000e6700 0x1000e643c 0x10005a254 0x10003cebc 0x10003c214 0x10003966c 0x100039b18 0x187d069c0 0x187f36184 0x187f3a5f0 0x187f37764 0x1844d37ac 0x1844d3618 0x1844d39c8 0x182ae909c 0x182ae8b30 0x182ae6830 0x182a10c50 0x187cff94c 0x187cfa088 0x10003bee0 0x1825ae8b8) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)
I can see that this problem is printed here in the code but I am a beginner at best in native iOS development and don't know how to fix this problem.
Please help me in fixing this problem. Thanks!
Code in AppDelegate.swift file
/**
* Loading JavaScript code - uncomment the one you want.
*
* OPTION 1
* Load from development server. Start the server from the repository root:
*
* $ npm start
*
* To run on device, change `localhost` to the IP address of your computer
* (you can get this by typing `ifconfig` into the terminal and selecting the
* `inet` value under `en0:`) and make sure your computer and iOS device are
* on the same Wi-Fi network.
*/
// let jsCodeLocation = NSURL(string: "http://localhost:8081/index.ios.bundle?platform=ios&dev=true")
/**
* OPTION 2
* Load from pre-bundled file on disk. The static bundle is automatically
* generated by "Bundle React Native code and images" build step.
*/
let jsCodeLocation = NSBundle.mainBundle().URLForResource("main", withExtension: "jsbundle")
As you can see, I have commented out Option 1 and uncommented out 'Option 2`. I have run the same app this way on the device like 100 times. I have not made any changes to the code but all of a sudden I started to see the error above.
Just to add a quick "doh" moment for me. If you're running in the simulator and get this, make sure the package manager is running when you run your app. If it's not, it could complain about this.
You can also get this error if you are not signing the app correctly. Check the Xcode settings and warnings
For my case, I turn on the web proxy settings on my mac which causes the problem. Turning off web proxy settings resolves my problem.
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* +[NSString stringWithUTF8String:]: NULL cString'
* First throw call stack:
(0x374ec8bf 0x362cb1e5 0x374ec7b9 0x374ec7db 0x31dade97 0x278f 0x2c2d 0x307877eb 0x307813bd 0x3074f921 0x3074f3bf 0x3074ed2d 0x36000e13 0x374c0553 0x374c04f5 0x374bf343 0x374424dd 0x374423a5 0x30780457 0x3077d743 0x2439 0x23d0)
terminate called throwing an exception
I just don't understand why it was working until 5 minutes ago testing it on the same thing and now it's not working anymore. What can I do to solve this problem? The application works fine on the simulator.
Your string cString = null..
Fill it.
Where do you get the string? One of the more common reasons for "works on Simulator but not device" is that you are reading from a file and use the wrong case -- device has case-sensitive file systems, but Macs have case-insensitive (typically).
The reason why it didn't work on the device is because I modified the database and for some reason the one on the device was the wrong one which obviously was incompatible with the new code. After I deleted the application from the Ipod and then ran it again it worked just fine.
The reason why I had that specific error is because some variables that were holding database columns were empty.