Facing problem in JavaStoredProc being called from plsql pass JPublisher

I'm facing problems in calling java stored procedure from a plsql procedure.
1) I have a plsql types
create or replace type wwpro_api_portlet_instance
as object
portlet_inst_guid varchar2(60),
provider_id number(38),
portlet_id number(38),
ref_path varchar2(100)
create or replace type wwpro_api_portlet_instances
as table of wwpro_api_portlet_instance
2)I create java classes from JPublisher for these types as attached with this mail.
3) There is a sql procedure where I create a instance of wwpro_api_portlet_instances with values populated in it.
and then pass it to another procedure which is a CallSPec for the java class.
Call Spec
procedure export_data_internal
p_http_url in varchar2,
p_timeout in number,
p_service_id in varchar2,
p_proxy_host in varchar2,
p_proxy_port in number,
p_proxy_username in varchar2,
p_proxy_password in varchar2,
p_portal_version in varchar2,
p_encryption_key in varchar2,
p_message_lang in varchar2,
p_export_id in varchar2,
p_provider_id in varchar2,
p_debug_level in number,
p_portlet_instances in wwpro_api_portlet_instances
)as language java
name 'oracle.webdb.provider.web.ExportImportClient.exportData(
java.lang.String,
int,
java.lang.String,
java.lang.String,
int,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.Integer,
oracle.webdb.provider.web.PortletInstanceArray
Procedure calling Call Spec
procedure export_data
p_export_id in varchar2,
p_provider_id in number,
p_portlet_instances in wwpro_api_provider.portlet_instance_table
) is
begin
--calling Call Spec
export_data_internal
p_http_url => l_provider.http_url,
p_timeout => l_provider.timeout,
p_service_id => l_provider.service_id,
p_proxy_host => l_provider.dbtier_proxy_hostname,
p_proxy_port => l_provider.dbtier_proxy_portnumber,
p_proxy_username => l_proxy_info.username,
p_proxy_password => l_proxy_info.password,
p_portal_version => wwctx_api.get_product_version(),
p_encryption_key => wwpro_util.get_encryption_key(p_provider_id, TRUE),
p_message_lang => l_provider.language,
p_export_id => p_export_id,
p_provider_id => p_provider_id,
p_debug_level => wwpro_util.get_debug_level,
p_portlet_instances => l_portlet_instances <== Populated as I'm sure about it.
//this gets 'EXP :ORA-29532: Java call terminated by uncaught Java exception: java.sql.SQLExc
eption: Closed Connection'
end export_data;
4)Inside the Java class 'oracle.webdb.provider.web.ExportImportClient'.
public static void exportData
String url,
int timeout,
String serviceId,
String proxyHost,
int proxyPort,
String proxyUser,
String proxyPass,
String portalVersion,
String sharedKey,
String messageLocale,
String exportId,
String providerId,
Integer portalDebugLevel,
PortletInstanceArray instances
)throws Exception
oracle.webdb.provider.v2.adapter.soapV1.SOAPException
try
conn = DriverManager.getConnection("jdbc:default:connection:");
stmt = conn.createStatement();
stmt.execute ("INSERT INTO d VALUES ('into ExportImportClient.exportData ')");
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData url :: " + url +"')");
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances +"')");
// Prints this ==> FROM ExportImportClient.exportData instances:: oracle.webdb.provider.web.PortletInstanceArray@78e2087c
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData debugLevel:: " + portalDebugLevel +"')");
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances.length() +"')");
//This Operation is giving the problem as any operation performed on this is clsing the Connection and comming out.
//This has worked once but did not work after that, I tried this in the 10g as well as 901
conn.commit();
}catch(SQLException sqe){
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData sqe error :: " + sqe.getMessage() +"')");
conn.commit();
throw sqe;
catch(Exception e)
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getMessage() +"')");
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getClass() +"')");
conn.commit();
throw e;
Any reason what may be happening ? I have done the loadJava of the Jpublisher classes once in the database. After that I never made any changes to
them, I just modify and upload the oracle.webdb.provider.web.ExportImportClient class.
What Shold I try to over come this ?
Also
thanks
rahul

