Errors running converted application (from applet)

I've converted some codes (applet) into an application. When I run the application, I can see the GUI, but the application reports error as follows:
Exception occurred during event dispatching:
java.lang.NullPointerException
     at swarmCanvas.paint(Swarm.java:192)
     at sun.awt.RepaintArea.paint(RepaintArea.java:298)
     at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:196)
     at java.awt.Component.dispatchEventImpl(Component.java:2663)
     at java.awt.Component.dispatchEvent(Component.java:2497)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
What I see is only the GUI less the animation that occurs when it was an applet. Could anyone offer me any suggestions or help? Thanks a lot.

Here's my codes, many thanks:
* Swarm.class
* This is the major class of the swarm animation. The Swarm class is
* responsible for initialising and coordinating the Flock, swarmCanvas,
* and swarmPanel classes.
* @see Flock.class
* @see Bird.class
* @see Barrier.class
* @author Duncan Crombie
* @version 2.02, 20 September 1997
import java.awt.*;
public class Swarm extends java.applet.Applet implements Runnable {
Thread animator; // animation thread
swarmCanvas arena; // display canvas
swarmPanel controls; // control panel
static int NUMBLUE = 15, NUMRED = 5, MAXPOP = 20;
static double SPEED = 5.0;
static int TURN = 15, MINDIST = 30, MAXDIST = 60;
boolean paused = false;
public void init() { // initialise applet components
arena = new swarmCanvas();
controls = new swarmPanel(NUMBLUE, NUMRED, MAXPOP);
setLayout(new BorderLayout());
add("Center", arena); // add canvas to applet at 'Center'
add("South", controls); // add panel to applet at 'South'
arena.requestFocus();
public void start() { // start thread when applet starts
if (animator == null) {
animator = new Thread(this);
animator.start();
public void stop() { // stop thread when applet stops
if (animator != null) {
animator.stop();
animator = null;
public void run() {
boolean flocking = false;
while (true) {
if (!flocking && arena.unpacked) { // once canvas component is unpacked
Bird.setBoundaries(arena.w, arena.h); // set swarm boundaries
arena.flock = new Flock(NUMBLUE, NUMRED, SPEED, TURN, MINDIST, MAXDIST);
flocking = true;
} else if (flocking) {
Bird.setBoundaries(arena.w, arena.h);
if (!paused)
arena.flock.move(); // animate the flock
arena.repaint(); // update display
try {
Thread.sleep(20); // interval between steps
} catch (InterruptedException e) {}
public boolean handleEvent(Event ev) { // check for control panel actions
if (ev.id == Event.ACTION_EVENT && ev.target == controls.reset) {
resetApplet(); // reset button pressed in controls
return true;
if (ev.id == Event.ACTION_EVENT && ev.target == controls.pause) {
paused = !paused; // toggle paused status
controls.pause.setLabel((paused) ? "Continue" : "Pause");
return true;
if (ev.target == controls.sbRed) {
if (ev.id == Event.SCROLL_LINE_UP)
arena.flock.removeBird(Color.red); // remove a red Bird from flock
else if (ev.id == Event.SCROLL_LINE_DOWN)
arena.flock.addBird(new Bird(Color.red)); // add a red Bird
return true;
if (ev.target == controls.sbBlue) {
if (ev.id == Event.SCROLL_LINE_UP)
arena.flock.removeBird(Color.blue); // remove a blue Bird from flock
else if (ev.id == Event.SCROLL_LINE_DOWN)
arena.flock.addBird(new Bird(Color.blue)); // add a blue Bird
return true;
return super.handleEvent(ev); // pass on unprocessed events
public boolean keyDown(Event e, int x) { // check for key press
boolean shiftKeyDown = ((e.modifiers & Event.SHIFT_MASK) != 0);
if (shiftKeyDown) {
if (x == Event.DOWN) Flock.minDISTANCE -= 5; // less separation
if (x == Event.UP) Flock.minDISTANCE += 5; // more separation
if (x == Event.LEFT) Flock.maxDISTANCE -= 5; // lower detection
if (x == Event.RIGHT) Flock.maxDISTANCE += 5; // higher detection
Barrier.minRANGE = Flock.minDISTANCE;
Barrier.maxRANGE = Flock.maxDISTANCE;
} else {
if (x == Event.DOWN) Bird.maxSPEED -= 1.0; // slower
if (x == Event.UP) Bird.maxSPEED += 1.0; // faster
if (x == Event.LEFT) Bird.maxTURN -= 5; // less turning
if (x == Event.RIGHT) Bird.maxTURN += 5; // more turning
return true; // all key events handled
public void resetApplet() {
arena.flock = new Flock(NUMBLUE, NUMRED, SPEED, TURN, MINDIST, MAXDIST);
controls.sbBlue.setValue(NUMBLUE); // initialise scrollbars
controls.sbRed.setValue(NUMRED);
* swarmPanel.class
* A Panel holding two scrollbars and two buttons for controlling the
* Swarm applet.
* @see Swarm.class
* @author Duncan Crombie
* @version 2.01, 20 September 1997
class swarmPanel extends Panel { // class defines applet control panel
Button reset, pause;
Scrollbar sbBlue = new Scrollbar(Scrollbar.HORIZONTAL);
Scrollbar sbRed = new Scrollbar(Scrollbar.HORIZONTAL);
Label label1, label2;
* The construction method creates and adds control panel components
swarmPanel(int numRed, int numBlue, int maxBoid) {
setLayout(new GridLayout(2, 3)); // define 2 x 3 grid layout for controls
label1 = new Label("Blue #");
label1.setFont(new Font("Dialog", Font.PLAIN, 12)); add(label1);
label2 = new Label("Red #");
label2.setFont(new Font("Dialog", Font.PLAIN, 12)); add(label2);
reset = new Button("Reset"); add(reset);
sbBlue.setValues(numRed, 1, 0, maxBoid);
add(sbBlue);
sbRed.setValues(numBlue, 1, 0, maxBoid);
add(sbRed);
pause = new Button("Pause");
add(pause);
* swarmCanvas.class
* A Canvas for displaying the Flock and Swarm parameters.
* @see Swarm.class
* @author Duncan Crombie
* @version 2.01, 20 September 1997
class swarmCanvas extends Canvas {
Flock flock;
Image offScrImg;
boolean unpacked = false;
int w, h;
/* Double buffered graphics */
public void update(Graphics g) {
if (offScrImg == null || offScrImg.getWidth(this) != w || offScrImg.getHeight(this) != h)
offScrImg = createImage(w, h);
Graphics og = offScrImg.getGraphics();
paint(og);
g.drawImage(offScrImg, 0, 0, this);
og.dispose();
public void paint(Graphics g) {
Dimension d = this.preferredSize();
if (!unpacked) {
this.w = d.width;
this.h = d.height;
unpacked = true;
g.setColor(Color.white);
g.fillRect(0, 0, w, h); // draw white background
g.setColor(Color.black); // set font and write applet parameters
g.setFont(new Font("Dialog", Font.PLAIN, 10));
g.drawString("Bird Speed: " + Bird.maxSPEED, 10, 15);
g.drawString("Bird Turning: " + Bird.maxTURN, 10, 30);
g.drawString("Minimum Distance: " + Flock.minDISTANCE, 10, 45);
g.drawString("Maximum Distance: " + Flock.maxDISTANCE, 10, 60);
flock.display(g); // draw Flock members
if (this.w != d.width || this.h != d.height)
unpacked = false;
public boolean mouseDown(Event ev, int x, int y) {
int radius = Barrier.maxRANGE;
boolean top, bottom;
flock.addBird(new Barrier(x, y)); // place Barrier at click coordinates
top = (y < radius);
bottom = (y > h-radius);
if (x < radius) { // if left
flock.addBird(new Barrier(w + x, y));
if (top) flock.addBird(new Barrier(w + x, h + y));
else if (bottom) flock.addBird(new Barrier(w + x, y - h));
} else if (x > w-radius) { // if right
flock.addBird(new Barrier(x - w, y));
if (top) flock.addBird(new Barrier(x - w, h + y));
else if (bottom) flock.addBird(new Barrier(x - w, y - h));
if (top) flock.addBird(new Barrier(x, h + y));
else if (bottom) flock.addBird(new Barrier(x, y - h));
return true;
===================================================================
* Bird.class
* This class defines the appearance and behaviour of a Bird object.
* @see Swarm.class
* @see Flock.class
* @see Barrier.class
* @author Duncan Crombie
* @version 2.02, 21 September 1997
import java.awt.*;
class Bird {
int iX, iY, iTheta;
Color cFeathers;
static int arenaWIDTH, arenaHEIGHT; // canvas dimensions
static double maxSPEED; // speed of Bird
static int maxTURN; // maximum turn in degrees
Bird(int x, int y, int theta, Color feath) {
iX = x;
iY = y;
iTheta = theta;
cFeathers = feath;
Bird(Color feath) {
this((int)(Math.random() * arenaWIDTH),
(int)(Math.random() * arenaHEIGHT),
(int)(Math.random() * 360),
feath);
public void move(int iHeading) {
int iChange = 0;
int left = (iHeading - iTheta + 360) % 360;
int right = (iTheta - iHeading + 360) % 360;
if (left < right)
iChange = Math.min(maxTURN, left);
else
iChange = -Math.min(maxTURN, right);
iTheta = (iTheta + iChange + 360) % 360;
iX += (int)(maxSPEED * Math.cos(iTheta * Math.PI/180)) + arenaWIDTH;
iX %= arenaWIDTH;
iY -= (int)(maxSPEED * Math.sin(iTheta * Math.PI/180)) - arenaHEIGHT;
iY %= arenaHEIGHT;
public void display(Graphics g) { // draw Bird as a filled arc
g.setColor(this.cFeathers);
g.fillArc(iX - 12, iY - 12, 24, 24, iTheta + 180 - 15, 30);
public int getDistance(Bird bOther) {
int dX = bOther.getPosition().x-iX;
int dY = bOther.getPosition().y-iY;
return (int)Math.sqrt(Math.pow(dX, 2) + Math.pow(dY, 2));
static void setBoundaries(int w, int h) {
arenaWIDTH = w;
arenaHEIGHT = h;
public int getTheta() {
return iTheta;
public Point getPosition() {
return new Point(iX, iY);
public Color getFeathers() {
return cFeathers;
=================================================================
* Flock.class
* This class creates and coordinates the movement of a flock of Birds.
* @see Swarm.class
* @see Bird.class
* @see Barrier.class
* @author Duncan Crombie
* @version 2.02, 21 September 1997
import java.util.Vector;
import java.awt.*;
class Flock { // implement swarming algorithm on flock of birds
private Vector vBirds;
static int minDISTANCE, maxDISTANCE;
Flock(int nBlue, int nRed, double speed, int turn, int minDist, int maxDist) {
vBirds = new Vector(5, 5);
for (int i=0; i < nBlue + nRed; i++)
addBird(new Bird((i < nBlue) ? Color.blue : Color.red));
Bird.maxSPEED = speed;
Bird.maxTURN = turn;
Barrier.minRANGE = minDISTANCE = minDist;
Barrier.maxRANGE = maxDISTANCE = maxDist;
public void addBird(Bird bird) { // add Bird to vector
vBirds.addElement(bird);
synchronized void removeBird(Color col) { // remove Bird from vector
for (int i=0; i < vBirds.size(); i++) { // loop through vector of Birds
Bird bTemp = (Bird)vBirds.elementAt(i);
if (bTemp.getFeathers() == col) { // search for Bird of given colour
vBirds.removeElementAt(i); // if found, remove Bird..
break; // ..and stop searching
* The move function simply tells each Bird in the Vector vBirds to move
* according to the resultant Point of generalHeading.
synchronized public void move() {
for (int i=0; i < vBirds.size(); i++) {
Bird bTemp = (Bird)vBirds.elementAt(i);
bTemp.move(generalHeading(bTemp));
* The display function simply draws each Bird in the Vector vBirds at its
* current position.
public void display(Graphics g) { // display each Bird in flock
for (int i=0; i < vBirds.size(); i++) {
Bird bTemp = (Bird)vBirds.elementAt(i);
bTemp.display(g);
public Point sumPoints(Point p1, double w1, Point p2, double w2) {
return new Point((int)(w1*p1.x + w2*p2.x), (int)(w1*p1.y + w2*p2.y));
public double sizeOfPoint(Point p) {
return Math.sqrt(Math.pow(p.x, 2) + Math.pow(p.y, 2));
public Point normalisePoint(Point p, double n) {
if (sizeOfPoint(p) == 0.0) return p;
else {
double weight = n / sizeOfPoint(p);
return new Point((int)(p.x * weight), (int)(p.y * weight));
* The generalHeading function determines the point a Bird will turn towards
* in the next timestep. The Bird b checks for all Birds (other than self)
* that fall within the detection range. If the Bird is of a different colour
* or closer than the separation distance then they are repulsed else the
* Birds are attracted according to the flocking algorithm.
private int generalHeading(Bird b) {
if (b instanceof Barrier) return 0;
Point pTarget = new Point(0, 0);
int numBirds = 0; // total of Birds to average
for (int i=0; i < vBirds.size(); i++) { // for each Bird in array
Bird bTemp = (Bird)vBirds.elementAt(i); // retrieve element i
int distance = b.getDistance(bTemp); // get distance to Bird
if (!b.equals(bTemp) && distance > 0 && distance <= maxDISTANCE) {
* If the neighbour is a sibling the algorithm tells the boid to align its
* direction with the other Bird. If the distance between them differs from
* minDISTANCE then a weighted forces is applied to move it towards that
* distance. This force is stronger when the boids are very close or towards
* the limit of detection.
if (b.getFeathers().equals(bTemp.getFeathers())) { // if same colour
Point pAlign = new Point((int)(100 * Math.cos(bTemp.getTheta() * Math.PI/180)), (int)(-100 * Math.sin(bTemp.getTheta() * Math.PI/180)));
pAlign = normalisePoint(pAlign, 100); // alignment weight is 100
boolean tooClose = (distance < minDISTANCE);
double weight = 200.0;
if (tooClose) weight *= Math.pow(1 - (double)distance/minDISTANCE, 2);
else weight *= - Math.pow((double)(distance-minDISTANCE) / (maxDISTANCE-minDISTANCE), 2);
Point pAttract = sumPoints(bTemp.getPosition(), -1.0, b.getPosition(), 1.0);
pAttract = normalisePoint(pAttract, weight); // weight is variable
Point pDist = sumPoints(pAlign, 1.0, pAttract, 1.0);
pDist = normalisePoint(pDist, 100); // final weight is 100
pTarget = sumPoints(pTarget, 1.0, pDist, 1.0);
* In repulsion the target point moves away from the other Bird with a force
* that is weighted according to a distance squared rule.
else { // repulsion
Point pDist = sumPoints(b.getPosition(), 1.0, bTemp.getPosition(), -1.0);
pDist = normalisePoint(pDist, 1000);
double weight = Math.pow((1 - (double)distance/maxDISTANCE), 2);
pTarget = sumPoints(pTarget, 1.0, pDist, weight); // weight is variable
numBirds++;
if (numBirds == 0) return b.getTheta();
else // average target points and add to position
pTarget = sumPoints(b.getPosition(), 1.0, pTarget, 1/(double)numBirds);
int targetTheta = (int)(180/Math.PI * Math.atan2(b.getPosition().y - pTarget.y, pTarget.x - b.getPosition().x));
return (targetTheta + 360) % 360; // angle for Bird to steer towards
======================================================================
* Barrier.class
* This class creates and coordinates the movement of a flock of Birds.
* @see Swarm.class
* @see Flock.class
* @see Bird.class
* @author Duncan Crombie
* @version 2.01, 21 September 1997
import java.awt.*;
class Barrier extends Bird {
static int minRANGE, maxRANGE;
Barrier(int x, int y) {
super(x, y, 0, Color.black); // position Barrier and define color as black
public void move(int dummy) {
// do nothing
public void display(Graphics g) { // paint Barrier
g.setColor(Color.black);
g.fillOval(this.iX-5, this.iY-5, 10, 10);
g.setColor(Color.gray); // paint separation circle
g.drawOval(this.iX-minRANGE, this.iY-minRANGE, 2*minRANGE, 2*minRANGE);
g.setColor(Color.lightGray); // paint detection circle
g.drawOval(this.iX-maxRANGE, this.iY-maxRANGE, 2*maxRANGE, 2*maxRANGE);
=====================================================================
import java.awt.*;
import java.awt.event.*;
public class SwarmFrame extends Frame implements ActionListener {
public SwarmFrame() {
super("Flocking Bird");
MenuBar mb = new MenuBar();
setMenuBar(mb);
Menu fileMenu = new Menu("File");
mb.add(fileMenu);
MenuItem exitMenuItem = new MenuItem("Exit");
fileMenu.add(exitMenuItem);
exitMenuItem.addActionListener(this);
Swarm swarmApplet = new Swarm();
add(swarmApplet, BorderLayout.CENTER);
swarmApplet.init();
public void actionPerformed(ActionEvent evt) {
if(evt.getSource() instanceof MenuItem) {
String menuLabel = ((MenuItem) evt.getSource()).getLabel();
if(menuLabel.equals("Exit")) {
dispose();
System.exit(0);
=====================================================================
import java.awt.*;
public class SwarmApplication {
public static void main(String[] args) {
Frame frame = new SwarmFrame();
frame.setBounds(10, 10, 600, 400);
frame.setVisible(true);

Similar Messages

  • Run application from applet

    is it possible to run an application from an applet? is so how can i go about doing this?

    hey may be the use of Runtime can help u solve ur
    prblm....
    Runtime.exec("Application name");luck,
    jayNope. You should know some basic things before trying to give answers.
    If (unsigned/untrusted) applets could just run any other app, imagine the chaos when someone hits a rogue website containing an applet that executes something like "format c:"
    You want to run an external program on the client's machine from an applet? You can't, thank heavens. You need to rethink your design.

  • Start application from applet

    Hi there!
    I have to start an application from applet (is not my idea, i HAVE to do it). That menas (i think) i have a little problem with the java "sand box". How can i make my program run out of it? Signed Applets? Are there also other possibiliys? Can i make as "privat person" signed Applets?
    Thank's

    This is SAX-parser for XML processing. The XML-files are local saved, also the applet and the application. The Parser application seems to start, but (sic!) there is no output, even though the application is OK...

  • Is it possible to run an application from a user or container login script?

    Is it possible to run an application from a user login script or a container login script?
    A "Force Run" application object works fine if the user's workstation is setup to auto-load "Application Window" or "Application Explorer" but in this case I'd like to run an application when someone does a manual login (ie. they right-click red "N" and choose "Novell Login...")
    Using a User Package's "Scheduled Action Policy" and the Event=Login also does not work when a user logs in manually. This type of Event seems to only apply when the user first logs into the workstation, not at a manual login.
    Thanks,
    Marc

    > Is it possible to run an application from a user login script or a
    container login script?
    Yes, see the documentation:
    http://www.novell.com/documentation/...a/a7q6999.html
    Regards
    Rolf Lidvall
    Swedish Radio (Ltd)

  • Error while converting schema from oracle to SQL server

    Hello,
    I am getting following error while converting schema from oracle to SQL server using SSMA.
    I get Errors 1-3 while migrating procedures and error 4 while migrating a table.
    1- O2SS0050: Conversion of identifier 'SYSDATE' is not supported.
    2- O2SS0050: Conversion of identifier 'to_date(VARCHAR2, CHAR)' is not supported.
    3- O2SS0050: Conversion of identifier 'regexp_replace(VARCHAR2, CHAR)' is not supported.
    4- O2SS0486: <Primary key name> constraint is disabled in Oracle and cannot be converted because SQL Server does not support disabling of primary or unique constraint.
    Please suggest.
    Thanks.

    The exact statement in oracle side which causing this error (O2SS0050:
    Conversion of identifier 'to_date(VARCHAR2, CHAR)' is not supported.) is below:
    dStartDate:= to_date(sStartDate,'MON-YYYY');
    Statement causing error O2SS0050:
    Conversion of identifier 'regexp_replace(VARCHAR2, CHAR)' is not supported is below.
    nCount2:= length(regexp_replace(sDataRow,'[^,]'));
    So there is no statement which is using to_date(VARCHAR2,
    CHAR) and regexp_replace(VARCHAR2, CHAR) in as such. 'MON-YYYY'  and '[^,]'
    are CHAR values hence SSMA is unable to convert it from varchar2 to char.
    Regarding SYSDATE issue, you mean to put below code in target(SQL) side in SSMA ?
    dDate date := sysdate;
    Thanks.

  • How to run two applications from same application server

    hi,
    i am working on oracle application server 10g , is it possible to run 2 applications from one application server by using different url ? but same report server name .
    if i can do so plz tell me how ?
    regards

    hi,
    offcourse,you can do this you.you can deploy n no of applications on a single application server.
    and even you can run all the reports on a single report server
    to the below location.
    $ORACLE_HOME/forms/server
    create a new enviroment file(for eg fd.env) using the default.env as follows and make the following FORM_PATH and REPORTS_PATH changes in the fd.env
    FORMS_PATH=/oraApp/Ora_bi/forms:/oraApp/backup_29_11_2010_0.12/fd/pll:/oraApp/backup_29_11_2010_0.12/fd/forms
    REPORTS_PATH=/oraApp/backup_29_11_2010_0.12/fd/reports
    similarily create another env file (eg appr.env) and make the above changes in it.
    Now make the following changes in formsweb.cfg
    for example:
    [xyz]
    envFile=appr.env(env file name)
    form=xyz.fmx(your start form)
    lookandfeel=oracle
    separateFrame=false
    userid=appraisal/[email protected]
    splashscreen=NO
    logo=NO
    background=NO
    color=automatic
    render=yes
    archive=frmall.jar
    archive_jini=frmall_jinit.jar,frmwebutil.jar,jacob.jar,ofasIcons.jar,icons.jar,OfasPrint.jar,newicons.jar(these jar file are the images files of your applications..needs to be stored in $ORACLE_HOME/forms/java.
    imagebase=codebase
    term=frmpcweb.res
    baseHTML=webutilbase.htm
    baseHTMLjinitiator=webutiljini.htm
    baseHTMLjpi=webutiljpi.htm
    WebUtilArchive=frmwebutil.jar,jacob.jar
    [fd]
    envFile=fd.env
    form=fd.fmx
    lookandfeel=oracle
    separateFrame=true
    userid=fdmmfsl/fdmmfsl@mmfdlive
    splashscreen=NO
    logo=NO
    background=NO
    color=automatic
    render=yes
    archive=frmall.jar
    archive_jini=frmall_jinit.jar,frmwebutil.jar,jacob.jar,icons.jar
    imagebase=codebase
    term=frmpcweb.res
    baseHTML=webutilbase.htm
    baseHTMLjinitiator=webutiljini.htm
    This depends on your application which your deploying
    now for about accessing the seperate application then
    use as follows
    1st application
    http://ip address:7778/forms/frmservlet?config=xyz
    2nd application
    http://ip address:7778/forms/frmservlet?config=fd
    you can even deploy 2 war files on one application server...and you can even make these 2 war files to access the same report server
    If you require any other help then do let me know
    Regards
    Fabian D'souza

  • Error when downloading application from Server

    Hi,
    I have installed MI Client 7.0 SPS 11 Patch 0 on Symbol Device ;OS Windows Mobile5.0
    i have successfully completed <b>first</b> synchronization .
    After that i assigned Mobile Component to the device and tried synchronizing.
    "Error when downloading application from http://<servername>:50000/meContainerSync/servlet/com.sap.ip.mi.http.MobileComponentServlet?Application=xyz&Type=APPLICATION&Runtime=JSP"
    Pl. suggest
    Note: In NWA under 'Device Maintenance' -> Mobile component
    The state of the aplication is <b>"Deployment Activated"</b>
    rgds,
    Kiran Joshua
    Message was edited by:
            Kiran Joshua

    Hi ALL,
    I resolved it on my own guys !!!
    Actually while downloading server url consists of hostname bcoz the hostfile entry in windows/system32/drivers/etc/hosts was only hostname.
    i entered FQDN name in the hostfile... It WORKED
    Being Saturday and Sunday...i cud not get any help from forums...i was really worried and Guys we need to think on this :-?
    rgds,
    Kiran Joshua

  • 500 Internal Server Error running SRList.jsp from ADFBC_tutorial (OTN)

    Hello!
    I am running through the JDeveloper totorial (ADFBC_tutorial) posted on OTN. I have gone as far as Chapter 5 but when I run the SRList.jsp page, I get the 500 Internal Server Error:
    I have had no issues running through the tutorial in the design time but when I run the app I get the following error:
    Error Details are as:
    java.lang.NullPointerException     at javax.faces.webapp.UIComponentTag.isValueReference(UIComponentTag.java:336)     at oracle.adfinternal.view.faces.taglib.AttributeTag.doStartTag(AttributeTag.java:84)     at app.SRList._jspService(_SRList.java:109)     [app/SRList.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:287)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)     at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)     at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)     at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)     at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)     at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)     at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)     at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:595)
    Also, I tried to run the application in debug mode and this is what I find:
    1. Unable to find source file for the package oracle.adfinternal.view.faces.application, filename ViewHandlerImpl.java
    2. Unable to find source file for the package oracle.adfinternal.view.faces.webapp, filename AdfFacesFilterImpl.java
    Am I missing any libraries?
    Thanks!

    Hi,
    if you used a starter workspace then make sure that the adf-faces-impl.jar file and the jsf-impl.jar file in the WEB-INF/lib directory of the ViewLayer project is from the JDeveloper build you use. In JDeveloper you find the adf-faces-impl.jar in the JDeveloper jlib directory and the jsf-impl.jar in the jsf-ri directory
    Frank

  • Running LV application from remote panel which measures FP through different LAN

    My LabVIEW application is running in a PC and it takes measurements from the FieldPoint modules which are connected via the FP-1601 network module.
    I want to view and execute the application from another PC using remote panel option. The master PC has two LAN connections, one seperate connection for the FieldPoint module and the second one to connect with other PCs.
    But the application returns error while initializing the FP modules when executed from remote panel.
    Will the application be able to communicate and take measurements from the FieldPoint module in this case? Please explain.
    Thanks for the help and awaiting earlier response.
    Thank you,
    Rajeswari

    In principle this I believe this is a TCP/IP routing issue.
    If your fieldpoint unit is connected to one card lets say
    Card 01 Host 10.0.0.1 255.255.255.0 ---- Fieldpoint 10.0.0.2 255.255.255.0
    Card 02 Host 168.95.0.1 255.255.0.0 ---- Lan 168.95.x.x 255.255.0.0
    The routing in the host takes care of which card is used for which network segment.
    My guess is that you have not seperated the network segments as shown above.
    Is this correct ?

  • SQLE_COMMUNICATIONS_ERROR while running SFA application from Visual Studio

    Hi,
    I am trying the SFA (Sales Force Automation) example.
    I am using the Windows Mobile 6.0 emulator from Visual Studio to run the application.
    When I go to the "Configure" button, change the configuration values and try to Save, I am getting the following error.
    =======
    SQLE_COMMUNICATIONS_ERROR
    iAnywhere.Data.UltraLite.ULException: SQLE_COMMUNICATIONS_ERROR at iAnywhere.Data.UltraLite.ULConnection.RuntimeError(IntPtr natKey, ULSQLCode code, Object p0, Object p1, Object p2) at iAnywhere.Data.UltraLite.ULConnection.RuntimeError(ULSQLCode code) at iAnywhere.Data.UltraLite.ULConnection.Synchronize() at SalesForceAutomation.SalesForceAutomationDB.Synchronize(String synchronizationGroup, SyncStatusListener listener) at SalesForceAutomation.SalesForceAutomationDB.Synchronize() at SalesForceAutomation.FormConfiguration.menuItem1_Click(Object sender, EventArgs e) at System.Windows.Forms.MenuItem.OnClick(EventArgs e) at System.Windows.Forms.Menu.ProcessMnuProc(Control ctlThis, WM wm, Int32 wParam, Int32 lParam) at System.Windows.Forms.Form.WnProc(WM wm, Int32 wParam, Int32 lParam) at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam) at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain) at System.Windows.Forms.Application.Run(Form fm) at SalesForceAutomation.Program.Main() Details: StreamErrorCode = SOCKET_CONNECT StreamErrorSystem = 10061 StreamErrorParameters =
    ======
    I am unable to sort out this.
    Any help would be highly appreciated.
    Thanks in advance.
    Regards,
    Ram.

    Hi,
    Finally I fixed this issue.
    I ran the SybaseServerSync.v35.CAB on the device emulator. Then tried the program. It worked. This helps establish the synchronization between the device and the SUP server. This CAB file can be located at the path <UnwiredServerInstallationLocation>\UnwiredPlatform\ClientAPI\RBS\WM\ServerSync.
    Regards,
    Ram.

  • Calling report from forms while running the application from thin clients

    I am using thin client technology with 64MB RAM for running developer 6i application.
    The server has windows 2000 advanced server with 256 MB RAM.
    When I run the apllication from a single client, it works fine even for multiple windows.
    But the moment I switch on more thin clients, the client which fired the printing job first works fine, while the others allow data entry using forms but any call to report for direct printing throws an illegal condition error. I have tried both run_product and host option for running reports. The error returned is the same.
    Howver if the report is run from command prompt simultaneously from both the clients it works fine.
    Immediate help required in this case
    chandandeep

    Hi,
    you better off using Run_Report_Object() instead of Run_Product(). There is a Whitepaper available on otn.oracle.com/products/forms that details this. The problem that you run into is that Forms Services(thin clients) are multi user environments while Reports called via Run_Product() is a single user environment. This means that the Reports Runtime does not handle Reports requests in parallel but sequential one at a time. The first user blocks the runtime engines and all other hang for this time.
    Fran

  • Installing and Running Air application from webpage

    Hello ,
    I am trying to run the air application from web page and its working fine in my system. (http://localhost:8080/examples/test1.html)
    if i try to run the same air application from another system's webpage by pointing the url to my system's IP Address,(http://lpAdres of my system:8080/examples/test1.html) its showing error "The application could not be installed because the installer file is damaged. Try obtaining a new installer file from the application author"
    Air Application version are . Flex3.6 sdk and Air2.7 sdk & runtime
    Any of you know what could be the problem.
    please help em to resolve this issue asap.
    its very urgent requirement

    Hi, Jeff;
    Make sure you have compiled your application as 32 bit, and not "any cpu".
    See this document for some more info: [64|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/10d5fa88-2013-2c10-c9a5-f11963607d4e&overridelayout=true]
    Regards,
    Jonathan
    Follow us on Twitter u2013 http://twitter.com/SAPCRNetSup

  • Converting applications to applets

    please,can someone help run this code of mine and convert it to applet for me.couldn't change the file access.thanks in advance.
    //package personalData;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    public class Parent extends JPanel
         //private JLabel ;
         private JSeparator labelseparator,personalseparator;
         private JLabel picLabel;
         private JPanel picP;
         private JButton browseB;
         private Image image;
         private ImageIcon passport;
         private JTextField surnameF,othernameF,rankF,sexF,bloodgroupF,maritalF,
         maidenF,children1F,children2F,dateofbirth1F,placeofbirth1F,stateoforiginF,
         lgaF,nationalityF,homeaddressF,contactF,telF,emailF,nextofkinF,nextofkinaddressF,
         qualificationF,daybox,additionalqualificationF,dateofappointmentF,typeofappointmentF,
         ageofentryF,dateofpresappointmentF,dateofconfirmationF,dateoflastpromotionF,presentcommandF,
         previouscommandF,dateoflastpostingF,postingtypeF,presentdesignationF,basictrainingF,
         venueF,approvedcourseF,institutionF,dateenrolledF,durationF,completiondateF,appointedF,
         salaryF,stepsF,basicsalaryF;
         String fileName,fileS;
         private JFileChooser fc;
         private File file;
         /*public void init()
         {     try{
                   ParentGUI();
              catch(Exception e)     {System.err.println(e);}
         public Parent()
              setLayout(null);
              JLabel logo=new JLabel(new ImageIcon("flower.gif"));
              logo.setBounds(10,10,200,120);
              add(logo);
              JLabel label1=new JLabel("FEDERAL REPUBLIC OF NIGERIA");
              JLabel label2=new JLabel("FEDERAL ROAD SAFETY COMMISSION");
              JLabel label3=new JLabel("NATIONAL HEADQUARTERS,WUSE,ABUJA");
              JLabel label4=new JLabel("COMPUTER DATA FORM");
            label1.setBounds(220,15,300,20);
            label1.setFont(new Font("SanSerif", Font.BOLD, 12));
            label1.setForeground(Color.blue);
            label2.setBounds(210,35,300,20);
            label2.setFont(new Font("SanSerif", Font.BOLD, 12));
            label2.setForeground(Color.blue);
            label3.setBounds(200,55,300,20);
            label3.setFont(new Font("SanSerif", Font.BOLD, 12));
            label3.setForeground(Color.blue);
            label4.setBounds(230,70,300,20);
            label4.setFont(new Font("SanSerif", Font.BOLD, 12));
            label4.setForeground(Color.blue);
              add(label1);
              add(label2);
              add(label3);
              add(label4);
              labelseparator=new JSeparator();
              labelseparator.setBounds(10,140,570,20);
              add(labelseparator);
              fc=new JFileChooser();
              File f1=new File("My Pictures");
              fc.setCurrentDirectory(f1);
              /*passLab=new JLabel("Passport");
              passLab.setBounds(430,10,60,20);
              add(passLab);
              picP=new JPanel();
              picP.setLayout(new BorderLayout());
              picP.setBounds(450,10,140,120);
              picLabel=new JLabel();
              picP.add(picLabel);
              browseB=new JButton("Browse");
              browseB.setOpaque(false);
              browseB.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent e)
                        int returnVal=fc.showOpenDialog(Parent.this);
                        if(returnVal==JFileChooser.APPROVE_OPTION)
                             file=fc.getSelectedFile();
                             fileName=""+file+"";
                             passport=new ImageIcon(fileName);
                             picLabel.setIcon(passport);
                        else{}
              browseB.setBounds(600,100,80,25);
              add(browseB);
              picP.setBorder(new BevelBorder(BevelBorder.LOWERED));
              add(picP);
              JLabel personaldata=new JLabel("PERSONAL DATA:");
              personaldata.setFont(new Font("SanSerif",Font.BOLD,12));
              personaldata.setForeground(Color.darkGray);
              personaldata.setBounds(10,150,200,20);
              add(personaldata);
              personalseparator=new JSeparator();
              personalseparator.setBounds(10,170,100,20);
              add(personalseparator);
              JLabel surname=new JLabel("Surname:");
              surname.setBounds(10,190,100,20);
              add(surname);
              surnameF=new JTextField(20);
              surnameF.setBounds(70,190,150,20);
              add(surnameF);
              JLabel othername=new JLabel("Other Names:");
              othername.setBounds(260,190,150,20);
              add(othername);
              othernameF=new JTextField(20);
              othernameF.setBounds(350,190,300,20);
              add(othernameF);
              JLabel rank=new JLabel("Rank:");
              rank.setBounds(10,210,50,20);
              add(rank);
              rankF=new JTextField(20);
              rankF.setBounds(70,210,150,20);
              add(rankF);
              JLabel sex=new JLabel("Sex:");
              sex.setBounds(310,210,90,20);
              add(sex);
              sexF=new JTextField(10);
              sexF.setBounds(350,210,90,20);
              add(sexF);
              JLabel bloodgroup=new JLabel("Blood Group:");
              bloodgroup.setBounds(450,210,150,20);
              add(bloodgroup);
              bloodgroupF=new JTextField(10);
              bloodgroupF.setBounds(530,210,120,20);
              add(bloodgroupF);
              JLabel marital=new JLabel("Marital Status:");
              marital.setBounds(10,230,150,20);
              add(marital);
              maritalF=new JTextField(20);
              maritalF.setBounds(100,230,100,20);
              add(maritalF);
              JLabel maiden=new JLabel("Maiden Name:");
              maiden.setBounds(260,230,100,20);
              add(maiden);
              maidenF=new JTextField(20);
              maidenF.setBounds(350,230,300,20);
              add(maidenF);
              JLabel m=new JLabel("M");
              m.setBounds(115,250,40,20);
              add(m);
              JLabel f=new JLabel("F");
              f.setBounds(145,250,40,20);
              add(f);
              JLabel children=new JLabel("No. of Children:");
              children.setBounds(10,270,100,20);
              add(children);
              children1F=new JTextField(5);
              children1F.setBounds(100,270,40,20);
              add(children1F);
              children2F=new JTextField(5);
              children2F.setBounds(135,270,40,20);
              add(children2F);
              JLabel dateofbirth=new JLabel("Date of Birth:");
              dateofbirth.setBounds(210,270,150,20);
              add(dateofbirth);
              dateofbirth1F=new JTextField(10);
              dateofbirth1F.setBounds(290,270,80,20);
              add(dateofbirth1F);
              JLabel placeofbirth=new JLabel("Place of Birth:");
              placeofbirth.setBounds(410,270,150,20);
              add(placeofbirth);
              placeofbirth1F=new JTextField(30);
              placeofbirth1F.setBounds(500,270,150,20);
              add(placeofbirth1F);
              JLabel stateoforigin=new JLabel("State of Origin:");
              stateoforigin.setBounds(10,290,100,20);
              add(stateoforigin);
              stateoforiginF=new JTextField(20);
              stateoforiginF.setBounds(100,290,150,20);
              add(stateoforiginF);
              JLabel lga=new JLabel("LGA:");
              lga.setBounds(257,290,150,20);
              add(lga);
              lgaF=new JTextField(10);
              lgaF.setBounds(290,290,100,20);
              add(lgaF);
              JLabel nationality=new JLabel("Nationality:");
              nationality.setBounds(425,290,100,20);
              add(nationality);
              nationalityF=new JTextField(10);
              nationalityF.setBounds(500,290,150,20);
              add(nationalityF);
              JLabel homeaddress=new JLabel("Permanent Home Address:");
              homeaddress.setBounds(10,310,250,20);
              add(homeaddress);
              homeaddressF=new JTextField(200);
              homeaddressF.setBounds(170,310,480,20);
              add(homeaddressF);
              JLabel contact=new JLabel("Contact Address:");
              contact.setBounds(60,330,150,20);
              add(contact);
              contactF=new JTextField(200);
              contactF.setBounds(170,330,480,20);
              add(contactF);
              JLabel tel=new JLabel("Tel. No:");
              tel.setBounds(118,350,100,20);
              add(tel);
              telF=new JTextField(15);
              telF.setBounds(170,350,100,20);
              add(telF);
              JLabel email=new JLabel("E-mail:");
              email.setBounds(290,350,150,20);
              add(email);
              emailF=new JTextField(20);
              emailF.setBounds(330,350,320,20);
              add(emailF);
              JLabel nextofkin=new JLabel("Next of Kin Name:");
              nextofkin.setBounds(60,370,250,20);
              add(nextofkin);
              nextofkinF=new JTextField(200);
              nextofkinF.setBounds(170,370,480,20);
              add(nextofkinF);
              JLabel nextofkinaddress=new JLabel("Next of Kin Address:");
              nextofkinaddress.setBounds(47,390,250,20);
              add(nextofkinaddress);
              nextofkinaddressF=new JTextField(200);
              nextofkinaddressF.setBounds(170,390,480,20);
              add(nextofkinaddressF);
              JLabel qualification=new JLabel("Qualification at Entry:");
              qualification.setBounds(40,410,250,20);
              add(qualification);
              qualificationF=new JTextField(200);
              qualificationF.setBounds(170,410,250,20);
              add(qualificationF);
              JLabel date=new JLabel("Date");
              date.setBounds(430,410,40,20);
              add(date);
              daybox=new JTextField(10);
              daybox.setBounds(460,410,190,20);
              add(daybox);
              JLabel additionalqualification=new JLabel("Additional Qualifications Acquired:");
              additionalqualification.setBounds(10,430,250,20);
              add(additionalqualification);
              additionalqualificationF=new JTextField(100);
              additionalqualificationF.setBounds(214,430,437,20);
              add(additionalqualificationF);
              JLabel info=new JLabel("RECORD OF SERVICE:");
              info.setFont(new Font("SanSerif",Font.BOLD,12));
              info.setForeground(Color.darkGray);
              info.setBounds(10,450,200,20);
              add(info);
              JSeparator infos=new JSeparator();
              infos.setBounds(10,470,120,20);
              add(infos);
              JLabel dateofappointment=new JLabel("Date of First Appointment:");
              dateofappointment.setBounds(10,490,200,20);
              add(dateofappointment);
              dateofappointmentF=new JTextField(10);
              dateofappointmentF.setBounds(170,490,80,20);
              add(dateofappointmentF);
              JLabel typeofappointment=new JLabel("Type of Appointment:");
              typeofappointment.setBounds(260,490,200,20);
              add(typeofappointment);
              typeofappointmentF=new JTextField(50);
              typeofappointmentF.setBounds(400,490,160,20);
              add(typeofappointmentF);
              JLabel ageofentry=new JLabel("Age of Entry:");
              ageofentry.setBounds(600,490,100,20);
              add(ageofentry);
              ageofentryF=new JTextField(10);
              ageofentryF.setBounds(680,490,80,20);
              add(ageofentryF);
              JLabel dateofpresappointment=new JLabel("Date Pres. of Appointment:");
              dateofpresappointment.setBounds(10,510,200,20);
              add(dateofpresappointment);
              dateofpresappointmentF=new JTextField(10);
              dateofpresappointmentF.setBounds(170,510,80,20);
              add(dateofpresappointmentF);
              JLabel dateofconfirmation=new JLabel("Date of Confirmation:");
              dateofconfirmation.setBounds(260,510,200,20);
              add(dateofconfirmation);
              dateofconfirmationF=new JTextField(10);
              dateofconfirmationF.setBounds(400,510,80,20);
              add(dateofconfirmationF);
              JLabel dateoflastpromotion=new JLabel("Date of Last Promotion:");
              dateoflastpromotion.setBounds(530,510,200,20);
              add(dateoflastpromotion);
              dateoflastpromotionF=new JTextField(20);
              dateoflastpromotionF.setBounds(680,510,80,20);
              add(dateoflastpromotionF);
              JLabel presentcommand=new JLabel("Present Command/Dept:");
              presentcommand.setBounds(10,530,200,20);
              add(presentcommand);
              presentcommandF=new JTextField(20);
              presentcommandF.setBounds(170,530,190,20);
              add(presentcommandF);
              JLabel previouscommand=new JLabel("Immediate Previous Command/Dept:");
              previouscommand.setBounds(400,530,250,20);
              add(previouscommand);
              previouscommandF=new JTextField(20);
              previouscommandF.setBounds(610,530,150,20);
              add(previouscommandF);
              JLabel dateoflastposting=new JLabel("Date of Last Posting:");
              dateoflastposting.setBounds(10,550,200,20);
              add(dateoflastposting);
              dateoflastpostingF=new JTextField(20);
              dateoflastpostingF.setBounds(170,550,100,20);
              add(dateoflastpostingF);
              JLabel postingtype=new JLabel("Posting Type:");
              postingtype.setBounds(300,550,100,20);
              add(postingtype);
              postingtypeF=new JTextField(20);
              postingtypeF.setBounds(400,550,100,20);
              add(postingtypeF);
              JLabel presentdesignation=new JLabel("Present Designation:");
              presentdesignation.setBounds(530,550,200,20);
              add(presentdesignation);
              presentdesignationF=new JTextField(20);
              presentdesignationF.setBounds(660,550,100,20);
              add(presentdesignationF);
              JLabel basictraining=new JLabel("Year of FRSC Basic Training:");
              basictraining.setBounds(10,570,570,20);
              add(basictraining);
              basictrainingF=new JTextField(20);
              basictrainingF.setBounds(180,570,120,20);
              add(basictrainingF);
              JLabel venue=new JLabel("Venue:");
              venue.setBounds(450,570,80,20);
              add(venue);
              venueF=new JTextField(20);
              venueF.setBounds(510,570,250,20);
              add(venueF);
              JLabel approvedcourse=new JLabel("Approved Course of Study (if on course):");
              approvedcourse.setBounds(50,590,300,20);
              add(approvedcourse);
              approvedcourseF=new JTextField(20);
              approvedcourseF.setBounds(290,590,350,20);
              add(approvedcourseF);
              JLabel institution=new JLabel("Institution:");
              institution.setBounds(50,610,80,20);
              add(institution);
              institutionF=new JTextField(20);
              institutionF.setBounds(120,610,150,20);
              add(institutionF);
              JLabel dateenrolled=new JLabel("Date Enrolled:");
              dateenrolled.setBounds(320,610,80,20);
              add(dateenrolled);
              dateenrolledF=new JTextField(20);
              dateenrolledF.setBounds(430,610,150,20);
              add(dateenrolledF);
              JLabel duration=new JLabel("duration of Study:");
              duration.setBounds(50,630,100,20);
              add(duration);
              durationF=new JTextField(20);
              durationF.setBounds(160,630,150,20);
              add(durationF);
              JLabel completiondate=new JLabel("Completion Date:");
              completiondate.setBounds(320,630,100,20);
              add(completiondate);
              completiondateF=new JTextField(20);
              completiondateF.setBounds(430,630,150,20);
              add(completiondateF);
              JLabel profession=new JLabel("PROFESSION:");
              profession.setFont(new Font("SanSerif",Font.BOLD,12));
              profession.setForeground(Color.darkGray);
              profession.setBounds(10,650,200,20);
              add(profession);
              JSeparator infos1=new JSeparator();
              infos1.setBounds(10,670,80,20);
              add(infos1);
              JLabel appointed=new JLabel("Appointed As:");
              appointed.setBounds(10,690,100,20);
              add(appointed);
              appointedF=new JTextField(20);
              appointedF.setBounds(120,690,150,20);
              add(appointedF);
              JLabel remuneration=new JLabel("REMUNERATION:");
              remuneration.setFont(new Font("SanSerif",Font.BOLD,12));
              remuneration.setForeground(Color.darkGray);
              remuneration.setBounds(10,710,100,20);
              add(remuneration);
              JSeparator ren=new JSeparator();
              ren.setBounds(10,710,100,20);
              add(ren);
              JLabel salary=new JLabel("Salary Happss:");
              salary.setBounds(10,730,100,20);
              add(salary);
              salaryF=new JTextField(20);
              salaryF.setBounds(110,730,50,20);
              add(salaryF);
              JLabel steps=new JLabel("Steps:");
              steps.setBounds(170,730,50,20);
              add(steps);
              stepsF=new JTextField(20);
              stepsF.setBounds(220,730,50,20);
              add(stepsF);
              JLabel basicsalary=new JLabel("Basic Salary:");
              basicsalary.setBounds(270,730,100,20);
              add(basicsalary);
              basicsalaryF=new JTextField(20);
              basicsalaryF.setBounds(370,730,50,20);
              add(basicsalaryF);
         public static void main(String k[])
              Parent p=new Parent();
         //Container c=f.getContentPane();
              JFrame f=new JFrame();
              Container c=f.getContentPane();
              f.setSize(700,700);
              c.add(p);
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              f.setVisible(true);
              //f.setTitle("")
    }

    i did it my self and it didn't display components and
    gave me a complain of java.io i used.please, someone
    help me.thanks in advance.That didnt make any sense. If youre getting an error, post the complete error message, along with the relevant code.

  • How to run Oracle applications from Oracle Test Manager(OTM)

    Hi All,
    I have done a recording in Oracle Applications and I have sucessfully imported into OTM.
    Whenever I run that script from OTM, it is showing some error called JIT Debugger error.
    After that it is going to next screen, but after that , it is skipping the rest of the steps.
    It is generating Reports as Skipped.
    Please help me out.
    Thanks in Advance,
    Nishanth Soundararajan.

    Hi Alex,
    These are the lines which got populated when I run those commands,
    C:\Documents and Settings\310700>C:\OracleATS\agentmanager\bin\AgentManagerServi
    ce.exe -c C:\OracleATS\agentmanager\bin\AgentManagerService.conf
    wrapper | --> Wrapper Started as Console
    wrapperp | port 1787 already in use, using port 1788 instead.
    wrapper | Launching a JVM...
    jvm 1 | Wrapper (Version 3.0.3)
    jvm 1 |
    jvm 1 | log4j:ERROR setFile(null,false) call failed.
    jvm 1 | java.io.FileNotFoundException: ..\..\logs\agentmanager.log (Access is
    denied)
    jvm 1 | at java.io.FileOutputStream.open(Native Method)
    jvm 1 | at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
    jvm 1 | at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
    jvm 1 | at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
    jvm 1 | at org.apache.log4j.FileAppender.activateOptions(FileAppender.ja
    va:164)
    jvm 1 | at org.apache.log4j.config.PropertySetter.activate(PropertySette
    r.java:257)
    jvm 1 | at org.apache.log4j.config.PropertySetter.setProperties(Property
    Setter.java:133)
    jvm 1 | at org.apache.log4j.config.PropertySetter.setProperties(Property
    Setter.java:97)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyC
    onfigurator.java:689)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyC
    onfigurator.java:647)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.configureRootCategory(P
    ropertyConfigurator.java:544)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyCon
    figurator.java:440)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyCon
    figurator.java:334)
    jvm 1 | at org.apache.log4j.PropertyWatchdog.doOnChange(PropertyConfigur
    ator.java:717)
    jvm 1 | at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileW
    atchdog.java:89)
    jvm 1 | at org.apache.log4j.helpers.FileWatchdog.<init>(FileWatchdog.jav
    a:58)
    jvm 1 | at org.apache.log4j.PropertyWatchdog.<init>(PropertyConfigurator
    .java:709)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.configureAndWatch(Prope
    rtyConfigurator.java:400)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.configureAndWatch(Prope
    rtyConfigurator.java:382)
    jvm 1 | at oracle.oats.empstart.EmpStartMain.main(EmpStartMain.java:369)
    jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
    sorImpl.java:39)
    jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
    hodAccessorImpl.java:25)
    jvm 1 | at java.lang.reflect.Method.invoke(Method.java:597)
    jvm 1 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimple
    App.java:105)
    jvm 1 | at java.lang.Thread.run(Thread.java:619)
    jvm 1 | log4j:ERROR setFile(null,true) call failed.
    jvm 1 | java.io.FileNotFoundException: ..\..\logs\agentmanager_auth.log (Acce
    ss is denied)
    jvm 1 | at java.io.FileOutputStream.openAppend(Native Method)
    jvm 1 | at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
    jvm 1 | at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
    jvm 1 | at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
    jvm 1 | at org.apache.log4j.FileAppender.activateOptions(FileAppender.ja
    va:164)
    jvm 1 | at org.apache.log4j.config.PropertySetter.activate(PropertySette
    r.java:257)
    jvm 1 | at org.apache.log4j.config.PropertySetter.setProperties(Property
    Setter.java:133)
    jvm 1 | at org.apache.log4j.config.PropertySetter.setProperties(Property
    Setter.java:97)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyC
    onfigurator.java:689)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyC
    onfigurator.java:647)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(P
    ropertyConfigurator.java:568)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyCon
    figurator.java:442)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyCon
    figurator.java:334)
    jvm 1 | at org.apache.log4j.PropertyWatchdog.doOnChange(PropertyConfigur
    ator.java:717)
    jvm 1 | at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileW
    atchdog.java:89)
    jvm 1 | at org.apache.log4j.helpers.FileWatchdog.<init>(FileWatchdog.jav
    a:58)
    jvm 1 | at org.apache.log4j.PropertyWatchdog.<init>(PropertyConfigurator
    .java:709)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.configureAndWatch(Prope
    rtyConfigurator.java:400)
    jvm 1 | at org.apache.log4j.PropertyConfigurator.configureAndWatch(Prope
    rtyConfigurator.java:382)
    jvm 1 | at oracle.oats.empstart.EmpStartMain.main(EmpStartMain.java:369)
    jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
    sorImpl.java:39)
    jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
    hodAccessorImpl.java:25)
    jvm 1 | at java.lang.reflect.Method.invoke(Method.java:597)
    jvm 1 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimple
    App.java:105)
    jvm 1 | at java.lang.Thread.run(Thread.java:619)
    Please help me out.
    Thanks in Advance,
    Nishanth Soundararajan.

  • Error running 9i reports from forms.

    Hi folks,
    i am having problems running 9i reports from a form.
    i have installed Oracle 9iDS on a Win XP machine with 256 MB RAM and a Pentium 1.4Ghz processor.
    i also have a local Oracle 9i database. i have created several reports that i am trying to run from some forms but all efforts to date have failed.
    below is some sample code.
    declare
    v_rid report_object;
    v_rjob varchar2(100);
    v_rptstatus varchar2(100);
    v_jobid varchar2(100);
    BEGIN
    /*get handle to report object itself*/
    v_rid := find_report_object('pbranchlist');
    set_report_object_property(v_rid,REPORT_EXECUTION_MODE,BATCH);
    set_report_object_property(v_rid,REPORT_DESFORMAT,'htmlcss');
    set_report_object_property(v_rid,REPORT_DESTYPE,'CACHE');
    set_report_object_property(v_rid,REPORT_SERVER,'repsrv');
    set_report_object_property(v_rid,REPORT_COMM_MODE,synchronous);
    v_rjob := run_report_object(v_rid);
    v_rptstatus := report_object_status(v_rjob);
    while v_rptstatus in ('RUNNING','OPENING_REPORT','ENQUEUED') loop
         v_rptstatus := report_object_status(v_rjob);
         message(v_rptstatus);
    end loop;
    if v_rptstatus = 'FINISHED' then
         /*display report in browser*/
    --      web.show_document('http://steve:8888/reports/rwservlet/getjobid'||
    --      substr(v_rptsvrjob,instr(v_rptsvrjob,'_',-1)+1)||'?'||'server=repsrv','_blank');
    web.show_document('/reports/rwservlet/getjobid'||substr(v_rjob,instr(v_rjob,'_',-1)+1)||'?'||'server=repsrv','_blank');
    else
         message('error running Report');
    end if;
    end;
    pbranchlist is defined in the form,
    repsrv is a report server i installed and explicitly started.
    on clicking the button to run the above code, i get a message on the browser status bar as follows
    opening http://steve:8888/reports/rwservlet/getjobid11?server=repsrv...
    that's it. it stays like that forever and a progress bar showing the status of the operation gets to the halfway mark and stays there for up to 15 minutes.
    I eventually halted the operation by clicking the stop button of the browser. The form then becomes totally non-responsive with the mouse indicator changing to the hour-glass shape and a small vertical bar moving rapidly back and forth at the bottom of the form window.
    My only recourse then is to explicitly close the browser window.
    I have already configured Reports to run in non single sign-on mode by setting SINGLESIGNON=NO in the rwservlet.properties file.
    Is there anything i have not done properly?
    Thanks in advance.

    Steve,
    can you check the Reports cache directory if the Reports file got created? I would assume yes, but better check.
    Frank

Maybe you are looking for

  • Installing Snow Leopard on MacBook Pro

    I have a question about the install. I put in the disc and choose to install Snow Leopard. It started the install, did a reboot and came back and said 45 mins remaining... then when it past that amount of time, it started to go into negative time. Ri

  • 0PM_OM_OPA_2  needs too much time

    hi, experts, I started a DELTA info-package to 0PM_OM_OPA_2 and the program in r/3 obviosly needs too much time. So in BW I get an error message and the process is interrupted. When I check the extractor via RSA3 every thing is ok, besides the long t

  • "Starting Mac OS X..."

    I just updated to 10.4.3. Now I can't get past the "Starting Mac OS..." w/ blue progress bar screen. My CPU starts up just fine (charm). White screen comes w/ a apple logo then "Starting Mac OS..." w/ blue progress bar screen stays up FOREVER and won

  • GOOP queues and other stored references

     need to ask this because Im not at the target machine to try it myself until Monday. Re Endevo by ref Goop Wizard 3.0.5 I am using queues in process objects. WHen I create the object I create the queue and store the queue reference in the attributes

  • Java Heap not clearing

    All, We have weblogic running on a sun ultra 450. The general design of the system is we have jsp pages that have session variables that are instances of java classes that we use to hold our business logic. My current issue is that as the system is s