JDK-4254085 : ActiveX - beans crash when called in Microsoft Excel
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1999-07-14
  • Updated: 2002-04-29
  • Resolved: 2002-04-29
Related Reports
Duplicate :  
Description

Name: wl91122			Date: 07/14/99


Beans wrapped into ActiveX controls via the OlePackager
work for JDK 1.1.x. For JDK 1.2 (using the built-in OlePackager),
the beans crash when called in Microsoft Excel!
Note: the JDK 1.2 beans use Java 2D to draw graphs.

Is this a known bug? And when will there be a first
bugfix release of JDK 1.2?

------------------------

(from earlier report -- inc # 43185:)

Hello!

I tried to convert a simple bean
(written with JDK 1.2rc2, 2d API) to an ActiveX
control (=> *.reg, *.tlb). I also use the
packager that comes with JDK 1.2.

EVerything seems to work fine (incl. showing the
bean in the BDK that is also started with 1.2),
til I try to import the object in Word/Power
Point/Excel. Sometimes, o (empty) box appears,
but always with an error message that the object
can't be inserted.

Here's the code of the beans starter class:
-------------------------
import java.io.Serializable;
import java.awt.*;
import java.util.Vector;
import javax.swing.*;
import fs.chart.*;

/**
 * Class to create some test charts.
 *
 * @author Martin Hilpert
 * @version 1998-11-21
 */
public class ChartTester extends Canvas implements Serializable {
	
	/**
	 */
	public static void main(String[] args) {
	    ChartTester instance = new ChartTester();
		instance.init();
	}//main()
	
    public void init() {
    	Vector myValues = new Vector();
    	myValues.addElement(new Point(1995,125));
        myValues.addElement(new Point(1996,107));
        myValues.addElement(new Point(1997,124));
        myValues.addElement(new Point(1998,151));
        myValues.addElement(new Point(1999,139));
        myValues.addElement(new Point(2000,179));
        myValues.addElement(new Point(2001,300));
        myValues.addElement(new Point(2002,257));
    	
    	LineChart lc = new LineChart(300,200);
        lc.setBackground(Color.white);
    	lc.setLineValues(myValues);
    	
    	JScrollPane sp = new JScrollPane(lc);
        sp.setBackground(Color.green); //todo

    	JFrame f = new JFrame("CHART test applet");
        f.setBounds(10,10,420,280);
        f.getContentPane().setLayout(new BorderLayout());
        f.getContentPane().add("Center",sp);
        f.show();
    }//init();
}
---------------------------

When I try to include an old bean (e.g. the
Juggler) I get the error that ..\JDK12rc2\bin\javai.dll
can't be found, which is true because I can't find
such a DLL in JDK 1.2.

Where JDK 1.2 support for beans + activeX?
The BDK is already 4 months old, the ActiveX bridge
also several months, still in version 1.0.

Is there a update to use ActiveXbeans with JDK 1.2?

Martin
(Review ID: 52557) 
======================================================================

Comments
EVALUATION The Active-X Bridge was removed in Java 1.4.0 based on a Java Steering Committee decision nearly 2 years ago. The decision was based on 2 things. Customer interest was marginal at best and Java Plug-in was no longer dependent on the bridge technology to operate. It was necessary to remove it to allow for code refactoring and reworking in 1.4.0. Since removing the bridge, many customers have expressed interest in it. We have filed an RFE (4616580) for this support in a future release. We are currently evaluating whether we have a significant business case to justify the 1-3 man-month engineering effort (more for supporting teams) in the Mantis/Tiger timeframe. NOTE: Mantis = Java 1.4.2 FCS Q2, 2003 Tiger = Java 1.5 FCS Q4, 2003 Support for the bridge in existing 1.3.x releases is limited to escalations and can be persued with our CTE team. This bug will be closed as a duplicate of 4616580. ###@###.### 2002-04-29
29-04-2002