Setting enable-universal-access-from-file-uris for Webkit in TideSDK? - webkit

Can I set enable-universal-access-from-file-uris=true for Webkit in TideSDK ? Accessing openDatabase from TideSDK causes SECURITY_ERR: DOM Exception 18 error.

Related

java - NSException error when running repast simphony from Eclipse

I am experiencing an error that prevents repast simphony from running when prompted from Eclipse. Instead of running a model when prompted, the window disappears and an error message appears within Eclipse.
The steps I've followed to this point on my Mac (for repast simphony setup) are:
1) Download a Java 8 JDK from Adopt Open JDK (since I need Java 8 to use repast 3D later). Copy the package to /Library/Java/JavaVirtualMachines.
2) Download Eclipse IDE for Eclipse Committers 2019-06 and put in Applications folder.
3) Install Groovy Eclipse 3.4.0 from the update site (https://dist.springsource.org/release/GRECLIPSE/3.4.0/e4.12), and install the Eclipse Groovy development tools and the Groovy compiler 2.4 from this link in Eclipse.
4) Install repast simphony 2.7.0 from https://repocafe.cels.anl.gov/repos/repast in Eclipse.
5) Set Groovy compiler to 2.4.17 in Eclipse.
6) Import repast examples
7) Select a demonstration model (e.g., GeoZombies) and try to run.
Once I complete step 7 above, I get several console warning messages:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/Applications/Eclipse.app/Contents/Eclipse/plugins/repast.simphony.runtime_2.7.0/lib/xstream-1.4.7.jar) to field java.util.TreeMap.comparator
WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
The Java window for repast simphony opens even though this error has appeared in the Eclipse console. However, when I click the button to "Start Run" in the Java window for GeoZombies, the Java window shuts with no warning, and the Eclipse console produces the following error:
2019-12-03 11:03:46.637 java[63571:533520] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
* First throw call stack:
(
0 CoreFoundation 0x00007fff3bab6acd __exceptionPreprocess + 256
1 libobjc.A.dylib 0x00007fff66193a17 objc_exception_throw + 48
2 CoreFoundation 0x00007fff3bad0629 -[NSException raise] + 9
3 AppKit 0x00007fff390765ca -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 317
4 AppKit 0x00007fff390739f7 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1479
5 AppKit 0x00007fff3907342a -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
6 libnativewindow_macosx.jnilib 0x0000000136bfdf9e Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
7 ??? 0x000000011e0f5c90 0x0 + 4799290512
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I would appreciate any assistance someone can provide about how to resolve this error and get repast simphony working. Thank you.
This appeared to be an issue with letting Eclipse know which JRE to use. Navigating to Preferences -> Java -> Installed JREs, should show which JRE Eclipse is using and you can adjust to the appropriate version there. Currently Java 8 and Java 11 can be used. For more information on software requirements for Repast Simphony, see this page: https://repast.github.io/requirements.html

Aurelia, iOS, v9 safari throws Unhandled rejection (bluebird)

I am using Aurelia-esnext. After adding polyfills, It works fine on all browsers and devices. However in iPhone 6s, 6s Plus or any iPhone having iOS 9 it doesn't load.
iOS 9 safari throws below error. Any leads on this ? It works fine in iOS 8 and below
DEBUG [templating] importing resources for http://localhost:9000/wwwroot/jspm_packages/npm/aurelia-templating-resources#1.0.0/compose.js []
DEBUG [templating] importing resources for http://localhost:9000/wwwroot/jspm_packages/npm/aurelia-templating-router#1.0.0/router-view.js []
Unhandled rejection create#[native code]
resolve
loadViewFactory
load
load
load
tryCatcher
_settlePromiseFromHandler
_settlePromise
_settlePromise0
_settlePromises
_fulfill
_resolve
_promiseFulfilled
_settlePromise
_settlePromise0
_settlePromises
_drainQueue
_drainQueues
drainQueues

Aurelia - Karma error

I am following the Aurelia docs for Production setup and I am encountering an issue with the the Running The Unit Tests section.
I have the app running with no issues. I open a new terminal window and successfully installed karma-cli 3.9.3. But when I run gulp test I get the following error:
31 05 2016 15:58:09.929:INFO [Chrome 51.0.2704 (Mac OS X 10.11.5)]: Connected on socket /#kJiah_Vi_OxBaoMGAAAA with id 68824261
Chrome 51.0.2704 (Mac OS X 10.11.5) ERROR
Uncaught TypeError: Cannot read property 'config' of undefined
at /Users/XXX/Documents/Websites/Aurelia/Production/node_modules/karma-jspm/src/adapter.js:18
I know enough that I should not be editing any source files in node_modules, so how do I go about fixing this?

Selenium unknown error: unhandled inspector error

I am receiving following error while executing the line(selenium chrome driver):
driver.findElements(By.className("myClass"));
unknown error: unhandled inspector error: {"code":-32000,"message":"Cannot find execution context with given id"}
What is the reason for this error? How can i solve it?
I had this issue today exclusively with ChromeDriver on a project that has been working fine. I found that upgrading to the following version of ChromeDriver fixed the issue for me:
ChromeDriver v2.21 Download Page
Apparently it is due to a bug. See:
https://bugs.chromium.org/p/chromedriver/issues/detail?id=1238
for more information.
I had the same problem. It disappeared after upgrading to version 2.21:
http://chromedriver.storage.googleapis.com/index.html?path=2.21/
The problem also affected me when I was trying to click on an element which was in the default content and I was on an iFrame.
Adding the following code solved it for me:
driver.switchTo().defaultContent();
Had this issue it's due to being on the wrong frame. Switch back to the root frame (Default Frame) and you'll be fine

How to solve "Library not loaded" error because of LocalAuthentication.framework?

I can successfully run my app in IOS 8 but in IOS 7, my app crashes.
The message is:
dyld: Library not loaded: /System/Library/Frameworks/LocalAuthentication.framework/LocalAuthentication
Referenced from: /Users/burakkilic/Library/Developer/CoreSimulator/Devices/A0210158-BC6C-43AA-9D85-AA8DE6115AAA/data/Applications/xxx
Reason: no suitable image found. Did find:
/System/Library/Frameworks/LocalAuthentication.framework/LocalAuthentication: mach-o, but wrong architecture
How can I solve it?
You could weak link LocalAuthentication.framework and conditionally access the LocalAuthentication API at runtime.
The latter can be done by either:
Checking the iOS version you are running.
Using reflection to test for the presence of API methods (respondsToSelector, et al).