Hi,

I'm trying to migrate some legacy code to Angular and I'm having a problem 
embedding my project with a Java applet. Specifically, my app (which is 
CORBA) is trying to use the Java classloader to dynamically load classes at 
runtime, and since Angular never returns a 404 I'm getting the dreaded 
Incompatible magic value error when I run it using ng serve:

network: Cache entry not found [url: 
http://localhost:4200/com/sun/corba/se/impl/presentation/rmi/bcel/StubFactoryFactoryBCELImpl.class,
 
version: null]
java.lang.ClassFormatError: Incompatible magic value 1008821359 in class 
file com/sun/corba/se/impl/presentation/rmi/bcel/StubFactoryFactoryBCELImpl
at java.lang.ClassLoader.defineClass1(Native Method)

The value  itself, 1008821359, is the first 4 bytes of my Angular 
index.html file, which confirms Angular is serving up the page in response 
to the class URL. If I run this code on a proper server that returns 404s 
for bad paths then it all works fine. So my questions are:

1) is there any way with later versions of Angular to force a 404 for 
unrecognized paths?

2) does anyone know if there's something I can do to make the applet class 
loader bypass Angular altogether so that the classes get provided by the 
browser plugin?

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/d7ad66ac-15d4-4b0a-9a0d-97581978d8c2n%40googlegroups.com.

Reply via email to