web flow don't recognize domainClass.list() - spring-webflow

When calling this function in a webflow step:
domainClass.findAllByIdInList(givenList)
I get a null pointer exception. When executing:
domainClass.list()
I get nothing. I tried to pass this code to the server and get the same exception. Why is this happening?

Related

PdfSearchTextExtractor - Object reference not set to an instance of an object

I'm receiving this error every time I copy, delete pages. Not sure what's causing this error. Any tips to find where the error is being thrown?

Why `functions.https.HttpsError` is not shown in the Firebase function logs?

I'm throwing an error from my callable Firebase function:
throw new functions.https.HttpsError(
'invalid-argument',
`Invalid token ${token} for file ${fileName}.`
);
I the logs I see only the following:
12:29:22.500 PM SQR-cancelAllotment Function execution took 1779 ms, finished with status code: 400
12:29:20.722 PM SQR-cancelAllotment Function execution started
So, code 400 is indicated without any error message. Why?
I wouldn’t like to duplicate the error message in a separate console.error.
Throwing an HttpsError is a signal to the client that the function didn't work as expected. It's not an indication that the function terminated with a crash (which would be logged). When you throw an HttpsError, if you want to see a message in the log, you should also make a call to console.error() (or whatever log level you want) in order for that to show up.
For throwing errors in Cloud Functions you could use the Stackdriver Error Reporting client libraries
Here you can find the documentation for setting up the error reporting ( you have some examples there,also)

How to find out which setup failed in Assert of `VerifyAll`?

I am writing the unit test for a method. I have properly configured all the setups. While debugging unit test it works and returns values as expected. But in assertion it still throws false.
Therefore, I am not able to understand why does VerifyAll throws false all the time? How to find out which setup failed the VerifyAll assert?
VerifyAll verifies that all your Setups were called. It sounds like you have a Setup that is not relevant to your test, hence your are getting the expected output, yet the VerifyAll fails because that Setup was never called.
When VerifyAll fails you will get an exception, and the reason is given there. For example, if I create an unused Setup in a test I get:
Moq.MockVerificationException : The following setups were not matched:
IMyClass m => m.MyMethod()

Error: Firebase (2.2.6) INTERNAL ASSERT FAILED: listen() called twice for same path/queryId

I am using Firebase JavaScript client library and getting an error "Error: Firebase (2.2.6) INTERNAL ASSERT FAILED: listen() called twice for same path/queryId"
Actually, I am attaching 'child_added' event listener to a database reference to read messages of user with id 1.
e.g. - user/messages/1
After some time I detach the listener by calling "ref.off()" on the same reference.
Now when I try to attach the same listener again on the same reference, I get following error:
"Error: Firebase (2.2.6) INTERNAL ASSERT FAILED: listen() called twice for same path/queryId.
Hc#https://cdn.firebase.com/js/client/2.2.6/firebase.js:35:1651
J#https://cdn.firebase.com/js/client/2.2.6/firebase.js:35:1622
h.xf#https://cdn.firebase.com/js/client/2.2.6/firebase.js:185:287
Kh/this.O<.Xe#https://cdn.firebase.com/js/client/2.2.6/firebase.js:201:344
uf#https://cdn.firebase.com/js/client/2.2.6/firebase.js:118:55
gf.prototype.Ob#https://cdn.firebase.com/js/client/2.2.6/firebase.js:115:34
Vh#https://cdn.firebase.com/js/client/2.2.6/firebase.js:207:301
Y.prototype.Eb#https://cdn.firebase.com/js/client/2.2.6/firebase.js:225:223"
Can somebody help me understand the reason for this error? Is the listener not getting detached or there is some other reason for the same?
remove .limitToLast(25) after firebaseRef

Trying to send a SignalR Group message fails with an exception

I was following the SignalR documentation on Github to message a group. I join just fine with:
Groups.Add(Context.ConnectionId, "foo");
But then when I try and send a message to all the users in that group with:
Clients.Group("foo").syncShortList(id);
I get an exception. I know there's nothing wrong with 'id'. The code will never continue after this line, so I set the debugger to catch all thrown exceptions, and found out that the second line throws the exception:
'Microsoft.AspNet.SignalR.Hubs.GroupProxy' does not contain a definition for 'syncShortList'
I know for sure that I'm listening for the event in javascript:
funnelHub.client.syncShortList = function (id) {
console.log("syncing");
console.log(id);
}
The event is never getting fired. Does anyone see where I'm going wrong with this? I'm running SignalR 1.0.1
As discussed in https://jabbr.net/#/rooms/signalr the error is a First Chance Runtime Binder exception that happens on the first invoke on the group dynamic object. In the end it's harmless.

Resources