URGENT : java exception

hello
I have a quiz system that has a server, a player and a friend client. I have tried running them( by directly running their main classes) it works fine.
However when i load a player and a friend client from a main interface by clicling on their respective jButton, the respective interfaces are loaded but i get the following error:
Exception in thread "Thread-3" java.lang.NullPointerException
at playerQuiz.src.QuizClient.run(QuizClient.java:318)
at java.lang.Thread.run(Thread.java:595)
But as i have already mentioned the program works perfectly when not loaded from a button.
can someone please help.
Edited by: ojm22 on Jun 8, 2008 2:21 AM

The class QuizClient :
package playerQuiz.src;
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
import java.net.*;
import java.io.*;
import java.util.*;
public class QuizClient extends JFrame implements ActionListener, Runnable {
    String moneySum[] = {"5", "10", "20", "30", "40", "45", "50", "55",
                         "60", "70", "75", "80",
                         "85", "90", "95", "100 "};
    static PrintStream out;         // for sending to server.
    static BufferedReader in;       // for getting data from server.
    // socket for connection with the server:
    static Socket socket = null;
    // label to show status messages:
    JLabel lblStatus = new JLabel("Connected! Waiting for a friend...", JLabel.CENTER);
    // label to show questions:
    JLabel lblQuestion = new JLabel(" ", JLabel.CENTER);
    // label to just to show "wheels" label:
    JLabel lblWheels = new JLabel("  Wheels");
    // label to show how many friend wheels are left:
    JLabel lblFriend = new JLabel("  Friend:   ?");
    // label to show how many 50:50 wheels are left:
    JLabel lbl5050 = new JLabel("  50:50 :   ?");
    // label to show how many wheels of the public are left:
    JLabel lblThePublic = new JLabel("  Public:   ?");
    // answer boxes for possible answers:
    AnswerBox cbAnswers[] = new AnswerBox[4];
    // buttons:
    JButton btnFinal, btnFriend, btn5050, btnThePublic, btnRetire;
    // money boxes:
    PointBox cbMoney[] = new PointBox[15];
    // response chart for the public:
    Chart publicChart = new Chart();
    int selectedAnswer = -1; // last clicked answer.
    int moneyIndex = 0;    // money index, updated by server.
    // will be true when friend will also be connected:
    public boolean ALL_CONNECTED = false;
    // thread which cares about receiving data from server:
    Thread thServer = null;
    * Default Constructor.
    public QuizClient()
        super ("The Revision Quiz");
        // look & feel setup:
        try {
            UIManager.setLookAndFeel(
                UIManager.getSystemLookAndFeelClassName() );
        } catch (Exception e) {
            System.err.println("Couldn't use the system "
                             + "look and feel: " + e);
        // update look & feel for those components created in
        //     declaration (if required):
        lblStatus.updateUI();
        lblQuestion.updateUI();
        lblWheels.updateUI();
        lblFriend.updateUI();
        lbl5050.updateUI();
        lblThePublic.updateUI();
        // processing window events:
        WindowListener L= new WindowAdapter () {
            public void windowClosing(WindowEvent e) {
                closeApplication();
        addWindowListener(L);
        // prepare the layout:
        JPanel  pMain = new JPanel ();
        pMain.setLayout(new BorderLayout());
        JPanel pUpper = new JPanel();           // for labels.
        pUpper.setLayout(new GridLayout(2,1));
        JPanel  pCenter = new JPanel ();        // for answers.
        pCenter.setLayout(new BorderLayout());
        JPanel pAnswers = new JPanel();           // for answers & the public chart.
        pAnswers.setLayout(new GridLayout(2,2, 20,20));
        // for buttons:
        JPanel pButtons = new JPanel(new FlowLayout(FlowLayout.CENTER,10,10));
        JPanel pLeft = new JPanel(new GridLayout(15,1, 10,10));  // for wheels counters.
        JPanel pRight = new JPanel(new GridLayout(15,1, 1,1));   // for money boxes.
        pUpper.add(lblStatus);
        pUpper.add(lblQuestion);
        pLeft.add(lblWheels);
        pLeft.add(lblFriend);
        pLeft.add(lbl5050);
        pLeft.add(lblThePublic);
        // make & add check boxes for answers:
        cbAnswers[0] = new AnswerBox ("A:",pAnswers);   // first possible answer.
        pAnswers.add(cbAnswers[0]);
        cbAnswers[0].addActionListener(this);
        cbAnswers[1] = new AnswerBox ("B:",pAnswers);   // second possible answer.
        pAnswers.add(cbAnswers[1]);
        cbAnswers[1].addActionListener(this);
        cbAnswers[2] = new AnswerBox ("C:",pAnswers);   // third possible answer.
        pAnswers.add(cbAnswers[2]);
        cbAnswers[2].addActionListener(this);
        cbAnswers[3] = new AnswerBox ("D:",pAnswers);   // fourth possible answer.
        pAnswers.add(cbAnswers[3]);
        cbAnswers[3].addActionListener(this);
        // make & add buttons:
        btnFinal = new JButton("Final");        // for confirmation of answer.
        pButtons.add(btnFinal);
        btnFinal.addActionListener(this);
        btnFriend = new JButton("Friend");      // for friend request.
        pButtons.add(btnFriend);
        btnFriend.addActionListener(this);
        btn5050 = new JButton("50:50");         // for 50:50 request.
        pButtons.add(btn5050);
        btn5050.addActionListener(this);
        btnThePublic = new JButton("The Public");   // for request of the public.
        pButtons.add(btnThePublic);
        btnThePublic.addActionListener(this);
        btnRetire = new JButton("Retire");      // for request to retire.
        pButtons.add(btnRetire);
        btnRetire.addActionListener(this);
        enableButtons(false);     // disable all buttons.
        // make money boxes:
        for (int i=14; i>=0; i--) {
            cbMoney[i] = new PointBox (moneySum[i+1], pRight);
            pRight.add(cbMoney);
cbMoney[4].setStopStation(); // "1,000"
cbMoney[9].setStopStation(); // "32,000"
pCenter.add (pAnswers, BorderLayout.SOUTH);
// add response chart for the public:
publicChart.setVisible(false); // shown only when required.
pCenter.add (publicChart, BorderLayout.CENTER);
// Add sub layouts to main layout:
pMain.add(pUpper, BorderLayout.NORTH);
pMain.add(pButtons, BorderLayout.SOUTH);
pMain.add(pCenter, BorderLayout.CENTER);
pMain.add(pLeft, BorderLayout.WEST);
pMain.add(pRight, BorderLayout.EAST);
// -------- set colors and fonts:
pButtons.setBackground(Color.lightGray );
pAnswers.setBackground(Color.lightGray );
pCenter.setBackground(Color.lightGray );
pUpper.setBackground(Color.lightGray );
pRight.setBackground(Color.lightGray) ;
pLeft.setBackground(Color.lightGray);
lblStatus.setForeground(Color.yellow);
lblQuestion.setForeground(Color.black);
lblWheels.setForeground(Color.green);
lblFriend.setForeground(Color.white);
lbl5050.setForeground(Color.white);
lblThePublic.setForeground(Color.white);
Font f1 = new Font("Arial", Font.BOLD, 12);
Font f2 = new Font("Arial", Font.BOLD, 20);
lblStatus.setFont(f1);
lblQuestion.setFont(f2);
lblWheels.setFont(f1);
lblFriend.setFont(f1);
lbl5050.setFont(f1);
lblThePublic.setFont(f1);
// show the window:
setContentPane (pMain);
setSize(590,450);
setVisible(true);
// start the thread that cares about receiving data from server:
thServer = new Thread (this);
thServer.start();
* Main function, from where QuizClient starts.
public static void main(String args[]) {
     String serverAddress = "172.22.45.120";
     int serverPort = 4450;
     try {
               socket = new Socket(serverAddress, serverPort);
          } catch (UnknownHostException e1) {
               // TODO Auto-generated catch block
               e1.printStackTrace();
          } catch (IOException e1) {
               // TODO Auto-generated catch block
               e1.printStackTrace();
System.out.println(socket);
// open in and out streams for talking with the server:
try {
in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
out = new PrintStream(socket.getOutputStream());
catch (IOException e) {
System.err.println("Open streams -> " + e);
System.exit(1);
// print the address of player - for verification:
InetAddress localHost = null;
try {
localHost = InetAddress.getLocalHost();
} catch (UnknownHostException e) {
System.out.println("Unknown host - probably localhost with no IP!");
// no exit, since can work on "localhost" without internet.
System.out.println("Player's local address: " + localHost);
// create QuizClient and show its window:
new QuizClient();
private void pause(int time) {
try {
Thread.sleep(time);
catch (InterruptedException e) {
System.err.println(e.getMessage());
* The run method of that is used by a thread.
public void run() {
Thread thisThread = Thread.currentThread();
// thread which cares about receiving data from server:
while (thServer == thisThread) {
String serverInput;
try {
if ((serverInput = in.readLine()) != null)
gotMessageFromServer(serverInput); // trigger "event".
catch (IOException ioe) {
JOptionPane.showMessageDialog(this,
ioe + "\nNot regular game termination!",
"Cannot read from server!",
JOptionPane.ERROR_MESSAGE);
closeApplication(); // force to close.
} // end of run().
public void actionPerformed(ActionEvent e){
Object src=e.getSource();
if (src == btnFinal) {            // confirmation of answer.
if (selectedAnswer != -1) {
enableButtons(false); // disable all buttons.
lblStatus.setText("Waiting for server's response...");
sendToServer("FINAL:" + selectedAnswer);
else {
JOptionPane.showMessageDialog(this,
"Please select an answer!",
"Not selected!", JOptionPane.ERROR_MESSAGE);
else if (src == btnFriend) {     // friend request.
enableButtons(false); // disable all buttons.
lblStatus.setText("Waiting for friend's response...");
sendToServer("FRIEND");
else if (src == btn5050) {        // 50:50 request.
enableButtons(false); // disable all buttons.
lblStatus.setText("Waiting for server's response...");
sendToServer("50:50");
else if (src == btnThePublic) {   // request of the public.
enableButtons(false); // disable all buttons.
publicChart.setChart(0, 0, 0, 0); // reset the chart from any data.
publicChart.setVisible(true); // show the chart.
lblStatus.setText("Waiting for server's response...");
sendToServer("THE_PUBLIC");
else if (src == btnRetire) {     // request to retire.
enableButtons(false); // disable all buttons.
lblStatus.setText("Waiting for server's response...");
sendToServer("RETIRE");
else{
// clicks on check-boxes:
for (int i=0; i<4; i++)
if (cbAnswers[i] == src) {  // click on one of the answer boxes.
selectedAnswer = i+1; // +1 because first is 1.
// deselect any other selected check-boxes
// except the last one:
for (int k=0; k<4; k++) {
if (k != i) // not equal to selected.
cbAnswers[k].setSelected(false);
else
cbAnswers[k].setSelected(true);
return; // no need to continue.
} // end of actionPerformed().
private void setMoney(String sm) {
int k;
try {
k = Integer.parseInt(sm);
catch(NumberFormatException e) {
System.err.println("setMoney()--> " + e);
return;
// validation (should be between 0 and 15):
if ((k > 15) || (k < 0)) {
System.err.println("setMoney() out of bounds --> " + sm);
return;
moneyIndex = k; // store in global variable.
updateEarnedMoney();
private void updateEarnedMoney() {
// select earned stations:
for (int i=0; i<moneyIndex; i++)
cbMoney[i].setSelected(true);
// clear all the others:
for (int i=moneyIndex; i<15; i++)
cbMoney[i].setSelected(false);
private void gotMessageFromServer(String msg) {
System.out.println("SERVER: [" + msg + "]");
if (msg.equals("ALL_CONNECTED")) {   // game started.
ALL_CONNECTED = true;
sendToServer("RESTART"); // reset everything.
sendToServer("QUESTION"); // ask for first question.
else if (msg.startsWith("Q:")) {    // question.
prepareForNextQuestion();
lblQuestion.setText(extractData(msg));
else if (msg.startsWith("A1:")) {       // first possible answer.
cbAnswers[0].setText(extractData(msg));
else if (msg.startsWith("A2:")) {       // second possible answer.
cbAnswers[1].setText(extractData(msg));
else if (msg.startsWith("A3:")) {       // third possible answer.
cbAnswers[2].setText(extractData(msg));
else if (msg.startsWith("A4:")) {       // fourth possible answer.
cbAnswers[3].setText(extractData(msg));
// got last possible answer, so enable buttons:
enableButtons(true);
lblStatus.setText(" "); // clear the status.
else if (msg.startsWith("MONEY:")) {    // earned money index.
setMoney(extractData(msg));
else if (msg.startsWith("FRIEND:")) {  // how many friend tips left.
lblFriend.setText (" Friend: " + extractData(msg));
else if (msg.startsWith("50_50:")) {  // how many 50:50 tips left.
lbl5050.setText (" 50:50 : " + extractData(msg));
else if (msg.startsWith("THE_PUBLIC:")) {  // how many tips of the public left.
lblThePublic.setText (" Public: " + extractData(msg));
else if (msg.equals("NOFRIEND!")) {     // error - no more friend tips!
lblStatus.setText(" "); // clear the status.
JOptionPane.showMessageDialog(this,
"Server says you have no more friend tips, sorry.",
"No more friend tips", JOptionPane.ERROR_MESSAGE);
enableButtons(true);
else if (msg.equals("NO50:50!")) {      // error - no more 50:50 tips!
lblStatus.setText(" "); // clear the status.
JOptionPane.showMessageDialog(this,
"Server says you have no more 50:50 tips, sorry.",
"No more 50:50 tips", JOptionPane.ERROR_MESSAGE);
enableButtons(true);
else if (msg.equals("50:50TWICE!")) {   // error - 50:50 done twice already!
lblStatus.setText(" "); // clear the status.
JOptionPane.showMessageDialog(this,
"Server says you have done 50:50 twice already for this question!",
"Cannot do 50:50 three times for one question", JOptionPane.ERROR_MESSAGE);
enableButtons(true);
else if (msg.equals("NO_PUBLIC!")) {    // error - no more tips of the public!
lblStatus.setText(" "); // clear the status.
JOptionPane.showMessageDialog(this,
"Server says you have no more tips of the public, sorry.",
"No more tips of the public!", JOptionPane.ERROR_MESSAGE);
enableButtons(true);
publicChart.setVisible(false); // hide the chart (it's empty).
else if (msg.startsWith("GREEN:")) {   // set right answer be green.
try { // generally, server sends the right data, check anyway
int k = Integer.parseInt(extractData(msg));
cbAnswers[k-1].setCorrect();
} catch (Exception e) {
System.out.println("GREEN: -> " + e);
else if (msg.equals("RIGHT!")) {      // last question was answered correctly!
lblStatus.setText(" "); // clear the status.
JOptionPane.showMessageDialog(this,
"This is the right answer!",
"Congratulations!", JOptionPane.INFORMATION_MESSAGE);
lblStatus.setText("Waiting for server's response...");
sendToServer("QUESTION"); // ask for next question.
else if (msg.equals("MILLION!")) {    // correct, and you won a million!
lblStatus.setText(" "); // clear the status.
JOptionPane.showMessageDialog(this,
"You passed with Distinction!",
"Congratulations! - Game over.", JOptionPane.INFORMATION_MESSAGE);
askToRestart();
else if (msg.startsWith("WRONG!:")) { // last question was answered WRONG!
lblStatus.setText(" "); // clear the status.
JOptionPane.showMessageDialog(this,
"Your answer is wrong!\n Correct answer is " +
indexToLetter( extractData(msg) ) +
"\nYour current marks is \t" + moneySum[moneyIndex],
"Game over!", JOptionPane.ERROR_MESSAGE);
askToRestart();
else if (msg.startsWith("RETIRED:")) { // retire request confirmed.
lblStatus.setText(" "); // clear the status.
JOptionPane.showMessageDialog(this,
"Your current marks is" + moneySum[moneyIndex] + ",\n" +
"and the right answer for the last question is " +
indexToLetter ( extractData(msg) ),
"Retired!", JOptionPane.INFORMATION_MESSAGE);
askToRestart();
else if (msg.startsWith("FRIEND_ANSWER:")) {    // getting friend answer.
lblStatus.setText("Your friend thinks answer is: " +
indexToLetter( extractData(msg) ) );
// got answer from friend, so enable the buttons:
enableButtons(true);
else if (msg.equals("FRIEND_DONTKNOW")) {       // friend doesn't know!
lblStatus.setText("Your friend doesn't know the answer...");
// friend says he doesn't know, so enable the buttons:
enableButtons(true);
else if (msg.equals("FRIEND_TIMEUP")) {         // friend's time is up!
lblStatus.setText("Your friend failed to give answer in 30 seconds...");
// time is up, so enable the buttons:
enableButtons(true);
else if (msg.startsWith("TIMER:")) {            // timer state for friend.
lblStatus.setText("Your friend has: " + extractData(msg) + " seconds.");
else if (msg.startsWith("Message from Server:")) {
lblStatus.setText(msg);
else if (msg.equals("FRIEND_DISCONECTED")) {    // error - friend disconected.
// though the game can be continued without the friend,
// we decided to end the game to avoid processing the state
// when friend is required and it's not there....
lblStatus.setText(" "); // clear the status.
JOptionPane.showMessageDialog(this,
"Your Friend has disconnected!\n" +
"Server terminated the game.",
"Friend disconnected!",
JOptionPane.ERROR_MESSAGE);
closeApplication(); // force to close.
else if (msg.equals("WATING_PREV_FRIEND")) {    // error - server not ready!
lblStatus.setText(" "); // clear the status.
JOptionPane.showMessageDialog(this,
"Server still waits for a connection of Friend" +
" for previous game that has not connected yet!\n" +
"Try again later...",
"Server not ready!",
JOptionPane.ERROR_MESSAGE);
closeApplication(); // force to close.
else if (msg.equals("TERMINATED")) {        // server terminates our game!
lblStatus.setText(" "); // clear the status.
JOptionPane.showMessageDialog(this,
"Server terminated your game for no obvious reason!",
"Game terminated!",
JOptionPane.ERROR_MESSAGE);
closeApplication(); // force to close.
else if (msg.startsWith("CANCEL1:")) {   // 50:50 first canceled answer
try {
String index = extractData(msg);
cbAnswers[Integer.parseInt(index)-1].setText(" "); // clear.
} catch (Exception e) {
System.err.println("CANCEL1: -> " + e);
else if (msg.startsWith("CANCEL2:")) {   // 50:50 another canceled answer
try {
String index = extractData(msg);
cbAnswers[Integer.parseInt(index)-1].setText(" "); // clear.
} catch (Exception e) {
System.err.println("CANCEL2: -> " + e);
// clear the status & enable the buttons:
lblStatus.setText(" ");
enableButtons(true);
else if (msg.startsWith("BAR1:")) {  // help of the public (% for "A").
publicChart.setChart(extractData(msg), 1);
else if (msg.startsWith("BAR2:")) {  // help of the public (% for "B").
publicChart.setChart(extractData(msg), 2);
else if (msg.startsWith("BAR3:")) {  // help of the public (% for "C").
publicChart.setChart(extractData(msg), 3);
else if (msg.startsWith("BAR4:")) {  // help of the public (% for "D").
publicChart.setChart(extractData(msg), 4);
// assumed that "BAR4:?" is received as the last bar, so
// clear the status & enable the buttons:
lblStatus.setText(" ");
enableButtons(true);
public void sendToServer(String msg) {
if (thServer == null) // shuting down?
return;
out.println(msg);
// Flush the stream and check its error state:
if (out.checkError())
System.err.println("Cannot send -> " + msg);
else
System.out.println("SEND: " + msg);
* Asks user if he/she want's to restart the game.
* If the answer is "yes", starts new game.
private void askToRestart() {
int result;
result = JOptionPane.showConfirmDialog(this,
"Would you like to play again?",
"Play again?",
JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE);
if (result == 0) {  // yes, restart.
lblStatus.setText("Waiting for server's response...");
sendToServer("RESTART"); // reset everything.
sendToServer("QUESTION"); // ask for a question.
else {              // no, close connection.
closeApplication(); // close connection, and exit.
* Closes this Game Client station.
private void closeApplication() {
// inform the server:
sendToServer("CLOSE");
thServer = null; // stop the thread.
try {
// close server streams:
out.close(); // close stream that sends data to server.
in.close(); // close stream that gets data from server.
// close socket connected to server:
if (socket != null)
socket.close();
} catch (IOException e) {}
// close everything:
System.exit(0);
* Enables (or disables) all buttons.
* @param b when true enables, otherwise disables.
private void enableButtons (boolean b) {
btnFinal.setEnabled(b);
btnFriend.setEnabled(b);
btn5050.setEnabled(b);
btnThePublic.setEnabled(b);
btnRetire.setEnabled(b);
* Prepares the GUI for the next question,
* hides the chart, resets question field, and possible
* answers.
private void prepareForNextQuestion() {
publicChart.setVisible(false);
lblQuestion.setText(" ");
for (int i=0; i<cbAnswers.length; i++) {
cbAnswers[i].setText("");
cbAnswers[i].setSelected(false); // reset selected check box.
selectedAnswer = -1;
private String indexToLetter(String index) {
String sANSWERS[] = {"\"A\"", "\"B\"", "\"C\"", "\"D\""};
try {
return sANSWERS[Integer.parseInt(index)-1];
} catch (Exception e) {
System.err.println("indexToLetter -> " + e);
return "?";
private static String extractData(String msg) {
try {
int i = msg.indexOf(':'); // get index of first ':'.
return msg.substring(i+1); // return second token.
catch(Exception e) {
return ""; // in case of error return empty string.
} // end of class.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Java call terminated by uncaught Java exception: java.lang.NullPointerExcep

    i have written this program of adding file items using wwsbr_api.add_item but,
    1 declare
    2 l_new_item_master_id number;
    3 l_caid number := 53;
    4 l_folder_id number := 50279;
    5 begin
    6 select c.id, f.id
    7 into l_caid, l_folder_id
    8 from portal.wwsbr_all_content_areas c,
    9 portal.wwsbr_all_folders f
    10 where c.id = f.caid and c.name = 'S_T_PAGE'
    11 and f.name = 'S_PAGE';
    12 --portal.wwctx_api_private.set_context('PORTAL');
    13 l_new_item_master_id := portal.wwsbr_api.add_item(
    14 p_caid => l_caid,
    15 p_folder_id => l_folder_id,
    16 p_display_name => 'simple file item',
    17 p_type_id => portal.wwsbr_api.ITEM_TYPE_FILE,
    18 p_type_caid => portal.wwsbr_api.SHARED_OBJECTS,
    19 p_region_id => 4571,
    20 p_file_filename => 'D:\ora\training\html\frame.html'
    21 );
    22 -- process cache invalidation messages
    23 portal. wwpro_api_invalidation.execute_cache_invalidation;
    24* end;
    SQL> /
    this program is showing the following exception. kindly give the solution urgently..........
    declare
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.NullPointerException
    ORA-06512: at "PORTAL.WWSBR_API", line 37
    ORA-06512: at "PORTAL.WWSBR_API", line 610
    ORA-06512: at line 13

    can any one of u please give me the reply to the above error,
    urgently.............

  • Java Exception in Main/Menu/Reporting Tools/XML Publisher/Report Definition

    Hi ,
    One know this error :
    Java Exception: java.lang.NoSuchMethodError: oracle.xml.parser.schema.XSDBuilder.build(Ljava/io/InputStream;Ljava/net/URL;)Loracle/xml/parser/schema/XMLSchema;: during call of com.peoplesoft.pt.xmlpublisher.PSXPXsdUtils.getLevel0ColNames. (2,763) PSXPRPTDEFN_WRK.FUNCLIB.FieldFormula Name:GetBurstFieldValues PCPC:3211 Statement:48
    Called from:PSXPRPTDEFN_WRK.FUNCLIB.FieldFormula Name:SetBurstFieldValues Statement:81
    Called from:PSXPRPTDEFN_WRK.FUNCLIB.FieldFormula Name:LoadReportDefn Statement:660
    Called from:PSXPRPTDEFN_WRK.FUNCLIB.FieldFormula Name:SelectReportDefn Statement:744
    Called from:PSXPRPTDEFN.GBL.PostBuild Statement:36 The noted Java error was thrown during a call of the given method.
    It's if i Add a New Value in the report definition (Peoplesoft 8.5 , CRM ) : No customization in this
    Thanks in advance..

    Judging by the error, it looks like the xsd can not be constructed.
    I would start of by checking if the target location is defined in the Intergration Broker.
    PeopleBooks > PeopleTools 8.52: PeopleSoft Integration Broker Administration > Configuring PeopleSoft Integration Broker for Handling Services > Using the Target Locations Page to Set Target Locations for Services
    http://docs.oracle.com/cd/E28394_01/pt852pbh1/eng/psbooks/tiba/book.htm?File=tiba/htm/tiba08.htm#H3007

  • "ORA-29532: Java call terminated by uncaught Java exception

    Dear Oracle:
    I am trying to establish an HTTPS connection from a Java stored
    procedure that is wrapped in a PL/SQL procedure and loaded into a
    Package. We are running on Oracle 8.1.7.
    My Java code compiles and runs fine when run stand-alone outside
    Oracle; I can establish the connection to a secure server and talk to
    the server. However when I load this Java class (using the loadjava
    utility) this class can no longer run and I get a the following
    exception:
    "ORA-29532: Java call terminated by uncaught Java exception:
    javax.net.ssl.SSLException: SSL handshake failed:
    X509CertChainIncompleteErr"
    I have tried loading the JSSE from Sun and I still get the same error.
    Searching in the Discussing Forums I found the following link (which
    describes a procedure that logs into the UPS secure server site and
    grabs some XML) http://osi.oracle.com/~mbpierma/SSL_Java_DB.html .
    This code works ok if we try to connect to UPS server. However this
    code doesn't work if we try to log in to a different server (such as
    ???). If I modify this code slightly and try to log to any other
    sever server I get the same error as the one above. Investigation
    lead us to understand that the certificate at the UPS web site is a
    self-signed certificate -- not one generated by a major 'recognized'
    authority such as Verisign or Thawte.
    Further research pointed me to the following URL
    http://www.znow.com/sales/oracle/network.816/a76932/appf_ora.htm#619367
    This URL has the documentation for JAVA SSL for 8.1.6 which I figure
    I could read and try to make it work in 8.1.7.
    I looked at your Secure Hello World example, however the code is
    missing the most critical parts of the whole example, it does not
    specify where the certificate or any of the security settings come
    from (see the attached JavaCertExample.txt file).
    So, my questions are the following:
    1) What should I do to avoid the error mentioned above?
    2) Do you have a sample piece of code that describes how to make a
    HTTPS connection using a Java stored procedure?
    3) Can I make the HTTPS connection using a URL class and not using
    sockets directly?
    4) Do I need to load the JSEE provided by Sun?
    5) Will the solution be different for Oracle 9i?
    // SecureHelloClient.java
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import javax.net.ssl.*;
    import javax.security.cert.X509Certificate;
    import oracle.security.ssl.OracleSSLCredential;
    import oracle.security.ssl.OracleSSLSocketFactory;
    import oracle.security.ssl.OracleSSLProtocolVersion;
    import oracle.security.ssl.OracleSSLSession;
    public class SecureHelloClient
    public static void main(String argv[])
    String hostName = "localhost";
    if(argv.length != 0)
    String hostName = argv[0];
    // Set the SSLSocketFactoryImpl class as follows:
    java.util.Properties prop = System.getProperties();
    prop.put("SSLSocketFactoryImplClass",
    "oracle.security.ssl.OracleSSLSocketFactoryImpl");
    try
    // Get the default socket factory
    OracleSSLSocketFactory sSocFactory
    = (OracleSSLSocketFactory)SSLSocketFactory.getDefault();
    sSocFactory.setSSLProtocolVersion(OracleSSLProtocolVersion.SSL_Version_3_0);
    OracleSSLCredential sslCredObj = new OracleSSLCredential();
    // Where did these values come from? caCert, userCert, trustedCert,
    // Set the certificate chain and private key if the
    // server requires client authentication
    sslCredObj.addCertChain(caCert)
    sslCredObj.addCertchain(userCert)
    sslCredObj.setPrivateKey(userPvtKey, userPassword)
    // Populate credential object
    sslCredObj.addTrustedCert(trustedCert);
    sSocFactory.setSSLCredentials(sslCredObj);
    // Create the socket using factory
    SSLSocket jsslSoc =
    (SSLSocket)sSocFactory.createSocket(hostName, 8443);
    String [] ciphers = jsslSoc.getSupportedCipherSuites() ;
    // Select the ciphers you want and put them.
    // Here we will put all availabel ciphers
    jsslSoc.setEnabledCipherSuites(ciphers);
    // We are creating socket in client mode
    jsslSoc.setUseClientMode(true);
    // Do SSL handshake
    jsslSoc.startHandshake();
    // Print negotiated cipher
    System.out.println("Negotiated Cipher Suite: "
    +jsslSoc.getSession().getCipherSuite());
    System.out.println("");
    X509Certificate[] peerCerts
    = ((javax.net.ssl.SSLSocket)jsslSoc).getSession().getPeerCertificateChain();
    if (peerCerts != null)
    System.out.println("Printing server information:");
    for(int i =0; i ? peerCerts.length; i++)
    System.out.println("Peer Certificate ["+i+"] Information:");
    System.out.println("- Subject: " + peerCerts.getSubjectDN().getName());
    System.out.println("- Issuer: " + peerCerts[i].getIssuerDN().getName());
    System.out.println("- Version: " + peerCerts[i].getVersion());
    System.out.println("- Start Time: " + peerCerts[i].getNotBefore().toString());
    System.out.println("- End Time: " + peerCerts[i].getNotAfter().toString());
    System.out.println("- Signature Algorithm: " + peerCerts[i].getSigAlgName());
    System.out.println("- Serial Number: " + peerCerts[i].getSerialNumber());
    else
    System.out.println("Failed to get peer certificates");
    // Now do data exchange with client
    OutputStream out = jsslSoc.getOutputStream();
    InputStream in = jsslSoc.getInputStream();
    String inputLine, outputLine;
    byte [] msg = new byte[1024];
    outputLine = "HELLO";
    out.write(outputLine.getBytes());
    int readLen = in.read(msg, 0, msg.length);
    if(readLen > 0)
    inputLine = new String(msg, 0, readLen);
    System.out.println("");
    System.out.println("Server Message:");
    System.out.println(inputLine );
    else
    System.out.println("Can't read data from client");
    // Close all sockets and streams
    out.close();
    in.close();
    jsslSoc.close();
    catch(SSLException e)
    System.out.println("SSL exception caught:");
    e.printStackTrace();
    catch(IOException e)
    System.out.println("IO exception caught:");
    e.printStackTrace();
    catch(Exception e)
    System.out.println("Exception caught:");
    e.printStackTrace();

    Hi,
    I have the same problem.
    Is some ORACLE guru that can help us ?
    We need to communicate with some servlet
    via POST method of https (SSL3)
    and with using private certificate on the client site.
    We need furthermore allow using of some proxy.
    Client site is realized as set of stored procedures within ORACLE 8.1.7
    In this time I am able to communicate with server without SSL and certificate
    using package utl_tcp
    (but with this solution without certificate is our customer not satisfied -:))
    ORACLE help us please !
    Pavel Pospisil
    [email protected]

  • Uncaught Java Exception while persisting the null bean at e-biz suite login

    Dear Friends,
    Recently, there was a java upgrade in my system and after that when i login to E-Biz suite, i get the following Jinitiator error and many Jinitiator windows open up with this error.
    Uncaught Java Exception while persisting the null bean
    Java.io.NotSerializableException:java.lang.thread
        at.java.io.ObjectOutputStream.outputObject(Compiled Code)
        at.java.io.ObjectOutputStream.writeObject(Compiled Code)
        at.java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:369)
        at.java.io.ObjectOutputStream.outputObject(Compiled Code)
        at.java.io.ObjectOutputStream.writeObject(Compiled Code)
        at sun.beans.ole.OleBeanInterface.saveBean(OleBeanInterface.java.508)It is very difficult to deal with many jinitiator error windows opening up.
    Could any one tell the reason for this issue and its resolution as well?
    Regards,
    Sreekanth
    Edited by: Sreekanth Munagala on Jun 14, 2012 8:49 AM
    Edited by: Sreekanth Munagala on Jun 14, 2012 8:51 AM

    Please post the details of the application release, database version and OS.
    Recently, there was a java upgrade in my system What is this upgrade? From what version to what version?
    What is your client OS/Browser?
    What is the Jinitiator version?
    and after that when i login to E-Biz suite, i get the following Jinitiator error and many Jinitiator windows open up with this error.
    Uncaught Java Exception while persisting the null bean
    Java.io.NotSerializableException:java.lang.thread
    at.java.io.ObjectOutputStream.outputObject(Compiled Code)
    at.java.io.ObjectOutputStream.writeObject(Compiled Code)
    at.java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:369)
    at.java.io.ObjectOutputStream.outputObject(Compiled Code)
    at.java.io.ObjectOutputStream.writeObject(Compiled Code)
    at sun.beans.ole.OleBeanInterface.saveBean(OleBeanInterface.java.508)It is very difficult to deal with many jinitiator error windows opening up.
    Could any one tell the reason for this issue and its resolution as well?Is the issue with all clients and all browsers?
    Have you tried to clear the jcache and the browser history files?
    Thanks,
    Hussein

  • Is there a way to handle custom java exception in OSB?

    For example, i created a exception that extends RuntimeException.
    My exception has a new field called "code".
    I want to handle this exception in Oracle Service Bus process and retrieve this code to throws another exception with a XML structure that includes the code.
    Is there a way to do that ?
    <con:fault xmlns:con="http://www.bea.com/wli/sb/context">
         <con:errorCode>BEA-382515</con:errorCode>
         <con:reason>Callout to java method "public static org.apache.xmlbeans.XmlObject ...</con:reason>
         <con:java-exception xmlns:con="http://www.bea.com/wli/sb/context">
             <con:java-content ref="jcid:33a6c126:14006f3df18:-7fd9"/>
         </con:java-exception>
         <con:location xmlns:con="http://www.bea.com/wli/sb/context">
             <con:node>optmusPipeline</con:node>                    
             <con:pipeline>optmusPipeline_request</con:pipeline>
             <con:stage>processStage</con:stage>
             <con:path>request-pipeline</con:path>   
         </con:location>
    </con:fault>
    it is not enough to recover the information i needed.

    Hi Sandro,
    I've got the same situation. I agree that returning xml from function is not a best choice as you have to manually check if return status is an error or not. Processing exception in error handler is better and this is how I do it:
    I am doing a java callout to a function that can throw exception. Then I add ErrorHandler to stage containing this callout (all the exception are caught here).
    In the error handler I check if $fault/ctx:java-exception is not null. If not then I pass thrown exception to my utility function that converts it to xml similar to yours:
    import org.apache.xmlbeans.XmlException;
    import org.apache.xmlbeans.XmlObject;
    public static XmlObject exceptionToXML(Throwable exception)
      throws XmlException {
      String xmlString = exceptionToString(exception);
      return XmlObject.Factory.parse(xmlString);
    public static String exceptionToString(Throwable exception) {
      String cause = "";
      if (exception.getCause() != null) {
      cause = exceptionToString(exception.getCause());
      return String
      .format("<exception><name>%s</name><description>%s</description>%s</exception>",
      exception.getClass().getName(), exception.getMessage(),
      cause);
    Calling exceptionToXML with $fault/ctx:java-exception/ctx:java-content returns:
    <exception>
         <name>pl.app.MyException</name>
         <description>Exception message</description>
    </exception>
    Then you can check the exception class (IF action: $exception/name/text() = "pl.app.MyException") and handle it accordingly.
    Good luck,
    Krzysiek

  • Does wscompile generate "fault" tag in WSDL file from Java exception class?

    I'm trying to generate WSDL files from Java classes. I defined some of my own exception that inherits from "RemoteException", but wscompile doesn't generate the corresponding complex type and "fault" tag. Does anyone know if this is a bug or wscompile doesn't support from Java Exception to fault?
    Thanks

    It will if the exceptions do not inherit from RemoteException.

  • FRM-92100 Java Exception (jacob)

    I'm using Jacob to load specific parts of Office documents into an Oracle database. This works successfully in 99.9% of cases although some users experience intermittent problems which can't be pinned down to a particilar office document and appear to be totally random. The error message indicates that the exception occurs when trying to close the Word session down.
    The error message is as follows:
    FRM-92100: Your connection to the Server was interrupted.
    Details:
    Java Exception:
    com.jacob.com.ComFailException: A COM exception has been encountered:
    At invoke of: Quit
    Description: Not enough storage is available to complete this operation.
    I have seen several references to the 92100 catch all error code but none that tie in with this description.
    Could anyone point me in the right direction as to what's causing this error? My first assumption would be the RAM available on the users PC at time of transfer but can't pin this down.
    Many thanks.

    I think that fix for bug 5375851 has resolved the problem mentioned and hence this shall be of help.
    Thanks,
    Message was edited by:
    user482823

  • Oracle BI 11.1.1.7.1: Calling BI webservices from Plsql Procedure: ORA-29532: Java call terminated by uncaught Java exception: java.lang.NoClassDefFoundError

    Hi,
         I have a requirement of calling BI webservices from Plsql stored procedure. I generated all my wsdl java classes and loaded them into the database. However, when I tried to call one of my java class using stored procedure, it is giving me"ORA-29532: Java call terminated by uncaught Java exception: java.lang.NoClassDefFoundError".
    *Cause:    A Java exception or error was signaled and could not be
               resolved by the Java code.
    *Action:   Modify Java code, if this behavior is not intended.
    But all my dependency classes are present in database as java class objects and are valid. Can some one help me out of this?

    Stiphane,
    You can look in USER_ERRORS to see if there's anything more specific reported by the compiler. But, it could also be the case that everything's OK (oddly enough). I loaded the JavaMail API in an 8.1.6 database and also got bytecode verifier errors, but it ran fine. Here are the errors I got when loading Sun's activation.jar, which ended up not being a problem:
    ORA-29552: verification warning: at offset 12 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
    verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):12 by a throw at offset 18 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
    verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):18 by a throw at offset 30 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
    verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):30 by a throw
    Hope this helps,
    -Dan
    http://www.compuware.com/products/devpartner/db/oracle_debug.htm
    Debug PL/SQL and Java in the Oracle Database

  • Java Exception: java.lang.NoSuchMethodError -while accessing Job Code Table

    Recently we upgraded tools from 8.51.03 to 8.52.12
    when try to open data from below navigation.
    Set Up HRMS--> Foundation Tables--> Job Attributes---> Job Code Table
    then getting below error. Seriously doubt if a jar file is missing in PS_APP_HOME/class. Any clue?
    Java Exception: java.lang.NoSuchMethodError: PeopleSoft.PeopleCode.Func.CreateSQL(Ljava/lang/String;[Ljava/lang/Object;)LPeopleSoft/PeopleCode/SQL;: during call of com.peoplesoft.hr.hr.cache.MetaCatalog.getObjectCatalog. (2,763) HCMD_CORE.metadata.ObjectCatalog.OnExecute Name:getJavaObject PCPC:1099 Statement:19
    Called from:HCMD_CORE.metadata.ObjectCatalog.OnExecute Name:FindJavaObject Statement:177
    Called from:HCMD_CORE.metadata.ObjectCatalog.OnExecute Name:FindObject Statement:212
    Called from:WCS_SOURCE.Implementation.EmployeeInformationImpl.OnExecute Name:GetRecordField Statement:67
    Called from:WCS_SOURCE.Implementation.EmployeeInformationImpl.OnExecute Name:CreateCache Statement:26
    Called from:WCS_SOURCE.Impleme
    The noted Java error was thrown during a call of the given method.
    Error Codes
    Java Exception: java.lang.NoSuchMethodError: PeopleSoft.PeopleCode.Func.CreateSQL(Ljava/lang/String;[Ljava/lang/Object;)LPeopleSoft/PeopleCode/SQL;: during call of com.peoplesoft.hr.hr.cache.MetaCatalog.getObjectCatalog. (2,763)
    Problem Category/Subcategory                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Not sure about 8.52, but in 8.51, I found the PeopleSoft.PeopleCode.Func class in PS_HOME/appserv/classes/peoplecode.jar, and CLASSPATH gets set to PS_HOME/appserv/classes by psconfig.sh
    Not an answer, but it might give you some ideas on where to look.
    Regards,
    Bob

  • SMC on solaris 10 x86 - toolbox java exception

    Just installed (for the first time) solaris, to test it on a x86, had some difficulties with the NIC (realtek), but now seems ok.
    But I can't start sun managemnt console, keep getting the same error: can't open toolbox, and gives me a java exception.
    installed both jre 1.4.2 and jre 1.5.0.
    the exception is
    java.net.MalformedURLException: no protocol:
    any idea on the problem?
    Thank you in advance
    Stefano

    Thanks for your help.
    Yes, the browser starts, tells me to wait for the toolbox to load, and then stops.
    When i go to the message log there are always two error "toolbox not loaded" and the exception...
    I've just started with solaris, and I've no other machine to try to connect...
    I' ve tought of something about connection, even because of the problem with the card, but everithing else seems ok.
    How can I check for this?
    Thanks again.
    Stefano.

  • Error: ORA-29532: Java call terminated by uncaught Java exception:

    Anyone have this similar problem of
    ORA-29532: Java call terminated by uncaught Java exception:
    javax.xml.rpc.soap.SOAPFaultException: Caught exception while handling request:
    deserialization error: XML reader error: unexpected character content:
    "A"
    The service is running fine in a browser and returns the date. When I run it using the PL/SQL it has the error mentioned above.
    I am running the following:
    CREATE OR REPLACE FUNCTION GetDate_wb( p_dummy IN VARCHAR2 )
    RETURN DATE
    AS
    l_service sys.UTL_DBWS.service;
    l_call sys.UTL_DBWS.call;
    l_result ANYDATA;
    l_wsdl_url VARCHAR2(1024);
    l_service_name VARCHAR2(200);
    l_operation_name VARCHAR2(200);
    l_input_params sys.UTL_DBWS.anydata_list;
    l_port sys.UTL_DBWS.qname := 8988;
    BEGIN
    l_wsdl_url := 'http://org-lblakisa1:8988/BPEL_OD-LoginWS-context-root/getDate1SoapHttpPort?WSDL';
    l_service_name := 'getDate1';
    l_operation_name := 'getDate';
    l_service := sys.UTL_DBWS.create_service (
    wsdl_document_location => URIFACTORY.getURI(l_wsdl_url),
    service_name => l_service_name);
    l_call := sys.UTL_DBWS.create_call (
    service_handle => l_service,
    port_name => NULL,
    operation_name => l_operation_name);
    l_input_params(1) := ANYDATA.ConvertVarchar2(p_dummy);
    l_result := sys.UTL_DBWS.invoke (
    call_handle => l_call,
    input_params => l_input_params);
    sys.UTL_DBWS.release_call (call_handle => l_call);
    sys.UTL_DBWS.release_service (service_handle => l_service);
    RETURN ANYDATA.AccessDate(l_result);
    END;
    /

    Problem is resolved... We had a version issue in that 10.1.3 web service is not compatible. 10.1.2 worked.

  • Java Exception & error loading fmrweb.res

    I have installed Oracle9i Database and oracle 9i Forms on windows XP.
    When i try to run a form i get a java Exception
    MessageManager: key VERSION bundle oracle.forms.engine.RunformBundle exception java.lang.IllegalArgumentException: unknown format type at
    At the same time i get an error while opening the fmrweb.res file.
    I have seen some solutions to this problem, but I'm not sure i fully understand them. I hope somebody could help me.

    What is the error message, this looks like normal informational messages
    I have signed it sucessfully..Now i am getting the
    following in the java console
    Oracle JInitiator: Version 1.3.1.9
    Using JRE version 1.3.1.9 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and
    Settings\Aruns
    Proxy Configuration: Manual Configuration
    Proxy: proxy1.emirates.net.ae:8080
    Proxy Overrides: 172.16.*,<local>
    JAR cache enabled
    Location: C:\Documents and Settings\Aruns\Oracle
    racle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading
    http://hpc266:8888/forms90/java/f90all_jinit.jar from
    JAR cache
    Cached copy of
    http://hpc266:8888/forms90/java/webutil.jar is out of
    date
    Cached copy: Jul 4, 2005 8:50:04 AM
    Server copy: Jul 4, 2005 8:52:15 AM
    Downloading
    http://hpc266:8888/forms90/java/webutil.jar to JAR
    cache
    Cached copy of
    http://hpc266:8888/forms90/java/jacob.jar is out of
    date
    Cached copy: Jul 4, 2005 8:50:16 AM
    Server copy: Jul 4, 2005 8:51:59 AM
    Downloading http://hpc266:8888/forms90/java/jacob.jar
    to JAR cache
    connectMode=HTTP, native.
    Forms Applet version is : 90270
    Can anybody pls help me in this issue

  • LSOCP 200 Content Player Java Exception

    Dear Collegues,
    I am encountering an issue with the LSOCP 200.
    Our client's infrastructure as follows:
    SAP R/3 Enterprise 4.7 Ext 2.00
    LSO         200     0029     SAPK-200PTINLSO     LSO 200 (Learning Solution - Back End) I
    LSOFE     200     0027     SAPK-200PRINLSOFE     LSOFE 200 (Learning Solution - Front End
    SAP EP 6.0
    I have done all the required configuration in R/3 by pointing to the content server and pointing to the Content Player in the respective IMG Tasks.
    Now, when I log on as a learner and attempt to start a course, I receive a Java Exception:
    *Errors occurred
    Incomplete or incorrect data:
    com.sap.hcm.ls.lms.servlets.exceptions.InvalidArgumentException course update failed  :
         at com.sap.hcm.ls.lms.servlets.control.CourseUpdater.update(CourseUpdater.java:78)
         at com.sap.hcm.ls.lms.servlets.control.EventDispatcher.updateModels(EventDispatcher.java:116)
         at com.sap.hcm.ls.lms.servlets.control.RequestProcessor.doProcess(RequestProcessor.java:98)
         at com.sap.hcm.ls.lms.servlets.control.RequestProcessor.process(RequestProcessor.java:83)
         at com.sap.hcm.ls.lms.servlets.control.Mediator.processRequest(Mediator.java:221)
         at com.sap.hcm.ls.lms.servlets.control.Mediator.doGet(Mediator.java:150)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java(Compiled Code))
         at java.security.AccessController.doPrivileged1(Native Method)
         at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code))
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))
    CAUSED BY: com.sap.hcm.ls.lms.courseengine.EngineException: failed to get macrostrategy with token=
         at com.sap.hcm.ls.lms.courseengine.steamengine.SteamEngine.getSteamMacroStrategyByToken(SteamEngine.java:180)
         at com.sap.hcm.ls.lms.courseengine.steamengine.SteamCourse.(SteamCourse.java:108)
         at com.sap.hcm.ls.lms.courseengine.steamengine.SteamEngine.loadCourse(SteamEngine.java:303)
         at com.sap.hcm.ls.lms.courseengine.steamengine.SteamEngine.loadCourse(SteamEngine.java:313)
         at com.sap.hcm.ls.lms.data.session.SessionFacade.loadCourse(SessionFacade.java:587)
         at com.sap.hcm.ls.lms.data.session.CourseStateUpdater.loadCourseFromPath(CourseStateUpdater.java:354)
         at com.sap.hcm.ls.lms.data.session.CourseStateUpdater.loadCourse(CourseStateUpdater.java:176)
         at com.sap.hcm.ls.lms.data.session.CourseStateUpdater.update(CourseStateUpdater.java:120)
         at com.sap.hcm.ls.lms.servlets.control.CourseUpdater.update(CourseUpdater.java:74)*
    The content plays on the local Content player on the desktop but the moment I attempt to play content with the server content player, this is what i get.
    Could you please let me know if you have come across this problem.
    Thanks and regards,
    Ronald Meyer

    Hi Abhiram,
    Please get in the IMG
    Training and Event Management -> SAP Learning Solution -> Learning Portal -> Select Learning Strategies
    Here you need to update your strategies defined.
    Regards,
    Jorge

  • Java exception when deploying forms6i on intranet

    this message apear when loading forms applet
    MessageManager:keyCONMACH bundle oracle.forms.engine.RunformBundle exception java.lang.illegalArgumentException: unknown format type at
    Ditails
    Java Exception
    oracle.forms.engine.RunformException:MessageManager:keyCONMACH bundle oracle.forms.engine.RunformBundle exception java.lang.IllegalArgumentException:unknown format type at
    at oracle.forms.engine.Runform.initConnection(Unknown Source)
    at oracle.forms.engine.Runform.startRunform(Unknown Source)
    at oracle.forms.engine.Runform.createRunform(Unknown Source)
    at oracle.forms.engine.Runform.start(Unknown Source)...
    thanks for help.

    Post Author: Ted Ueda
    CA Forum: JAVA
    You appear to have some kind of security tool deployed with your Tomcat, that requires some jars to be deployed with apps.Sincerely,Ted Ueda

Maybe you are looking for

  • Dunning notice runned without interest

    hai, i have created one interest type for customer and attached with dunning proceedure and also customer master record. Based on this dunning Notice is generated without interest amount.(item interest applied) Can any one suggest me how to solve thi

  • Error while creating a BSP application

    Hello Experts- I am trying to create a BSP application. This is the error what I am seeing, can any one let me know on what settings i have to make it work. Could not create the associated SICF node automatically. Add a node manually using "HTTP Serv

  • How to generate Email in OIM 11g r1 during recocillation

    I want to generate Email id of user based on his first name and last name while creation of user. I am using OIM 11g R1 . Can anyone plz help me on this.

  • Changing an input field's appearance to Optional in an ESS WD Java scenario

    This thread is posted to help customers with a common user based issue with ESS SAP may deliver some fields in ESS iviews as mandatory however you may not want some fields to be mandatory and may want the iview display to guide the user appropriately

  • Stupid question #21 or #22

    There are certain "processes" that are triggered in System 10.4.7 (soon to be 10.4.8), such as fan starting when certain conditions are met, ie: high temperature. Are these same processes triggered when the computer is running Windows under Parallels