Unable to execute java version of ojc, error string C:\jdk\jdev\bin\ojcw
I Can't deploy EJB to WebLogic Server 6.1.
I get error:
Checking weblogic-ejb-jar.xml for completeness...
Wrote EJB .jar file to C:\java\webservices\weather\ejb1.jar
Generating WebLogic EJB container classes...
C:\jdk\jdk\jre\bin\javaw.exe -classpath C:\jdk\jdev\lib\ext\weblogic.jar;C:\jdk\jdk\jre\lib\rt.jar;C:\jdk\jdk\jre\lib\i18n.jar;C:\jdk\jdk\jre\lib\sunrsasign.jar;C:\jdk\jdk\jre\lib\jsse.jar;C:\jdk\jdk\jre\lib\jce.jar;C:\jdk\jdk\jre\lib\charsets.jar;C:\jdk\jdk\jre\classes;C:\jdk\jdev\lib\ojc.jar;C:\jdk\jdev\lib\jdev-rt.jar;C:\jdk\jdk\jre\lib\ext\activation.jar;C:\jdk\jdk\jre\lib\ext\jcert.jar;C:\jdk\jdk\jre\lib\ext\jndi.jar;C:\jdk\jdk\jre\lib\ext\jnet.jar;C:\jdk\jdk\jre\lib\ext\jta.jar;C:\jdk\jdk\jre\lib\ext\mail.jar;C:\jdk\j2ee\home\ejb.jar;C:\jdk\j2ee\home\jaxp.jar;C:\jdk\j2ee\home\jdbc.jar;C:\jdk\j2ee\home\jaas.jar;C:\jdk\j2ee\home\jsse.jar weblogic.ejbc -compiler C:\jdk\jdev\bin\ojcw.exe -classpath C:\jdk\jdev\lib\ext\weblogic.jar;C:\jdk\jdk\jre\lib\rt.jar;C:\jdk\jdk\jre\lib\i18n.jar;C:\jdk\jdk\jre\lib\sunrsasign.jar;C:\jdk\jdk\jre\lib\jsse.jar;C:\jdk\jdk\jre\lib\jce.jar;C:\jdk\jdk\jre\lib\charsets.jar;C:\jdk\jdk\jre\classes;C:\jdk\jdev\lib\ojc.jar;C:\jdk\jdev\lib\jdev-rt.jar;C:\jdk\jdk\jre\lib\ext\activation.jar;C:\jdk\jdk\jre\lib\ext\jcert.jar;C:\jdk\jdk\jre\lib\ext\jndi.jar;C:\jdk\jdk\jre\lib\ext\jnet.jar;C:\jdk\jdk\jre\lib\ext\jta.jar;C:\jdk\jdk\jre\lib\ext\mail.jar;C:\jdk\j2ee\home\ejb.jar;C:\jdk\j2ee\home\jaxp.jar;C:\jdk\j2ee\home\jdbc.jar;C:\jdk\j2ee\home\jaas.jar;C:\jdk\j2ee\home\jsse.jar C:\java\webservices\weather\ejb1.jar C:\DOCUME~1\jakubowg\USTAWI~1\Temp\wlejb61185.jar
fatal error: unable to execute java version of ojc, error string <C:\jdk\jdev\bin\ojcw.exe>
Exec failed .. exiting
**** weblogic.ejbc returned with a non-zero exit status:
#### Deployment incomplete. #### 2002-06-27 11:19:29
Does anyone give me some advices?
Grzegorz
try to compile your programm from command prompt
change dir to hello.java directory
to compile programm type:
javac hello.java
if it will compile successfully run it by typing
java hello
if it will not be helpfull uninstall JDK 1.4 and instal JDK again. I'd recomend JDK 1.5.
Similar Messages
-
Jrockit 3.0.0-1.5.0 on Solaris 9 - coredump when executing java -version
Hi,
I installed jrrt-3.0.0-1.5.0 on a Solaris 9 virtual machine. When I set JAVA_HOME and PATH to point to the jrockit install and then execute java -version, I get a Segmentation Fault. Any idea why this would be happening? I don't see a core dump file being output so I'm not sure how to troubleshoot.
Thanks in advance for your help. We are trying to install JRockit to overcome some PermGen memory issues we are seeing while running WL 9.2.3 with Sun's Java 1.5.Hello,
First, make sure you have followed the installation instructions with regards to OS patches etc to the letter:
http://e-docs.bea.com/platform/suppconfigs/configs/solaris/solaris9_92.html
If you still get the segfault and get a text dump (jrockit.<pid>.dump) can you post it here in its entirety? If not, I suggest that you contact Oracle Support to get help. It is possible that you have OS configuration issues or are running in an unsupported configuration (the virtualizaton setup).
Regards,
Henrik -
Unable to install Java Version 7
I currently have Java Version 6 loaded. I downloaded the latest version of Java Version 7. It was a pkg installer. When I ran it it said I couldn't install it because I didn't download it from the Apple Store. Also there is no Java panel in the System Preferences like in Moultanl Lion. It looks like any Package Installer wont run unless it came from the Apple Store
Glad to help. But seriously, since Java is a known and popular vector for cyberattack, I'd suggest leaving it disabled in your browser(s) unless it's necessary for a valid reason. Also, having allowed apps from anywhere, I'd suggest switching back to the earlier, more secure setting until another such need arises to avoid a questionable app slipping in under the wire.
-
Unable to execute java class.
HI !
I have got a very weird problem .I have wrritten a simple java program Hello world using Weblogic workshop.As required I'm saving this file in the package folder and executing it .I have set the home directories properly .My code is :
package java1;
public class hello
public static void main(String[] args)
System.out.println("Hello World");
After I compile I get the foolowing in the o/p window :
Trying to attach to 3218...
Starting process in C:\bea\myprojects
C:\bea\jdk141_02\bin\javaw.exe -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=3218,suspend=y,server=y -classpath myprojects.proj1.java1.hello
Usage: javaw [-options] class [args...]
(to execute a class)
or javaw -jar [-options] jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp -classpath <directories and zip/jar files separated by ;>
set search path for application classes and resources
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
I dont know what to do ? Do I have to set any paths or any thing ? It is not required to set the class path here.
Please Help.
Thanks in advance.try to compile your programm from command prompt
change dir to hello.java directory
to compile programm type:
javac hello.java
if it will compile successfully run it by typing
java hello
if it will not be helpfull uninstall JDK 1.4 and instal JDK again. I'd recomend JDK 1.5. -
Unable to execute java api method with another user than OWF_MGR...
Sorry if this question seems stupid but I just begin with oracle products... ;-)
When i specify another user than the owf_mgr, as KWalker for instance, I get permission problems when I use Java API.
But when I do the same via the web it is OK.
Dis I miss a step in the installation?
Thanks
RolandYou need to give the execute grant on wf_engine object of owf_mgr to Kwalker.
-
ACE - unable to execute various show commands. Error: Called API timed out
Hi I am runnng version A2(2.3) on a HA ACE setup.
I have noticed today that issuing various show commands such as 'show run' and 'show probe' on the active ACE have suddenly stopped working. On hitting return the ACE sits there for a while non respondant before finally outputting an Error: Called API timed out and then returning to the command prompt. It only seems to happen on show commands that would generate a lot of output, for example a 'show version' works. I have also noticed a delay sometimes in logging into the active ACE which has again only come to light today.
We havent made any changes recently and this behavior has not been seen before.
I could only find one similar posting which kind of suggested that a high logging level may be to blame for this issue, we are running at debugging level but have since the ACE's were brought into play over 12 months ago (yep i know logging at that level is far from ideal).
Production traffic does not seem to be affected at present.
Apart from reudcing the logging level I am not sure what else could be causing this issue, has anyone come across this one before?
Unfortunaltey the 'show resource usgae in one of the commands that wont work'
A 'show cpu' command shows nothing above 10%
Though multiple context are configured (3), the default resource allocation is in place between all three.
Thanks for taking the time to read.Thanks for the response I will take a look at that Bug ID.
In the end as you have already suggested above I ended up failing across to the standby ACE and powering down/up the affected ACE module from the switch CLI. This seems to have restored all functionality. Even a soft reload command prior on the affected ACE didnt take affect. -
Cannot execute java.exe
I'm really having a hard time here. I have installed, uninstalled and installed again SDK1.3.1. I've updated my autoexec.bat to look as follows and I still get cannot execute c:\jdk13\bin\java.exe when trying to do the -version command. I'm running Windows ME. Any suggestions????
SET PROMPT=$p$g
SET TEMP=C:\WINDOWS\TEMP
SET TMP=C:\WINDOWS\TEMP
SET COMSPEC=C:\WINDOWS\COMMAND.COM
SET windir=C:\WINDOWS
SET winbootdir=C:\WINDOWS
SET PATH=C:\jdk13;C:\jdk13\bin;C:\jdk13\jre;C:\jdk13\lib;C:\jdk13\include;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRA~1\DELL\RESOLU~1\COMMON\BIN
SET CLASSPATH=.;c:\jdk13\lib\tools.jar
Thanks,
LeeanneDidn't work :(:(:(:( I've even went to the bin directory and try to execute java -version from the directory and still get an error cannot execute c:\jdk13\bin\java.exe. I get the same error trying javac too. I really want to learn java, but not having much luck. Is there a problem with Windows ME and Java??
Thanks! -
Java Version for ERP 2005 and Oracle 10.2.0.1
Hi all,
I've just a question. I'm trying to install ERP2005 on Windows 2003 Server with Oracle 10.2.0.1.
But the process terminates at the step "Import ABAP" with the error messages concerning "CJS-30022 Program 'Migration Monitor' exits with error code 103 " and " FCO-00011 The step runMigrationMonitor with step key".
I've had a similiar abort with another installation. Could the java version cause this error? Which java version is recommended as standard in regard to our ERP2005-installation?
Please help me !!
Thanks in advance.10.2.0.1 is not supported.
you have directly update 10.2.0.1 after the installation to 10.2.0.2 and then install at least hotfix 10.2.0.2.12 (current is 10.2.0.2.13).
Using older version of Oracle 10.2.0.2.12 will cause a lot of problems.
By the way, are you installing a blank new ERP2005 or are you performing a systme copy?
Peter -
Java version on different users
Hi,
OS:red hat 4.2
apps 11.5.10
Here we installed java *1.5, 1.4*
In applydev user,
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
. /ydev/u01/oracle/ydevappl/APPSORA.env
export PWR_TOP=/ydev/u01/oracle/ydevappl/pwr/11.5.0
OC4J_TOP=$PWR_TOP/oc4j
export OC4J_TOP
export LD_ASSUME_KERNEL=2.4.19
export PATH
unset USERNAME
[applydev@server2 ~]$
If we executed java -version
[applydev@server2 ~]$ java -version
java version "1.5.0_15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
Java HotSpot(TM) Server VM (build 1.5.0_15-b04, mixed mode)
if we executed only java ,we got the following output
[applydev@server2 ~]$ java
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is server,
because you are running on a server-class machine.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
[applydev@server2 ~]$
In another user abuabucker
bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
#. /ydev/u01/oracle/ydevappl/APPSORA.env
export PWR_TOP=/ydev/u01/oracle/ydevappl/pwr/11.5.0
OC4J_TOP=$PWR_TOP/oc4j
export OC4J_TOP
export JAVA_TOP=/usr/java/j2sdk1.4.2_04
export PATH
unset USERNAME
if we executed java -version
[abubucker@server2 ~]$ java -version
java version "1.4.2"
gcj (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
if we executed java only
we got the following output
[abubucker@server2 ~]$ java
Usage: gij [OPTION] ... CLASS [ARGS] ...
to invoke CLASS.main, or
gij -jar [OPTION] ... JARFILE [ARGS] ...
to execute a jar file
Try `gij --help' for more information.
where options include: this one is missing at abuabucker user.
so develop able to compile the program properly.
how to resolve thatHi,
thanks for reply.if we remove the comment,java version is j2sdk1.5.
but developer needs 1.4..
we set the JAVA_HOME=/usr/java/j2sdk1.4.2_04
i executed the followings
why we don't get */usr/java/j2sdk1.4.2_04* when we iisued which java and whereis java
how to do that
[abubucker@server2 ~]$ java
Usage: gij [OPTION] ... CLASS [ARGS] ...
to invoke CLASS.main, or
gij -jar [OPTION] ... JARFILE [ARGS] ...
to execute a jar file
Try `gij --help' for more information.
[abubucker@server2 ~]$ which java
/usr/bin/java
[abubucker@server2 ~]$ whereis java
java: /usr/bin/java /etc/java /usr/lib/java /usr/share/java
[abubucker@server2 ~]$ -
Java - version does not return the version??
Hi,
The following is from a cmd window
C:\Program Files\JavaSoft\JRE\1.2\bin>java -version
C:\Program Files\JavaSoft\JRE\1.2\bin>
It seems to be missing the expected:
java version "1.2.2"
Classic VM (build JDK-1.2.2_006, native threads, symcjit)
Another side effect is that any application using java to launch creates a java process (briefly observed through task manager) and then dies almost instantly.
The machine is a Win2000 Server running JRE 1.2.2_006, I've tried uninstalling, re-installing, rebooting (between unistalling and reinstalling), setting the path and classpath variables to nothing and running from the folder.
Anyone seens this before? know what the resolution is?
Thanks
DaveThanks for the response, I've already tried that with no success.
It appears that it might be related to the fact that it's installed on a VMWare machine.
The java -version command works fine on the VMWare machine when the VM is running on the host machine that it was built on, however when the VMWare machine was moved to a new host it seems that when you run the java interpreter it launches and then just dies??
I still don't have an answer for why the Java -version does not work.
As I said before I have uninstalled and reinstalled JRE 1.2.2 a couple of times with no success, however a workaround appears to be to install the JRE 1.3.1.
After installing JRE 1.3.1 the java -version command works, fortunately the java applications I am using 'seem' to be compatible (with a few modifications to path variables etc) with the 1.3.1 version�.
Thanks
Dave -
Mainframe problem - java -version output : Error: unable to allocate
Hi,
I am calling "java -version" command from my java program. my program is executing well but when it comes to execute this command using Java Runtime it giving following error.
java -version output : Error: unable to allocate 67108864 bytes for GC in j9vmem_reserve_memory.
Error: unable to allocate 53686784 bytes for GC in j9vmem_reserve_memory.
Error: unable to allocate 42949120 bytes for GC in j9vmem_reserve_memory.
Error: unable to allocate 34359296 bytes for GC in j9vmem_reserve_memory.
Error: unable to allocate 27487232 bytes for GC in j9vmem_reserve_memory.
JVMJ9VM015W Initialization error for library j9jit23(11): cannot initialize JIT
Could not create the Java virtual machine.
and pogram continue executing.
is any body have idea why it is behaving like this and wht needs to be done.
this program i am writing for IBM mainframe machine.java -version output : Error: unable to allocate 67108864 bytes for GC in j9vmem_reserve_memory.
Error: unable to allocate 53686784 bytes for GC in j9vmem_reserve_memory.
Error: unable to allocate 42949120 bytes for GC in j9vmem_reserve_memory.
Error: unable to allocate 34359296 bytes for GC in j9vmem_reserve_memory.
Error: unable to allocate 27487232 bytes for GC in j9vmem_reserve_memory.
JVMJ9VM015W Initialization error for library j9jit23(11): cannot initialize JIT
Could not create the Java virtual machine.As a guess
1. Environment is messed up
2. Install of java is messed up.
You might look for command line options that allow you to change the heap size. Try making it smaller.
You might also want to verify that the 'java' you are running is actually the binary that you think it is, versus a script/link to someplace weird. -
Dear Friends
I am stuck in CONFIGURATION PHASE of EHP5 Upgrade.
The ABAP phase has been completed but stuck in the Java processing INPUT_ADM_USER_PWD
"unable to execute the SDT request Java_EE operation configure on
hostname dbserver1 instance 02 Modules execution failed.
Execution of the unit PREPARE failed. Connection to the Upgrade Tool was closed."
TROUBLE TICKET LOG
Trouble Ticket Report
Installation of enhancement package 1 for SAP NetWeaver 7.0
SID................: $(/J2EE/StandardSystem/SAPSystemName)
Hostname...........: $(/J2EE/SAPGlobalHost)
Install directory..: $(/J2EE/StandardSystem/SAPSIDDirectory)
Upgrade directory..: $(/JUMP/DIR/MAIN)
Database...........: $(/J2EE/DBSystem/DBInfoName)
Operating System...: $(/J2EE/StandardSystem/ServiceInstance/BCCentralServicesInstanceHost/OpSysType)
JDK version........: $(/SystemProperties/JavaVersion) $(/SystemProperties/JavaVendor)
SAPJup version.....: $(/MAIN_VERSION)
Source release.....: $(/ER_CODE)
Target release.....: $(/J2EE/ShadowSystem/Version)
Start release SP...: $(/J2EE/StandardSystem/SPLevel)
Target release SP..: $(/J2EE/ShadowSystem/SPLevel)
Current usages.....: $(/J2EE/StandardSystem/Usages/StrCurrentUsages)
ABAP stack present.: $(/J2EE/StandardSystem/BCSystemPresent)
The execution of ended in error.
Could not perform operation on secure store. See previous messages.
Could not perform operation on secure store. See previous messages.
Class com.sap.security.core.server.secstorefs.SecStoreFS method createStoreWithEncryption has thrown the exception com.sap.security.core.server.secstorefs.FileIOException
com.sap.security.core.server.secstorefs.FileIOException: I/O error on file "e:\usr\sap\PRD\SYS\global\security\data\JUpgrade.key".
java.io.FileNotFoundException: e:\usr\sap\PRD\SYS\global\security\data\JUpgrade.key (The system cannot find the path specified)
More information can be found in the log file .
Use the information provided to trouble-shoot the problem. There might be an OSS note providing a solution to this problem. Search for OSS notes with the following search terms:
com.sap.sdt.util.secstore.SecureStoreException
Could not perform operation on secure store. See previous messages.
INPUT_ADM_USER_PWD
INIT
PREPARE
NetWeaver Enhancement Package Installation
SAPJup
Java Enhancement Package Installation
Regards
Anwer Waseem
Edited by: Anwer Waseem on Nov 9, 2011 11:48 PMTROUBLE TICKET LOG
Trouble Ticket Report
Installation of enhancement package 1 for SAP NetWeaver 7.0
The execution of ended in error.
Could not perform operation on secure store. See previous messages.
Could not perform operation on secure store. See previous messages.
Class com.sap.security.core.server.secstorefs.SecStoreFS method createStoreWithEncryption has thrown the exception com.sap.security.core.server.secstorefs.FileIOException
com.sap.security.core.server.secstorefs.FileIOException: I/O error on file "e:\usr\sap\PRD\SYS\global\security\data\JUpgrade.key".
java.io.FileNotFoundException: e:\usr\sap\PRD\SYS\global\security\data\JUpgrade.key (The system cannot find the path specified)*
its locating on drive e:\ which is wrong directory, the global directory are avaiable on drive S:\; this is the reasons that processing are ending with error.
Please advise how to resolve ASAP.
More information can be found in the log file .
Use the information provided to trouble-shoot the problem. There might be an OSS note providing a solution to this problem. Search for OSS notes with the following search terms:
com.sap.sdt.util.secstore.SecureStoreException
Could not perform operation on secure store. See previous messages.
CHECK_PREPARE_UNIT
Regards
Anwer Waseem -
Error - Unable to execute service and function
Hi all,
I created a sample component with service handlers but it is giving errors Unable to execute service GET_PURGE_LIST and function getPurgeList.
(System Error: The service method 'getPurgeList' is not defined.) Please let me know what changes to be made to fix this
Below are the files I used:
======================
ampfacpurgecontents_resource.htm
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>
ServiceHandlerSample htmlIncludeOrString
</title>
</head>
<body>
<@dynamichtml custom_finish_layout_init@>
<$include super.custom_finish_layout_init$>
if (navBuilder)
if (isLoggedIn)
navBuilder.addChildNodeTo('MY_CONTENT', 'item', 'id==GET_PURGE_LIST',
'label=='+'Show Purge List',
'url==<$HttpCgiPath$>?IdcService=GET_PURGE_LIST');
<@end@>
</body></html>
===============================================
Services
======
servicehandlersample_service.htm
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>
ServiceHandlerSample service
</title>
</head>
<body>
<@table ServiceHandlerSample_Services@>
<table border=1><caption><strong>Scripts For Custom Services</strong></caption>
<tr>
<td>Name</td><td>Attributes</td><td>Actions</td>
</tr>
<tr>
<td>GET_PURGE_LIST</td>
<td>DocService
0
PUTRGE_LIST_PAGE
null
null<br>
null</td>
<td>3:getPurgeList:GET_LIST:0:null</td>
</tr>
</table>
<@end@>
</body></html>
======================
service handler
============
servicehandlers_handlers.htm
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>
ServiceHandlerSample htmlIncludeOrString
</title>
</head>
<body>
<@table SampleServiceHandlers@>
<table border=1><caption><strong>ServiceHandlers</strong></caption>
<tr>
<td>serviceName</td><td>handler</td><td>searchOrder</td>
</tr>
<tr>
<td>DocService</td>
<td>com.ameriprise.ServiceHandlerSample.getPurgeList</td>
<td>100</td>
</tr>
</table>
<@end@>
</body></html>
======================================================
ServiceHandlerSample.hda
<?hda version="10.1.3.3.3 (080807)" jcharset=UTF8 encoding=utf-8?>
@Properties LocalData
version=2013_09_25(build 1)
blFieldTypes=
ComponentName=ServiceHandlerSample
hasPreferenceData=false
blDateFormat=M/d/yy {h:mm[:ss] {aa}[zzz]}!mAM,PM!tAsia/Calcutta
@end
@ResultSet ResourceDefinition
4
type
filename
tables
loadOrder
resource
resources/servicehandlersample_resource.htm
null
1
resource
resources/servicehandlers_handlers.htm
SampleServiceHandlers
1
service
resources/servicehandlersample_service.htm
ServiceHandlerSample_Services
1
template
templates/servicehandlersample_template.hda
null
1
@end
@ResultSet Filters
4
type
location
parameter
loadOrder
@end
@ResultSet MergeRules
4
fromTable
toTable
column
loadOrder
ServiceHandlerSample_Templates
IntradocTemplates
name
10
SampleServiceHandlers
ServiceHandlers
null
1
@end
@ResultSet ClassAliases
3
classname
location
loadOrder
@end
========================
Java Class
package com.ameriprise.ServiceHandlerSample;
import java.util.*;
import java.io.*;
import java.net.*;
import intradoc.common.*;
import intradoc.data.*;
import intradoc.shared.*;
import intradoc.server.*;
public class GetPurgedList extends ServiceHandler {
public void getPurgeList() throws ServiceException, DataException
DataResultSet fullStockData = new DataResultSet(new String[] {"Sample Content",
"11111", "123", "Sept-25-13" });
String resultSetName = m_currentAction.getParamAt(0);
m_binder.addResultSet(resultSetName, fullStockData);
============================================================
Template
servicehandlersample_template.hda
<?hda version="10.1.3.3.3 (080807)" jcharset=UTF8 encoding=utf-8?>
@Properties LocalData
blFieldTypes=
blDateFormat=M/d/yy {h:mm[:ss] {aa}[zzz]}!mAM,PM!tAsia/Calcutta
@end
@ResultSet ServiceHandlerSample_Templates
5
name
class
formtype
filename
description
PUTRGE_LIST_PAGE
Document
null
purge_list_page.htm
null
@endHi Ashok,
In your servicehandlersample_service.htm the Service Class should be your package name and not DocService. Here is how it should be:
<@table ServiceHandlerSample_Services@>
<table border=1><caption><strong>Scripts For Custom Services</strong></caption>
<tr>
<td>Name</td><td>Attributes</td><td>Actions</td>
</tr>
<tr>
<td>GET_PURGE_LIST</td>
<td>com.ameriprise.ServiceHandlerSample
0
PUTRGE_LIST_PAGE
null
null<br>
null</td>
<td>3:getPurgeList:GET_LIST:0:null</td>
</tr>
</table>
<@end@>
HTH
- Anand -
Unable to execute Linux command from Java
Hi,
I am currently working on a code wherein i need to execute Linux command from Java. Below are some of the query i have.
1) Is there any efficient method of running OS commands from Java, rather than using Runtime and Process method.
2) Below is details of my code which fails in execution
**-- Java Version**
java version "1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK Server VM (build 1.6.0-b09, mixed mode)
-- Program Code ----
Where <path> = Path i put myself
package test;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.*;
public class GetInode{
* @param args
public static void main(String[] args) {
GetInode test = new GetInode();
test.getInode();
public void getInode(){
String command = "/usr/bin/stat -Lt <path>;
System.out.println(command);
Process process;
Runtime rt;
try{
rt = Runtime.getRuntime();
process = rt.exec(command);
InputStreamReader isr = new InputStreamReader(process.getErrorStream());
BufferedReader bre = new BufferedReader(isr);
BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream());
System.out.println(bre.readLine());
System.out.println(br.readLine().split(" ")[7]);
process.destroy();
}catch (Exception ex){
System.out.println("Error :- " + ex.getMessage());
------Output -------------
/usr/bin/stat -Lt "<path>"
/usr/bin/stat: cannot stat `"<path>"': No such file or directory
Error :- null
Can any one help me what is wrong and why i am unable to run the Linux command from Java.For clarity purpose............i m submitting actual code here
--- Code ---
package test;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.*;
public class GetInode{
* @param args
public static void main(String[] args) {
GetInode test = new GetInode();
test.getInode();
public void getInode(){
String command = "/usr/bin/stat -Lt \"/afs/inf.ed.ac.uk/user/s08/s0898671/workspace/CASWESBLIN/TestFS/01_FIL_01.txt.txt\"";
System.out.println(command);
Process process;
Runtime rt;
try{
rt = Runtime.getRuntime();
process = rt.exec(command);
InputStreamReader isr = new InputStreamReader(process.getErrorStream());
BufferedReader bre = new BufferedReader(isr);
BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream()));
System.out.println(bre.readLine());
System.out.println(br.readLine().split(" ")[7]);
process.destroy();
}catch (Exception ex){
System.out.println("Error :- " + ex.getMessage());
--- Output ---
[ratz]s0898671: java GetInode
/usr/bin/stat -Lt "/afs/inf.ed.ac.uk/user/s08/s0898671/workspace/CASWESBLIN/TestFS/01_FIL_01.txt.txt"
/usr/bin/stat: cannot stat `"/afs/inf.ed.ac.uk/user/s08/s0898671/workspace/CASWESBLIN/TestFS/01_FIL_01.txt.txt"': No such file or directory
Error :- null
-- Linux Terminal --
If i copy the first line from the output and execute on Linux terminal her is the output that i get
[ratz]s0898671: /usr/bin/stat -Lt "/afs/inf.ed.ac.uk/user/s08/s0898671/workspace/CASWESBLIN/TestFS/01_FIL_01.txt.txt"
/afs/inf.ed.ac.uk/user/s08/s0898671/workspace/CASWESBLIN/TestFS/01_FIL_01.txt.txt 12003 24 81a4 453166 10000 1c 360466554 2 0 1 1246638450 1246638450 1246638450 4096
Can you just assist me where am i really making mistake.......i was wondering if the command that i pass from Java....can be executed on Linux terminal why is it faling to run from java.........and when i print the Error Stream for process output........it show cannot Stat....... -
Error while executing java stored procedure from a pl/sql procedure
We have a requirement where we need to execute JAVA code stored in an Oracle database (Java Stored Procedure). This code uses some JAR files which we have already loaded without any errors in the database.
The class file was also loaded in the database without any errors. But when we execute the method of this class (JAVA code), it gives the following error:
ORA-29532: Java call terminated by uncaught Java exception:
java.lang.NoClassDefFoundError
Is there any way of debugging the code and getting to know where exactly the problem is? Or, any tool/software available for doing the same.
Any pointers would be of great help!
Thanks in advanceHi Uday,
My guess is that there is a problem with your java stored procedure that is causing the "ExceptionInInitializer" error to be thrown. According to the javadoc:
is thrown to indicate that an exception occurred during
evaluation of a static initializer or
the initializer for a static variable
Since I didn't see any of your code in your post, I can't help you much more, I'm afraid. Perhaps if you would provide some more details, I may be able to help you some more. I think the following details would be helpful:
1. Complete error message and stack trace you are getting.
2. The section of your java code that you think is causing the problem.
3. Oracle database version you are using.
Good Luck,
Avi.
Maybe you are looking for
-
I had an old iPod nano with my content saved on it and was stolen. As well, I can't find and access my old account that I had with it. I bought an iPod touch and made a new account so that I could use the iTouch. Anyone know how to find the old accou
-
Torch 9860 - Problem with wifi network
Hi, I have a BB Torch 9860 and the internet access doesn´t work properly when connected to a wifi connection. With my carrier data plan, everything works. Every time i connecto to a wifi connection, the internet access stops working. I tried to clean
-
Error creating materialized view log using DBlink
Hi guys, I have 2 databases in diferent machines . (machine A and B) Machine A is my production database and I have a database link in machine B accessing Machine A CREATE MATERIALIZED VIEW vm_test BUILD IMMEDIATE REFRESH FAST ON commit as select * f
-
hi sap gurus can anybody give me the list of month end closing procedures with T.Codes thank you
-
I see that Apple has had the same issue in 10.8 since I read http://article.wn.com/view/2013/03/21/Fix_Connection_to_Twitter_failed_when_twee ting_from_OS_X/. But I'm not sure what to do now since I have not been able to find a fix for 10.9 Maveric