Questions tagged [invocation]
187 questions
1
vote
0 answers
Certain Characters in Foreign Languages Cause Lambda Post Invocation Errors
When I query data from certain countries, namely Belarus, Bangladesh and Kazakhstan, I get this error:
[ERROR] [1679697735190] LAMBDA_RUNTIME Failed to post handler success response. Http response code: 413.
Traceback (most recent call last):
File…

cmcnphp
- 400
- 1
- 4
- 14
1
vote
0 answers
How to execute code in isolated environment
I'm creating dynamic expression invocation and need to have security mechanism for code execution.
The parameter of context below is visible to the "world", so someone who can write some piece of a script.
Simple expression:
context => "a" +…

Xeo
- 110
- 1
- 6
1
vote
1 answer
Moq invocation arguments changing in subsequent calls
In the following example I have a simple Service class which does something with it's input and a Processor which calls the Service.DoService() twice, passing the same InputParameters object, first x = 5, then x = 100;
The problem is that in the…

gyulak
- 11
- 4
1
vote
2 answers
Is registering / unregistering to a .NET event a constant time operation?
Initially, I had assumed yes, because I understood that the invocation list for a multi-cast delegate is implemented as a linked list, which supports constant time insertion and deletion. However, since multicast delegates are immutable, it seems…

Joel Lee
- 3,656
- 1
- 18
- 21
1
vote
2 answers
Java ordering of method invocation, within abstract data types?
What is the ordering of method invocation when you have an abstract class with method behaviour implemented and also when no behaviour is implemented?
Lets say my abstract class is called Abs and it has two subclasses, Sub1 and Sub2
In case 1, Abs…

James T
- 125
- 1
- 8
1
vote
0 answers
Debugger behaviour changes between vs2008 and vs2010
I'm struggling with the behavioural difference between the visual studio 2008, and 2010 debugger.
In 2008, with the debugger attached, the code below would not stop to show an unhandled exception at the property setter of I in object a.
(Menu Option…

Bart Krijnen
- 11
- 2
1
vote
1 answer
libpqxx v12 - dynamically bind vector-values to prepared statement (alternative to invocation)
I would like to use prepared statements to insert thousands of rows at once into my postgres database. The data to insert is stored in a vector of structs.
By reading the answers to How to prepare statements and bind parameters in Postgresql for C++…

timosmd
- 159
- 11
1
vote
1 answer
What is the proper way to return a JSON object to Alexa Smart Home or end AWS Lambda in NodeJS?
I have seen three ways to return a JSON object or end a Lambda function. My trigger is Smart Home Alexa.
I am using now is context.succeed(response_JSON);This one works for me. Even if this instructions is inside a nested function. The whole Lambda…

Gibo
- 21
- 3
1
vote
1 answer
How is this a valid Java method invocation?
I've just been reading Marko Rodriguez's excellent blog post about different types of databases. Whilst reading I noticed some syntax...
// put data
db.put('marko');
db.put(31);
db.put(true);
// get data
Iterator results = db.get();
Iterator…

chattsm
- 4,651
- 5
- 19
- 20
1
vote
1 answer
Mockito mockingDetails.getInvocations() question
What I am trying to do is to print out the number of times that a certain method was called using Mockito.
When I do the following:
int counter =
Mockito.mockingDetails(myDependency)
.getInvocations()
…

pleasehelpmeee
- 45
- 5
1
vote
1 answer
Blackberry File Invocation
Why this won't work on a device but it works on a bb simulator.
Do you have any suggestions to make it work on the device?
Invocation invocation = new Invocation("file:///SDCard/BlackBerry/music/song.mp3");
Registry reg =…

BurunduK
- 293
- 1
- 3
- 17
1
vote
1 answer
Is it possible to invoke python function with logical statement as parameter?
I have found a weird function invocation while reading models.py file in python requests library. I tried to find some explanations in python official documentation but without any successes, unfortunately. Do you possibly know why such a case is…

Denuil
- 35
- 1
- 4
1
vote
0 answers
Java why invocation of private method works
I wonder why this
public static void main (String[] args) throws java.lang.Exception
{
class Print {
public String name = "Timur";
private void writeObject() {
System.out.println(name);
}
}
class…

famer
- 469
- 1
- 5
- 14
1
vote
1 answer
How to force implicit invocation in Dialogflow (google actions)
I would like to know how to force dialogflow to use implicit invocation on my intents.
I have set up a custom domotic system (light, heating, coffee machine, etc..).
it's controlled by a raspberry pi with webhook for dialogflow and it works fine.…

Alex
- 23
- 6
1
vote
0 answers
Creating a parent reference to child object in JNI invocation API with C++
I'm rather new to JNI invocation API so I am still slightly confused by it. I have a Java library from which I would normally create a parent object reference to a child like this:
Cake mycake = CakeFactory.getchocolatecake();
Where…

Ddor
- 347
- 1
- 12