I'm facing problems in calling java stored procedure from a plsql procedure.
1) I have a plsql types
create or replace type wwpro_api_portlet_instance
as object
portlet_inst_guid varchar2(60),
provider_id number(38),
portlet_id number(38),
ref_path varchar2(100)
create or replace type wwpro_api_portlet_instances
as table of wwpro_api_portlet_instance
2)I create java classes from JPublisher for these types as attached with this mail.
3) There is a sql procedure where I create a instance of wwpro_api_portlet_instances with values populated in it.
and then pass it to another procedure which is a CallSPec for the java class.
Call Spec
procedure export_data_internal
p_http_url in varchar2,
p_timeout in number,
p_service_id in varchar2,
p_proxy_host in varchar2,
p_proxy_port in number,
p_proxy_username in varchar2,
p_proxy_password in varchar2,
p_portal_version in varchar2,
p_encryption_key in varchar2,
p_message_lang in varchar2,
p_export_id in varchar2,
p_provider_id in varchar2,
p_debug_level in number,
p_portlet_instances in wwpro_api_portlet_instances
)as language java
name 'oracle.webdb.provider.web.ExportImportClient.exportData(
java.lang.String,
int,
java.lang.String,
java.lang.String,
int,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.String,
java.lang.Integer,
oracle.webdb.provider.web.PortletInstanceArray
Procedure calling Call Spec
procedure export_data
p_export_id in varchar2,
p_provider_id in number,
p_portlet_instances in wwpro_api_provider.portlet_instance_table
) is
begin
--calling Call Spec
export_data_internal
p_http_url => l_provider.http_url,
p_timeout => l_provider.timeout,
p_service_id => l_provider.service_id,
p_proxy_host => l_provider.dbtier_proxy_hostname,
p_proxy_port => l_provider.dbtier_proxy_portnumber,
p_proxy_username => l_proxy_info.username,
p_proxy_password => l_proxy_info.password,
p_portal_version => wwctx_api.get_product_version(),
p_encryption_key => wwpro_util.get_encryption_key(p_provider_id, TRUE),
p_message_lang => l_provider.language,
p_export_id => p_export_id,
p_provider_id => p_provider_id,
p_debug_level => wwpro_util.get_debug_level,
p_portlet_instances => l_portlet_instances <== Populated as I'm sure about it.
//this gets 'EXP :ORA-29532: Java call terminated by uncaught Java exception: java.sql.SQLExc
eption: Closed Connection'
end export_data;
4)Inside the Java class 'oracle.webdb.provider.web.ExportImportClient'.
public static void exportData
String url,
int timeout,
String serviceId,
String proxyHost,
int proxyPort,
String proxyUser,
String proxyPass,
String portalVersion,
String sharedKey,
String messageLocale,
String exportId,
String providerId,
Integer portalDebugLevel,
PortletInstanceArray instances
)throws Exception
oracle.webdb.provider.v2.adapter.soapV1.SOAPException
try
conn = DriverManager.getConnection("jdbc:default:connection:");
stmt = conn.createStatement();
stmt.execute ("INSERT INTO d VALUES ('into ExportImportClient.exportData ')");
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData url :: " + url +"')");
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances +"')");
// Prints this ==> FROM ExportImportClient.exportData instances:: oracle.webdb.provider.web.PortletInstanceArray@78e2087c
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData debugLevel:: " + portalDebugLevel +"')");
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances.length() +"')");
//This Operation is giving the problem as any operation performed on this is clsing the Connection and comming out.
//This has worked once but did not work after that, I tried this in the 10g as well as 901
conn.commit();
}catch(SQLException sqe){
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData sqe error :: " + sqe.getMessage() +"')");
conn.commit();
throw sqe;
catch(Exception e)
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getMessage() +"')");
stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getClass() +"')");
conn.commit();
throw e;
Any reason what may be happening ? I have done the loadJava of the Jpublisher classes once in the database. After that I never made any changes to
them, I just modify and upload the oracle.webdb.provider.web.ExportImportClient class.
What Shold I try to over come this ?
Also
thanks
rahul

