Help creating an applet

I need to create an applet from a standalone chat client.
Can someone please help me, or suggest some good tutorials about writing applets?
TIA,
Richie.
------------------------BEGIN---------------------------
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
import javax.swing.*;
public class Client
extends JPanel {
public static void main(String[] args) throws IOException {
String name = args[0];
String host = args[1];
int port = Integer.parseInt(args[2]);
final Socket s = new Socket(host, port);
final Client c = new Client(name, s);
JFrame f = new JFrame("Client : " + name);
f.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent we) {
c.shutDown();
System.exit(0);
f.setSize(300, 300);
f.setLocation(100, 100);
f.setContentPane(c);
f.setVisible(true);
private String mName;
private JTextArea mOutputArea;
private JTextField mInputField;
private PrintWriter mOut;
public Client(final String name, Socket s)
throws IOException {
mName = name;
createUI();
wireNetwork(s);
wireEvents();
public void shutDown() {
mOut.println("");
mOut.close();
protected void createUI() {
setLayout(new BorderLayout());
mOutputArea = new JTextArea();
mOutputArea.setLineWrap(true);
mOutputArea.setEditable(false);
add(new JScrollPane(mOutputArea), BorderLayout.CENTER);
mInputField = new JTextField(20);
JPanel controls = new JPanel();
controls.add(mInputField);
add(controls, BorderLayout.SOUTH);
mInputField.requestFocus();
protected void wireNetwork(Socket s) throws IOException {
mOut = new PrintWriter(s.getOutputStream(), true);
final String eol = System.getProperty("line.separator");
new Listener(s.getInputStream()) {
public void processLine(String line) {
mOutputArea.append(line + eol);
mOutputArea.setCaretPosition(
mOutputArea.getDocument().getLength());
protected void wireEvents() {
mInputField.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
String line = mInputField.getText();
if (line.length() == 0) return;
mOut.println(mName + " : " + line);
mInputField.setText("");
------------------------------END------------------------------

Thank you, that was very helpful info. I am new to java, so I find this exercise really touch. Here is what I have so far:
-------------------------BEGIN-------------------------
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
import java.applet.*;
import javax.swing.*;
public class Client extends Applet implements ActionListener {
     String name;
     String host;
     int port;
     final Socket s;
     final Client c;
     Button sendButton;
     TextField txtField;
     TextArea txtArea;
public void init() {
          setLayout(new FlowLayout());
          name = "Richard";
          host = InetAddress.getLocalHost();
          port = 8000;
          Socket s = new Socket(host, port);
          Client c = new Client(name, s);
          txtField = new TextField();
          sendButton = new Button("Send");
          txtArea = new TextArea("Chat with " + name + " on " + host " : " + port);
          add(txtArea);
          add(txtField);
          add(sendButton);
     sendButton.addActionListener(this);
public void paint(Graphics g) {
     g.setColor(Color.red);
     g.drawString("<" + name + "> " + txtField.getText(),20,250);
public void actionPerformed(ActionEvent evt) {
if (evt.getSource() == sendButton)
          repaint();
          txtArea.setText(txtField.getText());
private String mName;
private TextArea mOutputArea;
private TextField mInputField;
private PrintWriter mOut;
public Client(final String name, Socket s)
throws IOException {
mName = name;
createUI();
wireNetwork(s);
wireEvents();
public void shutDown() {
mOut.println("");
mOut.close();
protected void createUI() {
setLayout(new BorderLayout());
mOutputArea = new TextArea();
mOutputArea.setLineWrap(true);
mOutputArea.setEditable(false);
add(new JScrollPane(mOutputArea), BorderLayout.CENTER);
mInputField = new TextField(20);
JPanel controls = new JPanel();
controls.add(mInputField);
add(controls, BorderLayout.SOUTH);
mInputField.requestFocus();
protected void wireNetwork(Socket s) throws IOException {
mOut = new PrintWriter(s.getOutputStream(), true);
final String eol = System.getProperty("line.separator");
new Listener(s.getInputStream()) {
public void processLine(String line) {
mOutputArea.append(line + eol);
mOutputArea.setCaretPosition(
mOutputArea.getDocument().getLength());
protected void wireEvents() {
mInputField.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
String line = mInputField.getText();
if (line.length() == 0) return;
mOut.println(mName + " : " + line);
mInputField.setText("");

Similar Messages

  • Help creating an applet (prime numbers and numbers divisible by 4)

    Hi all,
    I am very new to java, and I have exhausted all of my resources before posting here. I have checked the archives but what I am looking for is not really there. I have an exam in 2 days, and there is a question like this one I cannot get to work.
    I am supposed to ask for two numbers, the startNumber and endNumber. Then I am supposed to print in ascending or ascending order (this is already done)only the numbers divisible by 4 and the prime numbers. I have seen in the archives how you can use a boolean to check for prime numbers, but given the complexity of this question, I cannot put it into practice. Anybody can help me please?
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    public class Div4OrPrime extends Applet implements ActionListener
        //DECLARE THE GUIS
        public Button showB;
        public Label startL, endL;
        public TextField startN, endN;
        private TextArea screen;
        //DECLARE THE PANELS
        public Panel topPanel, middlePanel, bottomPanel;
        //DECLARING THE VARIABLES
        public int startNumber, endNumber;
        public int result;
        public String output="";
        public int counter;
        //INITIALIZATION OF THE APPLET
        public void init()
            //CREATION OF THE BUTTONS
              showB = new Button ("Show numbers");
           //CREATION OF LABELS
               startL = new Label ("Starting Number");
               endL = new Label ("Ending Number");
           //CREATION OF THE TEXTAREAS
              startN = new TextField(8);
              endN = new TextField(8);
              screen=new TextArea();   
           //CREATION OF THE PANELS
             topPanel=new Panel (new GridLayout (1,1));
             middlePanel = new Panel (new GridLayout (1,4));
             bottomPanel = new Panel (new GridLayout (1,1));
             setLayout (new GridLayout (3,3));
           //ADDING THE WIDGETS TO THE PANELS
              topPanel.add(showB);
              middlePanel.add(startL); middlePanel.add(startN);
              middlePanel.add(endL); middlePanel.add(endN);
              bottomPanel.add(screen);
              add(topPanel);
              add(middlePanel);
              add(bottomPanel);
           //ADD THE ACTION SOURCE LISTENER
              showB.addActionListener(this); 
              startN.addActionListener(this);
              endN.addActionListener(this);
          //SET THE ACTION
           public void actionPerformed(ActionEvent e)
               output="";
               if (e.getActionCommand().equals("Show numbers"))
           startNumber=Integer.parseInt(startN.getText());
                      endNumber=Integer.parseInt(endN.getText());
                   if  (startNumber<endNumber)
                      for (a = startNumber  ; a<=endNumber; a++)
                               output= output +a+"\n";
                               screen.setText(output);         
                          else if (startNumber>endNumber)
                              for (a=startNumber; a>=endNumber; a--)
                               output= output +a+"\n";
                               screen.setText(output);         
                         repaint();
    }

    Hi all,
    Iam very new to java, and I have exhausted all of my
    resources before posting here. I have checked the
    archives but what I am looking for is not really
    there. I have an exam in 2 days, and there is a
    question like this one I cannot get to work.
    I am supposed to ask for two numbers, the startNumber
    and endNumber. Then I am supposed to print in
    ascending or ascending order (this is already
    done)only the numbers divisible by 4 and the prime
    numbers. I have seen in the archives how you can use a
    boolean to check for prime numbers, but given the
    complexity of this question, I cannot put it into
    practice. Anybody can help me please?
    Code SNIP
    I'm sure there are better ways than this but it's the only one I can think of offhand.
    Create a boolean array from 2 to the largest number, set them all to true, then go through and on the first true number set all the multiples to false. Then do the same with the next true number(Sieve of Erasthoenes). Then you can go through and set all the mutiples of 4 to true with another loop. Then print the numbers in the range.

  • I want to create an applet, Please Help...

    HI all,
    I want to create an applet which should be able to display text and images...
    To display text in an applet I am using ...
    import java.awt.*;
    import java.applet.*;
    public class SimpleApplet extends Applet
        public void paint(Graphics g)
            g.drawString("A Simple Applet", 20, 20);
    }Now If I want to create few operators in a different class, and i want to use it from the SimpleApplet class what should be doing.

    HI all,
    I am creating an Gui: The code is here:
    import javax.swing.*;
    import java.awt.*;
    public class Tab extends JFrame
        JPanel p,p1,p2,p3,p4,p5;
        Frame f1,f2,f3;
        JTabbedPane tpane;
        public Tab()
            p = new JPanel();
            p1 = new JPanel();
            p2 = new JPanel();
            p3 = new JPanel();
            p4 = new JPanel();
            p5 = new JPanel();
            tpane = new JTabbedPane();
            p.setLayout(new GridLayout(1,1));
            tpane.addTab("File",p1);
            tpane.addTab("Edit",p2);
            tpane.addTab("Document",p3);
            tpane.addTab("View",p4);
            tpane.addTab("Help",p5);
            p.add(tpane);
            getContentPane().add(p);
            setVisible(true);
        public static void main(String[] args)
            // TODO Auto-generated method stub
            Tab t = new Tab();
    }I want to diaplay some text in the main area left. What should I do.
    How to add the Text.

  • How to create an applet that shows a pdf as non-editable.

    Hi friends,
    Does any one know how to create an applet that shows a pdf document (should make that pdf a non-editable one) while clicking a link.Its urgent for me as I have to complete this one tomorrow itself...please help me...
    I am able to view the pdf document but that cannot be make a non-editable one.
    Can anyone gave me the code for that one....please I am not very much good in Java.

    PDF is a proprietary format and Java doesn't support it by default. Are you using a 3rd party tool to create the PDF? If so, you need to review the developer docs to see how to make the document non-editable. Frankly, I don't see why you're using an Applet to view a PDF in the first place. What exactly are you trying to do. I'm confused.

  • Need some help with an applet

    I looked on the site here, read all the topics on it, and tried them all.
    but I can't get an applet to run on apex.
    I tried <applet> and <object> I get the same thing. the applet just does not work. I created the applet on jdeveloper and moved the .jar file into the static files area.
    I put the applet on apex.oracle.com at : http://apex.oracle.com/pls/apex/f?p=43533:1
    user id is guest, password is apex1234
    perhaps someone can look at this page and source code and tell me what I have done wrong? or maybe explain how to use the java console that pops up for details ?
    the applet works fine in jdeveloper.
    any help would be great..

    Looks like your code is trying to access http://apex.oracle.com/pls/apex/MyPack/MyCalc/class.class, whereas your applet is a workspace file (retrieved via wwv_flow_file_mgr.get_file). So essentially, code="..." and archive="..." arent following the same path conventions.
    &lt;applet name="MyCalc"
    code="MyPack/MyCalc.class"
    archive="wwv_flow_file_mgr.get_file?p_security_group_id=6032196320393432956&p_flow_id=43533&p_fname=MyCalc.jar"
    width="350"
    height="350"&gt;
    My applet works fine, and is located in XDB (I use EPG and it pretty much limits my file location options) in an open area, similar to /i/... (where Apex images, css etc are located), and so my code and archive locations are consistent.
    The applet could be hosted at any URL - it doesnt have to be in Apex.

  • Creating an Applet from an Application

    So i'm developing my own version of the '80s Space Invader game for class, and one of the requirments is that we have to turn in an application, but also post an Applet version on a website. The game is pretty much done, but I am having trouble creating the Applet from the Application. I've done most of the stuff that i thought you were supposed to do. The thing is, it will run whenever i use the appletviewer from the dos prompt just like it does when i'm running the application. However, when Ii try to view it in an actuall explorer window, it wont load.
    The way the program was designed, it had a "SpaceInvaders" class that had the main method, which only had about 4 lines. Then i had a DrawFrame class that extended JFrame, and that had the bulk of the code in it. The main method of the SpaceInvaders class had a "DrawFrame frame = new DrawFrame();" statement, and then a couple set.whatever statements. to change it to an applet, i just commented out the whole of the SpaceInvaders class, then i renamed the DrawFrame class to "public class SpaceInvaders extends JApplet" changed the consructor to the "init()" method, and commented out the setSize and setTitle statements, and also i imported java.applet.*;
    when i try to run the html file in firefox, all i get is the frame with a little red 'X' in it, and at the bottom it says "Applet SpaceInvaders notinited"
    any help, ideas, or tips would be greately appreciated. Thanks in advance, and if you need any more info, let me know.

    i created a very simple applet:
    import java.applet.*;
    import java.awt.*;
    * The HelloWorld class implements an applet that
    * simply displays "Hello World!".
    public class HelloWorld extends Applet {
        public void paint(Graphics g) {
            // Display "Hello World!"
            g.drawString("Hello world!", 50, 25);
    }and it ran just fine inside of a browser. I've also ran other applets that should be very similar to mine, but still mine doesn't work.

  • How to create an applet, with many squares inside?

    Hey,
    I'm having problems creating an applet. Heres the image I need to recreate. The drawing should scale, so that it reaches the full width and
    height of the applet.
    http://img503.imageshack.us/my.php?image=graphicsafx5.jpg
    I created a similar one (the code is below), but don't know how to modify it to create the image in the above link. Do I need a for loop? like for ( int i = 0; i < 10; ++i )
    import java.applet.Applet;
    import java.awt.*;
    public class AprilTest1 extends Applet
       public void paint(Graphics g)
            Graphics2D g2 = (Graphics2D)g;
            int width = getWidth();
            int height = getHeight();
            g2.setColor( Color.black );
            g2.fillRect( 0, 0, width, height);
            int pen_width = width/90 + 1;
            g2.setStroke(new BasicStroke(pen_width));
            g2.setColor( Color.white );
            g2.drawRect( width/4, height/4, width/2, height/2);
    }

    As CeciNEstPasUnProgrammeur said you do need a loop. You can probably make good use of the % operator inside your loop also.
    for(int i=0; i<NUMBER_OF_RECTANGLES; i++){
         if(i % 2 == 0) {
             //draw black rectangle
         } else {
             //draw white rectangle
    }Just think about what you need to do:
    -Start 1 rectangle at (0,0) and have its width and height as getWidth() and getHeight().
    -Pick an increment [this will be the 'width' of each rectangle]
    -Now for each rectangle you want to move your x and y points right and down by your increment. Moreover, you want to make your width and height smaller by your increment*2
    Essentially what I did is initialize 3 variables to 0 [say x, y, and z]. In your for loop use the % operator in an if-else block. If the loop is on an even number make a white rectangle, if the loop is on an odd number make a black rectangle. Set the x and y position to x+z and y+z respectivley. Set the height and width to getHeight()-(z*2) and getWidth()-(z*2) and then increment z by...lets say 10.
    This means on the first loop:
    x = 0
    y = 0
    width = getWidth()
    height = getHeight()
    Second loop:
    x = 10
    y = 10
    width = getWidth()-20 [10 to compensate for the shift, and 10 for the width]
    height = getHeight()-20
    Here is what I came up with - hope it helps.
    import java.applet.Applet;
    import java.awt.*;
    public class AprilTest1 extends Applet {
         private int x, y, z = 0;
         public void paint(Graphics g) {
              for(int i=0; i<10; i++){
                   if(i%2==1){
                      g.setColor( Color.white );
                      g.fillRect(x+z, y+z, getWidth()-(z*2), getHeight()-(z*2)); 
                   } else {
                      g.setColor( Color.black );
                      g.fillRect(x+z, y+z, getWidth()-(z*2), getHeight()-(z*2));
                   z += 10;
    }Any questions, feel free to ask :)

  • What is lightweight and heavyweight ? how to create my applet lightweight?

    Sir ,
    t have created an applet and in that i have not use any component
    for drawing now i want to use component for applet but cant grtting how to do this , by reference of sun java i have found this code for application to create lightweight::
    import java.awt.*;
    import java.awt.event.*;
    * Silly Sample program which demonstrates the basic paint
    * callback mechanism in the AWT.
    public class test1{
    public static void main(String[] args) {
    Frame f = new Frame("Have a nice day!");
    f.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    f.add(new SmileyCanvas(Color.yellow), BorderLayout.CENTER);
    f.pack();
    f.show();
    * A canvas which renders a smiley-face to the screen
    * Note: Canvas is a heavyweight superclass, which makes
    * SmileyCanvas also heavyweight. To convert this class to
    * a lightweight, change "extends Canvas" to "extends Component".
    class SmileyCanvas extends Canvas {
    public SmileyCanvas(Color faceColor) {
    setForeground(faceColor);
    public Dimension getPreferredSize() {
    return new Dimension(300,300);
    * Paint when the AWT tells us to...
    public void paint(Graphics g) {
    // Dynamically calculate size information
    // (the canvas may have been resized externally...)
    Dimension size = getSize();
    int d = Math.min(size.width, size.height); // diameter
    int ed = d/20; // eye diameter
    int x = (size.width - d)/2;
    int y = (size.height - d)/2;
    // draw head (color already set to foreground)
    g.fillOval(x, y, d, d);
    g.setColor(Color.black);
    g.drawOval(x, y, d, d);
    // draw eyes
    g.fillOval(x+d/3-(ed/2), y+d/3-(ed/2), ed, ed);
    g.fillOval(x+(2*(d/3))-(ed/2), y+d/3-(ed/2), ed, ed);
    //draw mouth
    g.drawArc(x+d/4, y+2*(d/5), d/2, d/3, 0, -180);
    this code is not for applet so how to make this code for applet ?

    I use the Snippets folder to store re-usable code. Scroll to
    the file or
    folder desired, double click and voila! Code is inserted into
    the page.
    As for the other bells & whistles, you are probably
    thinking about DW
    Extensions (.mxp) files. There are many 3rd party makers of
    extensions.
    Some are free, some cost a nominal fee. Check around to see
    if what you
    want isn't already available. If not, read this article.
    Creating an Extension:
    http://help.adobe.com/en_US/Dreamweaver/10.0_Extending/WS5b3ccc516d4fbf351e63e3d117f508c8d e-7fde.html
    Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com

  • Help with graph applet code

    I cant figure out how to finsih this... I am creating an applet that draws a quadratic equation according to the parameters in the html file...
    Here is the first class... I think its ok:
    import java.awt.*;
    import java.applet.*;
    public class Graph extends Applet
         public void init()
             int in1 = Integer.parseInt(getParameter("a"));
             int in2 = Integer.parseInt(getParameter("b"));
             int in3 = Integer.parseInt(getParameter("c"));
              int a=1;
              int b=1;
              int c=1;
              if( in1!=0)
                                                 a=in1;
              if( in2!=0)
                 b=in2;
              if( in3!=0)
                 c=in3;
              Dimension size = getSize();
              int width = size.width;
              String msg = "Quadratic Equation: y = ax^2 + bx + c";
              Label bottom = new Label(msg);
              Label header = new Label("Quadratic Equation");
              setLayout(new BorderLayout());
              GraphCanvas canvas = new GraphCanvas(width,a,b,c);
              add(header,BorderLayout.NORTH);
              add(canvas,BorderLayout.CENTER);
              add(bottom,BorderLayout.SOUTH);
    }and here is the GraphCanvas class... which I can't figure out how to finish. hints and help would be appriciated:
    import java.awt.*;
    import java.applet.*;
    public class GraphCanvas extends Canvas
         private double density;
         private final int XMAX = 10;
         private final int XMIN = -10;
        private final int YMAX = 10;
         private final int YMIN = -10;
         private double x;
         private double y;
         public GraphCanvas(int dimension, double a, double b, double c)
             dimension = 20;
              density=dimension/(XMAX-XMIN)
              y=a*x^2+b*x+c;
         public void paint(Graphics g)
              drawGrid(g);
              graphQuadratic(g);
         public void drawGrid(Graphics g)
         public void graphQuadratic(Graphics g)
              for (x=-10;x<=10;x+=0.02)
                   y=x^2+x+1;
                   moveTo(x,y);
                   drawTo(g,x,y);
         public void moveto(double x, double y)
         public void drawto(double x, double y, Graphics g)
    }it;s mainly the drawTo and moveTo methods that i am haveing trouble getting my tired mind wrapped around.

    You may want to test the equation first, then save a "y-offset" value. Otherwise the images you draw may be off the canvas. Do this before drawing the scales (which I presume would appear in your drawGrid method), I'd suggest. Also use the offset when drawing the curve itself.
    it;s mainly the drawTo and moveTo methods that i am haveing trouble getting my tired mind
    wrapped around.Well, you're the one that wants to use them. What do you expect them to do?

  • Simple question on creating an applet in JDeveloper 10g

    the Help says:
    To create a Java applet: In the Navigator, select the project in which you want to create the new applet. Choose File | New to open the New Gallery. In the Categories tree, expand Client Tier and select Swing/AWT. In the Items list, double-click Applet to open the New Applet dialog.This will open the New Applet dialog that will create the applet for you based on information you specify, including the name, package and class it extends. Press F1 or click H elp to obtain context-sensitive help in the dialog.
    Yet when I select Swing/AWT, the Items list has no Applet choice; the choices are:
    Dialog
    Frame
    Java Application
    Java Web Start (JNLP) Files
    Panel
    so how does one create an Applet?

    Select Web Tier>Applet in the New Gallery.

  • Help with java applets

    Ok i know i haven't read the applet tutorial or had much experience with applets but just hear me out and see if you can help me.
    BACKGROUND
    Ok...so i have previously viewed an applet on windows viewing an html file on my computer. I am trying to view just the most simple applet (helloworld) on linux. I'm using Ubuntu linux, the latest version as of February 23, 2006.I created an applet file and an html file in the same directory with the html file having an <applet> tag in it linking to the HelloWorldApp. I have tried viewing the html file and the java applet won't load. Everything other than the applet worked and I'm just stuck.
    So my plea is would somebody please just paste the bare minimum html file and applet file that you can see an applet with? I want to learn about applets and will do the tutorial but I would really like to just see one.
    Please help,
    A frustrated applet noob
    p.s.
    According to java.com I have installed JRE 5.0 and i have compiled a java application so I'm pretty sure I have successfully installed JDK 5.0.

    Bob, what web browser are you using?
    Make sure that the browser supports Java applets.
    If you want just to debug your applet try appletviewer utility
    from JDK first.

  • Service desk error creating support message "help- create support message"

    Hi
    I'm customizing SM 7.0 SP Stack 15 service desk scenario. I'm in a VAR SAP, so It's a mandatory scenario.
    I've done all basic settings from General Settings, Connection to SAP, Online Documentation, ...,
    Business Partners, iBase, Basic BC-Sets for Configuration, Number Ranges. After them , for Scenario-Specific Settings-> Service Desk->Service Provider I've done all these steps. At SAP System Solution Manager, I've created solutions at dswp transaction and EW Alert are centralized these steps works. Transaction notif_create works and iBase are well mantained.
    The problem is when I try create a support message from satellite SAP system. I logged With a SAP user which is BP, key user and has authorizations in a satellite system and I choose help->create support message, so a pop-up appears and I fill the fields, and I press button (Save/Send). An error appears:
    Error in Local Message System: Access via 'NULL' object reference not possible. Message was Not Created
    In order solve the error I review:
    - The satellite SAP system is at the iBase installed components.
    - I've Assign Number Range for ABA notifications at SLF1 transaction.
    - I've Checked number range for Service Desk Message at SLFN transaction.
    - I've configured ABA Message transaction DNO_CUST01, transaction DNO_CUST04
    - (satellite system) Transaction sm30, table BCOS_CUST:
       Appl.            +       Dest.                                  +                     +
       OSS_MSG   W     SM_SMGCLNT010_BACK    CUST620          1.0
       TST_CUS                                                        0120009939
       RFC SM_SMGCLNT010_BACK works, SM recollects EW Alert from this satellite system
    - (satellite system) I logged with a SAP user with these roles:
      SAP_SUPPDESK_CREATE
      SAP_BC_CUS_CUSTOMIZER  according SAP NOTE 834534
      SAP_BC_CUS_ADMIN       according SAP NOTE 834534
      SAP_SV_FDB_NOTIF_BC_CREATE
      SAP_SV_FDB_NOTIF_BC_ADMIN
      All these roles are mantained.
    - I've review SAP Notes 834534, 864195, 621927(I haven't applied this SAP Note because it's older)
    Please could you help me?
    Thanks and Regards
    Raul

    Hi,
    When I try create a SAP message via help->create suuport message, I get the same error so I run help->create support message in a satellite system so I run help->create support message in Solution Manager
    system. Also, a dump is generated in Solution Manager when I try create support message or from satellite or from solution manager.
    ========================================================================
    Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED
    Date and Time          10.07.2008 10:17:26
    Short text
        Access via 'NULL' object reference not possible.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "CL_BOR_SERVICE_PPF============CP" had to be
         terminated because it has
        come across a statement that unfortunately cannot be executed.
    Error analysis
        You attempted to use a 'NULL' object reference (points to 'nothing')
        access a component (variable: " ").
        An object reference must point to an object (an instance of a class)
        before it can be used to access components.
        Either the reference was never set or it was set to 'NULL' using the
        CLEAR statement.
    How to correct the error
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "OBJECTS_OBJREF_NOT_ASSIGNED" " "
        "CL_BOR_SERVICE_PPF============CP" or "CL_BOR_SERVICE_PPF============CM004"
        "PROFILE_CONTAINS_PARTNERDEP"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
    Information on where terminated
        Termination occurred in the ABAP program "CL_BOR_SERVICE_PPF============CP" -
         in "PROFILE_CONTAINS_PARTNERDEP".
        The main program was "SAPMSSY1 ".
        In the source code you have the termination point in line 41
        of the (Include) program "CL_BOR_SERVICE_PPF============CM004".
    =========================================================================
    Thanks and Regards
    Raul

  • I need Fusion help creating a demo of BRM JCA Resource Adapter

    I need Fusion help creating a demo of BRM JCA Resource Adapter.
    I know BRM well but am clueless with Fusion.
    I am trying to figure out what Fusion products to download and install and how I manipulate the Fusion side to manipulate BRM.
    My BRM docs say:
    Installing the BRM JCA Resource Adapter ->
    Software requirements
    (yada yada install a bunch of BRM stuff I know how to do)
    The adapter must be deployed on a J2EE 1.4-compliant application server that has implemented the JCA 1.5 specification. The adapter runs only in a managed environment. (Does this imply some particular Fusion package?)
    (more yada yada about installing more BRM packages I know how to do)
    Deploying and configuring the BRM JCA Resource Adapter ->
    Overview of the BRM JCA Resource Adapter configuration procedure
    The procedure for setting up the BRM JCA Resource Adapter includes the following tasks:
    Installing the adapter on your BRM system, if you have not already done so. See Installing the BRM JCA Resource Adapter.
    Generating the schema files for the adapter. See Generating the schema files for your system. (links to some BRM commands np)
    Specifying how to construct XML tags. See Specifying the XML tags for extended fields. (links to an oob file included with directions on how to address BRM customizations np)
    Generating the WSDL files for the adapter. See Generating the WSDL files for your system. (links to an oob file with directions to configure. I could use some help if/when I get this far)
    The last two look pretty important but I haven't a clue. I pasted the text from the docs below.
    Deploying the adapter on your application server. See Deploying the BRM JCA Resource Adapter on an Oracle application server.
    Connecting the adapter to the BRM software. See Connecting the adapter to BRM in Oracle AS.
    Deploying the BRM JCA Resource Adapter on an Oracle application server
    The adapter is dependent on Java Archive (JAR) files to deploy properly. The following table lists the JAR files that the adapter requires from each application in your system.
    Application
    JAR files
    J2EE application server
    classes12.jar, connector15.jar, and jta.jar
    Oracle BPEL process
    bpm-infra.jar, orabpel-thirdparty.jar, orabpel.jar, and xmlparserv2.jar
    BRM J2EE Resource Adapter
    pcm.jar and pcmext.jar
    Apache
    xercesImpl.jar
    If you are deploying the adapter in a standalone Oracle Containers for Java EE (OC4J) instance, make sure these JAR files are available to the class loader that is loading the adapter.
    If you are deploying the adapter by using Oracle SOA Suite, these JAR files are available as part of the oracle.bpel.common code source. You import these libraries as follows:
    Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
    Add the oracle.bpel.common entry (shown in bold below) to the imported-shared-libraries section of the file:
    <imported-shared-libraries>
    <import-shared-library name="adf.oracle.domain"/>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    Save and close the file.
    Restart the application server or the J2EE instance.
    After you make the JAR files available, deploy the adapter on the Oracle application server by using either the Oracle Application Server (Oracle AS) Application Server Control (ASC) or the Oracle admintool.jar file. Copy the adapter archive file (BRM_home/apps/brm_integrations/jca_adapter/OracleBRMJCA15Adapter.rar) from the installation directory to a location that is accessible to the adapter deployment tool. You can then open and deploy the archive file on your application server.
    After successful deployment, return the applications.xml file to its original settings and add the oracle.bpel.common codesource to the BRM Adapter oc4j-ra.xml file:
    Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
    Remove the following oracle.bpel.common entry (shown in bold below):
    <imported-shared-libraries>
    <import-shared-library name="adf.oracle.domain"/>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    Save and close the file.
    Open the JCA Resource Adapter oc4j-ra.xml file from the Oracle_home/j2ee/Instance/application-deployments/default/BRMAdapterDeploymentName directory.
    Add the oracle.bpel.common entry (shown in bold below) to the oc4j-connector-factories section of the file:
    <oc4j-connector-factories...>
    <imported-shared-libraries>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    <oc4j-connector-factories>
    Save and close the file.
    Restart the application server or the J2EE instance.
    For more information about deploying the adapter, see your application server’s documentation.
    Connecting the adapter to BRM in Oracle AS
    You connect the adapter to the BRM software by creating connection pools and connection factories. As part of the adapter deployment, the application server creates oc4j-ra.xml from the packaged ra.xml. The ra.xml file is located in the Oracle_home/j2ee/Instance/connectors/AdapterDeploymentName/AdapterDeploymentName/META-INF directory. For example, Oracle_home/j2ee/home/connectors/BRMAdapter/BRMAdapter/META-INF/ra.xml.
    Use the resource adapter home page from the Oracle AS ASC page to create connection pools and connection factories.
    Create your connection pool by following the performance and tuning guidelines in Configuring Connection Pooling in OC4J in Oracle Containers for J2EE Resource Adapter Administrator's Guide. See download.oracle.com/docs/cd/B31017_01/web.1013/b28956/conncont.htm.
    Make sure you set the pool’s Maximum Connections parameter (maxConnections XML entity) equal to or greater than the Oracle BPEL process manager’s dspMaxThreads parameter. For more information, see Oracle BPEL Process Manager Performance Tuning in Oracle Application Server Performance Guide for 10g Release 3 (10.1.3.1.0) at download.oracle.com/docs/cd/B31017_01/core.1013/b28942/tuning_bpel.htm.
    Note To set up JCA Resource Adapter transaction management in BPEL, you must create a private connection pool and set its Inactive Connection Timeout property (inactivity-timeout XML entity) to 0. See About JCA Resource Adapter transaction management in BPEL for more information.
    Create as many connection factories as your system needs. For each connection factory, specify the following:
    The JNDI location for the connection factory.
    The connection pool to use.
    How to connect to BRM by using these entries:
    Entry
    Description
    ConnectionString
    Specify the protocol, host name, and port number for connecting to the BRM software. For example: ip Server1 12006.
    DBNumber
    Specify the database number for the BRM database. For example, enter 1 or 0.0.0.1 for database 0.0.0.1.
    InputValidation
    Specifies whether to validate the input XMLRecord:
    True — The adapter validates the input XMLRecord against the opcode schema.
    False — The adapter does not validate the input XMLRecord.
    The default is False.
    This overrides any other validation parameter specified in the WSDL file.
    OutputValidation
    Specifies whether to validate the output XMLRecord:
    True — The adapter validates the output XMLRecord against the opcode schema.
    False — The adapter does not validate the output XMLRecord.
    The default is False.
    This overrides any other validation parameter specified in the WSDL file.
    LoginType
    Specifies the authentication method:
    1 — The adapter logs in to BRM by using the specified login name and password.
    0 — The adapter logs in to BRM by using the specified service type and POID ID.
    The default is 1.
    UserName
    Specifies the login name the adapter uses for logging in to the BRM software.
    Note This entry is required only if LoginType is set to 1.
    Password
    Specify the password the adapter uses for logging in to the BRM software.
    Note This entry is required only if LoginType is set to 1.
    PoidID
    Specifies the POID ID. This entry should be set to 1.
    ServiceType
    Specifies the service the adapter uses to log in to the BRM software.
    The default is /service/pcm_client.
    You have successfully configured the adapter to connect to BRM.

    I need Fusion help creating a demo of BRM JCA Resource Adapter.
    I know BRM well but am clueless with Fusion.
    I am trying to figure out what Fusion products to download and install and how I manipulate the Fusion side to manipulate BRM.
    My BRM docs say:
    Installing the BRM JCA Resource Adapter ->
    Software requirements
    (yada yada install a bunch of BRM stuff I know how to do)
    The adapter must be deployed on a J2EE 1.4-compliant application server that has implemented the JCA 1.5 specification. The adapter runs only in a managed environment. (Does this imply some particular Fusion package?)
    (more yada yada about installing more BRM packages I know how to do)
    Deploying and configuring the BRM JCA Resource Adapter ->
    Overview of the BRM JCA Resource Adapter configuration procedure
    The procedure for setting up the BRM JCA Resource Adapter includes the following tasks:
    Installing the adapter on your BRM system, if you have not already done so. See Installing the BRM JCA Resource Adapter.
    Generating the schema files for the adapter. See Generating the schema files for your system. (links to some BRM commands np)
    Specifying how to construct XML tags. See Specifying the XML tags for extended fields. (links to an oob file included with directions on how to address BRM customizations np)
    Generating the WSDL files for the adapter. See Generating the WSDL files for your system. (links to an oob file with directions to configure. I could use some help if/when I get this far)
    The last two look pretty important but I haven't a clue. I pasted the text from the docs below.
    Deploying the adapter on your application server. See Deploying the BRM JCA Resource Adapter on an Oracle application server.
    Connecting the adapter to the BRM software. See Connecting the adapter to BRM in Oracle AS.
    Deploying the BRM JCA Resource Adapter on an Oracle application server
    The adapter is dependent on Java Archive (JAR) files to deploy properly. The following table lists the JAR files that the adapter requires from each application in your system.
    Application
    JAR files
    J2EE application server
    classes12.jar, connector15.jar, and jta.jar
    Oracle BPEL process
    bpm-infra.jar, orabpel-thirdparty.jar, orabpel.jar, and xmlparserv2.jar
    BRM J2EE Resource Adapter
    pcm.jar and pcmext.jar
    Apache
    xercesImpl.jar
    If you are deploying the adapter in a standalone Oracle Containers for Java EE (OC4J) instance, make sure these JAR files are available to the class loader that is loading the adapter.
    If you are deploying the adapter by using Oracle SOA Suite, these JAR files are available as part of the oracle.bpel.common code source. You import these libraries as follows:
    Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
    Add the oracle.bpel.common entry (shown in bold below) to the imported-shared-libraries section of the file:
    <imported-shared-libraries>
    <import-shared-library name="adf.oracle.domain"/>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    Save and close the file.
    Restart the application server or the J2EE instance.
    After you make the JAR files available, deploy the adapter on the Oracle application server by using either the Oracle Application Server (Oracle AS) Application Server Control (ASC) or the Oracle admintool.jar file. Copy the adapter archive file (BRM_home/apps/brm_integrations/jca_adapter/OracleBRMJCA15Adapter.rar) from the installation directory to a location that is accessible to the adapter deployment tool. You can then open and deploy the archive file on your application server.
    After successful deployment, return the applications.xml file to its original settings and add the oracle.bpel.common codesource to the BRM Adapter oc4j-ra.xml file:
    Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
    Remove the following oracle.bpel.common entry (shown in bold below):
    <imported-shared-libraries>
    <import-shared-library name="adf.oracle.domain"/>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    Save and close the file.
    Open the JCA Resource Adapter oc4j-ra.xml file from the Oracle_home/j2ee/Instance/application-deployments/default/BRMAdapterDeploymentName directory.
    Add the oracle.bpel.common entry (shown in bold below) to the oc4j-connector-factories section of the file:
    <oc4j-connector-factories...>
    <imported-shared-libraries>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    <oc4j-connector-factories>
    Save and close the file.
    Restart the application server or the J2EE instance.
    For more information about deploying the adapter, see your application server’s documentation.
    Connecting the adapter to BRM in Oracle AS
    You connect the adapter to the BRM software by creating connection pools and connection factories. As part of the adapter deployment, the application server creates oc4j-ra.xml from the packaged ra.xml. The ra.xml file is located in the Oracle_home/j2ee/Instance/connectors/AdapterDeploymentName/AdapterDeploymentName/META-INF directory. For example, Oracle_home/j2ee/home/connectors/BRMAdapter/BRMAdapter/META-INF/ra.xml.
    Use the resource adapter home page from the Oracle AS ASC page to create connection pools and connection factories.
    Create your connection pool by following the performance and tuning guidelines in Configuring Connection Pooling in OC4J in Oracle Containers for J2EE Resource Adapter Administrator's Guide. See download.oracle.com/docs/cd/B31017_01/web.1013/b28956/conncont.htm.
    Make sure you set the pool’s Maximum Connections parameter (maxConnections XML entity) equal to or greater than the Oracle BPEL process manager’s dspMaxThreads parameter. For more information, see Oracle BPEL Process Manager Performance Tuning in Oracle Application Server Performance Guide for 10g Release 3 (10.1.3.1.0) at download.oracle.com/docs/cd/B31017_01/core.1013/b28942/tuning_bpel.htm.
    Note To set up JCA Resource Adapter transaction management in BPEL, you must create a private connection pool and set its Inactive Connection Timeout property (inactivity-timeout XML entity) to 0. See About JCA Resource Adapter transaction management in BPEL for more information.
    Create as many connection factories as your system needs. For each connection factory, specify the following:
    The JNDI location for the connection factory.
    The connection pool to use.
    How to connect to BRM by using these entries:
    Entry
    Description
    ConnectionString
    Specify the protocol, host name, and port number for connecting to the BRM software. For example: ip Server1 12006.
    DBNumber
    Specify the database number for the BRM database. For example, enter 1 or 0.0.0.1 for database 0.0.0.1.
    InputValidation
    Specifies whether to validate the input XMLRecord:
    True — The adapter validates the input XMLRecord against the opcode schema.
    False — The adapter does not validate the input XMLRecord.
    The default is False.
    This overrides any other validation parameter specified in the WSDL file.
    OutputValidation
    Specifies whether to validate the output XMLRecord:
    True — The adapter validates the output XMLRecord against the opcode schema.
    False — The adapter does not validate the output XMLRecord.
    The default is False.
    This overrides any other validation parameter specified in the WSDL file.
    LoginType
    Specifies the authentication method:
    1 — The adapter logs in to BRM by using the specified login name and password.
    0 — The adapter logs in to BRM by using the specified service type and POID ID.
    The default is 1.
    UserName
    Specifies the login name the adapter uses for logging in to the BRM software.
    Note This entry is required only if LoginType is set to 1.
    Password
    Specify the password the adapter uses for logging in to the BRM software.
    Note This entry is required only if LoginType is set to 1.
    PoidID
    Specifies the POID ID. This entry should be set to 1.
    ServiceType
    Specifies the service the adapter uses to log in to the BRM software.
    The default is /service/pcm_client.
    You have successfully configured the adapter to connect to BRM.

  • Help-Create Support Message In SAP

    Hi,
         When iam creating a new message from Help-Create Support Message it is throwing the error message as 513. Can anyone help me in the mentioned issue.
    Regards,
    Mirza Kaleemulla Baig.

    Hi Mirza,
    Please check the following:
    - Check that the users used to create the support desk message has the
    following authorizations.                                                                               
    SAP_SUPPDESK_CREATE   
    - Can you please attach the contents for the table BCOS_CUST in both the
    solution manager system and one of your satellite systems.   
    This table must show this entry at least:
    OSS_MSG     W     NONE     CUST620     1.0    
    - Check also note 1011376   
    Hope this helps,
    Dolores

  • Sold-To Party and Reported missing when doing Help - Create Support Message

    Sorry, I know this has been asked multiple times, but I'm missing something in the responses.  The responses I am finding either don't seem to apply to my situation, or aren't detailed enough to explain what I'm supposed to be doing.
    Solution Manager 7.0 EhP1 SAPKITL435.
    If we try to do a "Help - Create Support Message" from within our production Solution Manager system, the "Reported by" field is correct, but the Sold-To Party is blank.
    If we try to do a "Help - Create Support Message" from within our non-production Solution Manager system, both the "Reported by" and  Sold-To Party fields are blank.
    If we try to do a Help - Create Support Message" from another SAP system whose RFC is pointing to our non-production Solution Manager system, both the "Reported by" and  Sold-To Party fields are blank.
    I've looked at IB52, as well as the SPRO activities under "Partner Determination Procedure."  I think a big part of my problem is that they just don'e make sense to me yet, because I can't figure out what I should be changing.
    For example, IB52 looks to me like it only applies if you want to assign something to the same person all the time.  Am I missing something there, or is that an answer to a different question?
    I also can't figure out if I need to create something new in "Define Access Sequences," or modify something existing, and, if I modify, to what?
    Does anyone know where I could find specific instructions for setting this up?

    Hi Brenda,
    Regargind this issue, please check if Sold-To party is maintained for
    your system with IB52 in your solman system as the steps below:
    SOLUTION MANAGER system
    ->IB52
    ->select the system on left hand side
    ->click on 'goto' on top menu
    ->Select 'partner'
    ->Now maintain Sold-To party
    Also check below note:
    1165357    Sold-to-Party is not assigned to Service Desk messa
    As you said ou already assigned then i would request you to please check if you have assigned at the system level or not. Somtimes people define at top of the tree and also at system level. Please assign at system level and delete all other. Most of the times this is the issue Sold-to-party doesnt fill automatically.
    For reported by field:
    Please check the note: 824640: Customizing missing for Service Desk in Solution
    read this note carefull and this will help you fixing the reported by issue.
    Please, make sure you have applied the following corrections:
    1439191 Incident Create: Message Reporter or Processor is not saved
    1486132 Incident Create: Enhance search help of Reporter field
    1497700 Work center: Message details not updated after refresh
    After this if you still having issue you need to provide more details but i think this will fix the issue.
    Thanks
    Regards
    Vikram

Maybe you are looking for

  • Daq do not appear at measurement i/o

    I've just instaled My DAQ6009 and my labview, and the DAQ do not appear at measurement I/O on labview functions palet. It was working before when was instaled at my old computer. The daq6009 is appearing at MAX tree. Does anyone knows what can be hap

  • Jsp 2.0 Expression Language Performance

    Hi,           We're using EL throughout our application JSPs and Tags (${x} expressions), and we've discovered that for each dynamic expression used, the weblogic implementation creates a new ExpressionEvaluator object, a new Parser object, performs

  • I called Apple about my defective screen and.....

    They will ship me another new phone overnight via FedEx. But like someone said in the forum, they wont be able to actually proceed with the order until tomorrow morning. I also noticed I had a couple dead pixels along the left side of my screen. I gu

  • Napa is unable to connect to the sharepoint site

    Hi Team I successfully made an app ( starter app), it is published successfully after hitting the publish button, but whenever I click the run button it says.  I am online and doing the development , i dont know why this error is poping up. Connectio

  • Installing/Setup of  SOA

    Hi Friends, I would like setup "*SOA*" on my personal laptop(64-Bit Linux machine). Can someone please help me with this process where i need something like - --> All prerequisites before i start For now I've the following softwares : 1. Oracle DataB