United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4900768 : ActiveX bridge fails under IIS 5.0

Details
Type:
Bug
Submit Date:
2003-08-04
Status:
Closed
Updated Date:
2004-06-09
Project Name:
JDK
Resolved Date:
2003-10-29
Component:
deploy
OS:
windows_xp,windows_2000
Sub-Component:
plugin
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
1.4.2
Fixed Versions:
1.4.2_05 (05)

Related Reports
Backport:
Relates:
Relates:

Sub Tasks

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
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
                                     
2004-04-29
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


                                     
2004-07-08



Hardware and Software, Engineered to Work Together