Diffence system.current_item and system.cursor_item
hi
Diffence system.current_item and system.cursor_item
and diff between decode and case stmt Which is best to use.
thanks
the :system.current_<...> - variables are for upgrade-compatibility with older forms. Don't use them.
Forms-Help :
Note: SYSTEM.CURRENT_ITEM is included for compatibility with previous versions. Oracle recommends that you use SYSTEM.CURSOR_ITEM or SYSTEM.TRIGGER_ITEM instead.
Similar Messages
-
How to capture System.err and System.out in a method?
Is there some way to capture everything that is sent to System.err or System.out and have it instead go to e.g. a method as a String?
The reason I want to do is this: I am invoking some method from a class that sends output to System.err and System.out but while that method is run, I want everything that goes to System.out or System.err to instead go to a String buffer or a Swing Scroll Pane.
What is the easiest way to do this?I want everything that goes to System.out or System.err to instead go to a String buffer or a Swing Scroll Pane.Then maybe you should be searching (and then posting) in the Swing forum. Thats where I've seen this question asked and answered many times in the past.
-
System.out and System.err
Hi all,
This is a stupid newbie question, but I could not find the answer on the Web
site, so here goes: Where do System.out and System.err get written to? I'm
trying to deploy some plain-vanilla stateless session beans that do a bunch
of println() calls, but I can't see the output anywhere! The WebLogic
Console shows no messages, /myserver/weblogic.log has nothing interesting,
and there are no .log files anywhere that I can see. I even searched /tmp
and found nothing of interest. What am I missing? Do I have to explicitly
open a file for System.out and/or System.err? That doesn't sound right...
- danzThe simple answer to your questions are no and no.
I recently logged a problem with BEA WebLogic technical support regarding
this issue and their response is:
You have two choices. You can either use standard Java file i/o to write
your output to a file, or you can use our t3loggingservices to append
messages into the weblogic.log
The "jump point" for the logging services is at --
http://www.weblogic.com/docs51/classdocs/javadocs/weblogic/common/LogService
sDef.html
It is actually very easy to use -- after you import the proper packages into
your web application it is just as easy to use as System.out.println.
John J. Feigal Voice (651)766-8787 (main)
Sr. Technical Consultant (651)766-7249 (direct)
Ensodex, Inc. Fax (651)766-8792
4105 N. Lexington Ave., Suite 150 email [email protected]
Arden Hills, MN 55126 WebSite http://www.ensodex.com
"Jon Wynett" <[email protected]> wrote in message
news:[email protected]...
I'm running WebLogic as an NT Service. Is there any way to see the
System.out.println messages? Can they be redirected to the weblogic.log
file?
We were running through a DOS Window and saw all the messages, however we
ideally want to run Weblogic as a service.
"Rob Woollen" <[email protected]> wrote in message
news:[email protected]...
I'm guessing that you started the server with the .exe file on Windows.
If you're debugging with printlns, it's generally more conventient to
use the startWebLogic.sh or startWebLogic.cmd files to start the server
from a shell.
By default, you'll see stdout and stderr in the window.
-- Rob
Dan Zivkovic wrote:
Hi all,
This is a stupid newbie question, but I could not find the answer on
the
Web
site, so here goes: Where do System.out and System.err get written to?I'm
trying to deploy some plain-vanilla stateless session beans that do abunch
of println() calls, but I can't see the output anywhere! The WebLogic
Console shows no messages, /myserver/weblogic.log has nothinginteresting,
and there are no .log files anywhere that I can see. I even searched/tmp
and found nothing of interest. What am I missing? Do I have toexplicitly
open a file for System.out and/or System.err? That doesn't soundright...
- danz -
System Landscape and system alias
Dear All EP Expert,
I have some general questions.
1) If i wanted to connect my EP 7.0 to backend ECC 6. Is there any specific name that i must use for my system landscape and system alias?
2) Is the system lanscape come in when i include the business package?
3) Where can i download the latest ESS and MSS business package?
Can someone assist me on this?
Thanks you in advance...
Regards,
BryanHi Brian ,
you cal also download latest ESS and MSS business packages from -->
download the business package from service market place.
Navigate through Downloads --> SAP Support Package --> Entry by Application group --> SAP Application Components --> SAP ERP --> SAP ERP2005 -->Entry Point by component -->SAP XSS Self - Service --> SAP ESS 600.
and similar for MSS 600 business package.
You cal also refer to this Note for further details about Self Services Business Packages.
[Note 1004528|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1004528]
Hope this helps.
And Regarding System Alias names, there is no such specific name you should keep, as no standard name exists , read more about it on.
[system aliases|http://help.sap.com/saphelp_nw70/helpdata/en/e9/9bc93f92908032e10000000a11405a/frameset.htm]
Also,
System Aliases and SAP Systems
For SAP systems (BW, CRM, and so on), it is recommended to use a system alias that has as its name parameter the logical system name as defined in the SAP system itself. The logical system is specified in Table T000 in the SAP system.
Reward points if helpful
Regards,
Shailesh Nagar
Edited by: Shailesh Kumar Nagar on Jan 18, 2008 11:29 AM
Edited by: Shailesh Kumar Nagar on Jan 18, 2008 11:37 AM -
System.out and System.err How to get to show up in log
Does anyone know if there is anyway to get System.out and System.err
messages to appear in the log?
Trying to build and debug a JSP project is a complete nightmare when the
remote developers cannot see System.out or System.err messages from helper
classes.
Platform= Windows NT 4.0
Weblogic running as a Service
Thanks in advance!Write a wrapper class to redirect the std out to what ever stream you want.
HTH
Saman -
System.setOut() and System.setErr()
Hi
In my application, I capture all of the println()s to System.out and System.err so that I can display them in a TextArea using a Thread as such:
final PipedInputStream stdoutStream = new PipedInputStream();
PrintStream stdout = new PrintStream(new PipedOutputStream(stdoutStream));
System.setOut(stdout);
final PipedInputStream stderrStream = new PipedInputStream();
PrintStream stderr = new PrintStream(new PipedOutputStream(stderrStream));
System.setErr(stderr);
// start listening to stdout stream
new Thread()
public void run()
try
BufferedReader stdoutReader = new BufferedReader(new InputStreamReader(stdoutStream));
String line = "";
while (line != null)
line = stdoutReader.readLine();
messageArea_.append(line + "\n"); // <----- TextArea
catch (Throwable t)
t.printStackTrace();
}.start();
// ...and same for stderr...
stdout.close();
stderr.close();
// revert System.out and System.err back to default streams
System.setOut(System.out); <--------- !!!
System.setErr(System.err); <--------- !!! The last two line don't behave as I expect, and all output continues to go the the TextArea instead of to System.out and System.err.
Can someone please explain what I've done wrong and how I can go about reverting System.out and System.err?
Thanks in advance
DelfinaWhile the second option may be better in terms of code
style, the first option is still valid and shouldn't
pose problems (the only difference is he writes a
carriage return on the first line regardless). Maybe
I'm missing something ashutosh?Hi schillj, here's the thing, the check for line != null is done before the "first" readLine() is called. So if the first readLine returns a null, it would still send it to the text area. In the my sugested code the first call's results are checked as well.
while (line != null) {
line = stdoutReader.readLine(); messageArea_.append(line + "\n"); // <--TextArea -
System.our and System.err
Hi,
Is there a buffer size for system.out and System.err.
If so how can we retrieve the buffer size.
Thanking You,
Chamal.There is no way to determine the characteristics of the OutputStream behind System.out or System.err.
You could provide your own streams (via setOut() and/or setErr() methods)...
Why do you need to know? -
Temporarily routing System.out and System.err to a String
Hi everybody,
Does anyone know of a way to temporarily route System.out and System.err directly from the console into a String, then set it back to its default to the console? I know how to reroute to a text area:
TextAreaOutputStream taos = new TextAreaOutputStream(yourTextArea);
PrintStream ps = new PrintStream(taos);
System.setErr(ps);
System.setOut(ps);But it doesn't seem like there is either a way to reroute to a String or a way to switch back to the default routing afterward. Can anyone give me some advice on how to do this, please?
Thanks,
Jezzica85Too late to the party?
import java.io.*;
public class Redirection {
public static void main(String[] args) {
System.out.println("To console");
PrintStream old = System.out;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PrintStream ps = new PrintStream(baos);
System.setOut(ps);
System.out.println("To memory");
System.out.print("No 'ln'");
//System.out.flush(); //needed?
System.setOut(old);
System.out.println("To console again?");
System.out.println("earlier I wrote...");
byte[] data = baos.toByteArray();
String message = new String(data);
System.out.println(message);
} -
SRM 5 BBPSTART - System ID and System Messages issues
Hi all,
We just upgraded to SRM 5.0 from SRM 3.0
The shopping cart logon page(bbpstart) doesn't show System ID and also the system Messages also doesn't work on browser when we set message by sm02.
I already checked "System ID" and "System messages" from "Select Display" under System Logon Settings from bbpstart>Error Pages>Logon Errors>Configuration>System Logon Settings.
I searched over the net and can't find anything. I only found a notes for the System messages, but it was for the older release and SRM 5 already applied that note. So I don't know what else I can do.
Thanks for the itime.
KevHello Thomas,
It is not possible to run a system landscape with 2 identical SID's. And even if you do get it running in some kind of freeky way the system would be very instable (how would you know a transport has gone to the right system?).
A system copy and a <SID> change is still possible. However, SAP recommends to do an export and an import of your database. Allthough this is the best and the least confusing way (and labour extensive), it is not really necessary.
If you do a backup/restore procedure with a <SID> change, lets say from PRD to DEV, you will end up with a system that has DEV as <SID> but your tablespaces will look like PSAP-PRD-620. The owner of the database will also be sapprd. This is no problem at all to run the system, it is only confusing.
I know it works, I've got it running. I've also got a sandbox running with user saptsc and database owner cbdamd and <SID> CBD.
Kind regards,
Pascal Ottens -
Is it possible to redirect System.out and System.in for a thread
I would like to run two threads. One should keep writing to System.out and System.in. The other thread output written to System.out and System.in shoudl be captured and written to a file. Is this possible? I don't think so, but perhaps someone know some workaround.
raspedhmmm sure it's possible. You can write an outputstream that does different things depending on which thread is running, and then set system.out to a printstream that writes to that outputstream.
-
Rerouting System.out and System.err
Hi everybody,
I'm trying to make a small application with an agnostic back end that can print out its progress messages to either the console or a JTextArea, depending on whether the console front end or GUI front end is called. I originally created a small utility class that the agnostic back end extended, in which one could set a variable which told it to use the JTextArea or console. The solution seems a bit clumsy to me, though, so it crossed my mind; does anyone know if there is a way, in the main method of a program, to reroute System.out and System.err to a desired location?
Basically, I'd like functionality like this:
Console front end:
1. Start main
2. Create object for back end
3. All calls to System.out and System.err in back end route to console, as usual
GUI front end:
1. Start main
2. Create Object for back end
3. Create GUI
4. Set System.out and System.err to show up in GUI text field
5. All calls to System.out and System.err in back end route to text field in GUI
Is this possible? I have my somewhat hacked solution working fine, but I don't want to start ripping it apart too badly until I know if something simpler like this can work. Can anyone point me in the right direction, please?
Thanks,
Jezzica85Thanks for the explanation scphan,
In that case, I don't think that's exactly what I'm looking for.
To answer both your question and cotton's:
What I want to to is directly reroute System.out and System.err to a text area, only if I'm using a GUI. I'll try and explain it all, so if it gets long please bear with me--
I have 3 classes, Calculate, Console, and GUI.
Calculate is the back end of my application. Console is a front end class that allows the actions of Calculate to be run on the command line. GUI is a front end class that allows the actions of Calculate to be shown in a text area.
I currently have a class, Output, that Calculate extends, and uses to print out progress/error messages. Output has a JTextArea data member, and print/println data members. If the JTextArea is null, calling the print methods prints to the console, and if not, the print methods print to the text area. So, at the current moment, I have a solution similar to that which scphan described (although I didn't recognize the terminology at first--apologies, it's almost 3 AM here).
What I was wondering is if there is a simpler, more elegant way to do this. I have a few different small applications that have a similar setup to this one, and all the background classes must extend the Output class to work. If creating a class that every back end class must extend is the best way to do this, then I won't mess with what I have, but if there is a more elegant solution I've overlooked, I'd like to use that instead.
I hope that's clear, sorry if there was any confusion.
Thanks,
Jezzica85 -
Replace System.out and System.err
Hi there,
i got an Applet/Application Hybrid and i want to replace the System.out and System.err - Stream with my personal Streams.
When started as an Application it shell be given out to a file and when started as an Applet it shell be given out to the current HTML-Document...
But how do i realize that with the Applet. The thing with the Application and the file works fine, so don�t worry about that..
so in short my question is:
how can i replace/modify the System.out and System.err Streams in a way so that the output will be given the current HTML-Document when started as an Applet?
thx anyway
cu Errraddicatori know this method, but i don�t know how to make a PrintStream that gives the input to the HTML-Document...
excuse me if my kind of expressions were not so excactly...
thx anyway
cu Errraddicator -
OPMN system.out and system.err log rotation?
I would like to rotate the log generated by OPMN by default for system.out & system.err, which is named:
OC4J~APPNAME~home~default_island~1
I see the entries in the opmn.xml file for the ons.log and ipm.log which ARE being rotated properly. I've read that you can redefine the log file for system.out and system.err, but can't find any about rotating these logs.
Does anyone have any info about this topic?If anyone's curious and is trying to do this themselves, I eventually asked Oracle, who stated it could not be done.
-
Intercepting System.exit() and System.out.println() calls
hi there,
I have often problems when working with code that uses System.exit() and System.out.println() extensively, because it becomes difficult to debug.
Basically I do have wrappers for System.exit() (my own static exit function) and for System.out.println() (log4j).
Still not all programmers are using these methods; Probably the only way to enforce this is some kind of code warrior, but I was hoping to be able to intercept the two System.XXX calls (and throw an appropriate Exception). is this possible ??Why not simply make your own security manager andhandle checkExit() and checkWrite?
Does anyone have a simple example of this? Please?System.exit() can be intercepted using a security manager, but not System.out.xxx.
Here is a short example:
//set your security manager
static{
SecurityManager s = new OwnSecurityManager();
System.setSecurityManager(s);
//redirect the out stream
try{
PrintStream ps = new PrintStream(new FileOutputStream("output.txt"));
System.setOut(ps);
}catch(IOException ioe){
ioe.printStackTrace();
//some tests
System.out.println("Test");
System.exit(2);
//your security manager
class OwnSecurityManager extends SecurityManager{
public void checkExit(int code){
if(code > 0){
super.checkExit(code);
throw new SecurityException("Not allowed here->" + code);
public void checkRead(FileDescriptor fd){
public void checkRead(String file){
public void checkRead(String file, Object context){
public void checkPermission(Permission perm){
if(perm.getName().equals("exitVM")){
System.out.println("exitVM");
} -
Difference between System.err and System.out
Hi Everyone !!!
I could see that System.err is printing an output on the screen as like the System.out.
I can't understand what is System.err.
Can anyone explain me the difference between System.out and System.errSystem.out.println -> Sends the output to a standard output stream. Generally monitor.
System.err.println -> Sends the output to a standard error stream. Generally monitor.
To find the difference execute the following program and see the output. You will see how those streams can be handled differently.
public class test
public static void main(String args[])
System.out.println("Standard output Stream message");
System.err.println("Standard error stream message");
Compile the class.
Run the class
First Execution -
java test
Standard output Stream message
Standard error stream message
Second Execution -
java test >op.txt
Standard error stream message
In second execution we diverted only the std output stream and std err stream remained unchanged. i.e., by this way, we can handle error stream separately.
Another typical use of this stream is to produce log or debug messages at runtime and are diverted them to a file where they are archived for later use.<img class="emoticon" src="images/emoticons/shocked.gif" border="0" alt="" width="16" height="16" />
Maybe you are looking for
-
I have an apple id and also have the credit card details in it. I am trying to buy credits on Viber, but it is not purchasing and telling me to contact Apple iTunes support center. What do i do now?
-
Stictching effect on images in PDF produced from InDesign
Hey there Requested I posted this in here over the Adobe PDF forum.. I have been supplied a PDF file created from Indesign (I do not know which version or what settings have been used, I suspect CS3 or 4, it has been made to PDF version 1.6 with
-
Burned DVD contains same picture over and over
I'm trying to make successful DVDs of 3,357 photos exported from iPhoto through the following process Share, successful Export, successful Resized(smaller), successful Make Burn folder, successful Drag images to Burn folder, successful Burn, FAILURE
-
Question about Transactions... Part 1 (Urgent)
Hi all! Is there a transaction that I can use to check the status of ALL the objects that I activated in the BI system. If there is, what is it? Can this transaction return data about who activated it, when and what is wrong with it if ever? Is the
-
I am making a DVD in DVD SP 4.0.3 with a menu that plays a background movie; at the end of that movie, the menu goes directly to a track with a movie with a 0 second timeout. Is it possible to allow the user to 'forward' and/or 'fast-forward' thru th