Error using loadjava
Hi everyone.
I'm typing the following line in a HP-UX terminal in order to load the Sybase Type-4 JDBC driver:
loadjava -user scott/tiger -o -r -v -f -noverify /u01/app/oracle/product/8.1.7/jdbc/lib/Sybasedrv.zipHowever, it thorws the following exception and I don't know what is wrong:
SIGBUS 10* bus error
stackbase=7F7F0DD4, stackpointer=7F7F4028, pc=C5D688C4
Full thread dump:
"SIGQUIT handler" (TID:0x7e9ff238, sys_thread_t:0x400936f8 [lwp_id:6751], state:R, thread_t: t@5, stack_base:0x7e5bf000, stack_size:0x20000, pc: 0xc01f7d28) prio=7
"JIT Compiler" (TID:0x7e9ff280, sys_thread_t:0x40093380 [lwp_id:6750], state:CW, thread_t: t@4, stack_base:0x7e5e0000, stack_size:0x100000, pc: 0xc01f29d0) prio=8
"Finalizer thread" (TID:0x7e9ff068, sys_thread_t:0x40093038 [lwp_id:6749], state:CW, thread_t: t@3, stack_base:0x7e6e1000, stack_size:0x20000, pc: 0xc01f29d0) prio=8
"main" (TID:0x7e9ff090, sys_thread_t:0x4006cb48 [lwp_id:0], state:R, thread_t: t@1, stack_base:0x7f7f0dd4, stack_size:0x800000, pc: 0x0) prio=5 current thread
oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:354)
oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:246)
oracle.jdbc.driver.OracleDriver.getConnectionInstance(Compiled Code)
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
java.sql.DriverManager.getConnection(Compiled Code)
oracle.aurora.server.tools.loadjava.DatabaseOptions.getConnection(DatabaseOptions.java:104)
oracle.aurora.server.tools.loadjava.DatabaseOptions.connect(DatabaseOptions.java:53)
oracle.aurora.server.tools.loadjava.LoadJava.getConnection(LoadJava.java:621)
oracle.aurora.server.tools.loadjava.LoadJava.load(Compiled Code)
oracle.aurora.server.tools.loadjava.LoadJava.load(LoadJava.java:1016)
oracle.aurora.server.tools.loadjava.LoadJava.loadAndCreateJar(Compiled Code)
oracle.aurora.server.tools.loadjava.LoadJava.processLoadAndCreate(Compiled Code)
oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:1422)
oracle.aurora.server.tools.loadjava.LoadJavaMain.run(LoadJavaMain.java:299)
oracle.aurora.server.tools.loadjava.LoadJavaMain.main(LoadJavaMain.java:58)
Monitor Cache Dump:
java.lang.Class@7EA091A8/7EB000B0: sys_mon = 0x400077dc, owner "main" (0x4006cb48, 1 entry)
oracle.jdbc.oci8.OCIDBAccess@7EA09808/7EB01EE8: sys_mon = 0x4000709c, owner "main" (0x4006cb48, 1 entry)
Registered Monitor Dump:
JIT thread lock: sys_mon = 0x40093680, <unowned>
Waiting to be notified:
"JIT Compiler" (0x40093380)
Thread queue lock: sys_mon = 0x4006c810, <unowned>
utf8 hash table: sys_mon = 0x4000c708, <unowned>
String intern lock: sys_mon = 0x4000c648, <unowned>
JNI pinning lock 31: sys_mon = 0x4000c588, <unowned>
JNI pinning lock 30: sys_mon = 0x4000c4c8, <unowned>
JNI pinning lock 29: sys_mon = 0x4000c408, <unowned>
JNI pinning lock 28: sys_mon = 0x4000c348, <unowned>
JNI pinning lock 27: sys_mon = 0x4000c288, <unowned>
JNI pinning lock 26: sys_mon = 0x4000c1c8, <unowned>
JNI pinning lock 25: sys_mon = 0x4000c108, <unowned>
JNI pinning lock 24: sys_mon = 0x4000c048, <unowned>
JNI pinning lock 23: sys_mon = 0x4000bf88, <unowned>
JNI pinning lock 22: sys_mon = 0x4000bec8, <unowned>
JNI pinning lock 21: sys_mon = 0x4000be08, <unowned>
JNI pinning lock 20: sys_mon = 0x4000bd48, <unowned>
JNI pinning lock 19: sys_mon = 0x4000bc88, <unowned>
JNI pinning lock 18: sys_mon = 0x4000bbc8, <unowned>
JNI pinning lock 17: sys_mon = 0x4000bb08, <unowned>
JNI pinning lock 16: sys_mon = 0x4000ba48, <unowned>
JNI pinning lock 15: sys_mon = 0x4000b988, <unowned>
JNI pinning lock 14: sys_mon = 0x4000b8c8, <unowned>
JNI pinning lock 13: sys_mon = 0x4000b808, <unowned>
JNI pinning lock 12: sys_mon = 0x4000b748, <unowned>
JNI pinning lock 11: sys_mon = 0x4000b688, <unowned>
JNI pinning lock 10: sys_mon = 0x4000b5c8, <unowned>
JNI pinning lock 9: sys_mon = 0x4000b508, <unowned>
JNI pinning lock 8: sys_mon = 0x4000b448, <unowned>
JNI pinning lock 7: sys_mon = 0x4000b388, <unowned>
JNI pinning lock 6: sys_mon = 0x4000b2c8, <unowned>
JNI pinning lock 5: sys_mon = 0x4000b208, <unowned>
JNI pinning lock 4: sys_mon = 0x4000b148, <unowned>
JNI pinning lock 3: sys_mon = 0x4000b088, <unowned>
JNI pinning lock 2: sys_mon = 0x4000afc8, <unowned>
JNI pinning lock 1: sys_mon = 0x4000af08, <unowned>
JNI pinning lock 0: sys_mon = 0x4000ae48, <unowned>
JNI global reference lock: sys_mon = 0x4000ad80, <unowned>
BinClass lock: sys_mon = 0x4000acc8, <unowned>
Class loading lock: sys_mon = 0x4000ac08, <unowned>
Java stack lock: sys_mon = 0x4000ab50, <unowned>
Code rewrite lock: sys_mon = 0x4000aa90, <unowned>
Heap lock: sys_mon = 0x4000a9d8, <unowned>
Has finalization queue lock: sys_mon = 0x4000a910, <unowned>
Finalize me queue lock: sys_mon = 0x4000a850, <unowned>
Waiting to be notified:
"Finalizer thread" (0x40093038)
Monitor registry: sys_mon = 0x40004ae0, owner "main" (0x4006cb48, 1 entry)
Abort(coredump)
I don't have ideia of what is going on.
Can anyone help me?
ORA-29532: Java call terminated by uncaught Java exception: string
Cause: A Java exception or error was signaled and could not be resolved by the Java code.
Action: Modify Java code, if this behavior is not intended.
Similar Messages
-
Resolve error when using loadjava
Hi, I'm trying to use loadjava to load my Java class into Oracle. I got the following error:
resolving: com/company/package/class1
Errors in com/company/package/class1:
ORA-29534: referenced object SCOTT.com/company/package/class2 could not be resolved
Actually both these classes are in the JAVA$CLASS$MD5$TABLE and are in the same jar file, which I pass to loadjava. My OS is Solaris 2.8 and the Oracle is 8.1.6. Any idea what's wrong? Thanks,
nullyou posted :
loadjava -user SCOTT/TIGER@mydatabase -r -v -f -t myclass.jar
that is the jdbc oci syntax since you're trying to use a tnsnames.ora entry "mydatabase" after the "@".
it also required the oracle client installation to run jdbc oci formats.
change to one of the following :
loadjava -user SCOTT/TIGER@mydatabase -r -v -f myclass.jar
or
loadjava -user SCOTT/TIGER@<host>:<port>:<sid> -r -v -f -t myclass.jar -
Unexpected error detected in natve code outside the VM when using loadjava
When I try to use loadjava to load and resolve a class into Oracle 10.2.0.1.0 or compile the source into a class using the v switch I get the following error stack, does anyone know why this is, could this be due to a bug in 10.2.0.1.0 ?
C:\>loadjava -u techsupp/techsupp -v FileUtils.java
arguments: '-u' 'techsupp/techsupp' '-v' 'FileUtils.java'
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x61D
39E24
Function=xaolog+0x5AF0
Library=D:\Apps\agent10g\agent10g\bin\OraClient10.Dll
Current Java thread:
at oracle.jdbc.driver.T2CStatement.t2cParseExecuteDescribe(Native Method
at oracle.jdbc.driver.T2CPreparedStatement.executeForDescribe(T2CPrepare
dStatement.java:518)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStateme
nt.java:1030)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
nt.java:1123)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePrep
aredStatement.java:3284)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePrepare
dStatement.java:3328)
- locked <0x100117c0> (a oracle.jdbc.driver.T2CPreparedStatement)
- locked <0x1053d048> (a oracle.jdbc.driver.T2CConnection)
at oracle.aurora.server.tools.loadjava.LoadJavaState.getOldMD5(LoadJavaS
tate.java:721)
at oracle.aurora.server.tools.loadjava.ClientSchemaObject.getOldMD5(Clie
ntSchemaObject.java:52)
at oracle.aurora.server.tools.loadjava.SchemaObject.doCreate(SchemaObjec
t.java:172)
at oracle.aurora.server.tools.loadjava.SchemaObject.process1(SchemaObjec
t.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(Loa
dJava.java:617)
at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:81
8)
at oracle.aurora.server.tools.loadjava.LoadJava.command(LoadJava.java:25
1)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.run(LoadJavaMain.jav
a:103)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.main(LoadJavaMain.ja
va:28)
Dynamic libraries:
0x00400000 - 0x0040B000 D:\Apps\oracle102\jdk\jre\bin\java.exe
0x7C800000 - 0x7C8C2000 C:\WINDOWS\system32\ntdll.dll
0x77E40000 - 0x77F43000 C:\WINDOWS\system32\kernel32.dll
0x77F50000 - 0x77FEC000 C:\WINDOWS\system32\ADVAPI32.dll
0x77C50000 - 0x77CEF000 C:\WINDOWS\system32\RPCRT4.dll
0x77BA0000 - 0x77BFA000 C:\WINDOWS\system32\MSVCRT.dll
0x08000000 - 0x08138000 D:\Apps\oracle102\jdk\jre\bin\client\jvm.dll
0x77380000 - 0x77412000 C:\WINDOWS\system32\USER32.dll
0x77C00000 - 0x77C49000 C:\WINDOWS\system32\GDI32.dll
0x76AA0000 - 0x76ACD000 C:\WINDOWS\system32\WINMM.dll
0x71BC0000 - 0x71BC8000 C:\WINDOWS\system32\rdpsnd.dll
0x771F0000 - 0x77201000 C:\WINDOWS\system32\WINSTA.dll
0x71C40000 - 0x71C98000 C:\WINDOWS\system32\NETAPI32.dll
0x76B70000 - 0x76B7B000 C:\WINDOWS\system32\PSAPI.DLL
0x10000000 - 0x10007000 D:\Apps\oracle102\jdk\jre\bin\hpi.dll
0x00380000 - 0x0038E000 D:\Apps\oracle102\jdk\jre\bin\verify.dll
0x00390000 - 0x003A9000 D:\Apps\oracle102\jdk\jre\bin\java.dll
0x003C0000 - 0x003CE000 D:\Apps\oracle102\jdk\jre\bin\zip.dll
0x62F00000 - 0x62F13000 D:\Apps\agent10g\agent10g\BIN\ocijdbc10.dll
0x02E70000 - 0x02EC7000 D:\Apps\agent10g\agent10g\bin\OCI.dll
0x7C360000 - 0x7C3B6000 C:\WINDOWS\system32\MSVCR71.dll
0x61C20000 - 0x61E77000 D:\Apps\agent10g\agent10g\bin\OraClient10.Dll
0x60870000 - 0x60956000 D:\Apps\agent10g\agent10g\bin\oracore10.dll
0x60A80000 - 0x60B47000 D:\Apps\agent10g\agent10g\bin\oranls10.dll
0x63690000 - 0x636A8000 D:\Apps\agent10g\agent10g\bin\oraunls10.dll
0x60EB0000 - 0x60EB7000 D:\Apps\agent10g\agent10g\bin\orauts.dll
0x71C00000 - 0x71C17000 C:\WINDOWS\system32\WS2_32.dll
0x71BF0000 - 0x71BF8000 C:\WINDOWS\system32\WS2HELP.dll
0x77670000 - 0x777A4000 C:\WINDOWS\system32\ole32.dll
0x636B0000 - 0x636B6000 D:\Apps\agent10g\agent10g\bin\oravsn10.dll
0x60FA0000 - 0x61098000 D:\Apps\agent10g\agent10g\bin\oracommon10.dll
0x63430000 - 0x63457000 D:\Apps\agent10g\agent10g\bin\orasnls10.dll
0x02ED0000 - 0x03448000 D:\Apps\agent10g\agent10g\bin\orageneric10.dll
0x03450000 - 0x035C7000 D:\Apps\agent10g\agent10g\bin\oraxml10.dll
0x60020000 - 0x60030000 C:\WINDOWS\system32\MSVCIRT.dll
0x60960000 - 0x60A77000 D:\Apps\agent10g\agent10g\bin\oran10.dll
0x62740000 - 0x62780000 D:\Apps\agent10g\agent10g\bin\oranl10.dll
0x62790000 - 0x627A8000 D:\Apps\agent10g\agent10g\bin\oranldap10.dll
0x627F0000 - 0x628FD000 D:\Apps\agent10g\agent10g\bin\orannzsbb10.dll
0x62530000 - 0x62583000 D:\Apps\agent10g\agent10g\bin\oraldapclnt10.dll
0x62670000 - 0x6268B000 D:\Apps\agent10g\agent10g\bin\orancrypt10.dll
0x71BB0000 - 0x71BB9000 C:\WINDOWS\system32\WSOCK32.dll
0x77D00000 - 0x77D8C000 C:\WINDOWS\system32\OLEAUT32.dll
0x62920000 - 0x6296D000 D:\Apps\agent10g\agent10g\bin\oranro10.dll
0x626B0000 - 0x626B7000 D:\Apps\agent10g\agent10g\bin\oranhost10.dll
0x62660000 - 0x62666000 D:\Apps\agent10g\agent10g\bin\orancds10.dll
0x629C0000 - 0x629C8000 D:\Apps\agent10g\agent10g\bin\orantns10.dll
0x035D0000 - 0x03945000 D:\Apps\agent10g\agent10g\bin\orapls10.dll
0x03950000 - 0x03959000 D:\Apps\agent10g\agent10g\bin\oraslax10.dll
0x63080000 - 0x63285000 D:\Apps\agent10g\agent10g\bin\oraplp10.dll
0x61ED0000 - 0x61F68000 D:\Apps\agent10g\agent10g\bin\orahasgen10.dll
0x62AB0000 - 0x62B24000 D:\Apps\agent10g\agent10g\bin\oraocr10.dll
0x03960000 - 0x039A9000 D:\Apps\agent10g\agent10g\bin\oraocrb10.dll
0x62980000 - 0x62991000 D:\Apps\agent10g\agent10g\bin\orantcp10.dll
0x63520000 - 0x635BB000 D:\Apps\agent10g\agent10g\bin\orasql10.dll
0x76F50000 - 0x76F63000 C:\WINDOWS\system32\Secur32.dll
0x62650000 - 0x62659000 D:\Apps\agent10g\agent10g\bin\oranbeq10.dll
0x76C10000 - 0x76C39000 C:\WINDOWS\system32\imagehlp.dll
0x6D580000 - 0x6D628000 C:\WINDOWS\system32\dbghelp.dll
0x77B90000 - 0x77B98000 C:\WINDOWS\system32\VERSION.dll
Heap at VM Abort:
Heap
def new generation total 576K, used 18K [0x10010000, 0x100b0000, 0x104f0000)
eden space 512K, 3% used [0x10010000, 0x10013e00, 0x10090000)
from space 64K, 4% used [0x100a0000, 0x100a0a98, 0x100b0000)
to space 64K, 0% used [0x10090000, 0x10090000, 0x100a0000)
tenured generation total 1408K, used 450K [0x104f0000, 0x10650000, 0x14010000
the space 1408K, 31% used [0x104f0000, 0x10560a28, 0x10560c00, 0x10650000)
compacting perm gen total 4096K, used 3699K [0x14010000, 0x14410000, 0x1801000
0)
the space 4096K, 90% used [0x14010000, 0x143accc8, 0x143ace00, 0x14410000)
Local Time = Fri Sep 25 11:05:05 2009
Elapsed Time = 3
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 interpreted mode)
# An error report file has been saved as hs_err_pid2252.log.
# Please refer to the file for further information.
#Hi:
Is not a bug on the internal OJVM, I mean this will not affect your code running inside the database.
The problem is with the Sun JVM shipped with your 10g database, note the message:
Java VM: Java HotSpot(TM) Client VM (1.4.2_08-b03 interpreted mode)
If you can load your Java code without using -v (verbose) flag it will run OK.
If not try loading your Java class compiled outside in .class format. Remember to compile the class with a JDK 1.4.
Also you could find a workaround for the Sun JVM at Sun's blogs.
There is an alternate method for loading classes using Ant task or Maven, see this projects as examples:
[http://dbprism.cvs.sourceforge.net/viewvc/dbprism/ojvm/]
[http://dbprism.cvs.sourceforge.net/viewvc/dbprism/DataService/]
Note the loadjava.xml file which defines an Ant task using the aurora.zip file shipped with your Oracle database and which have the logic for uploading classes.
Best regards, Marcelo. -
Hello, im trying to import some classes to my oracle 11g database. I`m loging as sys and calling this :
SQL> call sys.dbms_java.loadjava('administrator/xxxxx -resolve c:\mgr\biojava3-
core-3.0.3.jar');
call sys.dbms_java.loadjava('administrator/xxxxx -resolve c:\mgr\biojava3-core-
3.0.3.jar')
BúąD w linii 1:
ORA-29532: wywo│anie Javy zatrzymane przez nieprzechwycony wyj╣tek Javy:
oracle.aurora.server.tools.loadjava.ToolsError:
Error during loadjava: Failures occurred during processing.
Check trace file for details
ORA-06512: przy "SYS.DBMS_JAVA", linia 704
can someone help me to resolve that problem?ORA-29532: Java call terminated by uncaught Java exception: string
Cause: A Java exception or error was signaled and could not be resolved by the Java code.
Action: Modify Java code, if this behavior is not intended. -
The following message is shown after using loadjava:
initialization complete
loading: myclass
creating: myclass
error while retrieving error for myclass
ORA-00904: invalid column name
resolver :
error while retrieving error for myclass
ORA-00904: invalid column name
loadjava : 2 errors
How can i do?
nullHi,
I hope in yourcase initjvm.sql is not run
or it is not run properly.Check whether
dbms_java package is present if not initjvm.sql should be run.
Regards
Anand
null -
Jre not found when using Loadjava command
Hello,
I am getting an error when I run the below load java command on a 9.2.0.8 database on Sun/Solaris platform.
Command:
loadjava -user user/[email protected]:1529:OLS2 -thin -force -resolve -verbose filename.jar
Error:
/olcdbt/u01/app/oracle/product/9.2.0.8/bin/loadjava: /olcdbt/u01/app/oracle/product/9.2.0.8/jdk/jre/bin/jre: not found
When I tried creating a new Jre soft link from $ORACLE_HOME/bin like : 'ln -s $ORACLE_HOME/jdk/jre/bin/java $ORACLE_HOME/jdk/jre/bin/jre' its giving a new error:
jre was not found in /olcdbt/u01/app/oracle/product/9.2.0.8/jdk/jre/bin/../bin/sparc/native_threads/jre
Strange thing here is that this was working fine in 9206 home and after upgrading to 9208 1 month back I am facing this issue. I am sure I am missing something here but not sure what.. Please help me resolve this issue.
Regards,
Raji.Hi,
Even though the problem manifests when using loadjava, it has noting to do with the embedded Java VM in the database; it's rather an install /upgrade problem.
Perhaps the followinf post can help: http://64.233.167.104/search?q=cache:h3XhGo2kZaYJ:forums.oracle.com/forums/thread.jspa%3FthreadID%3D43105+site:oracle.com+%22JRE+not+found%22&hl=en&ct=clnk&cd=9&gl=us
Kuassi http://db360.blogspot.com -
I got an error message
"The procedure entry point OCIConnectionPoolDestroy could not be located in the dynamic link library OCI.dll".
What is the reason for this error and how can I overcome this error.
For the first time I using LOADJAVA command . My platform is window2000.
Can you help me Sir??
Thanx in advance.Check this link:
http://www.oracle.com/technology/pub/notes/technote_php_instant.html
This link should help:
Problem creating connections in EA rel 4
Edited by: user545846 on Aug 3, 2009 2:51 AM -
Hi,
We are trying to fetch data from a weblogic server using a JMS thin client.
We have loaded our client code jar(application.jar) and the following thin client jars in oracle using loadjava.
(Version:- Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production).
1) wljmsclient.jar
2) wlthint3client.jar
3) wlclient.jar
some of the classes remain in invalid state after loading the jar files. we validate them manually.
When we run the client code we are getting following exception.
ORA-29532: Java call terminated by uncaught Java exception: java.lang.InternalError: error initializing kernel caused by: java.lang.ExceptionInInitializerError
at weblogic.protocol.ClientEnvironment.loadEnvironment(ClientEnvironment.java:22)
at weblogic.kernel.Kernel.initialize(Kernel.java:92)
at weblogic.kernel.Kernel.ensureInitialized(Kernel.java:64)
at weblogic.rjvm.wls.WLSClientRJVMEnvironment.ensureInitialized(WLSClientRJVMEnvironment.java:55)
at weblogic.protocol.ServerURL.getDefaultURL(ServerU
Any help on the above issue?
Thanks,
NavinHi;
For your issue i suggest close your thread here as changing thread status to answered and move it to Forum Home » Database » JVM which is JVM dedicated forum site.
Regard
Helios -
Error message: AgServerMigration ERROR Using store provider as a session is deprecated.
Hi. I'm using a MacBook Pro, OS X 10.6.5. I have been opening files in Lightroom, editing them, and then doing finishing touches in CS5. When I save the file in CS5 and close it, my Mac returns the above message in Console eight times:
AgServerMigration ERROR Using store provider as a session is deprecated.
AgServerMigration ERROR Using store provider as a session is deprecated.
AgServerMigration ERROR Using store provider as a session is deprecated.
AgServerMigration ERROR Using store provider as a session is deprecated.
AgServerMigration ERROR Using store provider as a session is deprecated.
AgServerMigration ERROR Using store provider as a session is deprecated.
AgServerMigration ERROR Using store provider as a session is deprecated.
AgServerMigration ERROR Using store provider as a session is deprecated.
I have no idea what this means, or whether it is a problem. Does anyone know what this is?
Thanks.I see the same thing and have done for some time. The actual file is being saved back. etc. So, in that respect both Lr and Ps are working fine. IOW, ignore it.
-
Received HTTP response code 500 : Internal Server Error using connection Fi
Hi everybody,
I have configured a file-webservice-file without BPM scenario...as explained by Bhavesh in the following thread:
File - RFC - File without a BPM - Possible from SP 19.
I have used a soap adapter (for webservice) instead of rfc .My input file sends the date as request message and gets the sales order details from the webservice and then creates a file at my sender side.
I monitored the channels in the Runtime work bench and the error is in the sender ftp channel.The other 2 channel status is "not used" in RWB.
1 sender ftp channel
1 receiver soap channel
1 receiver ftp channel.
2009-12-16 15:02:00 Information Send binary file "b.xml" from ftp server "10.58.201.122:/", size 194 bytes with QoS EO
2009-12-16 15:02:00 Information MP: entering1
2009-12-16 15:02:00 Information MP: processing local module localejbs/AF_Modules/RequestResponseBean
2009-12-16 15:02:00 Information RRB: entering RequestResponseBean
2009-12-16 15:02:00 Information RRB: suspending the transaction
2009-12-16 15:02:00 Information RRB: passing through ...
2009-12-16 15:02:00 Information RRB: leaving RequestResponseBean
2009-12-16 15:02:00 Information MP: processing local module localejbs/CallSapAdapter
2009-12-16 15:02:00 Information The application tries to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.
2009-12-16 15:02:00 Information Trying to put the message into the call queue.
2009-12-16 15:02:00 Information Message successfully put into the queue.
2009-12-16 15:02:00 Information The message was successfully retrieved from the call queue.
2009-12-16 15:02:00 Information The message status was set to DLNG.
2009-12-16 15:02:02 Error The message was successfully transmitted to endpoint com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Internal Server Error using connection File_http://sap.com/xi/XI/System.
2009-12-16 15:02:02 Error The message status was set to FAIL.
Please help.
thanks a lot
RamyaHi Suraj,
You are right.The webservice is not invoked.I see the same error in the sender channel and the receiver soap channel status is "never used".
2009-12-16 15:52:25 Information Send binary file "b.xml" from ftp server "10.58.201.122:/", size 194 bytes with QoS BE
2009-12-16 15:52:25 Information MP: entering1
2009-12-16 15:52:25 Information MP: processing local module localejbs/CallSapAdapter
2009-12-16 15:52:25 Information The application tries to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.
2009-12-16 15:52:25 Information Trying to put the message into the call queue.
2009-12-16 15:52:25 Information Message successfully put into the queue.
2009-12-16 15:52:25 Information The message was successfully retrieved from the call queue.
2009-12-16 15:52:25 Information The message status was set to DLNG.
2009-12-16 15:52:27 Error The message was successfully transmitted to endpoint com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Internal Server Error using connection File_http://sap.com/xi/XI/System.
2009-12-16 15:52:27 Error The message status was set to FAIL.
what can I do about this?
thanks,
Ramya -
Getting "Method 'sign_in' does not exist" Error (using Charles)
This may be a bit off the FLEX field, and have to do with Zend Framework's ZEND_AMF class. Unfortunately I haven't been able to dig anything up, and comments posted on Wade Arnolds site have not received any responses, so I thought I'd give it a go here.
My ServiceController Class:
public function loginAction()
$this->_helper->viewRenderer->setNoRender();
$server = new Zend_Amf_Server();
$server->setClass('LoginAmfService', 'LoginService');
$server->setClassMap('CurrentUserVO', 'CurrentUserVO');
$server->setProduction(false);
print($server->handle());
My LoginAmfService class:
class LoginAmfService
* Main login function.
* @param string $name
* @param string $password
* @return CurrentUserVO
public function sign_in($name, $password)
$authAdapter = new Zend_Auth_Adapter_DbTable(Zend_Registry::get('db'), 'users', 'user_name', 'password', 'PASSWORD(?) AND active = 1');
$returnValue = new CurrentUserVO();
$authAdapter->setIdentity(htmlspecialchars($name))
->setCredential(htmlspecialchars($password));
$authResult = $authAdapter->authenticate();
if ($authResult->isValid())
$userArray = $authAdapter->getResultRowObject(array('id', 'first_name', 'last_name', 'title', 'photo'));
$returnValue->first_name = $userArray->first_name;
$returnValue->last_name = $userArray->last_name;
$returnValue->title = $userArray->title;
$returnValue->photo = $userArray->photo;
$returnValue->token = $userArray->id;
return $returnValue;
* Function used to log people off.
public function sign_out()
$authAdapter = Zend_Auth::getInstance();
$authAdapter->clearIdentity();
My SignIn FLEX module (the relevant portions):
<mx:RemoteObject
id="LoginRemote"
destination="login"
source="SignIn"
showBusyCursor="true"
fault="parentDocument.handleFault(event)"
>
<mx:method name="sign_in" result="signin_handle(event)" />
<mx:method name="sign_out" result="signout_handle(event)" />
</mx:RemoteObject>
<mx:Script>
<![CDATA[
import mx.rpc.events.FaultEvent;
import mx.utils.ArrayUtil;
import mx.rpc.events.ResultEvent;
import mx.controls.Alert;
import com.brassworks.ValueObjects.CurrentUserVO;
import mx.events.VideoEvent;
[Bindable]
private var this_user:CurrentUserVO = new CurrentUserVO();
private function mdl_init():void
focusManager.setFocus(txt_username);
private function signin_handle(event:ResultEvent):void
this_user = event.result as CurrentUserVO;
if (this_user.token == null) {Alert.show("Supplied login credentials are not valid. Please try again.");}
else
this.parentApplication.setUser(this.this_user);
private function signout_handle(event:ResultEvent):void
private function sign_in(event:Event):void
try
//Alert.show(txt_name.text + "|" + txt_password.text);
LoginRemote.sign_in(txt_username.text, txt_password.text);
catch (error:Error)
this.parentDocument.handleFault(error);
private function sign_out(event:Event):void
private function show_error(error:Error, s_function:String):void
Alert.show("Method:" + s_function + "\nName: " + error.name + "\nID: " + error.errorID + "\nMessage: " + error.message + "\nStack Trace: " + error.getStackTrace() + "\nError: " + error.toString());
private function handleFault(event:FaultEvent):void
Alert.show(event.fault.faultDetail, event.fault.faultString);
]]>
</mx:Script>
Now, all this is great and good, as it works with Zend Framework 1.7.6. However, when I try to upgrade to 1.7.8 (to take advantage of session management and other bug-fixes), I get the following error (using Charles):
#1 /var/web/htdocs/core/library/Zend/Amf/Server.php(390): Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))
#2 /var/web/htdocs/core/application/default/controllers/ServicesController.php(73): Zend_Amf_Server->handle()
#3 /var/web/htdocs/core/library/Zend/Controller/Action.php(503): ServicesController->loginAction()
#4 /var/web/htdocs/core/library/Zend/Controller/Dispatcher/Standard.php(285): Zend_Controller_Action->dispatch('loginAction')
#5 /var/web/htdocs/core/library/Zend/Controller/Front.php(934): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#6 /var/web/htdocs/core/application/bootstrap.php(39): Zend_Controller_Front->dispatch()
#7 /var/web/htdocs/core/public/index.php(5): Bootstrap->runApp()
#8 {main} ?Method "sign_in" does not exist
I have no idea why this would not work anymore. My assumption is that I am not correctly setting up Zend_Amf (but then again, my counter-argument is that it worked before, so ..... ????)
Thanks for any help!
-MikeFor those that are also fighting this issue:
The problem appears to be that the RemoteObject needs to specify the class containing the methods as a source parameter. According to this bug report (http://framework.zend.com/issues/browse/ZF-5168) it is supposed to have been addressed, but apparently has re-emerged in Zend_Amf since version 1.7.7.
Using my example above, I would have to specify the RO as:
<mx:RemoteObject
id="LoginRemote"
destination="login"
source="LoginAmfService"
showBusyCursor="true"
fault="parentDocument.handleFault(event)"
>
<mx:method name="sign_in" result="signin_handle(event)" />
<mx:method name="sign_out" result="signout_handle(event)" />
</mx:RemoteObjecct> -
Does anyone know how to delete a template created in error using PAGES?
I created some templates in error using PAGES and cannot figure out how to remove them/delete them. Anyone know how to do this? Fran
Look in the More like this on the right.
-
I´m trying to open an excel file in numbers not being successful. The error msg is unexpectedly error using plugin SFCompatibility can you help me? Already changed the extension of the excel document to xlsx an now gives an unknown import error.
In Excel have you tried saving directly to xls (not xlsx) and opening the xls in Numbers?
If you have a complicated workbook in Excel that uses lots of Excel's advanced features, Numbers may not be able to handle the import. It does pretty well on basic things, though.
If you're just trying to get data into Numbers, then often copy-paste from Excel is easier than trying to open xls files.
SG -
I just encountered an error using the BPEL console in one of our test environments. I got the error when I clicked 'Manage BPEL Domain' and then clicked the 'Threads' tab. I also get the error when I click the 'Statistics' tab. Other tabs are OK, 'Configuration', 'Logging', 'Adapter Stats'.
Note that this is happening on one test server, other dev/test servers are OK.
Oracle BPEL Server version 10.1.3.3.1
Build: 0
Build time: Wed Jan 16 02:42:55 PST 2008
Build type: release
Source tag: PCBPEL_10.1.3.3.1_GENERIC_RELEASE
Exception Message:
[javax.servlet.ServletException]
The system encounters errors while running as the authenticated identity.
Exception Trace:
javax.servlet.ServletException: The system encounters errors while running as the authenticated identity.
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:429)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_include(ServletRequestDispatcher.java:160)
at com.evermind.server.http.ServletRequestDispatcher.access$000(ServletRequestDispatcher.java:51)
at com.evermind.server.http.ServletRequestDispatcher$1.oc4jRun(ServletRequestDispatcher.java:97)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:102)
at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:453)
at domain.jspService(_domain.java:210)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:131)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)I just encountered an error using the BPEL console in one of our test environments. I got the error when I clicked 'Manage BPEL Domain' and then clicked the 'Threads' tab. I also get the error when I click the 'Statistics' tab. Other tabs are OK, 'Configuration', 'Logging', 'Adapter Stats'.
Note that this is happening on one test server, other dev/test servers are OK.
Oracle BPEL Server version 10.1.3.3.1
Build: 0
Build time: Wed Jan 16 02:42:55 PST 2008
Build type: release
Source tag: PCBPEL_10.1.3.3.1_GENERIC_RELEASE
Exception Message:
[javax.servlet.ServletException]
The system encounters errors while running as the authenticated identity.
Exception Trace:
javax.servlet.ServletException: The system encounters errors while running as the authenticated identity.
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:429)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_include(ServletRequestDispatcher.java:160)
at com.evermind.server.http.ServletRequestDispatcher.access$000(ServletRequestDispatcher.java:51)
at com.evermind.server.http.ServletRequestDispatcher$1.oc4jRun(ServletRequestDispatcher.java:97)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:102)
at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:453)
at domain.jspService(_domain.java:210)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:131)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595) -
Warnings/Errors using getClass().newInstance()
I'm getting some warnings & errors using getClass().newInstance() on an object. I can't however see what's wrong.
First a little background, Bar is a class that manages a set of beans, including creation. One of the actions is to create a special copy of bean, the method that does this does some bookkeeping (such that a particular instance of Bar will only work with objects it created).
This class was originally written in 1.4 and I'm now trying to genericify it.
First attempt:
public class Bar<T extends Foo> {
public T getFlaggedBean(T fromBean) throws InstantiationException, IllegalAccessException {
T newBean = fromBean.getClass().newInstance();
// do some stuff
return newBean;
}This yielded: "Type mismatch: cannot convert from capture#1-of ? extends Foo to T"
I can cast:
T newBean = (T) fromBean.getClass().newInstance();Which drops me to a warning a can suppress: "Type safety: Unchecked cast from capture#1-of ? extends Foo to T".
The code runs fine like that, but I'd rather not even have a warning to suppress, I don't like suppress them unless I know that it really is safe.
The code above looks perfectly reasonable to me, I can't figure out why it could be problematic, which leads me to wonder if I'm missing something. We've got a parameter that is of type T or a subclass of it, calling getClass().newInstance() creates an new object such that origobj.getClass() == newobj.getClass() *. Since that class is T or a subclass of it, it should be assignable to T.
The code above when, compiled and subjected to type erasure, effectively produces a method that looks like this:
public Foo getFlaggedBean(Foo fromBean) throws InstantiationException, IllegalAccessException {
Foo newBean = (Foo) fromBean.getClass().newInstance();
// do some stuff
return newBean;
}Note that the cast to Foo is strictly unnecessary.
There's a couple ways I could solve this, such as:
public <S extends T> T getFlaggedBean(Class<S> useClass, S fromBean) throws InstantiationException, IllegalAccessException {
T newBean = useClass.newInstance();
// do some stuff
return newBean;
}I'd rather not change the API, though. Can anybody give me an idea where the initial code, with warnings could be unsafe?
Neil
* Unless you're mucking about with class loaders, but that problem would be an issue with non-generic code too.Paul,
So does that bit of the JLS mean that my compiler is doing something wrong when it finds the getClass() call, in the code below, to return Class<? extends Foo> rather than Class<? extends T>? If the latter were returned it would compile fine.
public class Bar<T extends Foo> {
public T getFlaggedBean(T fromBean) throws InstantiationException, IllegalAccessException {
T newBean = fromBean.getClass().newInstance(); // doesn't compile
// do some stuff
return newBean;
}I was initially distracted by the "capture#1-of" and thought that was culprit, but as the code below demonstrates calling getInstance() on an instance of a class the compiler notes as "Class<capture#1-of ? extends Foo>" assigns to Foo just fine. Interestingly in this code my IDE says that getClass() is returning "Class<? extends Foo>", both javac and the IDE spat out "Class<capture#1-of ? extends Foo>" when the 1st line of the method had a warning or error. I assume that "Class<? extends Foo>" and "Class<capture#n-of ? extends Foo>" are equivalent and that "capture#n-of" is something fairly internal to the compiler. Can anyone shed light on that?
public class Bar<T extends Foo> {
public Foo getFlaggedBean(T fromBean) throws InstantiationException, IllegalAccessException {
Foo newBean = fromBean.getClass().newInstance(); // this works
// do some stuff
return newBean;
}
Maybe you are looking for
-
Yosemite System Crashes on Boot with Dell U2713HM
Previously under Mavericks I had no issue with a Dell U2713HM monitor and my 'non-stock' NVidia card. (The reason I'm using the video card I am is because the stock ATI card (ATI Radeon HD 2600 XT) is known do fry itself which I discovered after rep
-
Headphones remote no longer works with iphone 4s
I just purchased an iphone 4s and when i was listening to music the skip/back track functions no longer work, is there any suggestions to make it functional again. Double click reduces volume to 50% or brings up Siri where it should skip to next trac
-
Large PDF file sizes when exporting from InDesign
Hi, I was wondering if anyone knew why some PDF file sizes are so large when exporting from ID. I create black and white user manuals with ID CS3. We post these online, so I try to get the file size down as much as possible. There is only one .psd im
-
hi i've just signed up for lightroom and when i go into the develop screen i get a blue screen with a cross through it and it says cant load picture. any idea how to get around this?
-
Watch fullscreen movie on 2nd monitor & work on my MBP @ the same time?
I hooked up a 2nd monitor to my MBP (mini to VGA) and figured out how to have an extended desktop. It's a little tricky adjusting where the pointer will be (I don't totally understand it, but with trial and error and lots of persistence, I finally go