StackoverflowError when developing XPages in XPiNC V10 - xpages

Hi I have a major problem which occured in IBM Notes 9.0.1 FP10 and now in V10. I believe it may be related to the latest versions of Openntf Domino API. With only the Notes Client open everything is fine. As soon as I open Designer and then revert back to XPages in the client (XPiNC) I start to experience Error 500s, and Notes crashes soon after with Shared Memory or XPiNC become unresponsive. I don't have any issues when accessing the same pages via a browser.
I have the exact same problem on more than one PC. I have been able to solve the problem by downgrading to 9.0.1 FP9 in the past. This solution is 100% reproducable. Obviously I no longer wish to do remain at Notes 9.0.1 FP9.
No other users,- they don't use Domino Designer and are on Notes Client 9.0.1 FP8 or below,- are affected by the issues.
The log trace provides the following. the first (up to the ...17 more) is stated once. The log after that is repeated dozens of times until I assume everthing false over.
Any help would be really appreciated, this has been driving me mad for months.
CLFAD0256E: Dispatcher Servlet Problem - java.util.concurrent.ExecutionException: java.lang.StackOverflowError
javax.servlet.ServletException: java.util.concurrent.ExecutionException: java.lang.StackOverflowError
at com.ibm.domino.xsp.module.nsf.NSFService.doService(Unknown Source)
at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.doService(Unknown Source)
at com.ibm.designer.runtime.domino.adapter.LCDEnvironment.service(Unknown Source)
at com.ibm.domino.xsp.bridge.websrv.servlets.DispatcherServlet.service(Unknown Source)
at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(Unknown Source)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(Unknown Source)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(Unknown Source)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(Unknown Source)
at com.ibm.pvc.webhttpservice.BridgeServlet.service(Unknown Source)
at com.ibm.pvc.internal.webcontainer.VirtualHost.handleRequest(Unknown Source)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(Unknown Source)
at com.ibm.wsspi.webcontainer.WebContainer.handleRequest(Unknown Source)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(Unknown Source)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(Unknown Source)
at com.ibm.ws.http.HttpConnection.run(Unknown Source)
at com.ibm.ws.util.ThreadPool$Worker.run(Unknown Source)
Caused by: java.util.concurrent.ExecutionException: java.lang.StackOverflowError
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
... 17 more
Caused by: java.lang.StackOverflowError
at sun.nio.cs.UTF8_Decoder.decodeArrayLoop(Unknown Source)
at sun.nio.cs.UTF8_Decoder.decodeLoop(Unknown Source)
at java.nio.charset.CharsetDecoder.decode(Unknown Source)
at sun.net.www.ParseUtil.decode(Unknown Source)
at sun.security.provider.PolicyFile.canonicalizeCodebase(Unknown Source)
at sun.security.provider.PolicyFile.access$700(Unknown Source)
at sun.security.provider.PolicyFile$5.run(Unknown Source)
at sun.security.provider.PolicyFile$5.run(Unknown Source)
at java.security.AccessController.doPrivileged(Unknown Source)
at sun.security.provider.PolicyFile.getPermissions(Unknown Source)
at sun.security.provider.PolicyFile.getPermissions(Unknown Source)
at sun.security.provider.PolicyFile.implies(Unknown Source)
at java.security.ProtectionDomain.implies(Unknown Source)
at java.security.AccessController.checkPermissionHelper(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at COM.ibm.JEmpower.applet.XPagesSecurityManager.checkPermission(Unknown Source)
at COM.ibm.JEmpower.applet.XPagesSecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.io.File.isDirectory(Unknown Source)

I don't think it's ODA. What I suspect you're encountering is DDE set with "Build Automatically" enabled. XPiNC shares source code with DDE. Opening the app in Notes caches the built Java files. Building in DDE rebuilds the Java files, so they're no longer available to XPiNC. doService() is the initial call to the XPages runtime (the servlet). No one else hits the problem because they're not rebuilding the Java source code.
My recommendation on XPiNC development is get it working how you want by testing in a browser. Then do a final test in XPiNC to identify any unanticipated quirks.

Related

twillio verification sdk gradle dependency error

when i add twillio verification sdk into my android studio projects its gives an gradle error
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugCompileClasspath'.
Any solution?
i tried all possible solution like add google service json file but not getting any solution still occured a gradle error

Android studio endless compilation

One time my android studio ran into endless compilation, and from then on that version of kotlin jvm plugin is always with endless compilation. Yesterday, that bug appears again with another version of kotlin jvm plugin. Two versions are invalid now and there must be more and more. Reinstalling or invalidating caches doesn't help. Could someone help?

Occasional IDE error when running Flutter app on iPhone simulator. FlutterApp.setLaunchMode must not be null

Sometimes when I run my Flutter app on the iPhone simulator via Android Studio I get the IDE error "FlutterApp.setLaunchMode must not be null" full stack trace below. How can I fix this? Thanks.
java.lang.reflect.InvocationTargetException at
sun.reflect.GeneratedMethodAccessor81.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498) at
com.intellij.execution.process.ProcessHandler$5.invoke(ProcessHandler.java:223)
at com.sun.proxy.$Proxy17.onTextAvailable(Unknown Source) at
com.intellij.execution.process.ProcessHandler.notifyTextAvailable(ProcessHandler.java:197)
at
com.intellij.execution.process.BaseOSProcessHandler$SimpleOutputReader.onTextAvailable(BaseOSProcessHandler.java:198)
at
com.intellij.util.io.BaseOutputReader.sendText(BaseOutputReader.java:202)
at
com.intellij.util.io.BaseOutputReader.processInput(BaseOutputReader.java:186)
at
com.intellij.util.io.BaseOutputReader.readAvailableNonBlocking(BaseOutputReader.java:105)
at
com.intellij.util.io.BaseDataReader.readAvailable(BaseDataReader.java:85)
at com.intellij.util.io.BaseDataReader.doRun(BaseDataReader.java:163)
at
com.intellij.util.io.BaseDataReader$1$1.run(BaseDataReader.java:66)
at
com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:229)
at com.intellij.util.io.BaseDataReader$1.run(BaseDataReader.java:63)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745) Caused by:
java.lang.IllegalArgumentException: Argument for #NotNull parameter
'launchMode' of io/flutter/run/daemon/FlutterApp.setLaunchMode must
not be null at
io.flutter.run.daemon.FlutterApp.$$$reportNull$$$0(FlutterApp.java)
at io.flutter.run.daemon.FlutterApp.setLaunchMode(FlutterApp.java)
at
io.flutter.run.daemon.FlutterAppDaemonEventListener.onAppStarting(FlutterApp.java:726)
at
io.flutter.run.daemon.DaemonEvent$AppStarting.accept(DaemonEvent.java:190)
at io.flutter.run.daemon.DaemonEvent.dispatch(DaemonEvent.java:52)
at io.flutter.run.daemon.DaemonApi.dispatch(DaemonApi.java:171) at
io.flutter.run.daemon.DaemonApi$1.onTextAvailable(DaemonApi.java:142)
... 20 more
So I have just come across this today also.
I'm running Android Studio and targeting an Android emulator, so it seems to be more core related than target.
..
Caused by: java.lang.IllegalArgumentException: Argument for #NotNull parameter 'launchMode' of io/flutter/run/daemon/FlutterApp.setLaunchMode must not be null
Android Studio 3.3.1
Windows 10 64Bit
I'll edit this as I discover pertinent info.
Android Studio Flutter Plugin version 33.3, update released Feb.25th 2019 change log indicates:
"Fix an issue with an IllegalArgumentException when running Flutter apps"
I'll report back if the issue persists.
UPDATE: Appears to be fixed!

