SubParagraphGroupElement can not be instantiated

I was trying to instantiate the class SubParagraphGroupElement and got this error - "Main Thread (Suspended: Error: Attempted construct of invalid FlowElement subclass)"
Exemple:
var subP:SubParagraphGroupElement = new SubParagraphGroupElement();
This is a bug?,  if not how should I proceed to instantiate this class. Thanks.

Hi, Abhishek, thanks for the reply.
I would like to create a group of elements within a paragraph, and thus can handle them, like this
Imaginary exemple:
<TextFlow fontFamily="Trebuchet MS" fontSize="20" lineBreak="toFit" whiteSpaceCollapse="preserve" xmlns="http://ns.adobe.com/textLayout/2008">
     <p>
          <group id='my_group'>
                    <span color="0x99cc">Lorem</span>
                    <span> Ipsum </span>        
          </group>
          <span color="0x3399">other text</span>         
     </p>
</TextFlow>
This is only a hypothetic exemple.
Thanks.

Similar Messages

  • Applet in ie 5.0: class can not be Instantiated

    Hi!
    My problem is an Applet, which works fine with the appletviewer and with my iExplorer 5.0.
    But when I tried to install my Application (the Applet is part of a J2EE-WebApp) on the tomcat of an other computer, I get the
    "class can not be instantiated"-Error and iE 5.0 only displays a grey box in the size of the Applet. With the appletviewer it works.
    I got the same tomcat, same mySQL and same browser on both computers.
    I also invoked the application running in tomcat on my computer from 2 other computers - on one of them, the Applet was shown, on the other, I only got this grey box.
    The version of the iExplorer was exactly the same.
    What can be wrong?

    Are you sure there is a static method in the Applet class named newAudioChip that takes a URL as an argument?

  • Can not create an object for my c# form dll which has an ActiveX control

    I want to create an object in teststand for my C# form dll which has an ActiveX Control . but the error says ActiveX control can not be instantiated because the current thread is not in a single-threaded apartment. can someone help to solve the problem?
    Thanks.

    Two options:
    1) put the step in a subsequence and use the sequence call "New thread" option with the advanced setting "Use single-threaded Apartment". Put a wait step immediately after the sequence call to wait for the new thread.
    2) Inside of your dll, using .NET APIs create a new thread initialized as STA and call your code from that. Have the original thread wait for the new thread to finish running your dialog code.
    Hope this helps,
    -Doug

  • BasicFileAttributes---can interfaces be instantialized?

    Hi,
    I have a question regarding the "BasicFileAttributes".
    It is an interface? Or is there any class with the same name? As I know interface can not be instantialized, but I find this line from the sample code provided in java tutorials:
    "BasicFileAttributes attr = Attributes.readBasicFileAttributes(file);"
    anyone can help me to solve this problem for me? thanks

    Tian123 wrote:
    Thank you very much for your reply. I think I misunderstood the definition of instantiation. But what is the point of this line:
    Foo foo = new Bar();what effect does it have on "foo"? The variable foo is declared to hold a reference to an instance of Foo. If Foo is a class, then an instance of any subclass of Foo is also an instance of Foo. If Foo is an interface, then an instance of any class the implements the interface is also an instance of Foo.
    The point is coding to the interface. You should be able to google that phrase for details, but the basic idea is that you don't care what the actual implementation is, only what the type is.
    One example is JDBC. In the java.sql package, Connection, Statement, RestultSet, and a whole bunch of others are interfaces. When we do Connection con = DriverManager.getConnection(...); we don't know or care what implementation class will be provided by the vendor, or even what vendor will be supplying it--Oracle, MySQL, etc.
    Another example is this:
    List list = new ArrayList();By declaring it as List instead of ArrayList, I'm saying that when I use the list variable, I don't care which implementation it is, as long as it meets List's contract. Later, if I decide that a LinkedList is more appropriate, I only have to change new ArrayList() to new LinkedList(). Nothing that uses the list variable needs to know or care.
    >
    And in these three lines:
    Path file = ...;
    BasicFileAttributes attr = Attributes.readBasicFileAttributes(file);
    TimeUnit resolution = attr.resolution();First, the return type of the function is readBasicFileAttributes(file). what is the point to return a interface type?Same as above: You only care about the type (what the object can do), not the implementation (how it does it).

  • Can not call a static function with-in a instance of the object.

    Another FYI.
    I wanted to keep all of the "option" input parameters values for a new object that
    i am creating in one place. I thought that the easiest way would be to use a
    static function that returns a value; one function for each option value.
    I was looking for a way to define "constants" that are not stored in
    the persistent data of the object, but could be reference each time
    the object is used.
    After creating the static functions in both the "type" and "body" components,
    I created the method that acutally receives the option input values.
    In this method I used a "case" statement. I tested the input parameter
    value, which should be one of the option values.
    I used a set of "WHEN conditions" that called the same
    static functions to get the exact same values that the user should
    pass in.
    When I try to store this new version, I get the error:
    "PLS-00587: a static method cannot be invoked on an instance value"
    It points to the first "when statifc_function()" of the case function.
    This seems weird!
    If I can call the static method from the "type object" without creating
    and instance of an object, then why can't I call it within the body
    of a method of an instance of the object type?
    This doesn't seem appropriate,
    unless this implementation of objects is trying to avoid some type
    of "recursion"?
    If there is some other reason, I can not think of it.
    Any ideas?

    Sorry for the confusion. Here is the simplest example of what
    I want to accomplish.
    The anonymous block is a testing of the object type, which definition follows.
    declare
    test audit_info;
    begin
    test := audit_info(...);
    test.testcall( audit_info.t_EMPLOYER() );
    end;
    -- * ========================================== * --
    create or replace type audit_info as object
    ( seq_key integer
    , static function t_EMPLOYER return varchar2
    , member procedure test_call(input_type varchar2)
    instantiable
    final;
    create or replace type body audit_info
    as
    ( id audit_info
    static function t_EMPLOYER return varchar2
    as
    begin
    return 'EMPLOYER';
    end;
    member procedure test_call(input_type varchar2)
    as
    begin
    CASE input_type
    WHEN t_EMPLOYER()
    select * from dual;
    WHEN ...
    end case;
    end;
    end;
    The error occurs on the "WHEN t_EMPLOYER()" line. This code is only
    an example.
    Thanks.

  • Error with signed applet "class can't be instantiated"

    hi,
    I developed an applet to make a ftp connexion to upload files from the local disk and the applet is already signed. At first I compiled it with the 1.4 version and I got (from other computers) the error "class not found". Then I used the target 1.1 option and now I get the error "class can't be instantiated"
    Do I need any additional code?
    I am using all these imports
    import java.applet.Applet;
    import java.applet.AppletContext;
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.swing.JComponent;
    import javax.swing.JProgressBar;
    import javax.swing.*;
    Thanks

    go to
    Tools->Internet Options->Advanced
    Look for "Java (Sun)" (normally near Microsoft VM). I uncheck all the Microsoft VM options but am not sure if that is really necessary.
    Also play with Control Panel, you should see "Java Plug-in" in there and be able to configure browsers a bit with that.

  • Load: AcidRainApplet.class can't be instantiated

    The error "load: AcidRainApplet.class can't be instantiated" is coming up on this bit of code, any ideas on being rid of it?
    // The "AcidRainApplet" class.
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.Date;
    import javax.swing.*;
    public class AcidRainApplet extends Applet implements KeyListener, ActionListener
      public AcidRainApplet ()
        super ();
      int width = 600, height = 450;
      int x = width / 2, y = height - 100, w = 27, h = 40;
      int count = 0;
      boolean playing = true, pause = true;
      Font endFont = new Font ("Arial Black", Font.PLAIN, 36);
      Font ptFont = new Font ("Westminster", Font.PLAIN, 28);
      int points = 0;
      int numRain = 80;
      int maxRain = 200;
      int speed = 5;
      ImageIcon imgi = new ImageIcon ("homer.gif");
      Image ch = imgi.getImage ();
      javax.swing.Timer t;
      public void init ()
        setBackground (Color.black);
        t = new javax.swing.Timer (speed, this);
        this.addKeyListener (this);
        for (int i = 0 ; i < maxRain ; i++)
          rain = new Rain ();
    } // init method
    public void paint (Graphics g)
    super.paint (g);
    g.setColor (Color.white);
    g.drawString ("" + numRain, width - 20, 15);
    if (playing)
    g.drawImage (ch, x, y, null);
    g.setColor (Color.green);
    for (int i = 0 ; i < numRain ; i++)
    g.drawLine (rain [i].x, rain [i].y, rain [i].x, rain [i].y - 10);
    if (!(pause))
    rain [i].y += rain [i].sp;
    if (rain [i].y > height)
    rain [i].x = (int) (Math.random () * width);
    rain [i].y = 0;
    rain [i].sp = (int) (Math.random () * 5) + 2;
    points++;
    else if (rain [i].x >= x && rain [i].x <= x + w && rain [i].y >= y && rain [i].y <= y + h)
    playing = false;
    else
    g.drawString ("PRESS ENTER TO PLAY AGAIN", 180, 400);
    g.setFont (endFont);
    g.setColor (Color.red);
    g.drawString ("GAME OVER", 150, 200);
    g.setFont (ptFont);
    g.setColor (Color.green);
    g.drawString ("Score: " + points, 200, 300);
    t.stop ();
    if (pause)
    g.setColor (Color.green);
    g.drawString ("PRESS ENTER", 200, 200);
    } // paint method
    public void resetVars ()
    x = width / 2;
    y = height - 100;
    count = 0;
    playing = true;
    pause = true;
    points = 0;
    maxRain = 200;
    speed = 5;
    for (int i = 0 ; i < maxRain ; i++)
    rain [i] = new Rain ();
    public class Rain extends Applet
    Rain ()
    int x = (int) (Math.random () * width);
    int y = 0;
    int sp = (int) (Math.random () * 5) + 2;
    Rain rain [] = new Rain [maxRain];
    public void actionPerformed (ActionEvent e)
    repaint ();
    public void keyTyped (KeyEvent k)
    public void keyPressed (KeyEvent k)
    int key = k.getKeyCode ();
    if (!(pause))
    if (key == k.VK_LEFT && x > 0)
    x -= 5;
    if (key == k.VK_RIGHT && x + w < width)
    x += 5;
    if (key == k.VK_DOWN && numRain > 10)
    numRain -= 10;
    repaint ();
    if (key == k.VK_UP && numRain != maxRain)
    numRain += 10;
    repaint ();
    if (key == k.VK_ENTER)
    if (pause)
    pause = false;
    t.start ();
    else if (!(playing))
    resetVars ();
    else
    pause = true;
    t.stop ();
    public void keyReleased (KeyEvent k)
    } // AcidRainApplet class

    Irrespective of the working of your program, I would suggest you remove a lot of weeds and clean the code. That would help you do easier debugging .
    Somethings I can quickly tell are,
    the constructor in AcidRainApplet not useful, Rain implementing Applet not useful, implements KeyListener, ActionListener can be delegated to another class, usage of inner class can be rethinked of delegation can be given a thought. Following code can be thought of :
      class Rain
        private  int x = 0;
        private int y = 0;
        private int sp = 0;
        Rain ()
          reset();
        public int getX() {
          return x;
        public int getY() {
          return y;
        public void setX(int x) {
          this.x = x;
        public void setY(int y) {
          this.y = y;
         public void reset() {
          x = (int) (Math.random () * width);
          y = 0;
          sp = (int) (Math.random () * 5) + 2;   
      }Good wishes,
    Rajesh

  • Abstract Class can't be instantiated

    Hi I'm getting the following error messages while compiling. Does any one have any idea how to get RID of it?
    ERROR MESSAGES:
    EditableHeaderTableExample2.java:48: inner class EditableHeaderTableExample2. MyComboRenderer is an abstract class. It can't be instantiated.
    MyComboRenderer renderer = new MyComboRenderer(items);
    ^
    EditableHeaderTableExample2.java:79: Method redefined with different return type: javax.swing.table.TableCellRenderer getTableCellRendererComponent(javax.swing.JTable, java.lang.Object, boolean, boolean, int, int) was java.awt.Component getTableCellRendererComponent(javax.swing.JTable, java.lang.Object, boolean, boolean, int, int)
    public TableCellRenderer getTableCellRendererComponent(
    ^
    2 errors
    Here is the code:
    EditableHeaderTableExample2.java
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import javax.swing.JComponent;
    import javax.swing.JComboBox;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.border.*;
    import javax.swing.JTable;
    import javax.swing.plaf.metal.*;
    import javax.swing.JFrame;
    import javax.swing.table.TableColumn;
    import javax.swing.table.TableColumnModel;
    import javax.swing.DefaultCellEditor;
    import javax.swing.table.TableCellRenderer;
    import javax.swing.table.DefaultTableCellRenderer;
    public class EditableHeaderTableExample2 extends JFrame {
    public static void main(String[] args) {
    EditableHeaderTableExample2 frame = new EditableHeaderTableExample2();
    frame.setSize(400,300);
         frame.setLocation(100,100);
         frame.setVisible(true);
    public EditableHeaderTableExample2(){
    JTable table = new JTable(10,10);
    TableColumnModel columnModel = table.getColumnModel();
    table.setTableHeader(new EditableHeader(columnModel));
    String[] items = {"Dog","Cat"};
    JComboBox combo = new JComboBox();
    for (int i=0;i<items.length;i++) {
    combo.addItem(items);
    MyComboRenderer renderer = new MyComboRenderer(items);
    EditableHeaderTableColumn col;
    // column 1
    col = (EditableHeaderTableColumn)table.getColumnModel().getColumn(1);
    col.setHeaderValue(combo.getItemAt(0));
    col.setHeaderRenderer(renderer);
    col.setHeaderEditor(new DefaultCellEditor(combo));
    // column 3
    col = (EditableHeaderTableColumn)table.getColumnModel().getColumn(3);
    col.setHeaderValue(combo.getItemAt(0));
    //col.setHeaderRenderer(renderer);
    col.setHeaderEditor(new DefaultCellEditor(combo));
    JScrollPane pane = new JScrollPane(table);
    getContentPane().add(pane);
    class MyComboRenderer extends JComboBox implements TableCellRenderer
    MyComboRenderer(String[] items) {
    for (int i=0;i<items.length;i++) {
    addItem(items[i]);
    public TableCellRenderer getTableCellRendererComponent(
    JTable table, Object value,
    boolean isSelected, boolean hasFocus,
    int row, int column) {
    setSelectedItem(value);
    return this;

    This is not a suggestion, it's a requirement. When you say
    class MyComboRenderer extends JComboBox implements TableCellRendererthe "implements TableCellRenderer" part is a promise that your class will include a method whose signature is
        Component getTableCellRendererComponent(JTable table, Object value,
                                 boolean isSelected, boolean hasFocus,
                                 int row, int column);

  • "Class can't be instantiated " error message. Help !

    Dear Java People,
    In trying to do a program that outputs a sound with every button click
    I have no compilation errors but a runtime error that says:
    "class can't be instantiated"
    below is the program and below that the error message
    thank you in advance
    Norman
    import java.util.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.applet.*;
    import java.awt.event.*;
    import java.net.*;
    public abstract class MyMusicApplet_1 extends JApplet implements ActionListener, AppletContext
         //AppletContext myAppletContext =   new AppletContext();
         //Iterator i =   myAppletContext.getStreamKeys();
         JButton myJButton;
         AudioClip acSound_1;
         AudioClip acSound_2;
         AudioClip acSound_3;
         AudioClip acSound_4;
         AudioClip acSound_5;
         AudioClip acSound_6;
         AudioClip acSound_7;
         AudioClip acSound_8;
         AudioClip acSound_9;
         JButton myJButtonSound1;
         JButton myJButtonSound2;
         JButton myJButtonSound3;
         JButton myJButtonSound4;
         JButton myJButtonSound5;
         JButton myJButtonSound6;
         JButton myJButtonSound7;
         JButton myJButtonSound8;
         JButton myJButtonSound9;
      public void init()
            try
             acSound_1 = getAudioClip(new URL ("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk"));
             acSound_2 = getAudioClip(new URL ("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk"));
             acSound_3 = getAudioClip(new URL ("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk"));
             acSound_4 = getAudioClip(new URL ("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk"));
             acSound_5 = getAudioClip(new URL ("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk"));
             acSound_6 = getAudioClip(new URL ("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk"));
             acSound_7 = getAudioClip(new URL ("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk"));
             acSound_8 = getAudioClip(new URL ("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk"));
             acSound_9 = getAudioClip(new URL ("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore.wrk"));
             catch (MalformedURLException e)
               System.out.println("Error here " );
           Container myContentPane = getContentPane();
           myContentPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
            Dimension buttonSize = new Dimension(190,100);
           Font myFont = new Font("Arial", Font.BOLD,14);
           Border myEdge = BorderFactory.createRaisedBevelBorder();
                    //create 1st button's object
                     myJButtonSound1 = new JButton("sound #1");
                    myJButtonSound1.addActionListener(this);
                   //set the button's border and size, font background and foreground
                   myJButtonSound1.setBorder(myEdge);
                   myJButtonSound1.setPreferredSize(buttonSize);
                   myJButtonSound1.setFont(myFont);
                   myJButtonSound1.setBackground(Color.orange);
                   myJButtonSound1.setForeground(Color.black);
                    //create 2nd button's object
                     myJButtonSound2 = new JButton("sound #2");
                    myJButtonSound2.addActionListener(this);
                   //set the button's border and size, font, background and foreground
                   myJButtonSound2.setBorder(myEdge);
                   myJButtonSound2.setPreferredSize(buttonSize);
                   myJButtonSound2.setFont(myFont);
                   myJButtonSound2.setBackground(Color.blue);
                   myJButtonSound2.setForeground(Color.black);
                    //create 3rd button's object
                     myJButtonSound3 = new JButton("sound #3");
                    myJButtonSound1.addActionListener(this);
                   //set the button's border and size, font, background and foreground
                   myJButtonSound3.setBorder(myEdge);
                   myJButtonSound3.setPreferredSize(buttonSize);
                   myJButtonSound3.setFont(myFont);
                   myJButtonSound3.setBackground(Color.cyan);
                   myJButtonSound3.setForeground(Color.black);
                    //create 4th button's object
                     myJButtonSound4 = new JButton("sound #4");
                    myJButtonSound4.addActionListener(this);
                   //set the button's border and size, font background and foreground
                   myJButtonSound4.setBorder(myEdge);
                   myJButtonSound4.setPreferredSize(buttonSize);
                   myJButtonSound4.setFont(myFont);
                   myJButtonSound4.setBackground(Color.pink);
                   myJButtonSound4.setForeground(Color.black);
                   //create 5th button's object
                   myJButtonSound5 = new JButton("sound #5");
                  myJButtonSound5.addActionListener(this);
                 //set the button's border and size, font background and foreground
                 myJButtonSound5.setBorder(myEdge);
                 myJButtonSound5.setPreferredSize(buttonSize);
                 myJButtonSound5.setFont(myFont);
                 myJButtonSound5.setBackground(Color.red);
                 myJButtonSound5.setForeground(Color.black);
                  //create 6th button's object
                   myJButtonSound6 = new JButton("sound #6");
                  myJButtonSound6.addActionListener(this);
                 //set the button's border and size, font, background and foreground
                 myJButtonSound6.setBorder(myEdge);
                 myJButtonSound6.setPreferredSize(buttonSize);
                 myJButtonSound6.setFont(myFont);
                 myJButtonSound6.setBackground(Color.pink);
                 myJButtonSound6.setForeground(Color.black);
                  //create 7th button's object
                   myJButtonSound7 = new JButton("Choice #7");
                  myJButtonSound7.addActionListener(this);
                 //set the button's border and size, font, background and foreground
                 myJButtonSound7.setBorder(myEdge);
                 myJButtonSound7.setPreferredSize(buttonSize);
                 myJButtonSound7.setFont(myFont);
                 myJButtonSound7.setBackground(Color.cyan);
                 myJButtonSound7.setForeground(Color.black);
                  //create 8th button's object
                   myJButtonSound8 = new JButton("Choice #8");
                  myJButtonSound8.addActionListener(this);
                 //set the button's border and size, font background and foreground
                 myJButtonSound8.setBorder(myEdge);
                 myJButtonSound8.setPreferredSize(buttonSize);
                 myJButtonSound8.setFont(myFont);
                 myJButtonSound8.setBackground(Color.yellow);
                 myJButtonSound8.setForeground(Color.black);
                  //create 9th button's object
                   myJButtonSound9 = new JButton("Choice #9");
                  myJButtonSound9.addActionListener(this);
                 //set the button's border and size, font background and foreground
                 myJButtonSound9.setBorder(myEdge);
                 myJButtonSound9.setPreferredSize(buttonSize);
                 myJButtonSound9.setFont(myFont);
                 myJButtonSound9.setBackground(Color.blue);
                 myJButtonSound9.setForeground(Color.black);
                   //add the buttons to the content pane
                   myContentPane.add(myJButtonSound1);
                   myContentPane.add(myJButtonSound2);
                   myContentPane.add(myJButtonSound3);
                   myContentPane.add(myJButtonSound4);
                   myContentPane.add(myJButtonSound5);
                   myContentPane.add(myJButtonSound6);
                   myContentPane.add(myJButtonSound7);
                   myContentPane.add(myJButtonSound8);
                   myContentPane.add(myJButtonSound9);
          public void actionPerformed(ActionEvent e)
             myJButton = (JButton)e.getSource();
            if(myJButton == myJButtonSound1)
              acSound_1.play();
            if(myJButton == myJButtonSound2)
              acSound_2.play();
            if(myJButton == myJButtonSound3)
              acSound_3.play();
            if(myJButton == myJButtonSound4)
              acSound_4.play();
            if(myJButton == myJButtonSound5)
              acSound_5.play();
             if(myJButton == myJButtonSound6)
               acSound_6.play();
                       if(myJButton == myJButtonSound7)
                         acSound_7.play();
                       if(myJButton == myJButtonSound8)
                         acSound_8.play();
                        if(myJButton == myJButtonSound9)
                          acSound_9.play();
    java.lang.InstantiationException
         at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    load: stan_my_music_applet_1.MyMusicApplet_1.class can't be instantiated.
         at java.lang.Class.newInstance0(Class.java:306)
         at java.lang.Class.newInstance(Class.java:259)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:566)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:495)
         at sun.applet.AppletPanel.run(AppletPanel.java:292)
         at java.lang.Thread.run(Thread.java:536)

    I also tried:
    try
    for(int a=0;a<8;a++)
    {acSounds[a] = getAudioClip(getCodeBase(),(new URL ("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore" + (i + 1) + ".wrk")));
    and the error message still says:
    "MyMusicApplet3.java": Error #: 300 : method getAudioClip(java.net.URL, java.net.URL) not found in class stan_my_music_applet_3.MyMusicApplet3 at line 19
    Help !
    below is the revised code
    Norman
    import java.util.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.applet.*;
    import java.awt.event.*;
    import java.net.*;
    public class MyMusicApplet3 extends JApplet implements ActionListener
      AudioClip[] acSounds= new AudioClip[9];
      public void init()
       try
            for(int a=0;a<8;a++)
            {acSounds[a] = getAudioClip(getCodeBase(),(new URL ("c:/Program Files/Cakewalk/Cakewalk Pro Audio 9/seashore" + (a + 1) + ".wrk")));
      catch (Exception e)
        System.out.println("Error here " );
            Container myContentPane = getContentPane();
            myContentPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
            myContentPane.add(getButton("1", Color.orange));
            myContentPane.add(getButton("2", Color.blue));
            myContentPane.add(getButton("3", Color.cyan));
            myContentPane.add(getButton("4", Color.pink));
            myContentPane.add(getButton("5", Color.red));
            myContentPane.add(getButton("6", Color.pink));
            myContentPane.add(getButton("7", Color.cyan));
            myContentPane.add(getButton("8", Color.yellow));
            myContentPane.add(getButton("9", Color.blue));
        public void actionPerformed(ActionEvent e)
           String command = e.getActionCommand();
           int index = Integer.parseInt(command)-1;
           acSounds[index].play();
       public JButton getButton(String label, Color fore)
         {          JButton button = new JButton("sound "+label);
                    button.setPreferredSize(new Dimension(190,100));
                    button.setFont(new Font("Arial", Font.BOLD,14));
                    button.setBorder(BorderFactory.createRaisedBevelBorder());
                    button.setForeground(fore);
                    button.setBackground(Color.orange);
                    button.addActionListener(this);
                    button.setActionCommand(label);
                    return button;
          }//"MyMusicApplet3.java": Error #: 300 :
    //method getAudioClip(java.net.URL, java.net.URL) not found in class
    // stan_my_music_applet_3.MyMusicApplet3 at line 19, column 24

  • Can not start WLS as oracle user

    I am not able to start the WLS (10.3.2) as the oracle user.
    I am able to start it as the root user but i don't have root access so i always have to ask our admin to stop and start the server...
    What do i need to do to be able to start and stop the WLS with the oracle user?
    Their are 2 errors i get... When i started the server as root and i need to restart it and i try it with the oracle user i get this:
    <May 27, 2010 12:23:14 PM CEST> <Notice> <Log Management> <BEA-170019> <The server log file /oracle/product/wls10320/user_projects/domains/webcenter_domain/servers/AdminServer/logs/AdminServer.log is opened. All server side log events will be written to this file.>
    Error creating logFile: /oracle/product/wls10320/user_projects/domains/webcenter_domain/servers/AdminServer/data/ldap/log/EmbeddedLDAP.log (Permission denied)
    <May 27, 2010 12:23:19 PM CEST> <Error> <EmbeddedLDAP> <BEA-000000> <Error opening the Transaction Log: /oracle/product/wls10320/user_projects/domains/webcenter_domain/servers/AdminServer/data/ldap/ldapfiles/EmbeddedLDAP.tran (Permission denied)>
    <May 27, 2010 12:23:19 PM CEST> <Error> <EmbeddedLDAP> <BEA-000000> <Error Instantiating 'dc=webcenter_domain': null>
    <May 27, 2010 12:23:19 PM CEST> <Critical> <EmbeddedLDAP> <BEA-171522> <An error occurred while initializing the Embedded LDAP Server. The exception thrown is java.lang.ClassCastException: com.octetstring.vde.backend.BackendRoot. This may indicate a problem with the data files for the Embedded LDAP Server. If the problem is with the data files and it can not be corrected, backups of previous versions of the data files exist in /oracle/product/wls10320/user_projects/domains/webcenter_domain/servers/AdminServer/data/ldap/backup.>
    <May 27, 2010 12:23:19 PM CEST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
    There are 1 nested errors:
    java.lang.ClassCastException: com.octetstring.vde.backend.BackendRoot
            at weblogic.ldap.EmbeddedLDAP.start(EmbeddedLDAP.java:273)
            at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)I can do a chmod for the files so i don't get the permission denied error but than when i try to start the server from my oracle user i get an error which i currently can not get because of the permission denied and no root access...
    I know the error says something about bootstrap or something which i thought to be something to do with a password... But when i run the same startup with root user i do not get this error...
    So what do i need to do so i can start the WLS without having to login as the root?
    Edited by: Yannick.O on 27-May-2010 03:38

    Hi,
    Could you first check if you have read/write/create permissions on the folder:
    /oracle/product/wls10320/user_projects/domains/webcenter_domain/servers/AdminServer/data/ldap/ldapfiles/EmbeddedLDAP.tran
    If yes could you try deleting the the ldap folder from "yourdomain/servername/ldap" and then restart the server.
    regards,
    Zeno

  • Flex 4 - Can not get ADG working

    Hello,
    I have just downloaded flex 4 SDK (flex_sdk_4.0.0.14159_mpl) and Flash Builder 4.
    I have created a test prroject and can not get it working with Advanced Data Grids.
    Here is my set up:  Created Project called Test, this contains one MXML file that contains an Advanced Data Grid:
    <fx:Script>
            <![CDATA[
                import mx.collections.HierarchicalData;
                [Bindable] private var _test:HierarchicalData;
            ]]>
    </fx:Script>
    <mx:AdvancedDataGrid id="test" dataProvider="{_test}">
       <mx:columns>
           <mx:AdvancedDataGridColumn headerText="COL_A" />               
           <mx:AdvancedDataGridColumn headerText="COL_B" />               
           <mx:AdvancedDataGridColumn headerText="COL_C" />               
        </mx:columns>
    </mx:AdvancedDataGrid>
    This works Okay.  I then include a libary into the project, the libary, also built with the same SDK, contains a class that contains nothing but one single method that does nothing:
    <mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx"
               width="100%" height="100%">
        <fx:Script>
            <![CDATA[
                import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn;
                private function test(col:AdvancedDataGridColumn):void { }
            ]]>
        </fx:Script>
    </mx:Canvas>
    Launcing now causes the error
    TypeError: Error #1007: Instantiation attempted on a non-constructor.
        at mx.controls::AdvancedDataGridBaseEx/getSeparator()[E:\dev\4.0.0\frameworks\projects\datav isualization\src\mx\controls\AdvancedDataGridBaseEx.as:4618]
        at mx.controls::AdvancedDataGridBaseEx/createHeaderSeparators()[E:\dev\4.0.0\frameworks\proj ects\datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:4660]
        at mx.controls::AdvancedDataGrid/createHeaderSeparators()[E:\dev\4.0.0\frameworks\projects\d atavisualization\src\mx\controls\AdvancedDataGrid.as:2428]
        at mx.controls::AdvancedDataGridBaseEx/drawSeparators()[E:\dev\4.0.0\frameworks\projects\dat avisualization\src\mx\controls\AdvancedDataGridBaseEx.as:4574]
        at mx.controls::AdvancedDataGridBaseEx/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\ datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:2119]
        at mx.controls::AdvancedDataGrid/updateDisplayList()[E:\dev\4.0.0\frameworks\projects\datavi sualization\src\mx\controls\AdvancedDataGrid.as:2899]
        at mx.controls.listClasses::AdvancedListBase/validateDisplayList()[E:\dev\4.0.0\frameworks\p rojects\datavisualization\src\mx\controls\listClasses\AdvancedListBase.as:3468]
        at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.0.0\frameworks\projects\framewo rk\src\mx\managers\LayoutManager.as:663]
        at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:718]
        at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]
    Removing the method in the libary project alivates the problem.  But I can not see why this is a problem in the first place!!??!?!?!?!?!?!?
    Can anyone help. this is really weird.

    I'm getting the same error. This is due to a bug in AdvancedDataGridBaseEx.  The offending code is:
                var headerSeparatorClass:Class =
                    getStyle("headerSeparatorSkin");
                sepSkin = new headerSeparatorClass();
    if getStyle returns null then you will be trying to instantiate  headerSeparatorClass is going to cause the "Instantiation attempted on a non-constructor" error.
    Apparently someone thought that the headerSeparatorSkin would never be null.

  • I changed the Computer Name and i can not run EM.

    I had to change the computer name in order to connect to the intranet.
    I updated the listener.ora and tnsnames.ora with the new computer name.
    I can run SqlPlus but i can not run EM on http://tahirpc.isu.intranet:1158/em *
    I checked Services and I saw that OracleDBConsoleorcl service do not work. I get error code:2 when i try to run it manually.
    What should i do?
    New computer name: tahirpc.isu.intranet
    Old computer name: mtkeskin.isu.intranet
    OS: Win 7
    Oracle: 10.2.3
    ------------------------

    Thank you Jean-Valentin . I tried those but unfortunately this did not work.
    Here is what i did on CMD:
    RECREATE
    C:\Users\mtkeskin>EMCA -CONFIG DBCONTROL DB -REPOS RECREATE
    STARTED EMCA at 28.Oca.2010 11:28:43
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Enter the following information:
    Database SID: ORCL
    Listener port number: 1521
    Password for SYS user:
    Password for DBSNMP user: l
    Password for SYSMAN user:
    Password for SYSMAN user: Email address for notifications (optional):
    Outgoing Mail (SMTP) server for notifications (optional):
    You have specified the following settings
    Database ORACLE_HOME ................ D:\oracle\product\10.2.0\db_1
    Database hostname ................ tahirpc.isu.intranet
    Listener port number ................ 1521
    Database SID ................ ORCL
    Email address for notifications ...............
    Outgoing Mail (SMTP) server for notifications ...............
    Do you wish to continue? [yes(Y)/no(N)]: Y
    28.Oca.2010 11:29:07 oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at D:\oracle\product\10.2.0\db_1\cfgtoollog
    s\emca\orcl\emca_2010-01-28_11-28-42-AM.log.
    28.Oca.2010 11:29:24 oracle.sysman.emcp.EMReposConfig dropRepository
    INFO: Dropping the EM repository (this may take a while) ...
    28.Oca.2010 11:32:09 oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully dropped
    28.Oca.2010 11:32:10 oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    28.Oca.2010 11:37:14 oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    28.Oca.2010 11:37:34 oracle.sysman.emcp.util.PlatformInterface executeCommand
    WARNING: Error executing CMD /C D:\oracle\product\10.2.0\db_1\bin\emctl.bat depl
    oy dbconsole D:\oracle\product\10.2.0\db_1\tahirpc.isu.intranet_ORCL tahirpc.isu
    .intranet:3938 tahirpc.isu.intranet ORCL
    28.Oca.2010 11:37:34 oracle.sysman.emcp.EMConfig perform
    SEVERE: Error instantiating EM configuration files
    Refer to the log file at D:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\orcl\emc
    a_2010-01-28_11-28-42-AM.log for more details.
    Could not complete the configuration. Refer to the log file at D:\oracle\product
    \10.2.0\db_1\cfgtoollogs\emca\orcl\emca_2010-01-28_11-28-42-AM.log for more deta
    ils.
    DROP
    C:\Users\mtkeskin>EMCA -DECONFIG DBCONTROL DB -REPOS DROP
    STARTED EMCA at 28.Oca.2010 11:47:57
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Enter the following information:
    Database SID: ORCL
    Listener port number: 1521
    Password for SYS user:
    Password for SYSMAN user:
    Password for SYSMAN user:
    Do you wish to continue? [yes(Y)/no(N)]: Y
    28.Oca.2010 11:48:13 oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at D:\oracle\product\10.2.0\db_1\cfgtoollog
    s\emca\orcl\emca_2010-01-28_11-47-56-AM.log.
    28.Oca.2010 11:48:17 oracle.sysman.emcp.util.DBControlUtil stopOMS
    INFO: Stopping Database Control (this may take a while) ...
    28.Oca.2010 11:48:18 oracle.sysman.emcp.EMReposConfig dropRepository
    INFO: Dropping the EM repository (this may take a while) ...
    28.Oca.2010 11:50:35 oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully dropped
    Enterprise Manager configuration completed successfully
    FINISHED EMCA at 28.Oca.2010 11:50:35
    CREATE
    C:\Users\mtkeskin>EMCA -CONFIG DBCONTROL DB -REPOS CREATE
    STARTED EMCA at 28.Oca.2010 11:54:55
    EM Configuration Assistant, Version 10.2.0.1.0 Production
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Enter the following information:
    Database SID: ORCL
    Listener port number: 1521
    Password for SYS user:
    Password for DBSNMP user:
    Password for SYSMAN user:
    Email address for notifications (optional):
    Outgoing Mail (SMTP) server for notifications (optional):
    You have specified the following settings
    Database ORACLE_HOME ................ D:\oracle\product\10.2.0\db_1
    Database hostname ................ tahirpc.isu.intranet
    Listener port number ................ 1521
    Database SID ................ ORCL
    Email address for notifications ...............
    Outgoing Mail (SMTP) server for notifications ...............
    Do you wish to continue? [yes(Y)/no(N)]: Y
    28.Oca.2010 11:55:19 oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at D:\oracle\product\10.2.0\db_1\cfgtoollog
    s\emca\orcl\emca_2010-01-28_11-54-55-AM.log.
    28.Oca.2010 11:55:32 oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    28.Oca.2010 12:00:13 oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    28.Oca.2010 12:00:27 oracle.sysman.emcp.util.PlatformInterface executeCommand
    WARNING: Error executing CMD /C D:\oracle\product\10.2.0\db_1\bin\emctl.bat depl
    oy dbconsole D:\oracle\product\10.2.0\db_1\tahirpc.isu.intranet_ORCL tahirpc.isu
    .intranet:3938 tahirpc.isu.intranet ORCL
    28.Oca.2010 12:00:27 oracle.sysman.emcp.EMConfig perform
    SEVERE: Error instantiating EM configuration files
    Refer to the log file at D:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\orcl\emc
    a_2010-01-28_11-54-55-AM.log for more details.
    Could not complete the configuration. Refer to the log file at D:\oracle\product
    \10.2.0\db_1\cfgtoollogs\emca\orcl\emca_2010-01-28_11-54-55-AM.log for more deta
    ils.
    I checked log files but i did not understand anything of 'em :(
    Edited by: NaKKaSh.TR on 28.Oca.2010 12:12
    Edited by: NaKKaSh.TR on 28.Oca.2010 12:14

  • Class Not Found instantiating IP

    [Portal 4.0 on WLS 6.1 on Win2K... ]
    I'm getting 'Class Not Found' when instantiating my IP class. The only way I can
    work around it is to put "WEB-INF/classes" in the startup classpath, which makes
    it not re-deployable.
    I've read newsgroups/docs extensively and believe that:
    * IPs (as opposed to PCs) are scoped to the web app, not to the enterprise app
    * For web apps, the WEB-INF/classes (for exploded files) and WEB-INF/lib (for
    Jar'd files) should be 'auto-included' in the classpath, hence the classloader
    that portal is using for IP instantiation should find my class...
    But that's not what's happening... so where is my understanding faulty and, more
    importantly, how can I make portal find my IP class and still have it be hot redeployable?
    Thanks in advance,
    Mike

    Hi,
    We actually use a third approach, which is: package your pipeline components
    with a dummy EJB into a separate JAR (unless you programmed the actual EJBs
    which you want to package with your PCs) and deploy as a separate component
    to your enterprise app.
    We include pipeline.jar and p13n_util.jar into the classpath in the ANT
    script only. WLP starts without these jars in the class path with no
    problems.
    Just for a reference: we use WLS 6.1 sp2, WLP 4.0 sp2.
    Best regards,
    Michael Goldverg
    "Peter Laird" <[email protected]> wrote in message
    news:3db4de07$[email protected]..
    >
    Mike,
    "The set-environment.bat had been modified to include the WEB-INF/classesunder
    the 'sandbox dir' in the classpath. I'm confident removing theseclasspath elements
    is the right thing to do; I no longer get the 'class ... can not bedeployed'
    messages, which was my original problem."
    Yes, putting anything in the enterprise application or the web applicationin
    the system classpath is not a good idea.
    "So, the (very cool & useful) diag tool"
    Glad you like it! I wrote that a year ago, and it has helped me onnumerous occasions.
    Whenever you have a classloader problem, this thing works magic.
    " 'You need to either put your PC in pipeline.jar or reference your ownJAR from
    the pipeline.jar's classpath entry in its manifest.' I'm not sure Iunderstand
    this. Are we really expected to modify BEA supplied JAR files?"
    Regretably, yes. There have been several ideas on a better solution, butit hasn't
    found its way into the product yet. Until that happens, the secondapproach (changing
    the manifest classpath entry) is the preferred approach.
    "Thank you *very* much for your help!"
    I'm happy to help!
    PJL

  • Could not open the editor: The editor class could not be instantiated.

    Yesterday FlashBuilder was automatically updated for Adobe updater and now Flashbuilder shows an error: "Could not open the editor: The editor class could not be instantiated. This usually indicates a missing no-arg constructor or that the editor's class name was mistyped in plugin.xml."
    Bellow some lines of log error:
    java.lang.NoClassDefFoundError: com/adobe/flexbuilder/codemodel/common/IMXMLConstants
    at com.adobe.flexbuilder.mxml.editor.MXMLEditor.<init>(MXMLEditor.java:120)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java: 39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm pl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(Re gistryStrategyOSGI.java:170)
    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionR egistry.java:874)
    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(Configu rationElement.java:243)
    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(C onfigurationElementHandle.java:51)
    at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:259)
    What is wrong!!!
    I can't work without him!!!

    Just had this problem occur as well.
    All the workspaces seem to now have the Flash Player Icons on the menu. They were not there before.
    If I create a new workspace, it seems to work fine until I switch to any existing workspace and then the new workspace is also affected.
    I can import a project from the other workspaces, into a new workspace and that works as well.
    My only mental history is that all was well. Then I spent some time writing a project in CS4 for a day without any need for Flex Builder. Then when I returned to FLex Builder the last opened project would not run and although I can get to the new project screen, the next and Finish button although enabled fail silently.
    Eclipse Galieo, Flash 4 Builder Plugin.
    Not sure what path to take. Remove Flex Builder plugin? Exclipse? Certain files or hidden folders?
    Any suggestions where to explore would be nice.

  • I can not publish and query services in Registry Server?Help please!

    I want to use Registry Server in Jwsdp1.5 to publish and query services,but there is some problems:
    2006-4-26 10:05:26 com.sun.registry_server.server.RegistryServerServlet init
    ����: NamingException: javax.naming.NameNotFoundException: Name org.xml.sax.driver is not bound in this Context
    2006-4-26 10:05:27 com.sun.xml.messaging.saaj.soap.MessageImpl identifyContentType
    ����: SAAJ0537: ������������������������������������ SOAP ����
    2006-4-26 10:05:27 com.sun.xml.messaging.saaj.soap.MessageImpl <init>
    ����: SAAJ0535: ��������������
    javax.xml.registry.JAXRException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
         at com.sun.xml.registry.uddi.RegistryServiceImpl.jaxmSend(Unknown Source)
         at com.sun.xml.registry.uddi.RegistryServiceImpl.send(Unknown Source)
         at com.sun.xml.registry.uddi.Processor.processRequestJAXB(Unknown Source)
         at com.sun.xml.registry.uddi.UDDIMapper.findOrganizations(Unknown Source)
         at com.sun.xml.registry.uddi.BusinessQueryManagerImpl.findOrganizations(Unknown Source)
         at QueryByName.doPost(QueryByName.java:63)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:790)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:709)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:572)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
         at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:127)
         ... 34 more
    Caused by: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:121)
         ... 34 more
    Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
         at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:231)
         at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>(Message1_1Impl.java:43)
         at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.createMessage(SOAPMessageFactory1_1Impl.java:32)
         at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:354)
         at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:150)
         ... 36 more
    Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?
         at com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(MessageImpl.java:295)
         at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:146)
         ... 40 more
    can you help me?expectiong your advise!thank you

    I have created my own private registry, I hava installed JWSDP1.5.
    I use a .jsp file and a servlet to publish services,the servlet is:
    import javax.xml.registry.*;
    import javax.xml.registry.infomodel.*;
    import java.net.*;
    import java.security.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    public class Publish extends HttpServlet{
         public void doGet(HttpServletRequest request,HttpServletResponse response)
         throws ServletException,IOException{
              doPost(request,response);
         public void doPost(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException{
         String userName=request.getParameter("username");
         String authPassword=request.getParameter("password");
         Connection connection = null;
    RegistryService rs=null;
    BusinessLifeCycleManager blcm=null;
    BusinessQueryManager bqm = null;
         Properties props=new Properties();
    props.setProperty("javax.xml.registry.queryManagerURL","http://localhost:8080/RegistryServer");
    props.setProperty("javax.xml.registry.lifeCycleManagerURL","http://localhost:8080/RegistryServer");
    props.setProperty("javax.xml.registry.factoryClass","com.sun.xml.registry.uddi.ConnectionFactoryImpl");
    //props.setProperty("com.sun.xml.registry.http.proxyHost",httpHost);
    //props.setProperty("com.sun.xml.registry.http.proxyPort",httpPort);
    // props.setProperty("com.sun.xml.registry.https.proxyHost",httpsHost);
    // props.setProperty("com.sun.xml.registry.https.proxyPort",httpsPort);
    try{
    // Create the connection, passing it the
    // configuration properties
    ConnectionFactory factory =
    ConnectionFactory.newInstance();
    factory.setProperties(props);
    connection=factory.createConnection();
    PrintWriter out=response.getWriter();
    out.println("<a href=\"/publishapp/publish.jsp\">You can click here to be Back </a>");
    out.println("<H3>Created connection to registry</H3>");
    rs=connection.getRegistryService();
    blcm = rs.getBusinessLifeCycleManager();
    bqm = rs.getBusinessQueryManager();
    //out.println("Got registry service, query " +"manager, and life cycle manager");
    // Get authorization from the registry
    PasswordAuthentication passwdAuth =
    new PasswordAuthentication(userName,authPassword.toCharArray());
    Set creds = new HashSet();
    creds.add(passwdAuth);
    connection.setCredentials(creds);
    out.println("<br>");
    out.println("<H3>Established security credentials</H3>");
    //receive organization name and description
    String orgName=request.getParameter("orgname");
    String orgDescription=request.getParameter("orgdescription");
    // Create organization name and description
    Organization org =
    blcm.createOrganization(orgName);
    InternationalString s =
    blcm.createInternationalString(orgDescription);
    org.setDescription(s);
    //receive contactor name phone and Email
    String contactName=request.getParameter("contactname");
    String contactPhone=request.getParameter("contactphone");
    String contactEmail=request.getParameter("contactemail");
    // Create primary contact, set name
    User primaryContact = blcm.createUser();
    PersonName pName =
    blcm.createPersonName(contactName);
    primaryContact.setPersonName(pName);
    // Set primary contact phone number
    TelephoneNumber tNum = blcm.createTelephoneNumber();
    tNum.setNumber(contactPhone);
    Collection phoneNums = new ArrayList();
    phoneNums.add(tNum);
    primaryContact.setTelephoneNumbers(phoneNums);
    // Set primary contact email address
    EmailAddress emailAddress =blcm.createEmailAddress(contactEmail);
    Collection emailAddresses = new ArrayList();
    emailAddresses.add(emailAddress);
    primaryContact.setEmailAddresses(emailAddresses);
    // Set primary contact for organization
    org.setPrimaryContact(primaryContact);
    String serviceName=request.getParameter("servicename");
    String serviceDescription=request.getParameter("servicedescription");
    String serviceURL=request.getParameter("serviceurl");
    String svcbindDescription=request.getParameter("svcbinddescription");
    // Create services and service
    Collection services = new ArrayList();
    Service service =
    blcm.createService(serviceName);
    InternationalString is =
    blcm.createInternationalString(serviceDescription);
    service.setDescription(is);
    // Create service bindings
    Collection serviceBindings = new ArrayList();
    ServiceBinding binding = blcm.createServiceBinding();
    is = blcm.createInternationalString(svcbindDescription);
    binding.setDescription(is);
    // allow us to publish a fictitious URL without an error
    binding.setValidateURI(false);
    binding.setAccessURI(serviceURL);
    serviceBindings.add(binding);
    // Add service bindings to service
    service.addServiceBindings(serviceBindings);
    // Add service to services, then add services to organization
    services.add(service);
    org.addServices(services);
    //receive Classification scheme name and value
    String classificationScheme=request.getParameter("classificationscheme");
    String classificationName=request.getParameter("classificationname");
    String classificationValue=request.getParameter("classificationvalue");
    // Set classification scheme to NAICS
    ClassificationScheme cScheme =
    bqm.findClassificationSchemeByName(null, classificationScheme);
    // Create and add classification
    Classification classification = blcm.createClassification(cScheme,
    classificationName,classificationValue);
    Collection classifications = new ArrayList();
    classifications.add(classification);
    org.addClassifications(classifications);
    // Add organization and submit to registry
    // Retrieve key if successful
    Collection orgs = new ArrayList();
    orgs.add(org);
    BulkResponse response1 = blcm.saveOrganizations(orgs);
    Collection exceptions = response1.getExceptions();
    if (exceptions == null) {
    out.println("<br>");
    out.println("<H3>Service Registering is Sucessful!</H3>");
    out.println("<br>");
    out.println("<H3>service information saved is</H3>");
    out.println("<H3>");
    out.println(orgName);
    out.println("</H3>");
    Collection keys = response1.getCollection();
    Iterator keyIter = keys.iterator();
    if (keyIter.hasNext()) {
    javax.xml.registry.infomodel.Key orgKey =
    (javax.xml.registry.infomodel.Key) keyIter.next();
    String id = orgKey.getId();
    out.println("<H3>service key is </H3>");
    out.println("<H3>");
    out.println(id);
    out.println("</H3>");
    } else {
    Iterator excIter = exceptions.iterator();
    Exception exception = null;
    while (excIter.hasNext()) {
    exception = (Exception) excIter.next();
    System.err.println("Exception on save: " +
    exception.toString());
    } catch (Exception e) {
    e.printStackTrace();}
    the exception in the tomcat50-jwsdp/logs:
    javax.xml.registry.JAXRException: javax.xml.bind.JAXBException
    - with linked exception:
    [javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provider com.sun.xml.messaging.saaj.soap.MessageImpl could not be instantiated: java.lang.IllegalAccessException: Class javax.xml.soap.FactoryFinder can not access a member of class com.sun.xml.messaging.saaj.soap.MessageImpl with modifiers "protected"]
         at com.sun.xml.registry.uddi.Processor.processRequestJAXB(Unknown Source)
         at com.sun.xml.registry.uddi.UDDIMapper.getAuthorizationToken(Unknown Source)
         at com.sun.xml.registry.uddi.ConnectionImpl.setCredentials(Unknown Source)
         at Publish.doPost(Publish.java:66)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:790)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:709)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:572)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.xml.bind.JAXBException
    - with linked exception:
    [javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provider com.sun.xml.messaging.saaj.soap.MessageImpl could not be instantiated: java.lang.IllegalAccessException: Class javax.xml.soap.FactoryFinder can not access a member of class com.sun.xml.messaging.saaj.soap.MessageImpl with modifiers "protected"]
         at com.sun.xml.registry.common.util.MarshallerUtil.jaxbMarshalObject(Unknown Source)
         ... 32 more
    expecting yours advise, thanks!!

Maybe you are looking for