Error while calling java using pl/sql
hi..
i would like to load and call simple java into oracle database. this is my simple java code.
public class SimpleJava {
public void main(String[] args) {
System.out.println("Here we are");
then, i created .class file and ready to be loaded into oracle database using loadjava utility. i already loaded it successfully into a database. but, when i use pl/sql to call it in SQl*Plus, i got this error.... can anyone help me to solve this problem?
SQL> create or replace procedure call_simplejava
2 as language java
3 name 'SimpleJava.showMessage()';
4 /
Procedure created.
SQL> set serveroutput on;
SQL> call dbms_java.set_output(50);
Call completed.
SQL> execute call_simplejava;
java.lang.NoSuchMethodException: No applicable method found
at
oracle.aurora.util.JRIExtensions.getMaximallySpecificMethod(JRIExtensions.java:4
33)
at
oracle.aurora.util.JRIExtensions.getMaximallySpecificMethod(JRIExtensions.java:4
75)
BEGIN call_simplejava; END;
ERROR at line 1:
ORA-29531: no method showMessage in class SimpleJava
ORA-06512: at "GISDB.CALL_SIMPLEJAVA", line 1
ORA-06512: at line 1
Hi,
public class SimpleJava {
public void main(String[] args) {
System.out.println("Here we are");
then, i created .class file and ready to be loaded into oracle database using loadjava utility. i already loaded it successfully into a database. but, when i use pl/sql to call it in SQl*Plus, i got this error.... can anyone help me to solve this problem?Did you run the SimpleJava in your ED or on command prompt??
I created the same class file but when I said
java SimpleJava
It threw the following error
java.lang.NoSuchMethodException: No applicable method found
So modify your code
as
public class SimpleJava {
public static void main(String[] args) {
System.out.println("Here we are");
}Twinkle
Similar Messages
-
Error while calling java in sql
hi..
i would like to load and call simple java into oracle database. this is my simple java code.
public class SimpleJava {
public void main(String[] args) {
System.out.println("Here we are");
then, i created .class file and ready to be loaded into oracle database using loadjava utility. i already loaded it successfully into a database. but, when i use pl/sql to call it in SQl*Plus, i got this error.... can anyone help me to solve this problem?
SQL> create or replace procedure call_simplejava
2 as language java
3 name 'SimpleJava.showMessage()';
4 /
Procedure created.
SQL> set serveroutput on;
SQL> call dbms_java.set_output(50);
Call completed.
SQL> execute call_simplejava;
java.lang.NoSuchMethodException: No applicable method found
at
oracle.aurora.util.JRIExtensions.getMaximallySpecificMethod(JRIExtensions.java:4
33)
at
oracle.aurora.util.JRIExtensions.getMaximallySpecificMethod(JRIExtensions.java:4
75)
BEGIN call_simplejava; END;
ERROR at line 1:
ORA-29531: no method showMessage in class SimpleJava
ORA-06512: at "GISDB.CALL_SIMPLEJAVA", line 1
ORA-06512: at line 1The first solution is to not do that in java in the first place.
DDL should be in script files which are applied to oracle outside of java.
Other than I believe there are some existing stored procedures in Oracle that take DDL strings and process them. Your user has to have permission of course. You can track them down via the documentation. -
Error while calling java program from ABAP
Hi Experts,
We are trying for RFC inbound scenario.
We followed the below blog
/people/gregor.wolf3/blog/2004/08/26/setup-and-test-sap-java-connector-outbound-connection
We are working with SAP JCO 3.0.2
We are getting the error : 'STFC_CONNECTION' could not be found in the server repository.
After I run the Java server program if I execute the RFC destination directly from SM 59 it is showing successful messages.
If I stop the java program then this RFC is failing. Based on this we concluded that RFC to Java connection is working fine.
But as mentioned in blog if we call the RFC Destination from ABAP program it is giving the below error,
'STFC_CONNECTION' could not be found in the server repository.
If we test the RFC destination using RFC_TRUSTED_CHECK standard FM we are getting the below error.
'RFCPING' could not be found in the server repository.
We create the RFC destination of Type : TCP/IP as exactly mention in the blog.
Please help us in resolving this issue.
Thanks
PrincePabi,
Using the RFC connection,we can establish a link between Java and SAP.
Afterwards,hope we can call Java program from ABAP.
Below is the sample piece of code to establish RFC connection(link) between Java and SAP.
DATA: REQUTEXT LIKE SY-LISEL,
RESPTEXT LIKE SY-LISEL,
ECHOTEXT LIKE SY-LISEL.
DATA: RFCDEST like rfcdes-rfcdest VALUE 'NONE'.
DATA: RFC_MESS(128).
REQUTEXT = 'HELLO WORLD'.
RFCDEST = 'JCOSERVER01'. "corresponds to the destination name defined in the SM59
CALL FUNCTION 'STFC_CONNECTION'
DESTINATION RFCDEST
EXPORTING
REQUTEXT = REQUTEXT
IMPORTING
RESPTEXT = RESPTEXT
ECHOTEXT = ECHOTEXT
EXCEPTIONS
SYSTEM_FAILURE = 1 MESSAGE RFC_MESS
COMMUNICATION_FAILURE = 2 MESSAGE RFC_MESS.
IF SY-SUBRC NE 0.
WRITE: / 'Call STFC_CONNECTION SY-SUBRC = ', SY-SUBRC.
WRITE: / RFC_MESS.
ENDIF.
Regards,
Sree -
Error while calling badi using class cl_exithandler with getInstance
hi experts...we are using SAP ECC 6.0 version
I have created BADI Def and Implementation using se18 and se19 with some interface methods..
Problem:
I'm writing a report to call that using class CL_EXITHANDLER but it shows an Exception..
" Exception condition "DATA_INCONS_IN_EXIT_MANAGEM" raised."
Report example:
DATA: CL_EXIT TYPE REF TO CL_EXITHANDLER,
IF_USER_INSTANCE TYPE REF TO ZIF_EX_USER_MAILID1.
CALL METHOD cl_exithandler=>get_instance
EXPORTING
EXIT_NAME = 'ZBADI_USERMAIL_DEF'
* NULL_INSTANCE_ACCEPTED = SEEX_FALSE
* IMPORTING
* ACT_IMP_EXISTING =
CHANGING
instance = IF_USER_INSTANCE
* EXCEPTIONS
* NO_REFERENCE = 1
* NO_INTERFACE_REFERENCE = 2
* NO_EXIT_INTERFACE = 3
* CLASS_NOT_IMPLEMENT_INTERFACE = 4
* SINGLE_EXIT_MULTIPLY_ACTIVE = 5
* CAST_ERROR = 6
* EXIT_NOT_EXISTING = 7
* DATA_INCONS_IN_EXIT_MANAGEM = 8
* others = 9
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
so i found that all EXITs are in the Table " SXS_ATTR"
but what i have created BADI has not exist in that Table so that it gets an Exception(while i'm debugging found this)
so kindly tel me whats problem my BADI "ZBADI_USERMAIL_DEF" not maintained that Database table
but in Implentation class its working fine..yes i have created badi in Enhancement spot so regarding what u told i'm using GET BADI and CALL BADI
DATA:W_HANDLE TYPE REF TO ZBADI_USERMAIL_DEF.
GET BADI W_HANDLE.
CALL BADI w_handle->get_user_mailid
EXPORTING
uname = UNAME
changing
mailid = W_EMAIL
WRITE: / 'UNAME:',UNAME.
WRITE: / 'EMAIL ID',W_EMAIL.
CALL BADI w_handle->get_user_address_data
EXPORTING
uname = UNAME
changing
addrdata = W_ADDRDATA
IF W_ADDRDATA IS NOT INITIAL.
WRITE: / W_ADDRDATA-BNAME,W_ADDRDATA-NAME1,W_ADDRDATA-NAME2,W_ADDRDATA-TELPR,W_ADDRDATA-TELNR,W_ADDRDATA-TEL01.
ENDIF.
but here BADI are not called
Interface implementation class methods not executed so kindly tel me whats problem here.
Thanks in Advance
sivakumar -
Getting Error while Calling Java File from oblixpppcatalog.lst file
Hi,
We are trying to configure userservcenter_workflowCreateProfile in oblixpppcatalog.lst file to call a java class that returns an xml file as below
<?xml version="1.0" encoding="UTF-8"?>
<ObEventParams
xmlns="http://www.oblix.com/">
<ObParamList name="ObRequest">
<ObParam name="sn">
<ObValue>Smith</ObValue>
</ObParam>
</ObParamList>
</ObEventParams>
But when we try to run this code by clicking on "Create User Identity" we are getting "An error in Pre/Post Processing of the Page has Occured" or Some times we get "Parse error in XML document sent by event handler to identity server".
Can some please shed some light on this issue?
Thanks,
GaneshHi Ganesh,
That event xml looks rather incomplete - I would expect it to contain information about the workflow, and workflow step etc. For example, I have a Create User workflow that generates Event XML beginning:
<?xml version="1.0" encoding="utf-8"?>
<ObEventParams
xmlns="http://www.oblix.com/">
<ObParamList
name="WfInstance">
<ObParam
name="obwfinstanceid">
<ObValue>f92cab82ee4b43ccba42869bb2928d0c</ObValue>
</ObParam>
<ObParam
name="obworkflowdn">
<ObValue>obworkflowid=060efe6966674e54be63383290d81e63,obcontainerId=workflowDefinitions,o=Oblix,dc=example,dc=com</ObValue>
</ObParam>
<ObParam
name="obworkflowname">
<ObValue>Create User</ObValue>
etc etc...
You could look at the Event XML that is sent to the plugin from your workflow to a file by reading STDIN and dumping it to a file. There is an example of this in Note 843570.1 (happens to be for a password change event, but it should work for any ppp exec event). Then your code could change the Event XML as required, but keeping the basic structure of the data that is sent to it.
Regards,
Colin -
Error while installing Java using jrockit on my Linux box
I am trying to install java 1.6 using jrockit software in my 64-bit linux box, but I am getting errors:
-bash-4.1$ ./jrockit-jdk1.6.0_45-R28.2.7-4.1.0-linux-x64.bin
Extracting 0%....................................................................................................100%
[JRockit] ERROR: The JVM has crashed. Writing crash information to /tmp/file06vBOV/jrockit.17485.dump.
===== BEGIN DUMP =============================================================
JRockit dump produced after 0 days, 00:00:07 on Wed Apr 17 01:33:22 2013
* If you see this dump, please go to *
* http://download.oracle.com/docs/cd/E15289_01/go2troubleshooting.html *
* for troubleshooting information. *
Additional information is available in:
/tmp/file06vBOV/jrockit.17485.dump
No snapshot file (core dump) will be created because core dumps have been
disabled. To enable core dumping, try "ulimit -c unlimited"
before starting JRockit again.
Error Message: Unhandled native exception [85]
Signal info : si_signo=4, si_code=2 si_addr=0x30c5814be0
Version : Oracle JRockit(R) R28.2.7-7-155314-1.6.0_45-20130329-0641-linux-x86_64
CPU : Intel SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 Intel64
Number CPUs : 4
Tot Phys Mem : 16399638528 (15639 MB)
OS version : Red Hat Enterprise Linux Server release 6.2 (Santiago)
Linux version 2.6.39-100.5.1.el6uek.x86_64 ([email protected]) (gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) ) #1 SMP Tue Mar 6 20:26:00 EST 2012 (x86_64)
Hypervisor : Xen v3.4
Thread System: Linux NPTL
LibC release : 2.12-stable
Java locking : Lazy unlocking enabled (class banning) (transfer banning)
State : JVM is running
Command Line : -Djava.io.tmpdir=/tmp -Dbea.installer.launcher.home=/slot/ems8308/oracle/endeca3.0/endeca-server -Xmx256m -Dsun.java.command=com.bea.plateng.wizard.WizardController -mode=gui -Dsun.java.launcher=SUN_STANDARD com.bea.plateng.wizard.WizardController -mode=gui
Repository :
java.home : /tmp/file06vBOV/jre160_45
j.class.path : .:installer.jar:customtasks.jar:bids.jar:3rdparty.jar:jsr173_api.jar:wlw-plaf.jar:comdev.jar:wizard.jar:com.bea.cie.oui_1.1.0.0.jar:com.bea.core.xml.xmlbeans_2.2.0.0.jar
j.lib.path : /usr/java/packages/lib/amd64:/tmp/file06vBOV/jre160_45/lib/amd64/jrockit:/tmp/file06vBOV/jre160_45/lib/amd64:/tmp/file06vBOV/jre160_45/../lib/amd64
JAVA_HOME : <not set>
JAVAOPTIONS: <not set>
LD_LIBRARY_PATH: /tmp/file06vBOV/jre160_45/lib/amd64/jrockit:/tmp/file06vBOV/jre160_45/lib/amd64:/tmp/file06vBOV/jre160_45/../lib/amd64
LD_ASSUME_KERNEL: <not set>
LD_PRELOAD : <not set>
StackOverFlow: 0 StackOverFlowErrors have occured
OutOfMemory : 0 OutOfMemoryErrors have occured
C Heap : Good; no memory allocations have failed
GC Strategy : Mode: throughput, with strategy: genparpar (basic strategy: genparpar)
GC Status : OC is not running. Last finished OC was OC#0.
: YC is not running. Last finished YC was YC#0.
YC History : Ran 0 YCs since last OC.
Heap : 0xf0000000 - 0xf4000000 (Size: 64 MB)
Compaction : (no compaction area)
Allocation : TLA-min: 2048, TLA-preferred: 32768 TLA-waste limit: 2048
NurseryList : 0xf0000000 - 0xf2000000
KeepArea : 0xf17fffe8 - 0xf2000000
KA Markers : [ 0xf0fffff0, 0xf17fffe8 , 0xf2000000 ]
Forbidden A : (none)
Previous KA : (none)
Previous FA : (none)
CompRefs : References are compressed, with heap base 0x0 and shift 0.
Registers (from ThreadContext: 0x7fdf142e34c0:
rax = 0000000000000001 rcx = 0000000017bee3ff
rdx = 00000000bfebfbff rbx = 00007fdf10d7eb20
rsp = 00007fdf142e3928 rbp = 00007fdf142e3a70
rsi = 0000000000000000 rdi = 0000000000000058
r8 = 0000000000000000 r9 = 0000000000000000
r10 = 00007fdf142e38a0 r11 = 00007fdf10d7eb20
r12 = 00007fdf142e3a98 r13 = 00007fdf10e049b0
r14 = 0000000000000000 r15 = 0000000000000000
cs = 0000000000000033 fs = 0000000000000000
gs = 0000000000000000
rip = 00000030c5814be0 flags = 0000000000010202
Loaded modules:
(* denotes the module where the exception occured)
0000000000400000-00000000004128c3 /tmp/file06vBOV/jre160_45/bin/java
00007fff26fff000-00007fff26fffa7c /tmp/file06vBOV/jre160_45/bin/java
00000030c6400000-00000030c6401fef /lib64/libdl.so.2
00000030c6800000-00000030c6816b37 /lib64/libpthread.so.0
00000030c6000000-00000030c6196c1f /lib64/libc.so.6
00000030c5800000-00000030c581f13f */lib64/ld-linux-x86-64.so.2
00007fdf18b70000-00007fdf18e780e3 /tmp/file06vBOV/jre160_45/lib/amd64/jrockit/libjvm.so
00007fdf1894e000-00007fdf1896d21b /tmp/file06vBOV/jre160_45/lib/amd64/libjrosal.so
00007fdf18741000-00007fdf1874d553 /tmp/file06vBOV/jre160_45/lib/amd64/libjrutil.so
00000030c6c00000-00000030c6c824e7 /lib64/libm.so.6
00000030c7400000-00000030c740680b /lib64/librt.so.1
00007fdf17c30000-00007fdf17c3c483 /tmp/file06vBOV/jre160_45/lib/amd64/libjfr.so
00007fdf1718e000-00007fdf1719a317 /tmp/file06vBOV/jre160_45/lib/amd64/libverify.so
00007fdf1705f000-00007fdf17087283 /tmp/file06vBOV/jre160_45/lib/amd64/libjava.so
00000030d8600000-00000030d8615ceb /lib64/libnsl.so.1
00007fdf16ed4000-00007fdf16eda5bf /tmp/file06vBOV/jre160_45/lib/amd64/native_threads/libhpi.so
00007fdf16673000-00007fdf16680c03 /tmp/file06vBOV/jre160_45/lib/amd64/libzip.so
00007fdf16055000-00007fdf160e7683 /tmp/file06vBOV/jre160_45/lib/amd64/libawt.so
00007fdf15f07000-00007fdf15f4828b /tmp/file06vBOV/jre160_45/lib/amd64/xawt/libmawt.so
00000030c9400000-00000030c9410d8b /usr/lib64/libXext.so.6
00000030c8400000-00000030c8538423 /usr/lib64/libX11.so.6
00000030d5400000-00000030d5404dbb /usr/lib64/libXtst.so.6
00000030cac00000-00000030cac0e243 /usr/lib64/libXi.so.6
00000030c8c00000-00000030c8c1a123 /usr/lib64/libxcb.so.1
00000030c8800000-00000030c8801dd3 /usr/lib64/libXau.so.6
00007fdf15c14000-00007fdf15ca7fcf /tmp/file06vBOV/jre160_45/lib/amd64/libfontmanager.so
00007fdf159bb000-00007fdf159cdca7 /tmp/file06vBOV/jre160_45/lib/amd64/libnet.so
00007fdf149b3000-00007fdf149b99a3 /tmp/file06vBOV/jre160_45/lib/amd64/libnio.so
00007fdf147ac000-00007fdf147b1f9b /tmp/file06vBOV/jre160_45/lib/amd64/liborii.so
00000030cb800000-00000030cb808d13 /usr/lib64/libXcursor.so.1
00000030ca800000-00000030ca808cfb /usr/lib64/libXrender.so.1
00000030cbc00000-00000030cbc0497b /usr/lib64/libXfixes.so.3
00007fdeb2015000-00007fdeb206084b /tmp/file06vBOV/jre160_45/lib/amd64/libcmm.so
00007fdeb0e44000-00007fdeb0e55d5b /tmp/file06vBOV/libjni.so
Stack:
(* marks the word pointed to by the stack pointer)
00007fdf142e3928: 00000030c580aad8* 0000000000000000 0000000000000000 00007fdf00000005
00007fdf142e3948: 0000000000000000 00007fdf00000001 00007fdf10e049b0 0000000000000000
00007fdf142e3968: 00007fdf00000000 0000000000000000 0000000000000058 0000000000000004
00007fdf142e3988: 00007fdf10e04d08 0000000000000013 00007fdf142e3a40 00007fdf0000000a
00007fdf142e39a8: 00000001142e3aa0 00007fdf146d6b18 00007fdf15c15ff1 00007fdf142e3a30
00007fdf142e39c8: 00000030c6078edf 00007fdf160585c8 00007fdf10d744e0 00007fdf146d6b18
Code:
(* marks the word pointed to by the instruction pointer)
00000030c5814b80: 8b48ffff8c0ae820 0f0824548b482404 244c280f10244428 246cdb40246cdb20
00000030c5814ba0: 241c8b48dc894830 001f0fc330c48348 75000020c3c13d83 000001b8db894925
00000030c5814bc0: 01b8db894ca20f00 000000c1f7000000 9d0589d8f7027510 517800f8830020c3
00000030c5814be0: 008025047ffdc564* 250c7ffdc5640000 7ffdc564000000a0 c564000000c02514
00000030c5814c00: 000000e0251c7ffd 010025247ffdc564 252c7ffdc5640000 7ffdc56400000120
00000030c5814c20: c564000001402534 00000160253c7ffd 8025047f0f6664c3 0c7f0f6664000000
Last optimized methods:
No methods optimized.
Thread:
"AWT-EventQueue-0" id=17 idx=0x4c tid=17508 lastJavaFrame=0x7fdf142e3b88
Stack 0: start=0x7fdf142a4000, end=0x7fdf142e6000, guards=0x7fdf142a9000 (ok), forbidden=0x7fdf142a7000
Thread Stack Trace:
at dlx86_64_save_sse+48()@0x30c5814be0
at dlfixup+223()@0x30c580df40
-- Java stack --
at sun/font/X11TextRenderer.doDrawGlyphList(JJLsun/java2d/pipe/Region;Lsun/font/GlyphList;)V(Native Method)
at sun/font/X11TextRenderer.drawGlyphList(X11TextRenderer.java:62)
at sun/java2d/pipe/GlyphListPipe.drawString(GlyphListPipe.java:54)
at sun/java2d/SunGraphics2D.drawString(SunGraphics2D.java:2772)
at sun/swing/SwingUtilities2.drawString(SwingUtilities2.java:510)
at sun/swing/SwingUtilities2.drawStringUnderlineCharAt(SwingUtilities2.java:531)
at javax/swing/plaf/basic/BasicGraphicsUtils.drawStringUnderlineCharAt(BasicGraphicsUtils.java:229)
at workshop/core/plaf/JbButtonUI.paintText(JbButtonUI.java:676)
at workshop/core/plaf/JbButtonUI.paint(JbButtonUI.java:600)
at javax/swing/plaf/ComponentUI.update(ComponentUI.java:143)
at javax/swing/JComponent.paintComponent(JComponent.java:760)
at javax/swing/JComponent.paint(JComponent.java:1037)
at javax/swing/JComponent.paintChildren(JComponent.java:870)
at javax/swing/JComponent.paint(JComponent.java:1046)
at javax/swing/JComponent.paintChildren(JComponent.java:870)
at javax/swing/JComponent.paint(JComponent.java:1046)
at javax/swing/JComponent.paintChildren(JComponent.java:870)
at javax/swing/JComponent.paint(JComponent.java:1046)
at javax/swing/JComponent.paintChildren(JComponent.java:870)
at javax/swing/JComponent.paint(JComponent.java:1046)
at javax/swing/JLayeredPane.paint(JLayeredPane.java:567)
at javax/swing/JComponent.paintChildren(JComponent.java:870)
at javax/swing/JComponent.paint(JComponent.java:1046)
at javax/swing/JComponent.paintToOffscreen(JComponent.java:5132)
at javax/swing/BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:278)
at javax/swing/RepaintManager.paint(RepaintManager.java:1257)
at javax/swing/JComponent._paintImmediately(JComponent.java:5080)
at javax/swing/JComponent.paintImmediately(JComponent.java:4890)
at javax/swing/RepaintManager$3.run(RepaintManager.java:814)
at javax/swing/RepaintManager$3.run(RepaintManager.java:802)
at jrockit/vm/AccessController.doPrivileged(AccessController.java:232)
at java/security/AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at javax/swing/RepaintManager.paintDirtyRegions(RepaintManager.java:802)
at javax/swing/RepaintManager.paintDirtyRegions(RepaintManager.java:745)
at javax/swing/RepaintManager.prePaintDirtyRegions(RepaintManager.java:725)
at javax/swing/RepaintManager.access$1000(RepaintManager.java:46)
at javax/swing/RepaintManager$ProcessingRunnable.run(RepaintManager.java:1668)
at java/awt/event/InvocationEvent.dispatch(InvocationEvent.java:209)
at java/awt/EventQueue.dispatchEventImpl(EventQueue.java:672)
at java/awt/EventQueue.access$400(EventQueue.java:81)
at java/awt/EventQueue$2.run(EventQueue.java:633)
at java/awt/EventQueue$2.run(EventQueue.java:631)
at jrockit/vm/AccessController.doPrivileged(AccessController.java:232)
at java/security/AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java/awt/EventQueue.dispatchEvent(EventQueue.java:642)
at java/awt/EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java/awt/EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java/awt/EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java/awt/EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java/awt/EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java/awt/EventDispatchThread.run(EventDispatchThread.java:122)
at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
-- end of trace
Memory usage report:
Total mapped 3004488KB (reserved=2700572KB)
- Java heap 262144KB (reserved=196608KB)
- GC tables 8780KB
- Thread stacks 13212KB (#threads=20)
- Compiled code 1048576KB (used=2746KB)
- Internal 1352KB
- OS 174888KB
- Other 1477872KB
- Classblocks 1024KB (malloced=946KB #2264)
Not tracing sites.
- Java class data 15616KB (malloced=15591KB #10424 in 2264 classes)
Not tracing sites.
- Native memory tracking 1024KB (malloced=174KB #10)
Not tracing sites.
Set the env variable TRACE_ALLOC_SITES=1 or use the print_memusage switch
trace_alloc_sites=true to enable alloc site tracing.
* If you see this dump, please go to *
* http://download.oracle.com/docs/cd/E15289_01/go2troubleshooting.html *
* for troubleshooting information. *
===== END DUMP ===============================================================
** Error during execution, error code = 134.
Please help me how to solve this issue.I suggest trying to install a different version to confirm the error. Do you have SELinux enabled? It can cause weird errors. You can check the syslog /var/adm/messages to see if there were any SELinux errors.
The following is known to work:
Oracle Linux with jrockit
Oracle Linux with jrockit -
'sort key too long error' while trying to use dynamic sql
Hi All,
I have been trying to generate an interactive report using a dynamically generated SQL query.. for this I have
1) Created a application process that returns the dynamically generated SELECT statement
2) Create a process in the page which creates a collection based on the SELECT statement returned by the application process
3) An interactive report that selects ALL (SELECT * ....) from that particular collection.
On implementing I am getting the 'ORA-01467: sort key too long' error.
On checking this out online I realized that one has to change the Block size of the database to get past this error, but in order to do that I would have to re-create the database, create a backup of the data and then re enter them into the new database which would be a nightmare.
I would like to know if there is any work around to this....
CODE IN THE APPLICATION PROCESS
DECLARE
q VARCHAR2(1000);
BEGIN
IF :P124_COUNTRY - :P124_WORK_GROUP - :P124_PRODUCT - :P124_ROLE = 1 THEN
q:= 'SELECT VISA_COUNTRY AS "Country", ROUND(((COUNT(VISA_ID)/(SELECT COUNT(ROW_ID) FROM PSA_RESOURCE_MANAGER WHERE ACTIVE_FLAG = ''Y''))*100),2) || ''%'' AS "Travel Readiness %" FROM PSA_VISA_INFO WHERE ACTIVE_FLAG = ''Y'' AND VISA_ACTIVE_FLAG = ''Y'' GROUP BY VISA_COUNTRY';
END IF;
return q;
END;
CODE IN THE PROCESS THAT CREATES THE COLLECTION:
APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY_B(
p_collection_name => 'TRAVRED_TEST',
p_query => 'application_process=set_query' );
CODE IN THE INTERACTIVE REPORT:
Select *
From apex_collections
Where collection_name = 'TRAVRED_TEST';
I also tried selecting just 'c001, c002' etc which gave me a 'no data found' output. The query work fine when I ran it in the SQL Workshop
Please help!
Thanks in advance :)Hey Ben,
I am getting the same error when I used the following code in the app process....
DECLARE
q VARCHAR2(32767);
BEGIN
IF :P124_COUNTRY - :P124_WORK_GROUP - :P124_PRODUCT - :P124_ROLE = 1 THEN
q:= 'SELECT visa_country,
COUNT(visa_id) visa_count
FROM psa_visa_info
WHERE active_flag = 'Y'
AND visa_active_flag = 'Y'
GROUP BY visa_country),
row_id_count AS
(SELECT /*+ MATERIALIZE */
COUNT(ROW_ID) row_count
FROM PSA_RESOURCE_MANAGER
WHERE ACTIVE_FLAG = 'Y')
SELECT visa_country,
ROUND(visa_count/(SELECT row_count FROM row_id_count)*100,2) travel_readiness FROM PSA_VISA_INFO WHERE ACTIVE_FLAG = ''Y'' AND VISA_ACTIVE_FLAG = ''Y'' GROUP BY VISA_COUNTRY';
END IF;
return q;
END;
Thanks -
Error while calling Java Web Dynpro
Dear Experts,
We have succecfully implemeneted our java stack but when i click on Web dynpro link i receieve following error on my browser, please help me. Thanks.
The error is:
java.lang.StringIndexOutOfBoundsException: String index out of range: 21
at java.lang.String.substring(String.java:1441)
at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.fillStaticTemplateContext(HtmlClient.java:516)
at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendResponse(HtmlClient.java:1213)
at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.retrieveData(HtmlClient.java:252)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRetrieveData(WindowPhaseModel.java:595)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:156)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)Dear ganga,
we haven't done any development yet, we only install the java stack and access webdynpro through web but when i try to click the link of webdynpro it gives me the error which i mentioned in my message. Furthermore, visual administrator and config tool are working fine even when i access web services menu through browser it shows me the info without any error. Please guide me and help me to solve this problem.
thanks,
basis team -
Error while calling stored procedure from Java
Hi Guys,
How are you everybody? I hope everything is goin fine on your side. I have one issue in PL/SQL while calling below stored procedures from Java.
Problem Description: We have a stored procedure PROCEDURE BULK_INSERTS (
V_SESSION_ID_TAB IN T_SESSION_ID_TAB_TYPE,
V_SERVICE_TYPE_TAB IN T_SERVICE_TYPE_TAB_TYPE,
V_SERVICE_LOCATION_TAB IN T_SERVICE_LOCATION_TAB_TYPE,
V_SERVICE_CALL_NAME_TAB IN T_SERVICE_CALL_NAME_TAB_TYPE,
V_SERVICE_CALL_START_TIME_TAB IN T_SERVICE_CALL_ST_TAB_TYPE,
V_SERVICE_CALL_END_TIME_TAB IN T_SERVICE_CALL_ET_TAB_TYPE,
V_SERVICE_CALL_DURATION_TAB IN T_SERVICE_CALL_DUR_TAB_TYPE,
V_STATUS_TAB IN T_STATUS_TAB_TYPE,
V_NOTES_TAB IN T_NOTES_TAB_TYPE
) and we are getting ora errors while calling this stored procedure from java.
All tab types are declared locally, at package level.
Here is error which occur while calling this sp:
{call BULK_PKG.BULK_INSERTS(?,?,?,?,?,?,?,?,?)}
And the parameter types we are using are:
SESSION_ID - NUM_TAB_TYPE
SERVICE_TYPE - VAR_TAB_TYPE
SERVICE_LOCATION - VAR_TAB_TYPE
SERVICE_CALL_NAME - VAR_TAB_TYPE
SERVICE_CALL_START_TIME - DATE_TIME_TAB_TYPE
SERVICE_CALL_END_TIME - DATE_TIME_TAB_TYPE
SERVICE_CALL_DURATION - NUM_TAB_TYPE
STATUS - VAR_TAB_TYPE
NOTES - VAR_TAB_TYPE
And the Exception stack trace is:
ERROR (com.att.retail.r2d2.persistence.dao.ExternalServiceCallDAO.saveExternalServiceCallInfo(ExternalServi
ceCallDAO.java:143)@ExecuteThread: '252' for queue: 'weblogic.kernel.Default') {Error attempting to save collected ESC data}
java.sql.SQLException: ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'BULK_INSERTS'
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'BULK_INSERTS'
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'BULK_INSERTS'
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'BULK_INSERTS'
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'BULK_INSERTS'
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'BULK_INSERTS'
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'BULK_INSERTS'
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'BULK_INSERTS'
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'BULK_INSERTS'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:944)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3482)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3856)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1373)
at weblogic.jdbc.wrapper.PreparedStatement.execute(PreparedStatement.java:98)
at com.att.retail.r2d2.persistence.dao.ExternalServiceCallDAO.doBulkInsert(ExternalServiceCallDAO.java:220)
at com.att.retail.r2d2.persistence.dao.ExternalServiceCallDAO.saveExternalServiceCallInfo(ExternalServiceCallDAO.java:138)
Please help my guys out of this. I will really appreciate all suggestions and advices.
Thank you everybody.I am trying to pass parameter to test my procedure but it is giving this error : ORA-06531: Reference to uninitialized collection
ORA-06512: at line 12
Here is example for my test procedure:
declare
v_session_id_tab SESSION_ID_TAB_TYPE;
v_service_type_tab SERVICE_TYPE_TAB_TYPE ;
v_service_location_tab SERVICE_LOCATION_TAB_TYPE ;
v_service_call_name_tab SERVICE_CALL_NAME_TAB_TYPE;
v_service_call_start_time_tab SERVICE_CALL_ST_TAB_TYPE;
v_service_call_end_time_tab SERVICE_CALL_ET_TAB_TYPE;
v_service_call_duration_tab SERVICE_CALL_DUR_TAB_TYPE;
v_status_tab STATUS_TAB_TYPE;
v_notes_tab NOTES_TAB_TYPE;
begin
v_session_id_tab(1) := 1;
v_service_type_tab(1) := 'db';
v_service_location_tab(1) := 'local';
v_service_call_name_tab(1) := 'Name of call';
v_service_call_start_time_tab(1) := SYSDATE;
v_service_call_end_time_tab(1) := SYSDATE;
v_service_call_duration_tab(1) := 100;
v_status_tab(1) := 'Z';
v_notes_tab(1) := 'NOTES';
BULK_INSERTS (v_session_id_tab,v_service_type_tab, v_service_location_tab,v_service_call_name_tab,v_service_call_start_time_tab,v_service_call_end_time_tab,
v_service_call_duration_tab, v_status_tab, v_notes_tab);
end;
I declare all types at schema level.
Please give your comments.
Thank you -
Error while calling RFC when using BSP Web Interface
Hi,
we have a problem with the Authorization when we use an Web Interface for BSP. We have assigned all roles to the user which were mentioned in the SAP standard documentation:
R_AREA
R_METHOD
R_PACKAGE
R_PARAM
R_PLEVEL
R_PM_NAME
R_PROFILE
R_STS_PT
R_STS_SUP
R_WEBITF
S_RS_ADMWB
S_RS_AUTH
S_RS_COMP
S_RS_COMP1
S_RS_DAS
S_RS_ICUBE
but we still get the error message: "Error while calling RFC".
When using a user with SAP_ALL, it works.
What can we do?
Thx for your time.
JoergActually that's surprising - because BSP (Business Server Pages) and RFC (Remote Function Call) are not related; they use totally different transport protocols (http vs. RFC). Even if an BSP application is calling a function module remotely (acting as RFC client) no authorizations for S_RFC are required - in the calling system (but in the called system, i.e. the RFC server).
Since assigning SAP_ALL seems to "cure" the problem, it seems to be an authorization issue, indeed. In that case it makes sense to use the authorization trace (ST01 - notice: that's specific to one single ABAP application server; you might have to activate the trace on multiple instances) to find out which authorizations are checked / demanded. -
Exception while calling stored procedure in SQL server
Hi,
I run into a problem while calling a proc in SQL server. I am using a database control to do so. The proc returns a integer. This is the first time I use SQL server. Any thoughts? Thanks in advance.
My method call is:
int createAccount(SQLParameter[] param)
The sql is:
{call espsiCompany(?, ?, ?)}
The error is:
java.lang.NullPointerException
at com.bea.wlw.runtime.core.control.DatabaseControlImpl.getStatement_v2(DatabaseControlImpl.jcs:1885)
at com.bea.wlw.runtime.core.control.DatabaseControlImpl.invoke(DatabaseControlImpl.jcs:2691)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:373)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396)
at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:388)
at services.OnyxDBControl.createAccount(OnyxDBControl.ctrl)
at services.OnyxDBControlTest.createAccount(OnyxDBControlTest.jws:18)Hi. That's not the signature of the procedure. What I'd like to see is
the SQL used to create the procedure, eg:
create procedure myProc @foo int, @bar varchar(30) ....
as
begin
end
Jun Li wrote:
Here you go. Thanks for your time.
DECLARE @RC int
DECLARE @iSiteId int
DECLARE @iCompanyId int
DECLARE @chLanguageCode char(4)
DECLARE @vchAssignedId varchar(255)
DECLARE @vchCompanyName varchar(255)
DECLARE @vchAddress1 varchar(255)
DECLARE @vchAddress2 varchar(255)
DECLARE @vchAddress3 varchar(255)
DECLARE @vchCity varchar(255)
DECLARE @chRegionCode char(4)
DECLARE @chCountryCode char(4)
DECLARE @vchPostCode varchar(40)
DECLARE @vchPhoneNumber varchar(40)
DECLARE @vchEmailAddress varchar(255)
DECLARE @vchURL varchar(255)
DECLARE @iCompanyTypeCode int
DECLARE @iCompanySubTypeCode int
DECLARE @iFamilyId int
DECLARE @iParentId int
DECLARE @iPrimaryContactId int
DECLARE @vchContactFirstName varchar(255)
DECLARE @vchContactLastName varchar(255)
DECLARE @iDivisionCode int
DECLARE @iSICCode int
DECLARE @iMarketSector int
DECLARE @vchTaxId varchar(255)
DECLARE @vchDunnsNumber varchar(255)
DECLARE @iPhoneTypeId int
DECLARE @iAddressTypeId int
DECLARE @iSourceId int
DECLARE @iStatusId int
DECLARE @bValidAddress tinyint
DECLARE @iAccessCode int
DECLARE @bPrivate tinyint
DECLARE @vchUser1 varchar(255)
DECLARE @vchUser2 varchar(255)
DECLARE @vchUser3 varchar(255)
DECLARE @vchUser4 varchar(255)
DECLARE @vchUser5 varchar(255)
DECLARE @vchUser6 varchar(255)
DECLARE @vchUser7 varchar(255)
DECLARE @vchUser8 varchar(255)
DECLARE @vchUser9 varchar(255)
DECLARE @vchUser10 varchar(255)
DECLARE @chInsertBy char(10)
DECLARE @dtInsertDate datetime
DECLARE @tiLockRecord tinyint
DECLARE @tiRecordStatus tinyint
DECLARE @tireturnType tinyint
-- Set parameter values
EXEC @RC = [ONYXPROD].[dbo].[espsiCompany] @iSiteId, @iCompanyId OUTPUT , @chLanguageCode, @vchAssignedId, @vchCompanyName, @vchAddress1, @vchAddress2, @vchAddress3, @vchCity, @chRegionCode, @chCountryCode, @vchPostCode, @vchPhoneNumber, @vchEmailAddress, @vchURL, @iCompanyTypeCode, @iCompanySubTypeCode, @iFamilyId, @iParentId, @iPrimaryContactId, @vchContactFirstName, @vchContactLastName, @iDivisionCode, @iSICCode, @iMarketSector, @vchTaxId, @vchDunnsNumber, @iPhoneTypeId, @iAddressTypeId, @iSourceId, @iStatusId, @bValidAddress, @iAccessCode, @bPrivate, @vchUser1, @vchUser2, @vchUser3, @vchUser4, @vchUser5, @vchUser6, @vchUser7, @vchUser8, @vchUser9, @vchUser10, @chInsertBy, @dtInsertDate, @tiLockRecord, @tiRecordStatus, @tireturnType -
Error while calling a method on Bean (EJB 3.0)
I am getting an error while calling a method on EJB. I am using EJB3.0 and my bean is getting properly deployed(i am sure b'cos i can see the successfullly deployed message). Can any body help me
Error is -->
Error while destroying resource :An I/O error has occured while flushing the output - Exception: java.io.IOException: An established connection was aborted by the software in your host machine
Stack Trace:
java.io.IOException: An established connection was aborted by the software in your host machine
at sun.nio.ch.SocketDispatcher.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:33)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
at sun.nio.ch.IOUtil.write(IOUtil.java:75)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:302)
at com.sun.enterprise.server.ss.provider.ASOutputStream.write(ASOutputStream.java:138)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at org.postgresql.PG_Stream.flush(PG_Stream.java:352)
at org.postgresql.core.QueryExecutor.sendQuery(QueryExecutor.java:159)
at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:70)
at org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Connection.java:482)
at org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Connection.java:461)
at org.postgresql.jdbc1.AbstractJdbc1Connection.rollback(AbstractJdbc1Connection.java:1031)
at org.postgresql.jdbc2.optional.PooledConnectionImpl$ConnectionHandler.invoke(PooledConnectionImpl.java:223)
at $Proxy34.close(Unknown Source)
at com.sun.gjc.spi.ManagedConnection.destroy(ManagedConnection.java:274)
at com.sun.enterprise.resource.LocalTxConnectorAllocator.destroyResource(LocalTxConnectorAllocator.java:103)
at com.sun.enterprise.resource.AbstractResourcePool.destroyResource(AbstractResourcePool.java:603)
at com.sun.enterprise.resource.AbstractResourcePool.resourceErrorOccurred(AbstractResourcePool.java:713)
at com.sun.enterprise.resource.PoolManagerImpl.putbackResourceToPool(PoolManagerImpl.java:424)
at com.sun.enterprise.resource.PoolManagerImpl.resourceClosed(PoolManagerImpl.java:393)
at com.sun.enterprise.resource.LocalTxConnectionEventListener.connectionClosed(LocalTxConnectionEventListener.java:69)
at com.sun.gjc.spi.ManagedConnection.connectionClosed(ManagedConnection.java:618)
at com.sun.gjc.spi.ConnectionHolder.close(ConnectionHolder.java:163)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.closeDatasourceConnection(DatabaseAccessor.java:379)
at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.closeConnection(DatasourceAccessor.java:367)
at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.closeConnection(DatabaseAccessor.java:402)
at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.afterJTSTransaction(DatasourceAccessor.java:100)
at oracle.toplink.essentials.threetier.ClientSession.afterTransaction(ClientSession.java:104)
at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.afterTransaction(UnitOfWorkImpl.java:1816)
at oracle.toplink.essentials.transaction.AbstractSynchronizationListener.afterCompletion(AbstractSynchronizationListener.java:161)
at oracle.toplink.essentials.transaction.JTASynchronizationListener.afterCompletion(JTASynchronizationListener.java:87)
at com.sun.ejb.containers.ContainerSynchronization.afterCompletion(ContainerSynchronization.java:174)
at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:467)
at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:357)
at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3653)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3431)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1247)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:197)
at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:110)
at $Proxy84.addDepartment(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:121)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:650)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:193)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1705)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1565)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:947)
at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:178)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:717)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:473)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1270)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:479)
End of Stack Trace
|#]
RAR5035:Unexpected exception while destroying resource. To get exception stack, please change log level to FINE.
EJB5018: An exception was thrown during an ejb invocation on [DepartmentSessionBean]
javax.ejb.EJBException: Unable to complete container-managed transaction.; nested exception is: javax.transaction.SystemException
javax.transaction.SystemException
at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:452)
at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:357)
at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3653)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3431)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1247)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:197)
at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:110)
at $Proxy84.addDepartment(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)Means theres an error in XML/ABAP conversion probably due a syntax error...
Regards
Juan -
Error while parsing or executing XML-SQL document
friends,
my scenario is based on file to jdbc.i am facing an error in receiver CC in RWB.
The error states that '
Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'MATMAS' (structure 'STATEMENT'): java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]String or binary data would be truncated.'
My SOAP xml message is
- <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
- <SOAP:Header>
- <sap:Main xmlns:sap="http://sap.com/xi/XI/Message/30" versionMajor="3" versionMinor="0" SOAP:mustUnderstand="1" xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="wsuid-main-92ABE13F5C59AB7FE10000000A1551F7">
<sap:MessageClass>ApplicationMessage</sap:MessageClass>
<sap:ProcessingMode>asynchronous</sap:ProcessingMode>
<sap:MessageId>18f17dd0-d503-11dc-cb4d-001635b02bfd</sap:MessageId>
<sap:TimeSent>2008-02-06T22:30:21Z</sap:TimeSent>
- <sap:Sender>
<sap:Party agency="http://sap.com/xi/XI" scheme="XIParty" />
<sap:Service>ECC</sap:Service>
</sap:Sender>
- <sap:Receiver>
<sap:Party agency="http://sap.com/xi/XI" scheme="XIParty" />
<sap:Service>BS_JDBC</sap:Service>
</sap:Receiver>
<sap:Interface namespace="http://file_to_jdbc">MI_JDBC_RECEIVER</sap:Interface>
</sap:Main>
- <sap:ReliableMessaging xmlns:sap="http://sap.com/xi/XI/Message/30" SOAP:mustUnderstand="1">
<sap:QualityOfService>ExactlyOnce</sap:QualityOfService>
</sap:ReliableMessaging>
- <sap:DynamicConfiguration xmlns:sap="http://sap.com/xi/XI/Message/30" SOAP:mustUnderstand="1">
<sap:Record namespace="http://sap.com/xi/XI/System/File" name="Directory">
sapecc50\sapmnt\trans</sap:Record>
<sap:Record namespace="http://sap.com/xi/XI/System/File" name="FileEncoding">UTF-8</sap:Record>
<sap:Record namespace="http://sap.com/xi/XI/System/File" name="FileType">txt</sap:Record>
<sap:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">matmas1.txt</sap:Record>
</sap:DynamicConfiguration>
- <sap:HopList xmlns:sap="http://sap.com/xi/XI/Message/30" SOAP:mustUnderstand="1">
- <sap:Hop timeStamp="2008-02-06T22:30:21Z" wasRead="false">
<sap:Engine type="AE">af.e6e.sapecc6eval</sap:Engine>
<sap:Adapter namespace="http://sap.com/xi/XI/System">XIRA</sap:Adapter>
<sap:MessageId>18f17dd0-d503-11dc-cb4d-001635b02bfd</sap:MessageId>
<sap:Info />
</sap:Hop>
- <sap:Hop timeStamp="2008-02-06T22:30:21Z" wasRead="false">
<sap:Engine type="IS">is.01.sapecc6eval</sap:Engine>
<sap:Adapter namespace="http://sap.com/xi/XI/System">XI</sap:Adapter>
<sap:MessageId>18f17dd0-d503-11dc-cb4d-001635b02bfd</sap:MessageId>
<sap:Info>3.0</sap:Info>
</sap:Hop>
- <sap:Hop timeStamp="2008-02-06T22:30:22Z" wasRead="false">
<sap:Engine type="AE">af.e6e.sapecc6eval</sap:Engine>
<sap:Adapter namespace="http://sap.com/xi/XI/System">XIRA</sap:Adapter>
<sap:MessageId>18f17dd0-d503-11dc-cb4d-001635b02bfd</sap:MessageId>
</sap:Hop>
</sap:HopList>
- <sap:Diagnostic xmlns:sap="http://sap.com/xi/XI/Message/30" SOAP:mustUnderstand="1">
<sap:TraceLevel>Information</sap:TraceLevel>
<sap:Logging>Off</sap:Logging>
</sap:Diagnostic>
</SOAP:Header>
- <SOAP:Body>
- <sap:Manifest xmlns:sap="http://sap.com/xi/XI/Message/30" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="wsuid-manifest-5CABE13F5C59AB7FE10000000A1551F7">
- <sap:Payload xlink:type="simple" xlink:href="cid:[email protected]">
<sap:Name>MainDocument</sap:Name>
<sap:Description />
<sap:Type>Application</sap:Type>
</sap:Payload>
</sap:Manifest>
</SOAP:Body>
</SOAP:Envelope>
and payload message is
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_JDBC_RECEIVER xmlns:ns0="http://file_to_jdbc">
- <STATEMENT>
- <ROW action="INSERT">
<TABLE>MATMAS</TABLE>
- <access>
<MATNR>38</MATNR>
<MTART>HALB</MTART>
<MATKL>00107</MATKL>
<MEINS>pc</MEINS>
<ERSDA>2008.04.05</ERSDA>
<BRGEW>10</BRGEW>
<NTGEW>12</NTGEW>
<GEWEI>KG</GEWEI>
</access>
- <access>
<MATNR>88</MATNR>
<MTART>FERT</MTART>
<MATKL>02004</MATKL>
<MEINS>PC</MEINS>
<ERSDA>2008.04.05</ERSDA>
<BRGEW>12</BRGEW>
<NTGEW>13</NTGEW>
<GEWEI>KG</GEWEI>
</access>
- <access>
<MATNR>89</MATNR>
<MTART>FERT</MTART>
<MATKL>02004</MATKL>
<MEINS>PC</MEINS>
<ERSDA>2008.03.02</ERSDA>
<BRGEW>12</BRGEW>
<NTGEW>14</NTGEW>
<GEWEI>KG</GEWEI>
</access>
- <access>
<MATNR>98</MATNR>
<MTART>HALB</MTART>
<MATKL>2</MATKL>
<MEINS>PC</MEINS>
<ERSDA>2006.09.01</ERSDA>
<BRGEW>12</BRGEW>
<NTGEW>12</NTGEW>
<GEWEI>KG</GEWEI>
</access>
- <access>
<MATNR>170</MATNR>
<MTART>NLAG</MTART>
<MATKL>4</MATKL>
<MEINS>PC</MEINS>
<ERSDA>2005.03.02</ERSDA>
<BRGEW>2</BRGEW>
<NTGEW>3</NTGEW>
<GEWEI>KG</GEWEI>
</access>
- <access>
<MATNR>178</MATNR>
<MTART>NLAG</MTART>
<MATKL>4</MATKL>
<MEINS>PC</MEINS>
<ERSDA>2007.03.06</ERSDA>
<BRGEW>3</BRGEW>
<NTGEW>4</NTGEW>
<GEWEI>KG</GEWEI>
</access>
- <access>
<MATNR>188</MATNR>
<MTART>NLAG</MTART>
<MATKL>5</MATKL>
<MEINS>PC</MEINS>
<ERSDA>2007.05.02</ERSDA>
<BRGEW>2</BRGEW>
<NTGEW>3</NTGEW>
<GEWEI>KG</GEWEI>
</access>
- <access>
<MATNR>288</MATNR>
<MTART>HALB</MTART>
<MATKL>101</MATKL>
<MEINS>PC</MEINS>
<ERSDA>2006.02.11</ERSDA>
<BRGEW>5</BRGEW>
<NTGEW>4</NTGEW>
<GEWEI>KG</GEWEI>
</access>
- <access>
<MATNR>358</MATNR>
<MTART>HAWA</MTART>
<MATKL>2</MATKL>
<MEINS>PC</MEINS>
<ERSDA>2007.09.09</ERSDA>
<BRGEW>500</BRGEW>
<NTGEW>500</NTGEW>
<GEWEI>G</GEWEI>
</access>
- <access>
<MATNR>359</MATNR>
<MTART>HAWA</MTART>
<MATKL>2</MATKL>
<MEINS>PC</MEINS>
<ERSDA>2007.08.01</ERSDA>
<BRGEW>20</BRGEW>
<NTGEW>10</NTGEW>
<GEWEI>G</GEWEI>
</access>
</ROW>
</STATEMENT>
</ns0:MT_JDBC_RECEIVER>
Could anybody help me in sorting out this issue.My advance thankshi,
ypur structure is bad defined.
if you want to do an insert, the DT should be
<ns0:MT_JDBC_RECEIVER xmlns:ns0="http://file_to_jdbc">
___<StatementName>
______<dbTableName action=INSERT>
_____<table>MATMAS</table>
_______ <access>
___________<MATNR>38</MATNR>
___________<MTART>HALB</MTART>
___________<MATKL>00107</MATKL>
___________<MEINS>pc</MEINS>
___________<ERSDA>2008.04.05</ERSDA>
___________<BRGEW>10</BRGEW>
___________<NTGEW>12</NTGEW>
___________<GEWEI>KG</GEWEI>
______</access>
_____</dbTableName>
__ </StatementName>
</ns0:MT_JDBC_RECEIVER>
the ROW field is used when you wait receive data from DB for example you execute and SQL Query from Sender communication channel "SELECT name FROM TABLE Names"
so, the result of this query would be, for example:
<row>
____<name>joge</name>
</row>
<row>
____<name>pepe</name>
</row>
<row>
____<name>nicola</name>
</row>
See this link
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/frameset.htm
Thanks
Rodrigo
Edited by: Rodrigo Pertierra on Feb 8, 2008 8:40 AM
Edited by: Rodrigo Pertierra on Feb 8, 2008 8:42 AM -
Error while loading java file in Oracle
Hi,
I am facing error while loading java class into oracle . Can you please help
-bash-3.2$ cd /export/home/sacuser/
-bash-3.2$ loadjava -user sacuserdb/sacuserdb@BLM - resolve Oracle_Validator/src/com/nec/blm/oracle/validator/Validate.java
unrecognized or badly formed option -
loadjava: Usage: loadjava [-definer] [-encoding encoding] [-force] [-genmissing] [-genmissingjar jar] [-grant grant s] [-help] [-nousage] [-noverify] [-oci8] [-order] [-resolve] [-resolver resolver] [-schema schema] [-synonym] [-th in] [-tableschema schema] [-user user/password@database] [-verbose] classes..jars..resources..properties...
-bash-3.2$ loadjava -user sacuserdb/sacuserdb@BLM -resolve Oracle_Validator/src/com/nec/blm/oracle/validator/Validate.java
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x0
Function=[Unknown.]
Library=(N/A)
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at oracle.jdbc.driver.T2CConnection.t2cCreateState(Native Method)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:346)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:413)
at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:131)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:77)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:752)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
- locked <0xf5fdc448> (a java.lang.Class)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
- locked <0xf5fdc448> (a java.lang.Class)
at oracle.aurora.server.tools.loadjava.DatabaseOptions.getConnection(DatabaseOptions.java:180)
at oracle.aurora.server.tools.loadjava.DatabaseOptions.connect(DatabaseOptions.java:123)
at oracle.aurora.server.tools.loadjava.LoadJavaState.getConnection(LoadJavaState.java:409)
at oracle.aurora.server.tools.loadjava.LoadJavaState.getOldMD5(LoadJavaState.java:696)
at oracle.aurora.server.tools.loadjava.ClientSchemaObject.getOldMD5(ClientSchemaObject.java:52)
at oracle.aurora.server.tools.loadjava.SchemaObject.doCreate(SchemaObject.java:172)
at oracle.aurora.server.tools.loadjava.SchemaObject.process1(SchemaObject.java:215)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:532)
at oracle.aurora.server.tools.loadjava.LoadJava.addSource(LoadJava.java:574)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:439)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:380)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:349)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:652)
at oracle.aurora.server.tools.loadjava.LoadJava.processDeferredFiles(LoadJava.java:617)
at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:818)
at oracle.aurora.server.tools.loadjava.LoadJava.command(LoadJava.java:251)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.run(LoadJavaMain.java:103)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.main(LoadJavaMain.java:28)
Dynamic libraries:
0x8050000 /opt/oracle/product/10g/jdk/jre/bin/java
0xfef80000 /lib/libthread.so.1
0xfef40000 /lib/libdl.so.1
0xfee10000 /lib/libc.so.1
0xfea00000 /opt/oracle/product/10g/jdk/jre/lib/i386/client/libjvm.so
0xfedd0000 /usr/lib/libCrun.so.1
0xfedb0000 /lib/libsocket.so.1
0xfe960000 /lib/libnsl.so.1
0xfed90000 /lib/libm.so.1
0xfedc0000 /usr/lib/libsched.so.1
0xfe900000 /lib/libm.so.2
0xfed40000 /lib/libscf.so.1
0xfe8e0000 /lib/libdoor.so.1
0xfe8b0000 /lib/libuutil.so.1
0xfe890000 /lib/libgen.so.1
0xfe870000 /lib/libmd.so.1
0xfe850000 /lib/libmp.so.2
0xfe830000 /opt/oracle/product/10g/jdk/jre/lib/i386/native_threads/libhpi.so
0xfe3d0000 /opt/oracle/product/10g/jdk/jre/lib/i386/libverify.so
0xfe3a0000 /opt/oracle/product/10g/jdk/jre/lib/i386/libjava.so
0xfe380000 /opt/oracle/product/10g/jdk/jre/lib/i386/libzip.so
0xf9e80000 /opt/oracle/product/10g/lib32/libocijdbc10.so
0xf0e00000 /opt/oracle/product/10g/lib32/libclntsh.so.10.1
0xf0c60000 /opt/oracle/product/10g/lib32/libnnz10.so
0xf9e60000 /lib/libkstat.so.1
0xf9e30000 /lib/libaio.so.1
0xf1b60000 /lib/librt.so.1
Heap at VM Abort:
Heap
def new generation total 576K, used 237K [0xf1e00000, 0xf1ea0000, 0xf22e0000)
eden space 512K, 45% used [0xf1e00000, 0xf1e3a058, 0xf1e80000)
from space 64K, 8% used [0xf1e90000, 0xf1e915c0, 0xf1ea0000)
to space 64K, 0% used [0xf1e80000, 0xf1e80000, 0xf1e90000)
tenured generation total 1408K, used 204K [0xf22e0000, 0xf2440000, 0xf5e00000)
the space 1408K, 14% used [0xf22e0000, 0xf23130f0, 0xf2313200, 0xf2440000)
compacting perm gen total 4096K, used 2662K [0xf5e00000, 0xf6200000, 0xf9e00000)
the space 4096K, 65% used [0xf5e00000, 0xf6099a38, 0xf6099c00, 0xf6200000)
Local Time = Mon Jun 17 16:29:08 2013
Elapsed Time = 0
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.4.2_05-b04 mixed mode)
# An error report file has been saved as hs_err_pid27805.log.
# Please refer to the file for further information.
Abort (core dumped)Please try to compile your java source file with jdk avaiable in ORACLE_HOME\jdk\bin\javac.
load the compiled class file in oracle DB using loadjava utility.
loadjava -user scott/tiger javafile.class -
Error while calling WebService inside ISchedulerTask.
Hi,
Env: NW 2004s
I have a requirement of calling webservice frequently. I developed a portal project with scheduler, where the application gives a runtime error while calling/reading the property file (which is generated during the webservice proxy generation, without it webservice call is impossible).
I have varified the ear file which contains all the required class files and config files including property file.
fyi:
portalapp.xml file looks like this.
+
<?xml version="1.0" encoding="utf-8"?>
<application>
<application-config>
<property name="SharingReference" value="usermanagement, knowledgemanagement, landscape, htmlb, exportalJCOclient, exportal"/>
</application-config>
<components/>
<services>
<service name="RFServiceWrapper">
<service-config>
<property name="className" value="com.sap.netweaver.rf.wrapper.RFServiceWrapper"/>
<property name="startup" value="true"/>
</service-config>
</service>
</services>
</application>
+
Any input will be highly appreciated.
Thanks,
VinodFollowing is the error message:
msg1:
at <package>.AFFERAAFWSServiceImpl.<init>(AFFERAAFWSServiceImpl.java:10)
msg2:
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ServiceBase.loadProtocolsFromPropertyFile(ServiceBase.java:238)
Reporting from Logs and Traces.
Error Located @ following code inside AFFERAAFWSServiceImpl.java, which is a proxy class generated using apache axis
input = this.getClass().getClassLoader().getResourceAsStream("<package>/protocols.txt");
loadProtocolsFromPropertyFile(input);
protocols.txt is another config file generated along with AFFERAAFWSServiceImpl.java, which is been used @ run time.
FYI: All these files are present on ear file.
Maybe you are looking for
-
Sap srm important tcodes, tables and functions
hi! can any one say me important tcodes , tables , functions that are used in sap srm ? thanks in advance
-
Use SAP service without XI/PI? Need answer for mgmnt mtg in 30 min
Trying to read SDN info in last hour, but can't see definitely that a SAP web service can be available for external appl... without using SAP PI (which we've not used). All diagrams/text seem to indicate XI/PI as dependent component.
-
Downloading iTunes Movie Rental to my iPod Classic 120 GB
I can't make my movie move to my iPod. I really could use some step-by-step instructions that aren't the ones posted here on the website, because that didn't help me at all. I'm running the latest version of iTunes, and the movie in question is Plane
-
Diminuendo on a string chord?
I have a string ensemble that's holding a chord for three bars and I want the chord to fade away. If I were putting in articulations I'd start out at mezzo-piano and end at pianissimo (or even 3 p). How do I make the ensemble play this way? Thank you
-
Whenever my apple tv is off for awhile it deletes iTunes, Internet tabs
Ever since the last update whenever I don't use my Apple TV for awhile I lose everything but, computers and settings tabs. The Internet and movies and TV tabs disappear and I have to reset the Apple TV to get them back. Anyone know how to fix this? T