JDK-4900768 : ActiveX bridge fails under IIS 5.0
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 1.4.2
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_2000,windows_xp
  • CPU: x86
  • Submitted: 2003-08-04
  • Updated: 2004-06-09
  • Resolved: 2003-10-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2_05 05Fixed
Related Reports
Relates :  
Relates :  
Description

Name: gm110360			Date: 08/04/2003


FULL PRODUCT VERSION :
java version "1.4.2-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b19)
Java HotSpot(TM) Client VM (build 1.4.2-beta-b19, mixed mode)


FULL OS VERSION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
I write a sample bean like this:

package samples;

public class SampleBean
{
	public String hello()
	{
		return "Hello, World!";
	}
}

and wrap it with ActiveX using packager.exe. Then I can call it from, for example, console javascript runner (cscript.exe), and everything is fine.

But when I try to call this bean from an ASP page (IIS 5.0), like this:

<%@ language=javascript %>
<%
var obj = Server.CreateObject("SampleBean.Bean");
%>
<%= obj.hello() %>

I get the following error:

Error Type:
Server object, ASP 0177 (0x80004005)
Unspecified error
/ejb.asp, line 3

Is there any way to call javabeans from asp pages? Maybe it is necessary to modify some security descriptors?

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Write and compile bean (see above)
2. Using packager.exe, create SampleBean.dll and register it.
3. Write an ASP page (see above)
4. Request this ASP page from IIS server

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
A page with "Hello, World!" phrase
ACTUAL -
Error Type:
Server object, ASP 0177 (0x80004005)
Unspecified error
/ejb.asp, line 3


ERROR MESSAGES/STACK TRACES THAT OCCUR :
Error Type:
Server object, ASP 0177 (0x80004005)
Unspecified error
/ejb.asp, line 3


REPRODUCIBILITY :
This bug can be reproduced always.
(Incident Review ID: 191393) 
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.4.2_05 generic tiger tiger-beta FIXED IN: 1.4.2_05 tiger tiger-beta INTEGRATED IN: 1.4.2_05 tiger tiger-b26 VERIFIED IN: 1.4.2_05
08-07-2004

EVALUATION ActiveX bridge is mainly to embed visual JavaBeans in the client side ActiveX applications. I recommend the customers to use Java Access bridge in the server side applications. More information on this available at http://java.sun.com/products/accessbridge ###@###.### 2003-09-19 I have specified the wrong product in my earlier evaluation. It should be J2EE CAS-COM bridge, product URL is http://developer.java.sun.com/developer/earlyAccess/j2eecas/download-com-bridge.html. However, I noticed that this product will not be supported any more. ###@###.### 2003-09-22 This will be fixed in tiger by supporting threading model Both for non-gui beans ###@###.### 2003-10-13 This fix is not complete and therefore new bug #5029105 is filed and it has been fixed in tiger-beta2. In order to use the JavaBean in IIS server, the classes accessed by the ActiveX world should support the following method implementations public int OnStartPage(Object 0) { return 0; } public int OnEndPage() { return 0; } ###@###.### 2004-04-29
29-04-2004