Similar Messages

  • We have created shared folder on multiple client machine in domain environment on different 2 OS like-XP,Vista, etc. from some day's When we facing problem when we are access from host name that shared folder is accessible but same time same computer when

    Hello All,
    we have created shared folder on multiple client machine in domain environment on different 2 OS like-XP,Vista, etc.
    from some day's When we facing problem when we are access from host name that shared folder is accessible but same time same computer when we are trying to access the share folder with IP it asking for credentials i have type again and again
    correct credential but unable to access that. If i re-share the folder then we are access it but when we are restarted the system then same problem is occurring.
    I have checked IP,DNS,Gateway and more each & everything is well.
    Pls suggest us.
    Pankaj Kumar

    Hi,
    According to your description, my understanding is that the same shared folder can be accessed by name, but can’t be accessed be IP address and asks for credentials.
    Please try to enable the option below on the device which has shared folder:
    Besides, check the Advanced Shring settings of shared folder and confrim that if there is any limitation settings.
    Best Regards,
    Eve Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How can i debug a rfc being called from sap

    hello Gurus,
    We made a RFC call from SAP r3 to sap grc nfe......we did not receive any data in sap grc .......we go to SM58 and there it gives
    the message "Name or password is incorrect (repeat logon)u201D.
    How can i find out where the data has stuck.
    Please help.
    BR
    Honey

    HI,
    please have a look at the link below..
    this may help u !!!
    [Re: how can i debug a rfc being called from .net connector (NCO) v2.0?;
    Best of Luck !!1
    Regards
    Ravi

  • Journal import fails when called from PLSQL

    Hi,
    When journal import is called from plsql code it is failing with error in 'gllacc() Function returning without value and no data found'.
    Same transaction is run succesfully from front end.
    I checked both gl_interface and gl_interface_control table but couldnt find the issue.
    Any info on this would be very helpful.
    Thanks
    Sandhya

    FOR l_rec IN (SELECT ledger_id,group_id from apps.gl_interface
    WHERE status='NEW'
    AND user_je_source_name='GIS_DATA_CONVERSION'
    GROUP BY ledger_id,group_id
    ORDER BY group_id
    LOOP
    apps.gl_journal_import_pkg.populate_interface_control (user_je_source_name => 'GIS_DATA_CONVERSION',
    GROUP_ID => l_rec.group_id,
    set_of_books_id => l_rec.ledger_id,
    interface_run_id =>vl_interface_id,
    table_name => 'GL_INTERFACE',
    processed_data_action=>'D'
    COMMIT;
    vl_request_id := apps.fnd_request.submit_request (application => 'SQLGL', -- application short name
    program => 'GLLEZLSRS', -- program short name
    description => NULL, -- program name
    start_time => NULL, -- start date
    sub_request => FALSE, -- sub-request
    argument1 => 2065, --Data access set id
    argument2 => 'GIS_DATA_CONVERSION', --Source
    argument3 => l_rec.ledger_id, -- set of books id
    argument4 => l_rec.group_id,
    argument5 => 'N', -- error to suspense flag
    argument6 => NULL, -- create summary flag
    argument7 => 'N' -- import desc flex flag
    COMMIT;
    IF ( vl_request_id = 0 ) THEN
    xxgis.gis_conv_util_pkg.debug_print_p(1,'FND_LOG','E001: Journal Import Submission Failed. ' || SQLERRM);
    retcode := 2;
    EXIT;
    ELSE
    xxgis.gis_conv_util_pkg.debug_print_p(1,'FND_LOG','P001: Submitted Journal Import Program for group id: ' || l_rec.group_id ||
    'and ledger :'||l_rec.ledger_id|| ', Request ID: ' || vl_request_id);
    END IF;
    END LOOP;

  • Debugging a program being called from a shell script

    hi All,
    i want to know how debug a C program being called from A Shell Script,
    my script looks like the following :
    ecReqProcMain $Cfg/ecReq.g $TotCnt 2>> $ErrFilei also have to pass some arguments to the script itsellft, which in trun going to pass it to the program,
    also in some cases i may be required to Pipe some data to the program, like the folowing
    cat DataFile | myProgramThanks ,

    You can also use ss_attach with the scheme that Anton
    suggested above. Instead of inserting "dbx" into your
    script, insert "ss_attach" into your script.
    It's also possible to change your script to something like this:
    cat DataFile | ${DEBUG} myProgram
    Then you can run your script like this:
    setenv DEBUG ss_attach
    ecReqProcMain $Cfg/ecReq.g $TotCnt 2>> $ErrFile
    --chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Naren - I don't see MB_POST_DOCUMENT being called from MIGO

    naren  -
    I put a breakpoint on the call statement here:
      CALL CUSTOMER-FUNCTION '001'
           TABLES  XMKPF = ZMKPF
                   XMSEG = ZMSEG
                  XVM07M = ZVM07M.
    But when I hit post in MIGO, it doesn't stop at this breakpoint.
    Are you sure MIGO goods receipt posting calls MB_POST_DOCUMENT ???
    If so, what am I doing wrong ?
    Shouldn't this breakpoint catch the flow if MB_POST_DOCUMENT is being called from MIGO ???
    Thanks again ...
    djh-

    Hi,
    Enter all the data in MIGO..
    Before pressing the save button..
    Put /h in the command field..
    When you go to the debugging mode..
    In the menu choose...SETTINGS -> UPDATE DEBUGGING..
    Now you will get a message..Update debugging is switched on..
    Press F8..
    The debugging will be opened in an other session..
    It will call all the update modules one by one..
    Continue till MB_POST_DOCUMENT FM is called..
    Update debugging is required for debugging UPDATE FMs.
    Thanks,
    Naren

  • Query To Locate Action Variable Being Called From

    we have this "M011 - 0" action variable that resets the value back to 0. i can't seems to find where this action variable is being called from the tidal. i looked at every places and failed to locate it. does anyone have a SQL query to find where this piece of info can be located?
    thank you,
    warren

    Try the Query that joins events and actions to find your event... then you can do a similar query to find jobs
    Marc
    SELECT dbo.tskmst.tskmst_name AS [Action Name], dbo.trgmst.trgmst_name AS [Event Name]
    FROM dbo.trgmst INNER JOIN
    dbo.trgtsk ON dbo.trgmst.trgmst_id = dbo.trgtsk.trgmst_id RIGHT OUTER JOIN
    dbo.tskmst ON dbo.trgtsk.tskmst_id = dbo.tskmst.tskmst_id
    WHERE (dbo.tskmst.tskmst_name LIKE '%M011%')

  • Api to call from plsql as clicking button "Configurator" from OM screen

    Hi,
    I need to call an API from Plsql Procedure which performs hte same action as clicking the configurator button in sales order screen.
    Can you please help me out in getting the api name and syntax.
    Thanks,
    Vijaya.

    If you are getting 404 page not found error, then there may a problem in deployment of servlet.
    Are you able to launch your servlet URL directly when requesting from the browser. Type your servlet URL in browser and check the response.
    If you want to have control when configurator finishes its action, you should specify the your servlet url in the return_url parameter in the initialize message used to launch configurator.
    HTH

  • Problem with Windows Form called from SAP

    I have a simple VB.NET windows form that I'm calling from a new menu click event from within SAP.
    The form loads, as expected, when the menu item is clicked, but the form will always load outside of the SAP window and thus cannot be seen by the user unless they see it in their toolbar.
    Has anyone run into this in the past?  I would normally use the UI-API, but this is a form from another program that can't use the UI-API.
    I've also tested this with simple test forms with another test project and get the same results.
    Any ideas?
    Thanks!

    This isn't merely a matter of viewing <i>new</i> windows.
    When the SBO window is active and in full screen mode and one switches, using the task bar, to another application, more often than not the other application's window won't be displayed, or will be displayed but partially. One has to deactivate and re-activate the second window to see it correctly.
    It's the whole bloody SBO graphical engine that's bogus, if you ask me. Talk about reforging <i>that</i> to a profit-oriented company...
    @Marc Roussel:
    BTW, System.Windows.Forms.Form#ShowDialog() is a blocking method, AFAIK. So the following statements won't be executed ere the "dialog"'s closed.
    But this doesn't change the problem. The Activate() and BringToFront() don't help resolve the matter, in my experience. Sometimes the new form will appear on Z-top, sometimes it won't. Or maybe the true problem is that the window <i>is</i> on top, but doesn't get painted.
    ADDENDUM:
    Come to think of it, it might be worth a try to programmatically iconify/deiconify the new window. Something along the lines of:
    Dim f as Form = ...
    f.Show()
    Application.DoEvents()
    f.WindowState = FormWindowState.Minimized
    Application.DoEvents()
    f.WindowState = FormWindowState.Normal
    Application.DoEvents()
    (all in System.Windows.Forms Namespace)

  • No std Inf.& warning messages while CAT2 being called from custom Zprogram

    Hi,
    We have built a custom z program that will be called CAT2 transaction using batch data processing(BDC).
    CAT2 being called  by CALL TRANSACTION ' USING bdcdata  MODE 'N'.
    The idea was that facilitate users  to choose multiple employees at a time and  go to directly CATS time entry screen.  No dialog call.   When we call CAT2 by running zprogram,  std.cat program warnings & information messages getting suppressed.
    Seeking your ideas is there any way we can run zprgm with out suppressing warning & information messages in std. program.
    Regards
    Prav

    Hi,
    We have built a custom z program that will be called CAT2 transaction using batch data processing(BDC).
    CAT2 being called  by CALL TRANSACTION ' USING bdcdata  MODE 'N'.
    The idea was that facilitate users  to choose multiple employees at a time and  go to directly CATS time entry screen.  No dialog call.   When we call CAT2 by running zprogram,  std.cat program warnings & information messages getting suppressed.
    Seeking your ideas is there any way we can run zprgm with out suppressing warning & information messages in std. program.
    Regards
    Prav

  • I am facing problem to get text file from application sever

    Hi This is lokesh.
    Actually my requirement is to craete sales orders by getting file from other server.for that i have used shell script to connect that server.Ok i am connecting to that different server(not sap server) successfully.
    But my problem is getting text file from application SERVER.
    That different server people will send the file name as 'DDHHMMSS' (Days,Hours,Minutes,Seconds).
    Just suppose if they will send today means that file name will come as 20103025. and with in half an hour if they again send that file file means that file name as '20110025'.
    like that file name is always varies.So how can i read that type of text files from the application server.
    and one more thing that is there chance to read morethan one text file from application server.
    Pls guide me if u know the solution.PLs this requirement is urgent.
    Regards,
    Lokeshgoud

    Hi..,
    <b>Just execute this program ... this is for the files received in JUST 3 MINS...</b>
    change it according to your requirement !!
    data time type sy-uzeit value '100000'. <i>"<<----start time</i>
    data file(8) type c value '20'.
    do 180 times. <i>" <<----- for 3 minutes</i>
    add sy-index to time.
    concatenate file time into file.
    write / file.
    OPEN DATASET FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF SY-SUBRC EQ 0.
    PERFORM READ_DATASET.
    ENDIF.
    file = '20'.
    time = '100000'.
    ENDDO.
    <b>form read_dataset.
    read the file here with the file name <b>FILE</b>.
    endform.</b>
    regards,
    sai ramesh

  • Java method call from c passing string more info

    I am trying to call a java method from c passing a String as an argument.
    my C code is as follows.
    //Initalise jstring and class (to recieve String)
    jstring textp;
    jclass texts = (*env)->GetObjectClass(env, obj);
    jmethodID text = (*env)->GetMethodID(env, texts, "texture", "([Ljava/lang/String;)V");
    //Create a new jstring from the char* texturePath (in textures)
    //call the java method with the jstring
    textp = (*env)->NewStringUTF(env,ret.textures->texturePath);
    (*env)->CallVoidMethod(env, obj, text,textp);
    //java code
    // texture which recieves a string
    public void texture(String texturePath){
    The error I get is as follows:
    SIGSEGV 11 segmentation violation
    si_signo [11]: SEGV
    si_errno [0]:
    si_code [1]: SEGV_MAPERR [addr: 0xc]
    stackpointer=FFBED790
    "Screen Updater" (TID:0x4f9060, sys_thread_t:0x4f8f98, state:CW, thread_t: t@11, threadID:0xf2d31d78, stack_bottom:0xf2d32000, stack_size:0x20000) prio=4
    [1] java.lang.Object.wait(Object.java:424)
    [2] sun.awt.ScreenUpdater.nextEntry(ScreenUpdater.java:78)
    [3] sun.awt.ScreenUpdater.run(ScreenUpdater.java:98)
    "AWT-Motif" (TID:0x40be50, sys_thread_t:0x40bd88, state:R, thread_t: t@10, threadID:0xf2d71d78, stack_bottom:0xf2d72000, stack_size:0x20000) prio=5
    [1] sun.awt.motif.MToolkit.run(Native Method)
    [2] java.lang.Thread.run(Thread.java:479)
    "SunToolkit.PostEventQueue-0" (TID:0x431950, sys_thread_t:0x431888, state:CW, thread_t: t@9, threadID:0xf2e71d78, stack_bottom:0xf2e72000, stack_size:0x20000) prio=5
    [1] java.lang.Object.wait(Object.java:424)
    [2] sun.awt.PostEventQueue.run(SunToolkit.java:407)
    "AWT-EventQueue-0" (TID:0x430ea8, sys_thread_t:0x430de0, state:CW, thread_t: t@8, threadID:0xf3071d78, stack_bottom:0xf3072000, stack_size:0x20000) prio=6
    [1] java.lang.Object.wait(Object.java:424)
    [2] java.awt.EventQueue.getNextEvent(EventQueue.java:212)
    [3] java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:100)
    [4] java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:91)
    [5] java.awt.EventDispatchThread.run(EventDispatchThread.java:83)
    Exiting Thread (sys_thread_t:0xff343db0) : no stack
    "Finalizer" (TID:0x154e98, sys_thread_t:0x154dd0, state:CW, thread_t: t@6, threadID:0xfe391d78, stack_bottom:0xfe392000, stack_size:0x20000) prio=8
    [1] java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:146)
    [2] java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:168)
    [3] java.lang.ref.Finalizer$FinalizerWorker$FinalizerThread.run(Finalizer.java:124)
    "Reference Handler" (TID:0x1506a0, sys_thread_t:0x1505d8, state:CW, thread_t: t@5, threadID:0xfe3c1d78, stack_bottom:0xfe3c2000, stack_size:0x20000) prio=10
    [1] java.lang.Object.wait(Object.java:424)
    [2] java.lang.ref.Reference$ReferenceHandler.run(Reference.java:130)
    "Signal dispatcher" (TID:0x13d180, sys_thread_t:0x13d0b8, state:MW, thread_t: t@4, threadID:0xfe3f1d78, stack_bottom:0xfe3f2000, stack_size:0x20000) prio=10
    "main" (TID:0x38918, sys_thread_t:0x38850, state:R, thread_t: t@1, threadID:0x25228, stack_bottom:0xffbf0000, stack_size:0x800000) prio=5 *current thread*
    [1] loader.Callbacks.nativeMethod(Native Method)
    [2] loader.Callbacks.main(Callbacks.java:184)
    [3] graphics.GR_MakeTrack.init(GR_MakeTrack.java:60)
    [4] graphics.GR_MakeTrack.main2(GR_MakeTrack.java:49)
    [5] graphics.GR_MakeTrack.main(GR_MakeTrack.java:41)
    [6] control.GE_main.GE_main1(GE_main.java:87)
    [7] control.GE_main.main(GE_main.java:66)
    gmake: *** [run] Abort (core dumped)

    I am trying to call a java method from c passing a
    String as an argument.
    my C code is as follows.
    //Initalise jstring and class (to recieve String)
    jstring textp;
    jclass texts = (*env)->GetObjectClass(env, obj);
    jmethodID text = (*env)->GetMethodID(env, texts,
    "texture", "([Ljava/lang/String;)V");
    Hi Pete,
    your problem is that the method texture you are trying to find does not exist. If you look carefully at your declaration of the method signature in the GetMethodID call you will see "([Ljava/lang/String;)V" which is trying to find a method that accepts a String array as its parameter. Remove the [ from the method signature and it should work ok. You might want to test text (jmethodID) for NULL or 0 before trying to call it as well.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Problem with sqlplus when called from forms

    Dear friends,
    I have the following problem, we are using forms 10g and database 10g,we are using client_host command to call sqlplus from form and the query which is being run by sqlplus is supposed to take an input from the client and return results. there is no problem in that. but the problem is the sqlplus window opens only in minimized mode and the users wants it open in maximized mode by default.
    this is the code i am using to do this
    pat:='sqlplusw -s'||:global.text||'@i:\sqls\codewise.sql'
    client_host(pat);
    please help me
    prawin

    I'm not sure allowing end users access to a sqlplus session is such a good idea. A savvy user having a bad hair day and becoming disgruntled could wreak havoc on your database if he/she has the right permissions. Besides, I've heard rumors that Forms is really good at accepting user input, querying the database, and displaying the results :P

  • Accessing an IFRAME tag after page being called from Servlet

    Hi there, can anyone help me please.
    I have two JSP pages, JSP1a and JSP2. When I call JSP1a from my browser, it runs some alert messages and then calls JSP2, which does a check on my database and then returns control to JSP1a and reloads the page. This all works fine.
    I am now trying to integrate these two pages into my main app, but I get a problem. I am now calling JSP1a, from a controlling Java Servlet (my app is based around a Model 2 architecture) which fires fine, but the reference to the line
    "window.frames.hidFrame.location.href=jsp2.jsp"
    doesnt seem to work. "hidFrame" is an IFRAME in the body tag of my JSP1a page.
    Can anyone help ? why does this line not fire, when the page has been loaded from a Java Servlet ? but it fires fine when I load the page directly ? and what is the solution to get around this problem please.
    Thanks
    Robert
    JSP1a.jsp
    <HTML>
    <HEAD>
    <SCRIPT language="JavaScript" type="text/javascript">
         function checkFunction(){
              var seconds = new Date();
              alert("inside function 1c ");     
              window.frames.hidFrame.location.href = "jsp2.jsp";
         function retMessage(){
              alert("inside return function");
              window.location.reload(true);
    </SCRIPT>
    </HEAD>
    <BODY onload="setTimeout('checkFunction()',5000);">
    <p>this is JSP1a</p>
    <SCRIPT language="JavaScript">
    alert("inside main body");
    </SCRIPT>
    <IFRAME frameborder="0" id="hidFrame" style="display:none"></iframe>
    </BODY>
    </HTML>
    JSP2.jsp
    <%@ page import="java.util.*" %>
    <jsp:useBean id="dbBean" scope="application" class="myApp.DbBean"/>
    <HTML>
    <!-- JSP2.JSP -->
    <%
    boolean flag = false;
    int i=1;
    flag = dbBean.checkForUpdates();
    System.out.println("flag = " + flag);
    //if(flag == false) {
    if (i == 1){
    %>
         <BODY onload="parent.retMessage()">
    <%} else {%>
         <BODY onload="parent.setTimeout('checkFunction()', 5000)">
    <%}%>
    </BODY>
    </HTML>

    its ok, I have found the problem. Someone recommended to me to change the IFRAME tag to make it visible just while I was debugging and low-and-behold there was a 404 error message being displayed which I had no idea about. It couldnt find my JSP2.jsp page. Because I am calling JSP1a from a servlet now, I needed to add a full path to my reference so that the servlet would know where to look. I did this and it works ok. I know its probably not best practice to hard code the full path to JSP2.jsp, I guess I should go back to the servlet and call JSP2 from there ?
    Regards
    Robert

  • Can I block my landline from being called from Sky...

    As I'am having harassment problems from kids calling me from Skype blackmailing

    You can choose to block a contact which prevents them from calling, sending chats or seeing the customer’s status. You can also report abuse to Skype which helps us stop spammers in the early stages of their activity.
    Here is the link on "How do I block or report a contact in Skype for Windows desktop?"
    https://support.skype.com/en/faq/FA10488/how-do-i-​block-or-report-a-contact-in-skype-for-windows-des​...
    To take further action against the person harassing, you needs to provide us with:
    •       a screenshot of the incident - instructions on how to take a screenshot are available here: https://support.skype.com/faq/FA10865
    •       the harasser's Skype name
    •       any additional information user may have about the contact.
    •       Based on the information that user sends us, we will try to identify the abuser and take any appropriate measures.
    You can send an email to [email protected] .
    If one of my replies has adequately addressed your issue, please click on the “Accept as Solution” button. If you found a post useful then please "Give Kudos" at the bottom of my post, so that this information can benefit others.

Maybe you are looking for