Where can I find progaurd.config file in android studio. How to resolve error GRADLE SYNC error basic functionalities

My android studio is not generating progaurd.config file. How I fix this error. Also. Gradle sync failed due to errors in basic functionalities.
Any one please provide me a solution.

Crashlytics Android Studio plugin fails to initialize

I'm running Android Studio 0.5.1. I've downloaded the Crashlytics Android Studio plugin and installed it from the disc. When I restart Android Studio, I get the following exception
Plugin 'com.crashlytics.tools.androidstudio' failed to initialize and will be disabled. Please restart Android Studio.
java.lang.NoClassDefFoundError: org/osgi/framework/BundleActivator
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.lang.ClassLoader.defineClass(ClassLoader.java:471)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:189)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:185)
at com.intellij.util.lang.UrlClassLoader._findClass(UrlClassLoader.java:161)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:124)
at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:77)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:66)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at com.crashlytics.tools.intellij.OSGiPluginServices.createOSGi(OSGiPluginServices.java:62)
at com.crashlytics.tools.intellij.CrashlyticsPlugin.initComponent(CrashlyticsPlugin.java:89)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:548)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:590)
at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:225)
at com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:212)
at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:199)
at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)
at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponent(ComponentManagerImpl.java:121)
at com.intellij.openapi.application.impl.ApplicationImpl.createComponent(ApplicationImpl.java:371)
at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:112)
at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:89)
at com.intellij.openapi.components.impl.stores.ApplicationStoreImpl.load(ApplicationStoreImpl.java:87)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:508)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:150)
at com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:46)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:697)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.ClassNotFoundException: org.osgi.framework.BundleActivator PluginClassLoader[com.crashlytics.tools.androidstudio, 1.5.0]
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:68)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 44 more
Hemal from Crashlytics here! Can you go ahead and try to install the plugin.zip file instead of the jar and let me know if that works?
Use Fabric Tool.You don't need to write any code.Check out the below steps to install Crashlytics in your application.
Get in to this Fabric link .Then sign
up and login to your account.
In Android Studio, Click File -> settings->plugin-> In top search bar, search this Fabric for Android then click browse, you see the fabric android studio file.
Then download a Fabric Android Studio
Plugin.Zip file.finally, restart Android Studio
Then you can see the Fabric icon in your eclipse tool.Check the
below screenshot:
Login fabric -> Enter Organization -> click install the crashlytics tool.It will add the Codes
automatically.You don't need to write a single line of code.It will
add codes in manifest file and build.gradle.
After it successfully installed,Run your application.If your
application getting crash,it will be notified in your fabric
dashboard.
Output:
Below I am posted the crash report in dashboard:
For further Reference: Crashlytics
I had this error "NoClassDefFoundError: javax/swing/SwingUtilities"
I had to download and use jdk1.7.0_65 instead of jdk1.8.0_05 and change the path in my environment variables.
Hope this helps someone!
Oh gods, i thought it's not work, but it does! It now show icon in toolbar, but i assign hotkey on crashlytics and it pop up below(!) IDEA CE 13.1.4 screen.
For you guys using safari to download the plugin. Use some other browser that won automatically unzip the container.
Android studio requires you to install the zipped file, not the individual .jar:s
Edit:
Another option is to go to Safari -> Preferences and untick the auto-open option.
Thanks #m vai
Select "Plugins" on the right of the Settings Dialog. Click "Install plugin from diskā€¦" and choose the downloaded zip file.
Do not unzip file. Choose downloaded zip file.

Resources