Urgent help with PIX 520 & downgrade to 4.X ver.
Hi all,
I need help with the problem which occured recently my colleague.We had got PIX 520
with ver 6.x. But my colleague inserted into floppy disc drive floppy with ver. 4.4.7 and rebooted PIX. And it downgraded
PIX OS.
From that time we cannot boot PIX.
I tried to create bootable disk and throught tftp insert newer PIX OS but I see still this output. And PIX still reboots.
On card with Flash inserted in PIX I see the jumpers. Could someone explain me meaning?
Any idea...??
BR
jl
This section describes how to change the PIX Firewall to an earlier version of the software than the version currently running on your PIX Firewall unit. You can only downgrade the PIX Firewall software if your platform supports the earlier version.
http://www.cisco.com/en/US/docs/security/pix/pix63/configuration/guide/upgrade.html#wp1016359
Similar Messages
-
Urgent help with Pages 5.0 needed
Hi guys,
I need urgent help! I deleted Pages 5.0 (as I HATED it) but now can't open a very important document. Can someone please tell me how to reinstall it??
Thanks
KellieDownloading again is not as easy as that. you must find the app in the "Purchased" section of the
app store and I think you then must hold down the option key to reinstall it.
BTW, I only worked with one document as a trial for Pages 5 and then imported it to Word and saved it. I then deleted Pages 5 (I can't believe anyone who works with software would think that piece of worthless junk would sufice for anyone who uses a word processor professionally), reopened the Word document and saved it in Pages 09.
I hope this helps -
Urgent Help with Planning Book
Hello Gurus,
Need your help with a very urgent issue. I cannot see my key figure values in my planning book(Interactive Planning). I could sucessfully generate my CVC, then initialised my planning area. Then when I go the interactive planning I can see all my characteristics -Ex Material master( has all values), Prod type has values, etc. Iam in DEV system and have to move the whole config to QA now. I have to validate that the config works in QA. Its works ok in the sandbox but I cannot figureout why I can not see the values for key figs that Iam loading from a Flat File. Please help!!!!!!Hello Suresh,
I have one more question for you. Let me tell you my scenario. I have the client giving me a rough forecast for the future. I have to do stat forecast based on the history and check that against the initial forecast given by them. But, the problem I realised now is that when I go to my planning books I can see the values for 2008 in mothly buckets since I have 0calmonth. But the client gave me another file with forecast for 2008 in monthly buckets and for 2009 and 2010 in quarter buckets. So, i have a planning buck profile defined to meet that but, how do I upload the file with both 0calmonth and 0calquarter in a single file. Please let me know!! Urgent task.
Thanks again,
Chinna. -
Urgent Help with network access to FileOutputStream
URGENT HELP NEEDED GUYS...I am stuck on this past 2 days. I tried several alternatives but to vain.
I am trying to access a Folder on a user's computer which is lying in a different Domain.
For accessing this folder, I have the following information with me.
Domain name, PC name, folder name, windows username, windows password.
Note: This username and password will give me rights to read + write to that folder.
How to use these information to open a fileoutputstream ? Does the java.io package allow programs to pass a username, password , domainname, pcname and then the folder and filename to create/read/write files..
Pls. suggest code examples. Sometime back I posted this query but didnt get an answer to my satisfaction. I have tried at my end but unsuccessful yet. Help would be appreciated.
I am trying this on a Windows File System and Network domain
THIS IS V. URGENT
Thanks,Hi HJK,
I am referring to the last reply of yours.
" Hi, there are three approaches I can think of offhand:
1) make sure the user-context under which you run the java app has the right to access the remote drive.
2) Do the network connection in a batch or c program and call that at the start of your java app with Runtime#exec.
3) Write some c/c++ code to open the connection and integrate that via JNI.
Let me know what (other) solution you came up with in the end!
Regarding the 1st.
I am supposed to write a remote installation utility actually. There are around 200 PC(s) in a network on which I need to copy these java class files. My problem statement is such that at runtime I only have username, passwords, domain access. I am not supposed to map any drives. Its supposed to be done dynamically. No manual intervention required. :(
How do I do the network connection in a batch mode ? Let me know that?
If 2nd option can be done, probably I can think of action-3 at the moment I am quite blurr :( -
Need urgent help with HSDIO hardware timing
Hi everyone,
I need urgent help regarding HSDIO hardware timing. I've been working in a project which generating serial ramp using HSDIO pxie device.
I'm using clock rate 40MHz and generating 14 bit of boolean for each step of ramp. And I have to generate simply 256 steps ramp.
Which means, 256 (steps) x 14 (boolean array) x 25 ns (period of 1 boolean value) = 89,6 ns.
What I'm doing right now is with using index of FOR loop as my input data (converting the index into 14bit boolean), then write into pxie device in every iteration,
which means, my data is getting into output in every 1ms time, right? (I'm using windows)
And I want to be able to generate faster than that.
How can I prewrite my 256 steps ramp, then write them all at once into pxie device. I'm really stuck here.
In the picture can you see how I do the write into device in every iteration of FOR Loop.
Regards,
Yan.hi, thanks for responding.
with using example of dynamic generation with script, I can manage to generate the ramp with controllable delay (generate the whole waveform, including delay with script command, then write to the card).
But I still have 1 question, I can test the output of the generation using oscilloscope and cant see the start delay (I'm writing delay at the start, before generating the ramp). My signal generated at 0 sec.
How can I check this start delay? is there any good example delivered with Labview to check this generation? Somehow I cant use the "dynamic generation and acquisition" example to see my generation (cant figure out how to capture the generated signal).
regards,
Yan. -
Need urgent help with Ifs1.1 on Solaris
We have installed IFS 1.1 with Oracle 8.1.7 on a three tier System (two Suns). We use JWS as WebServer. When we start IFS and JWS everything seems to work fine. But after some time (irregulary) we are not able to contact the JSP-Sites via a bowser. After restarting JWS, everything works fine for some time.
Sometimes it happens (about one times a day), that the whole JWS crashes (JWS-Admin doesn't work). So we have to restart the whole IFS.
What can be the problem? We need urgent help, because the deadline for our project is Wednesday.
By the way:
Where do I have to start CTX on the IFS- or the Oracle-Side?
nullYes, we tried the Oracle HTTP - Server, but we weren4t able to get it to work. We didn4t get our JSP-Files to work with it. But that is another issue. I think it4s not a problem of JWS, but IFS.
Additionally it is strange, that we are still able to connect to the database via SqlPlus.
IFS works fine for about 15 minutes, than it crashes, nothing works anymore. We found following errors in the IfsAgents.log:
maybe it can help?!
Mon Dec 04 23:12:20 CET 2000
Server STARTED: IfsAgents(19944) not managed
Attempting to load agent EventExchangerAgent
Agent EventExchangerAgent loaded
Server STARTED: IfsProtocols(19945) not managed
Attempting to start agent EventExchangerAgent
EventExchangerAgent: Start request
Agent EventExchangerAgent started
Attempting to load agent ExpirationAgent
Agent ExpirationAgent loaded
EventExchangerAgent: starting timer
Attempting to start agent ExpirationAgent
ExpirationAgent: Start request
Agent ExpirationAgent started
Attempting to load agent GarbageCollectionAgent
Agent GarbageCollectionAgent loaded
ExpirationAgent: computed initial delay (in ms) is: 10024504
ExpirationAgent: starting timer
Attempting to start agent GarbageCollectionAgent
GarbageCollectionAgent: Start request
Agent GarbageCollectionAgent started
Attempting to load agent ContentGarbageCollectionAgent
Agent ContentGarbageCollectionAgent loaded
GarbageCollectionAgent: computed initial delay (in ms) is: 11816890
GarbageCollectionAgent: starting timer
Attempting to start agent ContentGarbageCollectionAgent
ContentGarbageCollectionAgent: Start request
Agent ContentGarbageCollectionAgent started
Attempting to load agent DanglingObjectAVCleanupAgent
Agent DanglingObjectAVCleanupAgent loaded
ContentGarbageCollectionAgent: starting timer
Attempting to start agent DanglingObjectAVCleanupAgent
DanglingObjectAVCleanupAgent: Start request
Agent DanglingObjectAVCleanupAgent started
Attempting to load agent OutboxAgent
Agent OutboxAgent loaded
DanglingObjectAVCleanupAgent: computed initial delay (in ms) is: 5500105
DanglingObjectAVCleanupAgent: starting timer
Attempting to start agent OutboxAgent
OutboxAgent: Start request
Agent OutboxAgent started
Attempting to load agent ServiceWatchdogAgent
Agent ServiceWatchdogAgent loaded
OutboxAgent: Done processing
Attempting to start agent ServiceWatchdogAgent
ServiceWatchdogAgent: Start request
Agent ServiceWatchdogAgent started
Attempting to load agent QuotaAgent
Agent QuotaAgent loaded
ServiceWatchdogAgent: Initializing ServerWatchdogTable with 9 entries
ServiceWatchdogAgent: starting timer
Server STARTED: FtpServer(20082) managed by IfsProtocols(19945)
ServiceWatchdogAgent: New Server being watchdogged
Attempting to start agent QuotaAgent
QuotaAgent: Start request
Agent QuotaAgent started
QuotaAgent: starting timer
Server STARTED: CupServer(20124) managed by IfsProtocols(19945)
ServiceWatchdogAgent: New Server being watchdogged
Server STARTED: ImapServer(20130) managed by IfsProtocols(19945)
ServiceWatchdogAgent: New Server being watchdogged
Server STARTED: SmtpServer(20150) managed by IfsProtocols(19945)
ServiceWatchdogAgent: New Server being watchdogged
ServiceWatchdogAgent: Unlocked Server Detected in checkServer
ServiceWatchdogAgent: Unlocked Server Detected in checkServer
ServiceWatchdogAgent: Unlocked Server Detected in checkServer
ServiceWatchdogAgent: Unlocked Server Detected in checkServer
ServiceWatchdogAgent: Unlocked Server Detected in checkServer
ServiceWatchdogAgent: Unlocked Server Detected in checkServer
ServiceWatchdogAgent: Unlocked Server being investigated
ServiceWatchdogAgent: Unlocked Server being investigated
ServiceWatchdogAgent: Unlocked Server being investigated
ServiceWatchdogAgent: Unlocked Server being investigated
ServiceWatchdogAgent: Unlocked Server being investigated
ServiceWatchdogAgent: Unlocked Server being investigated
ServiceWatchdogAgent: Freeing unlocked server 19687
ServiceWatchdogAgent: Freeing unlocked server 19666
Server STOPPED: CupServer(19687) managed by IfsProtocols(19519)
ServiceWatchdogAgent: Freeing unlocked server 19723
ServiceWatchdogAgent: Freeing unlocked server 19520
Server STOPPED: FtpServer(19666) managed by IfsProtocols(19519)
Server STOPPED: SmtpServer(19723) managed by IfsProtocols(19519)
ServiceWatchdogAgent: Freeing unlocked server 19519
Server STOPPED: IfsAgents(19520) not managed
ServiceWatchdogAgent: Freeing unlocked server 19712
Server STOPPED: IfsProtocols(19519) not managed
Server STOPPED: ImapServer(19712) managed by IfsProtocols(19519)
ServiceWatchdogAgent: Freed Server removed from watchdog list
ServiceWatchdogAgent: Freed Server removed from watchdog list
ServiceWatchdogAgent: Freed Server removed from watchdog list
ServiceWatchdogAgent: Freed Server removed from watchdog list
ServiceWatchdogAgent: Freed Server removed from watchdog list
ServiceWatchdogAgent: Freed Server removed from watchdog list
QuotaAgent: Timer event: 0 active; 0 exceeded
ContentGarbageCollectionAgent: Freed 5 unreferenced ContentObjects
QuotaAgent: Timer event: 0 active; 0 exceeded
ServiceWatchdogAgent: IfsException publishing timer details:
ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-11012: Unable to get events from other services
java.sql.SQLException: ORA-03114: not connected to ORACLE
ServiceWatchdogAgent: IfsException in checkForDeadServices():
ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
java.sql.SQLException: ORA-03114: not connected to ORACLE
ServiceWatchdogAgent: IfsException in handle loop; continuing:
ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
java.sql.SQLException: ORA-03114: not connected to ORACLE
ServiceWatchdogAgent: IfsException publishing timer details:
ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
java.sql.SQLException: ORA-03114: not connected to ORACLE
ServiceWatchdogAgent: IfsException publishing timer details:
ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
java.sql.SQLException: ORA-03114: not connected to ORACLE
ServiceWatchdogAgent: IfsException publishing timer details:
ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
java.sql.SQLException: ORA-03114: not connected to ORACLE
ServiceWatchdogAgent: IfsException publishing timer details:
ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
java.sql.SQLException: ORA-03114: not connected to ORACLE
ServiceWatchdogAgent: IfsException publishing timer details:
ServiceWatchdogAgent: oracle.ifs.common.IfsException: IFS-10651: Unable to begin transaction
oracle.ifs.common.IfsException: IFS-10603: Unable to set database savepoint
java.sql.SQLException: ORA-03114: not connected to ORACLE
null -
Need some URGENT help with 3 DVD mastering issues PLEASE! :
Hi there,
Firstly, I am running DVD SP 3.0.2 on Mac OS 10.4.7 on a G5 Dual 2 GHz 3Gb Ram plenty of HD space...
I am creating a DVD with: An intro sequence, a main menu, 4 sub menus, and 4 sections with around 12 chapters each.
I am having some big problems, and a pretty stuck. I will lest them separately below, numbered. If you are able to help, please refer clearly to which number you are helping with. Any help is MUCH appreciated! Many thanks!!
1. Each of the 5 menus (1 main, 4 sub) have a background video, and a separate audio track. I added the background videos by simply dragging them to the assests panel, then from there onto the menu editor window. They are created in FCP and are properly encoded. However, when I click the motion button, or use the simulator, the videos do not show up. The music plays, but all i see is plain black.
What is going on?!?!?!
2. I am really struggling with rollover buttons. I have custom created buttons, and I wand them to have a soft red glow around them when hovered over. HOW ON EARTH DO I ACTUALLY DO THIS??
The buttons are in photoshop so can be exported with/without background/glow in any format.
3. Is it possible, once I have got the above rollover working, to have an image to the right hand side of my buttons which changes with the the button rollover. i.e. hover over button 1, see image 1. hover over button 2, image changes to image 2.
PLEASE PLEASE give any help you can, I have a deadline coming up and am quite stumped. Thanks again!!I am still having problems regarding issue Number 1. PLEASE ANYONE HELP?!
Sorry, I'm not sure about the motion menus. I avoid those whenever possible. But you might click on the menu in the storyline tab (whatever it's called -- the hierarchical view with the disc, tracks, slideshows, etc.) and look at the properties and see if there's anything you have to enable specifically for motion. And be sure the motion button is on on the main display/preview area, but it sounds like you already know how that works.
For your information, here is a screen grab of the menu I am trying to create:
http://www.redhavoc.co.uk/stuff/menu.jpg
I think it is obvious that when a button is hovered over, I want it to glow red, and the image to the right will change to match the respective button.
IS THIS GOING TO BE POSSIBLE????
Yes.
First, your menus have to be layered menus. Unfortunately, there's no way to convert non-layered menus to layered menus, so if you already have non-layered, you'll have to just delete them and create new layered menus. The button (and menu item) to create a layered menu should be right by the normal new-menu item.
Next, the graphical work is all in Photoshop.
Side tip: You may already know this, but I found it's best to use 640x480 for the Photoshop document. When I do text and leave it as a text object in the Photoshop file, it resizes poorly in DVDSP. So this ends up being another 720x480 vs. 640x480 square/rectangular pixel conversion thing. DVDSP plays in the 640x480 world, at least as far as the designer can see. So I keep my images at 640x480, and it doesn't have to resize, and everything looks right.
Moving on... Set up your basic background, the part that won't change (or will have other things covering it, like for your square image).
Then put in all the buttons and images you'll be using, each part in a separate layer. This could have fifteen buttons (you have five buttons, and there can be three versions for each -- inactive, selected, and activated versions) and five or six square images (you said one for each button, and you might want a blank default if, say, you want to add a "back" button on the menu and want some blank or default image for the square when they're on the "back" button).
Sometimes people don't bother with a separate "active" button state, but you usually want some visual feedback that they clicked the button. Also, I usually just build the default (unselected) button into the background; that's less hassle later on, and it will just draw the selected or activated buttons over that when the user is on that button.
Line up all your buttons and images. All the square images lined up perfectly on top of each other, all the buttons in the right places (so you'll have three buttons stacked on top of each other in each spot). Give each layer a short but quickly recognizable name, and line them up in a consistent order. (button1-default, button1-selected, button1-active, button1-squarepicture, then button2-default, ... etc.) Photoshop and DVDSP don't care, but it makes it easier for you later.
Note that earlier versions of DVDSP won't show Photoshop layer effects. (They handle layers, just not the effects, like inner glow, outer bezel, etc.) I don't remember when they changed this, but I think it was version 4.something. So if you're using that method to make your buttons glow, you may have to flatten each selected or active button layer, and you may even need to create a dummy blank layer underneath it first to give it something to flatten onto.
Save the file as a standard Photoshop file (.psd). Drag the file onto your DVDSP layered menu and set it as the background.
Now, in DVDSP, create all your buttons. Just drag boxes over/around the button pictures you have. Feel free to make them extra-big; users won't see the actual area you've selected, and bigger areas makes it easier for people to hit them if they're using a mouse on a computer to watch the DVD. You can point the buttons to their targets now if you want, and set the end jumps on the tracks if you want. (I tend to set the end jumps on the tracks so they automatically select the button for the next track.)
Now's the fun part, since it will actually hook everything up and should be easy if your naming layer order were consistent. Click on the layered menu (in that hierarchical view) and look at the properties window. (Sorry I can't remember the technical names for all these windows; I'm doing this all from memory. So feel free to ask more questions if you can't find what I'm talking about.) One of the properties tabs should have a grid of checkboxes with a list of your layers. Make sure the background is checked for all of the states. Then check the layers you want to show for each button state, as well as the corresponding square image to show for each.
Again, I'm doing this from memory, and I can't remember exactly how things are listed in that grid. But I remember it keeps your layers in the same order you put them in the Photoshop file and shows you those names, so it should make it easy to go down the list and check the right boxes.
And another side tip: You can update the Photoshop file, but once you've put it in DVDSP, if you change the layer order, it will screw up the check boxes you checked. It always shows you the layer names correctly, but it keeps the checkboxes in DVDSP simply assigned to the layer number, so the fifth layer will keep the same checkboxes even if you juggle them so some other layer is now the fifth layer. So if you do juggle the layers in Photoshop, go back and fix the checkbox list in DVDSP.
I put a sample Photoshop file based on yours in
http://dan.black.org/layered-menu-sample.psd
It's quick and dirty, but shows the layer layout, and you should be able to drop it on DVDSP to play with. (I also won't leave it there forever, maybe a few weeks, so anybody reading this in a month or more probably will get a 404 for that url.)
Again, doing this from memory, so feel free to ask if anything doesn't work or doesn't make sense.
G4/dual867 Mac OS X (10.4.5) 2GB/0.8TB -
URGENT Help With Scientific Calculator!
Hi everybody,
I designed a calculator, and I need help with the rest of the actions. I know I need to use the different Math methods, but I tried tried that and it didn't work. Also, it needs to work as an applet and application, and in the applet, the buttons don't appear in order, how can I fix that?
I will really appreciate your help with this program, I can't get it to work and I'm frustrated, I need to finish this for next Tuesday 16th. Please e-mail me at [email protected].
Below is the code for the calcualtor.
Thanks a lot!
-Maria
// calculator
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
public class calculator extends JApplet implements
ActionListener
private JButton one, two, three, four, five, six, seven,
eight, nine, zero, dec, eq, plus, minus, mult, div, clear,
mem, mrc, sin, cos, tan, asin, acos, atan, x2, sqrt, exp, pi, percent;
private JLabel output, blank;
private Container container;
private String operation;
private double number1, number2, result;
private boolean clear = false;
//GUI
public void init()
container = getContentPane();
//Title
//super("Calculator");
JPanel container = new JPanel();
container.setLayout( new FlowLayout( FlowLayout.CENTER
output = new JLabel("");
output.setBorder(new MatteBorder(2,2,2,2,Color.gray));
output.setPreferredSize(new Dimension(1,26));
getContentPane().setBackground(Color.white);
getContentPane().add( "North",output );
getContentPane().add( "Center",container );
//blank
blank = new JLabel( " " );
container.add( blank );
//clear
clear = new JButton( "CE" );
clear.addActionListener(this);
container.add( clear );
//seven
seven = new JButton( "7" );
seven.addActionListener(this);
container.add( seven );
//eight
eight = new JButton( "8" );
eight.addActionListener(this);
container.add( eight );
//nine
nine = new JButton( "9" );
nine.addActionListener(this);
container.add( nine );
//div
div = new JButton( "/" );
div.addActionListener(this);
container.add( div );
//four
four = new JButton( "4" );
four.addActionListener(this);
container.add( four );
//five
five = new JButton( "5" );
five.addActionListener(this);
container.add( five );
//six
six = new JButton( "6" );
six.addActionListener(this);
container.add( six );
//mult
mult = new JButton( "*" );
mult.addActionListener(this);
container.add( mult );
//one
one = new JButton( "1" );
one.addActionListener(this);
container.add( one );
//two
two = new JButton( "2" );
two.addActionListener(this);
container.add( two );
//three
three = new JButton( "3" );
three.addActionListener(this);
container.add( three );
//minus
minus = new JButton( "-" );
minus.addActionListener(this);
container.add( minus );
//zero
zero = new JButton( "0" );
zero.addActionListener(this);
container.add( zero );
//dec
dec = new JButton( "." );
dec.addActionListener(this);
container.add( dec );
//plus
plus = new JButton( "+" );
plus.addActionListener(this);
container.add( plus );
//mem
mem = new JButton( "MEM" );
mem.addActionListener(this);
container.add( mem );
//mrc
mrc = new JButton( "MRC" );
mrc.addActionListener(this);
container.add( mrc );
//sin
sin = new JButton( "SIN" );
sin.addActionListener(this);
container.add( sin );
//cos
cos = new JButton( "COS" );
cos.addActionListener(this);
container.add( cos );
//tan
tan = new JButton( "TAN" );
tan.addActionListener(this);
container.add( tan );
//asin
asin = new JButton( "ASIN" );
asin.addActionListener(this);
container.add( asin );
//acos
acos = new JButton( "ACOS" );
cos.addActionListener(this);
container.add( cos );
//atan
atan = new JButton( "ATAN" );
atan.addActionListener(this);
container.add( atan );
//x2
x2 = new JButton( "X2" );
x2.addActionListener(this);
container.add( x2 );
//sqrt
sqrt = new JButton( "SQRT" );
sqrt.addActionListener(this);
container.add( sqrt );
//exp
exp = new JButton( "EXP" );
exp.addActionListener(this);
container.add( exp );
//pi
pi = new JButton( "PI" );
pi.addActionListener(this);
container.add( pi );
//percent
percent = new JButton( "%" );
percent.addActionListener(this);
container.add( percent );
//eq
eq = new JButton( "=" );
eq.addActionListener(this);
container.add( eq );
//Set size and visible
setSize( 190, 285 );
setVisible( true );
public static void main(String args[]){
//execute applet as application
//applet's window
JFrame applicationWindow = new JFrame("calculator");
applicationWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//applet instance
calculator appletObject = new calculator();
//init and start methods
appletObject.init();
appletObject.start();
} // end main
public void actionPerformed(ActionEvent ae)
JButton but = ( JButton )ae.getSource();
//dec action
if( but.getText() == "." )
//if dec is pressed, first check to make shure there
is not already a decimal
String temp = output.getText();
if( temp.indexOf( '.' ) == -1 )
output.setText( output.getText() + but.getText() );
//clear action
else if( but.getText() == "CE" )
output.setText( "" );
operation = "";
number1 = 0.0;
number2 = 0.0;
//plus action
else if( but.getText() == "+" )
operation = "+";
number1 = Double.parseDouble( output.getText() );
clear = true;
//output.setText( "" );
//minus action
else if( but.getText() == "-" )
operation = "-";
number1 = Double.parseDouble( output.getText() );
clear = true;
//output.setText( "" );
//mult action
else if( but.getText() == "*" )
operation = "*";
number1 = Double.parseDouble( output.getText() );
clear = true;
//output.setText( "" );
//div action
else if( but.getText() == "/" )
operation = "/";
number1 = Double.parseDouble( output.getText() );
clear = true;
//output.setText( "" );
//eq action
else if( but.getText() == "=" )
number2 = Double.parseDouble( output.getText() );
if( operation == "+" )
result = number1 + number2;
else if( operation == "-" )
result = number1 - number2;
else if( operation == "*" )
result = number1 * number2;
else if( operation == "/" )
result = number1 / number2;
//output result
output.setText( String.valueOf( result ) );
clear = true;
operation = "";
//default action
else
if( clear == true )
output.setText( "" );
clear = false;
output.setText( output.getText() + but.getText() );
}Multiple post:
http://forum.java.sun.com/thread.jsp?forum=31&thread=474370&tstart=0&trange=30 -
URGENT: Help with dynamic borders!
Hello all -
I DESPERATLY need help with this! I am using the code from
kirupa's xml photo gallery with the thumbnails. right now the alpha
changes on mouseover, fine...but my client is demanding that it
draw a border instead. I have been at this for about a week and
have NO idea how to do this...i have looked at things like API's
and things...but my main issue is that the images and MC's are all
created on the fly and i dont know how to code in an on mouseover
draw a border type of function, no idea at all!
This is my code as it sits now, PLEASE SOMEONE HELP ME!!!
thank you in advance!really could use some help quick here guys
-
Urgent Help with Image Gallery
Hi,
I really need help with an image gallery i have created. Cannot think of a resolution
So....I have a dynamic image gallery that pulls the pics into a movie clip and adds them to the container (slider)
The issue i am having is that when i click on this i am essentially clicking on all the items collectively and i would like to be able to click on each image seperately...
Please see code below
var xml:XML;
var images:Array = new Array();
var totalImages:Number;
var nbDisplayed:Number = 1;
var imagesLoaded:int = 0;
var slideTo:Number = 0;
var imageWidth = 150;
var titles:Array = new Array();
var container_mc:MovieClip = new MovieClip();
slider_mc.addChild(container_mc);
container_mc.mask = slider_mc.mask_mc;
function loadXML(file:String):void{
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load(new URLRequest(file));
xmlLoader.addEventListener(Event.COMPLETE, parseXML);
function parseXML(e:Event):void{
xml = new XML(e.target.data);
totalImages = xml.children().length();
loadImages();
function loadImages():void{
for(var i:int = 0; i<totalImages; i++){
var loader:Loader = new Loader();
loader.load(new URLRequest("images/"+String(xml.children()[i].@brand)));
images.push(loader);
// loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,onProgress);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete);
function onComplete(e:Event):void{
imagesLoaded++;
if(imagesLoaded == totalImages){
createImages();
function createImages():void{
for(var i:int = 0; i < images.length; i++){
var bm:Bitmap = new Bitmap();
bm = Bitmap(images[i].content);
bm.smoothing = true;
bm.x = i*170;
container_mc.addChild(bm);
var caption:textfile=new textfile();
caption.x=i*170; // fix text positions (x,y) here
caption.y=96;
caption.tf.text=(xml.children()[i].@brandname)
container_mc.addChild(caption);yes, sorry i do wish to click on individual images but dont know how to code that
as i mentioned i have 6 images that load into an array and then into a container and i think that maybe the problem is that i have the listener on the container so when i click on any image it gives the same results.
what i would like is have code thats says
if i click on image 1 then do this
if i click on image 2 then do something different
etc
hope that makes sense
thanks for you help! -
Please i need som help with my tabbedpoane. I want my tab to call a new class when it is chosen. I have tried this: tabbedPane.addTab( "Schema", new Schema() ); , but it doesnt work. Schema is a class in the same package. AI could really do with some help on this one.
Dont answer the question that this same guy is posted here
http://forum.java.sun.com/thread.jsp?thread=503459&forum=57&message=2382925
He is a good cross-poster -
Hello there,
I need help with BPEL project.
i have created a table Employee in Database.
I did create application, BPEL project and connection to the database properly using Database Adapter.
I need to read the records from the database and convert into xml fomat and it should to go approval for BPM worklist.
Can someone please describe me step by step what i need to do.
Thanks,
DpsRead the Demo examples given with Oracle BPEL Process Manager.
I am now at a proficient level in BPEL in the past 1 year,
still need to reach the excellent mark.
Thanks & Regards,
Gopal D. Kalsekar
Sr. Software Developer
Business Solutions (eGroup)
M.H. Alshaya Company W.L.L.
www.alshaya.com
Jai Maharashtra
P :- (965) 224 3598
F :- (965) 224 2488
E :- [email protected] -
Urgent help with simple BPEL process for reading data from database
Hello there,
I need help with BPEL project.
i have created a table Employee in Database.
I did create application, BPEL project and connection to the database properly using Database Adapter.
I need to read the records from the database and convert into xml fomat and it should to go approval for BPM worklist.
Can someone please describe me step by step what i need to do.
Thx,
DpsI have created a table in Database with data like Empno,name,salary,comments.
I created Database Connection in jsp page and connecting to BPEL process.
It initiates the process and it goes automatically for approval.
Please refer the code once which i created.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.util.Map" %>
<%@page import="com.oracle.bpel.client.Locator" %>
<%@page import="com.oracle.bpel.client.NormalizedMessage" %>
<%@page import="com.oracle.bpel.client.delivery.IDeliveryService" %>
<%@page import="javax.naming.Context" %>
<%@page import="java.util.Hashtable" %>
<%@page import="java.util.HashMap" %>
<%@ page import="java.sql.*"%>
<%@ page import= "jspprj.DBCon"%>
<html>
<head>
<title>Invoke CreditRatingService</title>
</head>
<body>
<%
DBCon dbcon=new DBCon();
Connection conn=dbcon.createConnection();
Statement st=null;
PreparedStatement pstmt=null;
Hashtable env= new Hashtable();
ResultSet rs = null;
Map payload =null;
try
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
env.put(Context.PROVIDER_URL, "opmn:ormi://localhost:port:home/orabpel");//bpel server
env.put("java.naming.security.principal", "username");
env.put("java.naming.security.credentials", "password");//bpel console
Locator locator = new Locator("default","password",env);
IDeliveryService deliveryService =
(IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
// construct the normalized message and send to Oracle BPEL Process Manager
NormalizedMessage nm = new NormalizedMessage();
java.util.HashMap map = new HashMap();
st=conn.createStatement();
out.println("connected");
String query1="Select * from EMPLOYEE";
rs=st.executeQuery(query1);
/*reading Data From Database and converting into XML format
so that no need of going to BPEL console and entering the details.
while (rs.next()){
String xml1 = "<AsynchBPELProcess1ProcessRequest xmlns='http://xmlns.oracle.com/AsynchBPELProcess1'>"+
"<Empno>"+rs.getString(1)+"</Empno>"+
"<EmpName>"+rs.getString(2)+"</EmpName>"+
"<Salary>"+rs.getString(3)+"</Salary>"+
"<Comments>"+rs.getString(4)+"</Comments>"+
"</AsynchBPELProcess1ProcessRequest>";
out.println(xml1);
nm.addPart("payload", xml1 );
// EmployeeApprovalProcess is the BPEL process in which human task is implemented
deliveryService.post("EmployeeApprovalProcess", "initiate", nm);
// payload = res.getPayload();
out.println( "BPELProcess CreditRatingService executed!<br>" );
// out.println( "Credit Rating is " + payload.get("payload") );
//Incase there is an exception while invoking the first server invoke the second server i.e lsgpas13.
catch(Exception ee) {
//("BPEL Server lsgpas14 invoking error.\n"+ee.toString());
%>
</body>
</html>
Its working fine.And i want it for Bulk approvals.please help me step by step procedure if any other way to implement this. -
Urgent help with simple BPEL process
Hello there,
I need help with BPEL project.
I'm new in JDeveloper&BPEL and i'd like to create process that we'll after sending employee ID return personal details of that employee.
I did create application, BPEL project and connection to the database properly but somehow i can't deal input and output variable.
Can someone please describe me step by step what i need to do, how to set up variable etc
Thx,
DIMe again. This time i hope i'll get some help :(
Solution to my problem is change to the data-sources.xml and oc4j-ra.xml.
Since i have database on same machine with BPEL PM Server that uses Olite DB when i tried to make changes i found in tutorials, here on forum and rest of internet
BPEL PM Server just freeze, didn't start at all.
Here are data-sources.xml, oc4j-ra.xml and DBAdapter wsdl file. Plz can someone make changes to those files i'll appreciate that.
HOME\bpel\system\appserver\oc4j\j2ee\home\application-deployments\default\DbAdapter
oc4j-ra.xml
<?xml version="1.0"?>
<oc4j-connector-factories xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.oracle.com/technology/oracleas/schema/oc4j-connector-factories-10_0.xsd" schema-major-version="10" schema-minor-version="0" >
<imported-shared-libraries>
<import-shared-library name="oracle.bpel.common"/>
<import-shared-library name="oc4j.internal"/>
<import-shared-library name="oracle.xml"/>
<import-shared-library name="oracle.sqlj"/>
<import-shared-library name="oracle.toplink"/>
<import-shared-library name="oracle.jdbc"/>
</imported-shared-libraries>
<connector-factory location="eis/DB/DBConn_XE" connector-name="Database Adapter">
<config-property name="xADataSourceName" value="jdbc/DBConn_XEDataSource"/>
<config-property name="dataSourceName" value="loc/DBConn_XEDataSource"/>
<config-property name="platformClassName" value="oracle.toplink.platform.database.Oracle9Platform"/>
<config-property name="usesNativeSequencing" value="true"/>
<config-property name="sequencePreallocationSize" value="50"/>
<config-property name="defaultNChar" value="false"/>
<config-property name="usesBatchWriting" value="true"/>
<connection-pooling use="none">
</connection-pooling>
<security-config use="none">
</security-config>
</connector-factory>
<connector-factory location="eis/DB/BPELSamples" connector-name="Database Adapter">
<config-property name="xADataSourceName" value="jdbc/BPELSamplesDataSource"/>
<config-property name="dataSourceName" value=""/>
<config-property name="platformClassName" value="oracle.toplink.platform.database.Oracle9Platform"/>
<config-property name="usesNativeSequencing" value="true"/>
<config-property name="sequencePreallocationSize" value="50"/>
<config-property name="defaultNChar" value="false"/>
<config-property name="usesBatchWriting" value="false"/>
<connection-pooling use="none">
</connection-pooling>
<security-config use="none">
</security-config>
</connector-factory>
</oc4j-connector-factories>
HOME \bpel\system\appserver\oc4j\j2ee\home\config
data-sources.xml
<?xml version="1.0" standalone='yes'?>
<!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds/data-sources-9_04.dtd">
<data-sources>
<!-- Connection pool for oracle database -->
<!--
<connection-pool name="BPELPM_CONNECTION_POOL">
<connection-factory factory-class="oracle.jdbc.OracleDriver"
url="jdbc:oracle:thin:[username]/[password]@[hostname]:[port]:[sid]" />
</connection-pool>
-->
<!-- Connection pool for oracle lite -->
<connection-pool name="BPELPM_CONNECTION_POOL">
<connection-factory factory-class="oracle.lite.poljdbc.POLJDBCDriver"
user="system"
password="manager"
url="jdbc:[email protected]:1531:orabpel" />
</connection-pool>
<managed-data-source name="BPELServerDataSource"
connection-pool-name="BPELPM_CONNECTION_POOL"
jndi-name="jdbc/BPELServerDataSource" tx-level="global"/>
<managed-data-source name="BPELServerDataSourceWorkflow"
connection-pool-name="BPELPM_CONNECTION_POOL"
jndi-name="jdbc/BPELServerDataSourceWorkflow" tx-level="local"/>
<managed-data-source name="BPELSamplesDataSource"
connection-pool-name="BPELPM_CONNECTION_POOL"
jndi-name="jdbc/BPELSamplesDataSource" />
</data-sources>
DBAdapter wsdl file
GetData_WS.wsdl
<?xml version="1.0" encoding="UTF-8"?>
<definitions
name="GetData_WS"
targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/db/GetData_WS/"
xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/GetData_WS/"
xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
xmlns:pc="http://xmlns.oracle.com/pcbpel/"
xmlns:top="http://xmlns.oracle.com/pcbpel/adapter/db/top/GetDataWS"
xmlns:hdr="http://xmlns.oracle.com/pcbpel/adapter/db/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/" location="DBAdapterOutboundHeader.wsdl"/>
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/GetDataWS"
schemaLocation="GetDataWS_table.xsd"/>
</schema>
</types>
<message name="EmpDetailsViewCollection_msg">
<part name="EmpDetailsViewCollection" element="top:EmpDetailsViewCollection"/>
</message>
<message name="GetData_WSSelect_EMP_ID_inparameters">
<part name="GetData_WSSelect_EMP_ID_inparameters" element="top:GetData_WSSelect_EMP_IDInputParameters"/>
</message>
<portType name="GetData_WS_ptt">
<operation name="GetData_WSSelect_EMP_ID">
<input message="tns:GetData_WSSelect_EMP_ID_inparameters"/>
<output message="tns:EmpDetailsViewCollection_msg"/>
</operation>
</portType>
<binding name="GetData_WS_binding" type="tns:GetData_WS_ptt">
<jca:binding />
<operation name="GetData_WSSelect_EMP_ID">
<jca:operation
InteractionSpec="oracle.tip.adapter.db.DBReadInteractionSpec"
DescriptorName="GetDataWS.EmpDetailsView"
QueryName="GetData_WSSelect"
ReturnSingleResultSet="false"
MappingsMetaDataURL="GetDataWS_toplink_mappings.xml" />
<input>
<jca:header message="hdr:OutboundHeader_msg" part="outboundHeader"/>
</input>
</operation>
</binding>
<!-- Your runtime connection is declared in
J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml
These 'mcf' properties here are from your design time connection and
save you from having to edit that file and restart the application server
if eis/DB/DBConn_XE is missing.
These 'mcf' properties are safe to remove.
-->
<service name="GetData_WS">
<port name="GetData_WS_pt" binding="tns:GetData_WS_binding">
<jca:address location="eis/DB/DBConn_XE"
UIConnectionName="DBConn_XE"
ManagedConnectionFactory="oracle.tip.adapter.db.DBManagedConnectionFactory"
mcf.DriverClassName="oracle.jdbc.OracleDriver"
mcf.PlatformClassName="oracle.toplink.platform.database.oracle.OraclePlatform"
mcf.ConnectionString="jdbc:oracle:thin:@localhost:1521:xe"
mcf.UserName="hr"
mcf.Password="62C32F70E98297522AD97E15439FAC0E"
/>
</port>
</service>
<plt:partnerLinkType name="GetData_WS_plt" >
<plt:role name="GetData_WS_role" >
<plt:portType name="tns:GetData_WS_ptt" />
</plt:role>
</plt:partnerLinkType>
</definitions>
Thx,
DI -
Urgent Help with a my Cheap Greek Hotel!
Thanks for your help with the pseudocode. I have got many errors with this program in the funtions. The code is below. Is there someone who can help me get my head around them?
import Date;
import Money;
public class Hotel {
private Room[] rooms = new Room[12];
public Hotel() {
for(int i = 0; i<rooms.length; i++){
rooms[i] = new Room(i+1,20);
public static void main (String[]args)
// public void bookIn(String guest, Date today)
public void bookIn(String guest, Date today, int roomNumber)
if (roomNumber < 1 || roomNumber > rooms.length){
throw new Exception("Room numbers must be within 1-" + rooms.length);
if (rooms[roomNumber-1].getRoomHolder() !=null){
throw new Exception("Room " + roomNumber + " not available.");
rooms[roomNumber-1].setRoomHolder(guest);
rooms[roomNumber-1].setBookedIn(today);
// fn to put a guest in ata a specified date
public void bookOut (Date checkedIn, Date checkedOut)
//In the date class you can probably check the Calendar class to find
//out the syntax for subtracting dates
int nightsStayed = checkedOut - checkedIn;
//Now I'd have an array of Guest
//objects, where the room number = the position in the
//array. When a guest checks in, you can set whatever
//info. you need (check in date, guest name, etc.) and
//set it back to null when a guest checks out.
new Room[12][roomNumber] = null;
//calculate the fee
double price = getFee(nightsStayed);
System.out.println("You owe: "+price);
// public double bookOut(Date currentdate)
}//end method
public double bookOut (Date currentdate)
// fn to empty the room and may be calculate & return the value of the bill
public double getFee(int nightsStayed)
double fee = (nightlyFee*nightsStayed);
return fee;
//end method
//end class
}The errors in this program are listed below`
T:\Year 1\Programming Workshop\Assignment2\Assignment2\Hotel.java:31: cannot resolve symbol
symbol : method setRoomHolder (java.lang.String)
location: class Room
rooms[RoomNumber-1].setRoomHolder(guest);
^
T:\Year 1\Programming Workshop\Assignment2\Assignment2\Hotel.java:32: cannot resolve symbol
symbol : method setBookedIn (Date)
location: class Room
rooms[RoomNumber-1].setBookedIn(today);
^
T:\Year 1\Programming Workshop\Assignment2\Assignment2\Hotel.java:40: operator - cannot be applied to Date,Date
int nightsStayed = checkedOut - checkedIn;
^
T:\Year 1\Programming Workshop\Assignment2\Assignment2\Hotel.java:46: cannot resolve symbol
symbol : variable RoomNumber
location: class Hotel
new Room[12][RoomNumber] = null;
^
T:\Year 1\Programming Workshop\Assignment2\Assignment2\Hotel.java:46: unexpected type
required: variable
found : value
new Room[12][RoomNumber] = null;
^
T:\Year 1\Programming Workshop\Assignment2\Assignment2\Hotel.java:59: cannot resolve symbol
symbol : variable nightlyFee
location: class Hotel
double fee = (nightlyFee*nightsStayed);
^
T:\Year 1\Programming Workshop\Assignment2\Assignment2\Room.java:36: cannot return a value from method whose result type is void
return bookedIn;
^
7 errors
*** Compiler reported errorsIs there anyone who can transfer my pseudocode into language specific java? I really need some help. Thanks.Thanks for your Help regarding methods. You managed to help me correct two errors. Which means i know have six. Thanks ever so much. The method setRoom Holder has been recognised aswell as the method setBookedIn.
What did you mean by "I cannot use minus operators on dates?" Is there any other way that I can code this function so that it is acceptable?
int nightsStayed = bookedOut - bookedIn;
Can you help me code these last four functions please? Then my program will have no errors. I have to get rid of six.
// public void bookIn(String guest, Date today)
public void bookIn(String guest, Date today, int RoomNumber)
if (RoomNumber < 1 || RoomNumber > rooms.length){
throw new Exception("Room numbers must be within 1-" + rooms.length);
if (rooms[RoomNumber-1].getRoomHolder() !=null){
throw new Exception("Room " + RoomNumber + " not available.");
rooms[RoomNumber-1].setRoomHolder(guest);
rooms[RoomNumber-1].setBookedIn(today);
// fn to put a guest in ata a specified date
public void bookOut (Date bookedIn, Date bookedOut)
//In the date class you can probably check the Calendar class to find
//out the syntax for subtracting dates
int nightsStayed = bookedOut - bookedIn;
//Now I'd have an array of Guest
//objects, where the room number = the position in the
//array. When a guest checks in, you can set whatever
//info. you need (check in date, guest name, etc.) and
//set it back to null when a guest checks out.
new Room[12][RoomNumber] = null;
//calculate the fee
double price = getFee(nightsStayed);
DerbyIO.getString("You owe: "+price);
// public double bookOut(Date currentdate)
}//end method
public double bookOut (Date currentdate)
// fn to empty the room and may be calculate & return the value of the bill
public double getFee(int nightsStayed)
double fee = (nightlyFee*nightsStayed);
return fee;
//end method
//end class
}
Maybe you are looking for
-
How to represent ']] ' value in CDATA
In the following CDATA representation, I want to represent ']]' value. How to represent? Any pointers will be appreciated. <![CDATA[ someString ]]>
-
Does any one know when it will be avaliable for the Torch 9860? when I try to install the app it says that my phone is not compatiable
-
How can I view and amend the devices associated with my iCloud account?
I was hacked recently and someone still has my iPad, I would like to delete this and see which other devices are connected to my account, can anyone help?
-
App-V publishing error (converted 4.6 package) App-V 5.0
Hi, I have this error when publishing an app-v package (via SCCM as well as via powershell). Checked the eventlog but didn't give any extra info. Other packages do succesfully publish, what could I alter in the package to make it work? Here is the er
-
Can't add keywords (locked) until I select image in the Finder
I am running OS X 10.4.11 and Bridge CS4 for Mac on my G5 Tower. Sometimes when I go to add a keyword to an image, Bridge says I can't because the file is locked (or something to that effect). If I go to the Finder, and click on my image, then switch