groovy.lang.MissingPropertyException: No such property: withSql for class: org.codehaus.griffon.runtime.builder.UberBuilder
at addressbook.AddressbookView$_run_closure1_closure2_closure7_closure8.doCall(AddressbookView.groovy:14)
at addressbook.AddressbookView$_run_closure1_closure2_closure7.doCall(AddressbookView.groovy:13)
at addressbook.AddressbookView$_run_closure1_closure2_closure7.doCall(AddressbookView.groovy)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeFactoryMethod(UberInterceptorMetaClass.groovy:96)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.this$3$invokeFactoryMethod(UberInterceptorMetaClass.groovy)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass$this$3$invokeFactoryMethod.callCurrent(Unknown Source)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeMethod(UberInterceptorMetaClass.groovy:140)
at addressbook.AddressbookView$_run_closure1_closure2.doCall(AddressbookView.groovy:12)
at addressbook.AddressbookView$_run_closure1_closure2.doCall(AddressbookView.groovy)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeFactoryMethod(UberInterceptorMetaClass.groovy:96)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.this$3$invokeFactoryMethod(UberInterceptorMetaClass.groovy)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass$this$3$invokeFactoryMethod.callCurrent(Unknown Source)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeMethod(UberInterceptorMetaClass.groovy:140)
at addressbook.AddressbookView$_run_closure1.doCall(AddressbookView.groovy:11)
at addressbook.AddressbookView$_run_closure1.doCall(AddressbookView.groovy)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeFactoryMethod(UberInterceptorMetaClass.groovy:96)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.this$3$invokeFactoryMethod(UberInterceptorMetaClass.groovy)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass$this$3$invokeFactoryMethod.callCurrent(Unknown Source)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeMethod(UberInterceptorMetaClass.groovy:167)
at addressbook.AddressbookView.run(AddressbookView.groovy:10)
at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeMethod(UberInterceptorMetaClass.groovy:151)
at org.codehaus.griffon.runtime.builder.UberBuilder.build(UberBuilder.groovy:155)
at org.codehaus.griffon.runtime.core.AbstractMVCGroup$1.run(AbstractMVCGroup.java:129)
The GSQL/Datasource plugins do not inject the withSqlmethod to Views by default, you must change the configuration (explained in the plugin's page). However I'd strongly recommend not to inject such method in a View as views are built inside the UI thread, making database calls inside this thread is really a bad idea.
Related
I am new to Android Development and I was doing this exercise where you create a basic Activity (Android 4.4 kitkat) and remove the TextView and add a ListView in a CoordinatorLayout and program the Floating action Button in such a way that Each time you click it, it adds current time date/month/year in the list. The IDE is not showing any syntax errors and everything seems fine also I am running the latest version of Android Studio (3.3.1) but when I run it on my onePlus (Android 8) the app is simply not opening (ABC has stopped -open app again), I've tried cleaning /rebuilding.
But however when I click on the bottom right button on my IDE where it says internal IDE error occurred and after clicking it it shows something Quite Overwhelming for me:
C:/Users/admin/AppData/Local/Android/Sdk/platforms/android-28/data/annotations.zip!/android/telephony/euicc/annotations.xml
org.xml.sax.SAXParseException; lineNumber: 22; columnNumber: 12; Content is not allowed in trailing section.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at com.intellij.codeInsight.BaseExternalAnnotationsManager.getDataFromFile(BaseExternalAnnotationsManager.java:158)
at com.intellij.codeInsight.BaseExternalAnnotationsManager.doCollect(BaseExternalAnnotationsManager.java:193)
at com.intellij.codeInsight.BaseExternalAnnotationsManager.collectExternalAnnotations(BaseExternalAnnotationsManager.java:126)
at com.intellij.codeInsight.BaseExternalAnnotationsManager.findExternalAnnotation(BaseExternalAnnotationsManager.java:88)
at com.intellij.codeInsight.AnnotationUtil.lambda$null$0(AnnotationUtil.java:103)
at com.intellij.util.containers.ConcurrentFactoryMap$3.create(ConcurrentFactoryMap.java:212)
at com.intellij.util.containers.ConcurrentFactoryMap.get(ConcurrentFactoryMap.java:59)
at com.intellij.codeInsight.AnnotationUtil.findNonCodeAnnotation(AnnotationUtil.java:121)
at com.intellij.codeInsight.AnnotationUtil.findAnnotation(AnnotationUtil.java:76)
at com.intellij.codeInsight.AnnotationUtil.findAnnotation(AnnotationUtil.java:55)
at com.intellij.codeInsight.AnnotationUtil.findAnnotation(AnnotationUtil.java:48)
at com.intellij.psi.impl.PsiImplUtil.isDeprecatedByAnnotation(PsiImplUtil.java:457)
at com.intellij.psi.impl.compiled.ClsClassImpl.isDeprecated(ClsClassImpl.java:315)
at com.intellij.codeInsight.lookup.impl.JavaElementLookupRenderer.isDeprecated(JavaElementLookupRenderer.java:72)
at com.intellij.codeInsight.lookup.impl.JavaElementLookupRenderer.isToStrikeout(JavaElementLookupRenderer.java:68)
at com.intellij.codeInsight.completion.JavaPsiClassReferenceElement.renderClassItem(JavaPsiClassReferenceElement.java:144)
at com.intellij.codeInsight.lookup.PsiTypeLookupItem.renderElement(PsiTypeLookupItem.java:256)
at com.intellij.codeInsight.lookup.LookupElementDecorator.renderElement(LookupElementDecorator.java:83)
at com.intellij.codeInsight.lookup.LookupElementDecorator.renderElement(LookupElementDecorator.java:83)
at com.intellij.codeInsight.lookup.impl.LookupImpl.renderItemApproximately(LookupImpl.java:458)
at com.intellij.codeInsight.lookup.impl.LookupImpl.addItem(LookupImpl.java:247)
at com.intellij.codeInsight.completion.CompletionProgressIndicator.addItemToLookup(CompletionProgressIndicator.java:438)
at com.intellij.codeInsight.completion.CompletionProgressIndicator.addItem(CompletionProgressIndicator.java:429)
at com.intellij.codeInsight.completion.AsyncCompletion$1.lambda$null$0(CompletionThreading.java:157)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1164)
at com.intellij.codeInsight.completion.AsyncCompletion.tryReadOrCancel(CompletionThreading.java:181)
at com.intellij.codeInsight.completion.AsyncCompletion$1.lambda$consume$1(CompletionThreading.java:157)
at com.intellij.codeInsight.completion.AsyncCompletion$1WeighItems.run(CompletionThreading.java:125)
at com.intellij.codeInsight.completion.AsyncCompletion.lambda$null$0(CompletionThreading.java:108)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:580)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
at com.intellij.codeInsight.completion.AsyncCompletion.lambda$startThread$1(CompletionThreading.java:104)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314)
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)
I'm developing a big java fx application with http communication, sockets etc.. The content of the messages update the GUI-elements. I am aware of the fact that I need to call Platform.runlater() whenever I want to update a javafx element from a normal thread. I am 99% sure, I have this everywhere. But the application is quite big and not everything is done by myself.
To give some more information, there is a TimerTask every 100ms which creates an Image from a byte-array. The call for imageView.setImage(image) is done in Platform.runlater().
However, I get the following error (using java 1.8.0.0_102):
2017-01-20T05:03:47,030 FATAL [JavaFX Application Thread] uncaughtException - Thread[JavaFX Application Thread,5,main]
java.lang.NullPointerException
at javafx.scene.Scene$ScenePulseListener.synchronizeSceneNodes(Unknown Source) ~[jfxrt.jar:?]
at javafx.scene.Scene$ScenePulseListener.pulse(Unknown Source) ~[jfxrt.jar:?]
at com.sun.javafx.tk.Toolkit.lambda$runPulse$30(Unknown Source) ~[jfxrt.jar:?]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_77]
at com.sun.javafx.tk.Toolkit.runPulse(Unknown Source) ~[jfxrt.jar:?]
at com.sun.javafx.tk.Toolkit.firePulse(Unknown Source) ~[jfxrt.jar:?]
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source) ~[jfxrt.jar:?]
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source) ~[jfxrt.jar:?]
at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$404(Unknown Source) ~[jfxrt.jar:?]
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source) ~[jfxrt.jar:?]
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) ~[jfxrt.jar:?]
at com.sun.glass.ui.win.WinApplication.lambda$null$148(Unknown Source) ~[jfxrt.jar:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_77]
Any suggestions how to find the source of this error? As I mentioned above I checked all threads that nothing fx related is called on an fx thread. What I am not sure, are you allowed to load an Image (a Java FX Image) on a non fx thread? I tested it in a small sample application and it gave no error..
Edit
I found this question: same error, but I tried to force the scene update with no luck.
Thanks for any ideas!
I'm facing the same problem!
I was adding an ImageView to a Button and add image path to that ImageView in FXML file using SceneBuilder. This was working fine when I run it through Eclipse IDE but not when run as jar file.
After removing the ImageView from the Button, it started to work fine even when run as jar.
But, now I'm stuck with the same problem in different scenario!
I'm using 3 FXML files to build up the entire window.
MainWindow (Border Pane) -- this contains a Menu bar and Tool bar added to the top position of the border pane.
CenterWindow (Anchor Pane)
ButtomWindow (Anchor Pane)
In the controller of the MainWindow I'm trying to add the CenterWindow and ButtomWindow which are in different fxml files.
But, NullPointerException occurs in the MainWindow Controller at the line where I'm trying to load the fxml file. It says Location is required in the exception.
I have extraced the jar file and checked, the fxml files are there inside the jar.
Can someone please help.
Package Structure:
com.example.app -- contains Main.java which has main() method
com.example.app.controller -- MainWindowController.java, CenterWindowController.java, ButtomWindowController.java
com.example.app.view -- MainWindow.fxml, CenterWindow.fxml, ButtomWindow
In Main.java I'm loading MainWindow.fxml which loads fine. Then in MainWindowController.java I'm trying to load CenterWindow.fxml & ButtomWindow which gives exception.
Exception log:
javafx.fxml.LoadException:
file:/C:/Users/a27490989/Documents/NetBeansProjects/AirbusDS/dist/AirbusDS.jar!/
ds/airbus/simulator/view/MainWindow.fxml
at javafx.fxml.FXMLLoader.constructLoadException(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.load(Unknown Source)
at ds.airbus.simulator.Main.start(Main.java:22)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$153(Unknown Source)
at com.sun.javafx.application.LauncherImpl$$Lambda$51/747183799.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$166(Unknown Source)
at com.sun.javafx.application.PlatformImpl$$Lambda$44/584634336.run(Unknown Source)
at com.sun.javafx.application.PlatformImpl.lambda$null$164(Unknown Source)
at com.sun.javafx.application.PlatformImpl$$Lambda$47/94326726.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$165(Unknown Source)
at com.sun.javafx.application.PlatformImpl$$Lambda$45/501263526.run(Unknown Source)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$141(Unknown Source)
at com.sun.glass.ui.win.WinApplication$$Lambda$37/96639997.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: Location is required.
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
at javafx.fxml.FXMLLoader.load(Unknown Source)
at ds.airbus.simulator.controller.MainWindowController.initOutputView(MainWindowController.java:214)
at ds.airbus.simulator.controller.MainWindowController.initialize(MainWindowController.java:204)
... 23 more
I was trying to load the fxml files using getClass().getResource(../view/Output.fxml") which was giving exception when run from jar.
Instead using ClassLoader.getSystemResource("com/example/app/view/Output.fxml")
or getClass().getResource("/com/example/app/view/Output.fxml")
will solve the problem.
My Xpages app on the server runs fine for everyone except one user. I have an Xpage that let's the user select from some drop downs and then does a partial refresh on a view container that subsets the view. Works great.
When he makes selections sometimes the partial refresh does not fire. Also, when he goes to the page two date values are already filled in (with June 4, 2014) when they should not be filled in.
I VNCed into his machine and looked at the Xpages error log. He has strange errors that I have never seen before.
I googled this to no avail.
Any Java experts that have some idea what this means.
Is there something stuck in his local cache that is causing this, that I can just delete?
Bryan
6/4/14 12:25 PM: Exception Thrown
java.net.SocketException: Software caused connection abort: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at com.ibm.ws.io.Stream.write(Unknown Source)
at com.ibm.ws.io.WriteStream.flushMyBuf(Unknown Source)
at com.ibm.ws.io.WriteStream.write(Unknown Source)
at com.ibm.ws.http.ResponseStream.writeChunk(Unknown Source)
at com.ibm.ws.http.ResponseStream.flushBuffer(Unknown Source)
at com.ibm.ws.http.ResponseStream.write(Unknown Source)
at com.ibm.ws.io.WriteStream.write(Unknown Source)
at com.ibm.ws.webcontainer.srt.SRTOutputStream.write(Unknown Source)
at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.writeOut(Unknown Source)
at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.write(Unknown Source)
at com.ibm.commons.util.io.ByteStreamCache.copyTo(Unknown Source)
at com.ibm.xsp.webapp.XspHttpServletResponse.commitResponse(Unknown Source)
at com.ibm.xsp.webapp.FacesServlet.service(Unknown Source)
at com.ibm.xsp.webapp.FacesServletEx.service(Unknown Source)
at com.ibm.xsp.webapp.DesignerFacesServlet.service(Unknown Source)
at com.ibm.designer.runtime.domino.adapter.ComponentModule.invokeServlet(Unknown Source)
at com.ibm.domino.xsp.module.nsf.NSFComponentModule.invokeServlet(Unknown Source)
at com.ibm.designer.runtime.domino.adapter.ComponentModule$AdapterInvoker.invokeServlet(Unknown Source)
at com.ibm.designer.runtime.domino.adapter.ComponentModule$ServletInvoker.doService(Unknown Source)
at com.ibm.designer.runtime.domino.adapter.ComponentModule.doService(Unknown Source)
at com.ibm.domino.xsp.module.nsf.NSFComponentModule.doService(Unknown Source)
at com.ibm.domino.xsp.module.nsf.NSFService.doServiceInternal(Unknown Source)
at com.ibm.domino.xsp.module.nsf.NSFService.access$0(Unknown Source)
at com.ibm.domino.xsp.module.nsf.NSFService$NsfServiceRequest.call(Unknown Source)
at com.ibm.domino.xsp.module.nsf.NSFService$NsfServiceRequest.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
at com.ibm.domino.xsp.module.nsf.NSFService$NsfServiceThread.run(Unknown Source)
console_WS0994_2014_06_04#12_24_25.log
[0710:0002-1924] 06/04/2014 12:24:25.52 PM DeskClientOpenInt> Calling CreateProgramRCP pszRCPCmdLine[/authenticate "=C:\Program Files\IBM\Notes\notes.ini"] bDeskProvisioningRestart [0]
[0710:0002-1924] 06/04/2014 12:24:25.52 PM DeskClientOpenInt> DESK_CHECKNOTES2ALIVE_TIMER started
[0710:0002-1924] 06/04/2014 12:24:25.52 PM DeskClientOpenInt> Executed CreateProgramRCP
[1438:0002-0550] 06/04/2014 12:24:29.67 PM InitGlobalProcessInfo> PID [5176]!= [0]
[0710:0002-1924] 06/04/2014 12:24:37 PM Connected to server KC1/Scoular
[1D24:0002-0588] 06/04/2014 12:24:57 PM Dynamic Client Configuration started
[1D24:0002-0588] 06/04/2014 12:24:57 PM Initializing Dynamic Client Configuration
[1D24:0002-0588] 06/04/2014 12:24:57 PM Dynamic Client Configuration updating policy information
[1D24:0002-0588] 06/04/2014 12:24:57 PM Dynamic Client Configuration: Applying policy bookmarks
[1D24:0002-0588] 06/04/2014 12:24:58 PM Dynamic Client Configuration updating location information
[1D24:0002-0588] 06/04/2014 12:24:58 PM Dynamic Client Configuration updating location information using policy
[1D24:0002-0588] 06/04/2014 12:24:58.01 PM DynConfig> Found $DPLocked field: $DPLocked on policy note. Copying to location doc
[1D24:0002-0588] 06/04/2014 12:24:58.01 PM DynConfig> Found $DPLocked field: $DPLockedUnstripped on policy note. Copying to location doc
[1D24:0002-0588] 06/04/2014 12:24:58 PM Dynamic Client Configuration shutdown
6/4/14 12:25 PM: Exception Thrown
java.net.SocketException: Software caused connection abort: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at com.ibm.ws.io.Stream.write(Unknown Source)
at com.ibm.ws.io.WriteStream.flushMyBuf(Unknown Source)
at com.ibm.ws.io.WriteStream.write(Unknown Source)
at com.ibm.ws.http.ResponseStream.writeChunk(Unknown Source)
at com.ibm.ws.http.ResponseStream.flushBuffer(Unknown Source)
at com.ibm.ws.http.ResponseStream.write(Unknown Source)
at com.ibm.ws.io.WriteStream.write(Unknown Source)
at com.ibm.ws.webcontainer.srt.SRTOutputStream.write(Unknown Source)
at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.writeOut(Unknown Source)
at com.ibm.wsspi.webcontainer.util.BufferedServletOutputStream.write(Unknown Source)
at com.ibm.commons.util.io.ByteStreamCache.copyTo(Unknown Source)
at com.ibm.xsp.webapp.XspHttpServletResponse.commitResponse(Unknown Source)
at com.ibm.xsp.webapp.FacesServlet.service(Unknown Source)
at com.ibm.xsp.webapp.FacesServletEx.service(Unknown Source)
at com.ibm.xsp.webapp.DesignerFacesServlet.service(Unknown Source)
at com.ibm.designer.runtime.domino.adapter.ComponentModule.invokeServlet(Unknown Source)
at com.ibm.domino.xsp.module.nsf.NSFComponentModule.invokeServlet(Unknown Source)
at com.ibm.designer.runtime.domino.adapter.ComponentModule$AdapterInvoker.invokeServlet(Unknown Source)
at com.ibm.designer.runtime.domino.adapter.ComponentModule$ServletInvoker.doService(Unknown Source)
at com.ibm.designer.runtime.domino.adapter.ComponentModule.doService(Unknown Source)
at com.ibm.domino.xsp.module.nsf.NSFComponentModule.doService(Unknown Source)
at com.ibm.domino.xsp.module.nsf.NSFService.doServiceInternal(Unknown Source)
at com.ibm.domino.xsp.module.nsf.NSFService.access$0(Unknown Source)
at com.ibm.domino.xsp.module.nsf.NSFService$NsfServiceRequest.call(Unknown Source)
at com.ibm.domino.xsp.module.nsf.NSFService$NsfServiceRequest.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
at com.ibm.domino.xsp.module.nsf.NSFService$NsfServiceThread.run(Unknown Source)
Is the XPiNC app set to run locally or on the server? It may have an impact. From that I'd check the settings with a user for whom it works, particularly ECL settings (unless those are enforced via a policy).
It looks like it's hitting an error when writing, using the socket. XPiNC adds a port number onto localhost. Is there a conflict with another application on the PC using the port? That could explain occasional issues and explain why it was only happening for one user. You should be able to use the XSPUrl class to find the port, if it's not anywhere else.
The other thing that springs to mind is checking access to temp folders where it serializes / deserializes page data, though I would expect that to result in consistent failing. XPages Portable Command Guide would probably tell you the default locations.
The date problem sounds very strange and isn't explained by any of the things I've mentioned so far, but it may be a separate issue.
I am not able to deploy my war file into tomcat server. I am ending up with the below exception.
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/BatchApp-1.0.0.M1]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.sun.faces.config.InitFacesContext.cleanupInitMaps(InitFacesContext.java:281)
at com.sun.faces.config.InitFacesContext.<init>(InitFacesContext.java:107)
at com.sun.faces.config.FacesInitializer.onStartup(FacesInitializer.java:115)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5280)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 11 more
May 11, 2013 5:28:05 PM org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive C:\AppDev\Tomcat7.0\webapps\BatchApp-1.0.0.M1.war
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/BatchApp-1.0.0.M1]]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I further debugged it and looks like at the below code #getInitContextServletContextMap() method in com.sun.faces.config.InitFacesContext I am ending up with null pointer being returned.
static Map getInitContextServletContextMap() {
ConcurrentHashMap initContextServletContext = null;
try {
Field initContextMap = FacesContext.class.getDeclaredField("initContextServletContext");
initContextMap.setAccessible(true);
initContextServletContext = (ConcurrentHashMap)initContextMap.get(null);
} catch (Exception e) {
if (LOGGER.isLoggable(Level.FINEST)) {
LOGGER.log(Level.FINEST, "Unable to get (init context, servlet context) map", e);
}
}
return initContextServletContext;
}
It is cleared that the server is looking for "initContextServletContext", but where to set this?
Please let me know how can I resolve this issue.
Had the exact same error. It was a dependency issue: I was using Oracle's implementation of JSF (2.2.1), but one of my Maven dependencies was pulling in Apache MyFaces.
What happened is that the code snippet that you show, which is from the Oracle impelementation, tries to access a static private field of FacesContext. But the classloader has loaded the MyFaces implementation of FacesContext, which doesn't have that field. Therefore barf.
Check your dependencies. I bet you will find that you've got two different versions or two different implementations of JSF.