Delphi Android SDK EPSON - Invoke error method not found
up vote
0
down vote
favorite
I am getting the following error EJNIFatal Exception : Method not found when implementing EPSON Printer SDK for TM M30 (Bluetooth)
com.epson.epos2.discovery.Discovery
Interface
unit com.epson.epos2.discovery.Discovery;
interface
uses
AndroidAPI.JNIBridge,
Androidapi.JNI.JavaTypes,
com.epson.epos2.discovery.DiscoveryListener,
com.epson.epos2.discovery.FilterOption,
Androidapi.JNI.GraphicsContentViewText,
com.epson.epos2.discovery.DeviceInfo;
type
JDiscovery = interface;
JDiscoveryClass = interface(JObjectClass)
['{D8B21BB2-D0C7-4654-AAFB-61B39334F3F1}']
function GetFILTER_NAME : Integer; cdecl; // A: $19
function GetFILTER_NONE : Integer; cdecl; // A: $19
function GetMODEL_ALL : Integer; cdecl; // A: $19
function GetPORTTYPE_ALL : Integer; cdecl; // A: $19
function GetPORTTYPE_BLUETOOTH : Integer; cdecl; // A: $19
function GetPORTTYPE_TCP : Integer; cdecl; // A: $19
function GetPORTTYPE_USB : Integer; cdecl; // A: $19
function GetTYPE_ALL : Integer; cdecl; // A: $19
function GetTYPE_CAT : Integer; cdecl; // A: $19
function GetTYPE_CCHANGER : Integer; cdecl; // A: $19
function GetTYPE_DISPLAY : Integer; cdecl; // A: $19
function GetTYPE_HYBRID_PRINTER : Integer; cdecl; // A: $19
function GetTYPE_KEYBOARD : Integer; cdecl; // A: $19
function GetTYPE_MSR : Integer; cdecl; // A: $19
function GetTYPE_OTHER_PERIPHERAL : Integer; cdecl; // A: $19
function GetTYPE_POS_KEYBOARD : Integer; cdecl; // A: $19
function GetTYPE_PRINTER : Integer; cdecl; // A: $19
function GetTYPE_SCANNER : Integer; cdecl; // A: $19
function GetTYPE_SERIAL : Integer; cdecl; // A: $19
function init : JDiscovery; cdecl; // ()V A: $1
procedure start(context : JContext; filterOption : JFilterOption; listener : JDiscoveryListener) ; cdecl;// (Landroid/content/Context;Lcom/epson/epos2/discovery/FilterOption;Lcom/epson/epos2/discovery/DiscoveryListener;)V A: $29
procedure stop ; cdecl; // ()V A: $29
property FILTER_NAME : Integer read GetFILTER_NAME; // I A: $19
property FILTER_NONE : Integer read GetFILTER_NONE; // I A: $19
property MODEL_ALL : Integer read GetMODEL_ALL; // I A: $19
property PORTTYPE_ALL : Integer read GetPORTTYPE_ALL; // I A: $19
property PORTTYPE_BLUETOOTH : Integer read GetPORTTYPE_BLUETOOTH; // I A: $19
property PORTTYPE_TCP : Integer read GetPORTTYPE_TCP; // I A: $19
property PORTTYPE_USB : Integer read GetPORTTYPE_USB; // I A: $19
property TYPE_ALL : Integer read GetTYPE_ALL; // I A: $19
property TYPE_CAT : Integer read GetTYPE_CAT; // I A: $19
property TYPE_CCHANGER : Integer read GetTYPE_CCHANGER; // I A: $19
property TYPE_DISPLAY : Integer read GetTYPE_DISPLAY; // I A: $19
property TYPE_HYBRID_PRINTER : Integer read GetTYPE_HYBRID_PRINTER; // I A: $19
property TYPE_KEYBOARD : Integer read GetTYPE_KEYBOARD; // I A: $19
property TYPE_MSR : Integer read GetTYPE_MSR; // I A: $19
property TYPE_OTHER_PERIPHERAL : Integer read GetTYPE_OTHER_PERIPHERAL; // I A: $19
property TYPE_POS_KEYBOARD : Integer read GetTYPE_POS_KEYBOARD; // I A: $19
property TYPE_PRINTER : Integer read GetTYPE_PRINTER; // I A: $19
property TYPE_SCANNER : Integer read GetTYPE_SCANNER; // I A: $19
property TYPE_SERIAL : Integer read GetTYPE_SERIAL; // I A: $19
end;
[JavaSignature('com/epson/epos2/discovery/Discovery')]
JDiscovery = interface(JObject)
['{1CA6140A-C36C-454F-81D9-81DD7B66281B}']
procedure start(context : JContext; filterOption : JFilterOption; listener : JDiscoveryListener) ; cdecl;// (Landroid/content/Context;Lcom/epson/epos2/discovery/FilterOption;Lcom/epson/epos2/discovery/DiscoveryListener;)V A: $29
procedure stop ; cdecl;
end;
TJDiscovery = class(TJavaGenericImport<JDiscoveryClass, JDiscovery>)
end;
My Code looks like this
procedure TForm1.Button1Click(Sender: TObject);
var
ldiscover : TJDiscovery;
ldis : JDiscovery;
begin
ldis := TJDiscovery.JavaClass.init; //<----- Error here
end;
Can someone help with why; Method not found? (is there something wrong with how delphi/android handles API's, Method not found issue is all over, but no solutions )
Using Tokyo 10.2

add a comment |
up vote
0
down vote
favorite
I am getting the following error EJNIFatal Exception : Method not found when implementing EPSON Printer SDK for TM M30 (Bluetooth)
com.epson.epos2.discovery.Discovery
Interface
unit com.epson.epos2.discovery.Discovery;
interface
uses
AndroidAPI.JNIBridge,
Androidapi.JNI.JavaTypes,
com.epson.epos2.discovery.DiscoveryListener,
com.epson.epos2.discovery.FilterOption,
Androidapi.JNI.GraphicsContentViewText,
com.epson.epos2.discovery.DeviceInfo;
type
JDiscovery = interface;
JDiscoveryClass = interface(JObjectClass)
['{D8B21BB2-D0C7-4654-AAFB-61B39334F3F1}']
function GetFILTER_NAME : Integer; cdecl; // A: $19
function GetFILTER_NONE : Integer; cdecl; // A: $19
function GetMODEL_ALL : Integer; cdecl; // A: $19
function GetPORTTYPE_ALL : Integer; cdecl; // A: $19
function GetPORTTYPE_BLUETOOTH : Integer; cdecl; // A: $19
function GetPORTTYPE_TCP : Integer; cdecl; // A: $19
function GetPORTTYPE_USB : Integer; cdecl; // A: $19
function GetTYPE_ALL : Integer; cdecl; // A: $19
function GetTYPE_CAT : Integer; cdecl; // A: $19
function GetTYPE_CCHANGER : Integer; cdecl; // A: $19
function GetTYPE_DISPLAY : Integer; cdecl; // A: $19
function GetTYPE_HYBRID_PRINTER : Integer; cdecl; // A: $19
function GetTYPE_KEYBOARD : Integer; cdecl; // A: $19
function GetTYPE_MSR : Integer; cdecl; // A: $19
function GetTYPE_OTHER_PERIPHERAL : Integer; cdecl; // A: $19
function GetTYPE_POS_KEYBOARD : Integer; cdecl; // A: $19
function GetTYPE_PRINTER : Integer; cdecl; // A: $19
function GetTYPE_SCANNER : Integer; cdecl; // A: $19
function GetTYPE_SERIAL : Integer; cdecl; // A: $19
function init : JDiscovery; cdecl; // ()V A: $1
procedure start(context : JContext; filterOption : JFilterOption; listener : JDiscoveryListener) ; cdecl;// (Landroid/content/Context;Lcom/epson/epos2/discovery/FilterOption;Lcom/epson/epos2/discovery/DiscoveryListener;)V A: $29
procedure stop ; cdecl; // ()V A: $29
property FILTER_NAME : Integer read GetFILTER_NAME; // I A: $19
property FILTER_NONE : Integer read GetFILTER_NONE; // I A: $19
property MODEL_ALL : Integer read GetMODEL_ALL; // I A: $19
property PORTTYPE_ALL : Integer read GetPORTTYPE_ALL; // I A: $19
property PORTTYPE_BLUETOOTH : Integer read GetPORTTYPE_BLUETOOTH; // I A: $19
property PORTTYPE_TCP : Integer read GetPORTTYPE_TCP; // I A: $19
property PORTTYPE_USB : Integer read GetPORTTYPE_USB; // I A: $19
property TYPE_ALL : Integer read GetTYPE_ALL; // I A: $19
property TYPE_CAT : Integer read GetTYPE_CAT; // I A: $19
property TYPE_CCHANGER : Integer read GetTYPE_CCHANGER; // I A: $19
property TYPE_DISPLAY : Integer read GetTYPE_DISPLAY; // I A: $19
property TYPE_HYBRID_PRINTER : Integer read GetTYPE_HYBRID_PRINTER; // I A: $19
property TYPE_KEYBOARD : Integer read GetTYPE_KEYBOARD; // I A: $19
property TYPE_MSR : Integer read GetTYPE_MSR; // I A: $19
property TYPE_OTHER_PERIPHERAL : Integer read GetTYPE_OTHER_PERIPHERAL; // I A: $19
property TYPE_POS_KEYBOARD : Integer read GetTYPE_POS_KEYBOARD; // I A: $19
property TYPE_PRINTER : Integer read GetTYPE_PRINTER; // I A: $19
property TYPE_SCANNER : Integer read GetTYPE_SCANNER; // I A: $19
property TYPE_SERIAL : Integer read GetTYPE_SERIAL; // I A: $19
end;
[JavaSignature('com/epson/epos2/discovery/Discovery')]
JDiscovery = interface(JObject)
['{1CA6140A-C36C-454F-81D9-81DD7B66281B}']
procedure start(context : JContext; filterOption : JFilterOption; listener : JDiscoveryListener) ; cdecl;// (Landroid/content/Context;Lcom/epson/epos2/discovery/FilterOption;Lcom/epson/epos2/discovery/DiscoveryListener;)V A: $29
procedure stop ; cdecl;
end;
TJDiscovery = class(TJavaGenericImport<JDiscoveryClass, JDiscovery>)
end;
My Code looks like this
procedure TForm1.Button1Click(Sender: TObject);
var
ldiscover : TJDiscovery;
ldis : JDiscovery;
begin
ldis := TJDiscovery.JavaClass.init; //<----- Error here
end;
Can someone help with why; Method not found? (is there something wrong with how delphi/android handles API's, Method not found issue is all over, but no solutions )
Using Tokyo 10.2

add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am getting the following error EJNIFatal Exception : Method not found when implementing EPSON Printer SDK for TM M30 (Bluetooth)
com.epson.epos2.discovery.Discovery
Interface
unit com.epson.epos2.discovery.Discovery;
interface
uses
AndroidAPI.JNIBridge,
Androidapi.JNI.JavaTypes,
com.epson.epos2.discovery.DiscoveryListener,
com.epson.epos2.discovery.FilterOption,
Androidapi.JNI.GraphicsContentViewText,
com.epson.epos2.discovery.DeviceInfo;
type
JDiscovery = interface;
JDiscoveryClass = interface(JObjectClass)
['{D8B21BB2-D0C7-4654-AAFB-61B39334F3F1}']
function GetFILTER_NAME : Integer; cdecl; // A: $19
function GetFILTER_NONE : Integer; cdecl; // A: $19
function GetMODEL_ALL : Integer; cdecl; // A: $19
function GetPORTTYPE_ALL : Integer; cdecl; // A: $19
function GetPORTTYPE_BLUETOOTH : Integer; cdecl; // A: $19
function GetPORTTYPE_TCP : Integer; cdecl; // A: $19
function GetPORTTYPE_USB : Integer; cdecl; // A: $19
function GetTYPE_ALL : Integer; cdecl; // A: $19
function GetTYPE_CAT : Integer; cdecl; // A: $19
function GetTYPE_CCHANGER : Integer; cdecl; // A: $19
function GetTYPE_DISPLAY : Integer; cdecl; // A: $19
function GetTYPE_HYBRID_PRINTER : Integer; cdecl; // A: $19
function GetTYPE_KEYBOARD : Integer; cdecl; // A: $19
function GetTYPE_MSR : Integer; cdecl; // A: $19
function GetTYPE_OTHER_PERIPHERAL : Integer; cdecl; // A: $19
function GetTYPE_POS_KEYBOARD : Integer; cdecl; // A: $19
function GetTYPE_PRINTER : Integer; cdecl; // A: $19
function GetTYPE_SCANNER : Integer; cdecl; // A: $19
function GetTYPE_SERIAL : Integer; cdecl; // A: $19
function init : JDiscovery; cdecl; // ()V A: $1
procedure start(context : JContext; filterOption : JFilterOption; listener : JDiscoveryListener) ; cdecl;// (Landroid/content/Context;Lcom/epson/epos2/discovery/FilterOption;Lcom/epson/epos2/discovery/DiscoveryListener;)V A: $29
procedure stop ; cdecl; // ()V A: $29
property FILTER_NAME : Integer read GetFILTER_NAME; // I A: $19
property FILTER_NONE : Integer read GetFILTER_NONE; // I A: $19
property MODEL_ALL : Integer read GetMODEL_ALL; // I A: $19
property PORTTYPE_ALL : Integer read GetPORTTYPE_ALL; // I A: $19
property PORTTYPE_BLUETOOTH : Integer read GetPORTTYPE_BLUETOOTH; // I A: $19
property PORTTYPE_TCP : Integer read GetPORTTYPE_TCP; // I A: $19
property PORTTYPE_USB : Integer read GetPORTTYPE_USB; // I A: $19
property TYPE_ALL : Integer read GetTYPE_ALL; // I A: $19
property TYPE_CAT : Integer read GetTYPE_CAT; // I A: $19
property TYPE_CCHANGER : Integer read GetTYPE_CCHANGER; // I A: $19
property TYPE_DISPLAY : Integer read GetTYPE_DISPLAY; // I A: $19
property TYPE_HYBRID_PRINTER : Integer read GetTYPE_HYBRID_PRINTER; // I A: $19
property TYPE_KEYBOARD : Integer read GetTYPE_KEYBOARD; // I A: $19
property TYPE_MSR : Integer read GetTYPE_MSR; // I A: $19
property TYPE_OTHER_PERIPHERAL : Integer read GetTYPE_OTHER_PERIPHERAL; // I A: $19
property TYPE_POS_KEYBOARD : Integer read GetTYPE_POS_KEYBOARD; // I A: $19
property TYPE_PRINTER : Integer read GetTYPE_PRINTER; // I A: $19
property TYPE_SCANNER : Integer read GetTYPE_SCANNER; // I A: $19
property TYPE_SERIAL : Integer read GetTYPE_SERIAL; // I A: $19
end;
[JavaSignature('com/epson/epos2/discovery/Discovery')]
JDiscovery = interface(JObject)
['{1CA6140A-C36C-454F-81D9-81DD7B66281B}']
procedure start(context : JContext; filterOption : JFilterOption; listener : JDiscoveryListener) ; cdecl;// (Landroid/content/Context;Lcom/epson/epos2/discovery/FilterOption;Lcom/epson/epos2/discovery/DiscoveryListener;)V A: $29
procedure stop ; cdecl;
end;
TJDiscovery = class(TJavaGenericImport<JDiscoveryClass, JDiscovery>)
end;
My Code looks like this
procedure TForm1.Button1Click(Sender: TObject);
var
ldiscover : TJDiscovery;
ldis : JDiscovery;
begin
ldis := TJDiscovery.JavaClass.init; //<----- Error here
end;
Can someone help with why; Method not found? (is there something wrong with how delphi/android handles API's, Method not found issue is all over, but no solutions )
Using Tokyo 10.2

I am getting the following error EJNIFatal Exception : Method not found when implementing EPSON Printer SDK for TM M30 (Bluetooth)
com.epson.epos2.discovery.Discovery
Interface
unit com.epson.epos2.discovery.Discovery;
interface
uses
AndroidAPI.JNIBridge,
Androidapi.JNI.JavaTypes,
com.epson.epos2.discovery.DiscoveryListener,
com.epson.epos2.discovery.FilterOption,
Androidapi.JNI.GraphicsContentViewText,
com.epson.epos2.discovery.DeviceInfo;
type
JDiscovery = interface;
JDiscoveryClass = interface(JObjectClass)
['{D8B21BB2-D0C7-4654-AAFB-61B39334F3F1}']
function GetFILTER_NAME : Integer; cdecl; // A: $19
function GetFILTER_NONE : Integer; cdecl; // A: $19
function GetMODEL_ALL : Integer; cdecl; // A: $19
function GetPORTTYPE_ALL : Integer; cdecl; // A: $19
function GetPORTTYPE_BLUETOOTH : Integer; cdecl; // A: $19
function GetPORTTYPE_TCP : Integer; cdecl; // A: $19
function GetPORTTYPE_USB : Integer; cdecl; // A: $19
function GetTYPE_ALL : Integer; cdecl; // A: $19
function GetTYPE_CAT : Integer; cdecl; // A: $19
function GetTYPE_CCHANGER : Integer; cdecl; // A: $19
function GetTYPE_DISPLAY : Integer; cdecl; // A: $19
function GetTYPE_HYBRID_PRINTER : Integer; cdecl; // A: $19
function GetTYPE_KEYBOARD : Integer; cdecl; // A: $19
function GetTYPE_MSR : Integer; cdecl; // A: $19
function GetTYPE_OTHER_PERIPHERAL : Integer; cdecl; // A: $19
function GetTYPE_POS_KEYBOARD : Integer; cdecl; // A: $19
function GetTYPE_PRINTER : Integer; cdecl; // A: $19
function GetTYPE_SCANNER : Integer; cdecl; // A: $19
function GetTYPE_SERIAL : Integer; cdecl; // A: $19
function init : JDiscovery; cdecl; // ()V A: $1
procedure start(context : JContext; filterOption : JFilterOption; listener : JDiscoveryListener) ; cdecl;// (Landroid/content/Context;Lcom/epson/epos2/discovery/FilterOption;Lcom/epson/epos2/discovery/DiscoveryListener;)V A: $29
procedure stop ; cdecl; // ()V A: $29
property FILTER_NAME : Integer read GetFILTER_NAME; // I A: $19
property FILTER_NONE : Integer read GetFILTER_NONE; // I A: $19
property MODEL_ALL : Integer read GetMODEL_ALL; // I A: $19
property PORTTYPE_ALL : Integer read GetPORTTYPE_ALL; // I A: $19
property PORTTYPE_BLUETOOTH : Integer read GetPORTTYPE_BLUETOOTH; // I A: $19
property PORTTYPE_TCP : Integer read GetPORTTYPE_TCP; // I A: $19
property PORTTYPE_USB : Integer read GetPORTTYPE_USB; // I A: $19
property TYPE_ALL : Integer read GetTYPE_ALL; // I A: $19
property TYPE_CAT : Integer read GetTYPE_CAT; // I A: $19
property TYPE_CCHANGER : Integer read GetTYPE_CCHANGER; // I A: $19
property TYPE_DISPLAY : Integer read GetTYPE_DISPLAY; // I A: $19
property TYPE_HYBRID_PRINTER : Integer read GetTYPE_HYBRID_PRINTER; // I A: $19
property TYPE_KEYBOARD : Integer read GetTYPE_KEYBOARD; // I A: $19
property TYPE_MSR : Integer read GetTYPE_MSR; // I A: $19
property TYPE_OTHER_PERIPHERAL : Integer read GetTYPE_OTHER_PERIPHERAL; // I A: $19
property TYPE_POS_KEYBOARD : Integer read GetTYPE_POS_KEYBOARD; // I A: $19
property TYPE_PRINTER : Integer read GetTYPE_PRINTER; // I A: $19
property TYPE_SCANNER : Integer read GetTYPE_SCANNER; // I A: $19
property TYPE_SERIAL : Integer read GetTYPE_SERIAL; // I A: $19
end;
[JavaSignature('com/epson/epos2/discovery/Discovery')]
JDiscovery = interface(JObject)
['{1CA6140A-C36C-454F-81D9-81DD7B66281B}']
procedure start(context : JContext; filterOption : JFilterOption; listener : JDiscoveryListener) ; cdecl;// (Landroid/content/Context;Lcom/epson/epos2/discovery/FilterOption;Lcom/epson/epos2/discovery/DiscoveryListener;)V A: $29
procedure stop ; cdecl;
end;
TJDiscovery = class(TJavaGenericImport<JDiscoveryClass, JDiscovery>)
end;
My Code looks like this
procedure TForm1.Button1Click(Sender: TObject);
var
ldiscover : TJDiscovery;
ldis : JDiscovery;
begin
ldis := TJDiscovery.JavaClass.init; //<----- Error here
end;
Can someone help with why; Method not found? (is there something wrong with how delphi/android handles API's, Method not found issue is all over, but no solutions )
Using Tokyo 10.2


asked 44 mins ago
Happy
1
1
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53371582%2fdelphi-android-sdk-epson-invoke-error-method-not-found%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown