Questions tagged [invocation]
187 questions
0
votes
3 answers
My javascript function in the code given below is getting called twice
The below code is a simple number guessing game.
The function guess() is getting called twice. I am at loss of logic why it's happening.
Number Guessing Game version 1.0
…

Sid
- 4,893
- 14
- 55
- 110
0
votes
1 answer
JSONObject cannot be converted to String by method invocation conversion
(newb alert)
I'm using Java-WebSocket and json-simple.
After resolving problems with putting to a JSONObject with this question How to avoid Eclipse warnings when using legacy code without generics?, I'm now trying to sendToAll obj but am getting…
user1382306
0
votes
1 answer
Groovy: strange error with dynamic method invocation
The following is a program that dynamically calls all the getXXX methods on an object of CLASS, where the CLASS-name gets passed via command-line. And it works just fine.
// Program: callAllMethods.groovy
// Invoke this program as: groovy…

Harry
- 3,684
- 6
- 39
- 48
0
votes
2 answers
Is it somehow possible to create a typeof-like function
I made a more accurate typeof-function and want to use it like the default typeof-operator. Currenty I call my typeOf()-function like every other function: typeOf("foo"), however is it possible to get the function arguments without defining them in…

yckart
- 32,460
- 9
- 122
- 129
0
votes
1 answer
How to mock a class which calls an invokation block?
I'm digging myself into TDD and startet using SenTestingKit along with OCMock. I'm using FMDB as a wrapper for my SQLite Database.
I can't get my head around how to mock the DatabaseQueue class, so it correctly invokes the invocation block with an…

Christoph Winkler
- 6,278
- 1
- 18
- 18
0
votes
1 answer
Wordpress + OpenX PHP invocation = headers already sent
We have a small Wordpress portal that uses local OpenX installation for its advertising needs. The WP theme was built using PHP invocation code for OpenX zones and here lies the problem. In one of the OpenX functions called by the invocation code is…
0
votes
2 answers
Several Interfaces for one InvocationHandler
Is it possible to define ONE invocationhandler (proxy) for SEVERAL objects with different interfaces ?
Because what this proxy does(all the checkings & etc.) on the objects are same (and they share a lock management table which I prefer to have it…

Arian
- 7,397
- 21
- 89
- 177
0
votes
1 answer
I want to invoke C# script in my aspx webpage, help me implement it
I want to invoke a C# code into my aspx webpage. Can someone please show me how to do this? C# code is very long, I saved it in a .cs file and put it into the web directory along with the web page files, but when I try calling it into my webpage,…
0
votes
3 answers
Custom Attribute invocation
I am trying with the Debugger to stop when a method attribute is invoked, but I am never seems to get to the break point.
Am I missing something here?
[SecurityImpl("test")]
public void test()
{
}
[AttributeUsage(AttributeTargets.All)]
public…

SexyMF
- 10,657
- 33
- 102
- 206
0
votes
1 answer
Application is halting when using MethodInvoker in custom timer
Background:
I need a high resolution timer for an embedded system solution, so I decide to use MicroTimer from The Code Project...
BTW, I've developed a Windows Forms application to test its efficiency in such applications and for avoiding…

Saeed Farid
- 3
- 1
-1
votes
6 answers
Problem with Method.invoke
I have a method that return a list of objects and I want to call it by the invoke method of the class Method. The only problem is that invoke method returns an Object and not a list

geeko
- 19
- 1
- 4
-1
votes
1 answer
Powershell - Automate website popup
I am currently working on an automation project.
Mainly everything is coded in powershell as the project involve AD, Exchange etc.
Last part involves integration to a website to fill a form. I have used document.getElementByID() and everything is…

MichaelC
- 11
- 3
-1
votes
1 answer
I want recursive constructor invocation - how do I get around the error?
I'm coding a fun assignment for a class I'm taking and its all about polymorphism and coding objects, etc... Basically, we are asked to code a "critter" object that fights other students critters.
How can I make it that so when a certain method is…
-1
votes
2 answers
What is wrong with my Method.invoke call?
I just created the following minimalistic testcase:
package testcase;
public class Main
{
public static void main( String[] args )
throws Throwable
{
if ( args.length == 0 )
Main.class.getMethod( "main",…

Steffen Heil
- 4,286
- 3
- 32
- 35
-1
votes
2 answers
Recursive constructor invocation error can't find solution
I get the recursive construct overflow invocation error at the four public tuna parts (parts=maybe a class or something else?). It worked on the tutorial but not for me and can't seem to see where
public class tuna {
private int hour;
…

user3752231
- 75
- 2
- 9