Getting Bad Applet class name exception while opening applet.
Hi,
While opening an applet in my mac os x v10.6.8 machine i am getting "Bad Applet class name exception" which is working fine in mac os x v10.7.5.Java version in my mac is 1.6.0_43.Can anyone please help me to resolve this.
Apple barred Java from running on Macs in order to safeguard users by blocking Java 7 Update 11 and adding it to the banned list in XProtect.
This was the second time in two weeks that Apple had blocked Oracle's code from running on Macs. The threat was so serious that the U.S. Department of Homeland Security had recommended that all Java 7 users disable or uninstall the software until a patch was issued. This time Java is blocked through Apple's XProtect anti-malware feature.
Java has come under fire as the means by which hackers have been able to gain control of computers. In April 2012 more than 600,000 Macs were reported to have been infected with a Flashback Trojan horse that was being installed on people's computers with the help of Java exploits. Then in August Macs were again at risk due to a flaw in Java, this time around, there was good news for Mac users: Thanks to changes Apple has made, most of us were safe from the threat.
Unwilling to leave its customers open to potential threats Apple decided it's safer to block Java entirely.
In order to block older versions of Flash, Apple has updated its "Xprotect.plist" file so that any versions that come before the current one (version 11.6.602.171) cannot be used on a Mac. Users who have older versions of Flash installed will be greeted with an alert that says "Blocked plug-in," and Safari will prompt the user to update to a newer version.
Macs running OS X Snow Leopard and beyond are affected.
UPDATE for those running Lion or Mountain Lion:
Oracle on Friday February 1 released a new version reportedly addressing vulnerabilities seen with the last build.
Apple disabled Java 7 through the OS X XProtect anti-malware system, requiring users to have at least version "1.7.0_10-b19" installed on their Macs. The release dated February 1 carries the designation "1.7.0_13-b20," meeting Apple's requirements.
Oracle "strongly recommends" applying the CPU fixes as soon as possible, saying that the latest Critical Patch Update contains 50 new security fixes across all Jave SE products.
Update for Snow Leopard users:
Apple issued update 12 for Java for OS 10.6:
http://support.apple.com/kb/DL1573
Note: On systems that have not already installed Java for Mac OS X 10.6 update 9 or later, this update will configure web browsers to not automatically run Java applets. Java applets may be re-enabled by clicking the region labeled "Inactive plug-in" on a web page. If no applets have been run for an extended period of time, the Java web plug-in will deactivate.
If, after installing Java for OS X 2013-002 and the latest version of Java 7 from Oracle, you want to disable Java 7 and re-enable the Apple-provided Java SE 6 web plug-in and Web Start functionality, follow these steps:
http://support.apple.com/kb/HT5559?viewlocale=en_US
Further update:
Apple issued this Java related security update No. 13 on February 19:
http://support.apple.com/kb/HT5666
and Update No. 14 on March 4: http://support.apple.com/kb/DL1573
http://support.apple.com/kb/HT5677
You should also read this:
https://support.apple.com/kb/HT5672
The standard recommendation is for users to turn off Java except when they have to use it on known and trusted websites (like their bank). Javascript, which is unrelated despite the name, can be left on.
Further useful comment in this article:
http://www.macworld.co.uk/macsoftware/news/?newsid=3435007&olo=email
Similar Messages
-
Hi,
I am trying to record automation functional test script on Oracle Forms 11g using OpenScript.
Able to open the browser, but after accessing application URL, getting application error as "Bad Applet class name"
Java Plug-in 10.17.2.02
Using JRE version 1.7.0_17-b02 Java HotSpot(TM) Client VM
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
SSV dialog is suppressed........
cracked oracle.forms.engine.Main
Loading cached Forms Jars ...
Is this version (Oracle forms 11g, JRE 1.7.0_17) supported by OATS-OpenScript ?
Please advise if there is any work around here.
Thanks.From the last OATS release notes available in the C:\OracleATS\docs directory:
4.1 Oracle Functional Testing/OpenScript
Oracle Functional Testing’s OpenScript scripting platform has the following system
requirements:
■ Operating System (32-bit and 64-bit versions): Windows XP, Windows Vista,
Windows 2003, Windows 7, Windows 2008, Windows 2008 R2.
■ Memory: Minimum 1 GB
■ System: x86, 32-bit or 64-bit processor, 2.6 GHz or faster
■ Disk Space: 4 GB minimum
■ Browser: Internet Explorer 7.x, 8.x., 9.x; Firefox 3.5/3.6, 6.x, 10; Chrome 27+
(playback only).
■ Java Runtime Environment: JRE 1.6 minimum (up to build 38), JRE 1.7 (up to build
11) .
So basically, it's not supported... Can you try with another JRE version?
As always don't forget to run OpenScript as administrator on W7/8 or equivalent
JB -
Exceptions while Opening a older toplink map in toplink 11g workbench
Hi
I have a toplink map used with toplink 10g. Now that after moving to toplink 11g I am unable to open the map using workbench. I am getting the following exception while opening.
Inputs to solve this probelm are welcomed.
oracle.toplink.workbench.framework.OpenException: Exception [TOPLINK-106] (Oracle TopLink - 11g (11.1.1.0.1) (Build 081030)): oracle.toplink.exceptions.DescriptorException
Exception Description: The method [legacySetDatabasePlatformNameForTopLink] on the object is throwing an exception.
Argument: [null]
Internal Exception: java.lang.reflect.InvocationTargetException
Target Invocation Exception: java.lang.IllegalArgumentException: missing database platform named: null
Mapping: oracle.toplink.mappings.DirectToFieldMapping[databasePlatformName-->platform-name]
Descriptor: XMLDescriptor(oracle.toplink.workbench.mappingsmodel.db.MWDatabase --> [DatabaseTable(database)])
at oracle.toplink.workbench.mappingsplugin.MappingsPlugin.open(MappingsPlugin.java:293)
at oracle.toplink.workbench.framework.internal.FrameworkApplication.open(FrameworkApplication.java:689)
at oracle.toplink.workbench.framework.internal.FrameworkNodeManager.openCallback(FrameworkNodeManager.java:341)
at oracle.toplink.workbench.framework.internal.RunnableProjectLoader.run2(RunnableProjectLoader.java:76)
at oracle.toplink.workbench.framework.internal.RunnableProjectLoader.run(RunnableProjectLoader.java:63)
at java.lang.Thread.run(Thread.java:595)
Caused by: Exception [TOPLINK-106] (Oracle TopLink - 11g (11.1.1.0.1) (Build 081030)): oracle.toplink.exceptions.DescriptorException
Exception Description: The method [legacySetDatabasePlatformNameForTopLink] on the object is throwing an exception.
Argument: [null]
Internal Exception: java.lang.reflect.InvocationTargetException
Target Invocation Exception: java.lang.IllegalArgumentException: missing database platform named: null
Mapping: oracle.toplink.mappings.DirectToFieldMapping[databasePlatformName-->platform-name]
Descriptor: XMLDescriptor(oracle.toplink.workbench.mappingsmodel.db.MWDatabase --> [DatabaseTable(database)])
at oracle.toplink.exceptions.DescriptorException.targetInvocationWhileSettingValueThruMethodAccessor(DescriptorException.java:1702)
at oracle.toplink.internal.descriptors.MethodAttributeAccessor.setAttributeValueInObject(MethodAttributeAccessor.java:202)
at oracle.toplink.mappings.DatabaseMapping.setAttributeValueInObject(DatabaseMapping.java:1228)
at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1118)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:277)
at oracle.toplink.sdk.SDKAggregateObjectMapping.buildCompositeObject(SDKAggregateObjectMapping.java:58)
at oracle.toplink.mappings.foundation.AbstractCompositeObjectMapping.valueFromRow(AbstractCompositeObjectMapping.java:231)
at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1117)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:277)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:582)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:439)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:389)
at oracle.toplink.queryframework.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:511)
at oracle.toplink.queryframework.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:433)
at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:874)
at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:674)
at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:835)
at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:397)
at oracle.toplink.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2260)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1074)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1058)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1017)
at oracle.toplink.internal.sessions.AbstractSession.readObject(AbstractSession.java:2822)
at oracle.toplink.workbench.mappingsio.legacy.PersistenceTools50.readMWProjectNamed(PersistenceTools50.java:323)
at oracle.toplink.workbench.mappingsio.legacy.LegacyIOFacade.read50Project(LegacyIOFacade.java:21)
at oracle.toplink.workbench.mappingsio.ProjectReader.readLegacyProject(ProjectReader.java:248)
at oracle.toplink.workbench.mappingsio.ProjectReader.read(ProjectReader.java:104)
at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOManager.java:59)
at oracle.toplink.workbench.mappingsplugin.MappingsPlugin.open(MappingsPlugin.java:289)
... 5 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at oracle.toplink.internal.descriptors.MethodAttributeAccessor.setAttributeValueInObject(MethodAttributeAccessor.java:174)
at oracle.toplink.mappings.DatabaseMapping.setAttributeValueInObject(DatabaseMapping.java:1228)
at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1118)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:277)
at oracle.toplink.sdk.SDKAggregateObjectMapping.buildCompositeObject(SDKAggregateObjectMapping.java:58)
at oracle.toplink.mappings.foundation.AbstractCompositeObjectMapping.valueFromRow(AbstractCompositeObjectMapping.java:231)
at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1117)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:277)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:582)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:439)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:389)
at oracle.toplink.queryframework.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:511)
at oracle.toplink.queryframework.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:433)
at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:874)
at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:674)
at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:835)
at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:397)
at oracle.toplink.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2260)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1074)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1058)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1017)
at oracle.toplink.internal.sessions.AbstractSession.readObject(AbstractSession.java:2822)
at oracle.toplink.workbench.mappingsio.legacy.PersistenceTools50.readMWProjectNamed(PersistenceTools50.java:323)
at oracle.toplink.workbench.mappingsio.legacy.LegacyIOFacade.read50Project(LegacyIOFacade.java:21)
at oracle.toplink.workbench.mappingsio.ProjectReader.readLegacyProject(ProjectReader.java:248)
at oracle.toplink.workbench.mappingsio.ProjectReader.read(ProjectReader.java:104)
at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOManager.java:59)
Caused by: java.lang.IllegalArgumentException: missing database platform named: null
at oracle.toplink.workbench.platformsmodel.DatabasePlatformRepository.platformNamed(DatabasePlatformRepository.java:334)
at oracle.toplink.workbench.mappingsmodel.db.MWDatabase.setDatabasePlatformNameForTopLink(MWDatabase.java:1013)
at oracle.toplink.workbench.mappingsmodel.db.MWDatabase.legacySetDatabasePlatformNameForTopLink(MWDatabase.java:1133)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at oracle.toplink.internal.descriptors.MethodAttributeAccessor.setAttributeValueInObject(MethodAttributeAccessor.java:174)
at oracle.toplink.mappings.DatabaseMapping.setAttributeValueInObject(DatabaseMapping.java:1228)
at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1118)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:277)
at oracle.toplink.sdk.SDKAggregateObjectMapping.buildCompositeObject(SDKAggregateObjectMapping.java:58)
at oracle.toplink.mappings.foundation.AbstractCompositeObjectMapping.valueFromRow(AbstractCompositeObjectMapping.java:231)
at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1117)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:277)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:582)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:439)
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:389)
at oracle.toplink.queryframework.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:511)
at oracle.toplink.queryframework.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:433)
at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:874)
at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:674)
at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:835)
at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:397)
at oracle.toplink.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2260)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1074)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1058)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1017)
at oracle.toplink.internal.sessions.AbstractSession.readObject(AbstractSession.java:2822)
at oracle.toplink.workbench.mappingsio.legacy.PersistenceTools50.readMWProjectNamed(PersistenceTools50.java:323)
at oracle.toplink.workbench.mappingsio.legacy.LegacyIOFacade.read50Project(LegacyIOFacade.java:21)
at oracle.toplink.workbench.mappingsio.ProjectReader.readLegacyProject(ProjectReader.java:248)
at oracle.toplink.workbench.mappingsio.ProjectReader.read(ProjectReader.java:104)
at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOManager.java:59)
at oracle.toplink.workbench.mappingsplugin.MappingsPlugin.open(MappingsPlugin.java:289)
at oracle.toplink.workbench.framework.internal.FrameworkApplication.open(FrameworkApplication.java:689)
at oracle.toplink.workbench.framework.internal.FrameworkNodeManager.openCallback(FrameworkNodeManager.java:341)
at oracle.toplink.workbench.framework.internal.RunnableProjectLoader.run2(RunnableProjectLoader.java:76)
at oracle.toplink.workbench.framework.internal.RunnableProjectLoader.run(RunnableProjectLoader.java:63)
at java.lang.Thread.run(Thread.java:595)
SreeHi Sree,
If you could email me a copy of the whole mapping workbench project, I can probably fix this issue for you.
Thanks,
Les -
Exception while opening content editor
Hi all,
we are getting following exception while opening content editor
<Aug 1, 2011 2:56:04 PM IST> <Error> <HTTP> <BEA-101017> <[ServletContext@14211416[app:Oracle Universal Content Management - Content Server module:/ path: spec-version:2.5], request: weblogic.servlet.internal.ServletRequestImpl@94562a[
GET /cs/resources/wcm/3rdparty/fckeditor/editor/sans-serif;font-size:%20123.1%;color:%20 HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0.1) Gecko/20100101 Firefox/5.0.1
Accept: text/css,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection: keep-alive
Referer: http://localhost:16200/cs/resources/wcm/3rdparty/fckeditor/editor/fckeditor.html?InstanceName=SSFCKeditor04365057354602540618&Toolbar=Default
Cookie: IdcLocale=English-US; fpc10001965722562=vkltub4t|g92AoFmLaa|fses10001965722562=|djlHNRiLaa|vkltub4t|fvis10001965722562=Zj1odHRwJTNBJTJGJTJGbG9jYWxob3N0JTNBMTYyMDAlMkZiYWNreWFyZCUyRmluZGV4Lmh0bSZiPSh1bnRpdGxlZCk=|0|0|0|T|8M8Y88Y8M1|0; IntradocAuth=Internet; oracle.uix=0^^GMT+5:30; JSE
]] Root cause of ServletException.
java.io.CharConversionException: Bad URL
at intradoc.common.StringUtils.decodeUrlEncodedBytes(StringUtils.java:1277)
at intradoc.common.StringUtils.decodeUrlEncodedString(StringUtils.java:1217)
at intradoc.idcwls.IdcServletRequestUtils.decodeUri(IdcServletRequestUtils.java:1805)
at intradoc.idcwls.IdcServletRequestUtils.fixupLowerCaseUri(IdcServletRequestUtils.java:1822)
at intradoc.idcwls.IdcServletRequestUtils.processFilterEvent(IdcServletRequestUtils.java:1409)
Truncated. see log file for complete stacktrace
>
please help
~HariFound the problem. One of my team mates have added a comment line in one of the facades data control xml. <!-- -->
-
Is it possible to get the main class name in a Thread context ?
for example, i want to get the main class name (the first entry of the program).
public class Test implements Runnable {
public Test() {}
public static void main(String[] args) {
new Thread(new Test()).start();
public void run() {
try {
//Want to get the main class name (not the current class name)
throw new Throwable();
} catch (Throwable e) {
e.printStackTrace();
}Acutally, i wanna make clear about the concept of a "Thread"
Is it true that ..
the main() method is a thread , once I create another thread in the program , both of (or all of them) will contains it owns stack exception information ?
My english is poor, please try to understand it. Thx -
How to get the current class name in static method?
Hi,
I'd like to get the current class name in a static method. This class is intended to be extended. So I would expect that the subclass need not to override this method and at the runtime, the method can get the subclass name.
getClass() doesn't work, because it is not a static method.
I would suggest Java to make getClass() static. It makes sense.
But in the mean time, does anybody give an idea to work around it?
Thank you,
BillWhy not create an instance in a static method and use getClass() of the instance?
public class Test {
public static Class getClassName() {
return new Test().getClass(); -
Getting an Out of memory exception while validating XML against XSD
Hello friends,
I am getting an Out Of Memory exception while validating my XML against a given XSd which is huge.
SAXParserFactory saxParserFactory = SAXParserFactory.newInstance();
saxParserFactory.setValidating(true);
SAXParser saxParser = saxParserFactory.newSAXParser();
saxParser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");
saxParser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",new File("C:/todelxsd.xsd")); as u may see the darkened code. this basically Loads the XSD in Memmory , and JVM throws an out of Memory exception. is there any other way round of validating an XML against an XSD where i dont have to load my XSD if not then kindly let me know the solution for above problem .
Thanks.Yes, but increasing the heap size is a temporary solution , isnt there a way where the XML can be validated against an XSD without having to load XSD in memory
-
Getting an out of memory exception while validating my XML against a XSD
Hello friends,
I have asked this question in following thread too. Pasting it again here just to saye your time
http://forum.java.sun.com/thread.jspa?threadID=690812&tstart=0
I am getting an Out Of Memory exception while validating my XML against a given XSd which is huge.
SAXParserFactory saxParserFactory = SAXParserFactory.newInstance();
saxParserFactory.setValidating(true);
SAXParser saxParser = saxParserFactory.newSAXParser();
saxParser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");
saxParser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource",new File("C:/todelxsd.xsd")); as u may see the darkened code. this basically Loads the XSD in Memmory , and JVM throws an out of Memory exception. is there any other way round of validating an XML against an XSD where i dont have to load my XSD if not then kindly let me know the solution for above problem .
Thanks.Yes, but increasing the heap size is a temporary solution , isnt there a way where the XML can be validated against an XSD without having to load XSD in memory
-
'Class Cast Exception' while invoking a EJB from a Servlet
Hi,
I am working on J2EE applications.I am using Webgain studio and weblogic server.I
got a problem while invoking EJB from the servlet.
While calling an EJB from the servlet, it is giving that "Class Cast Exception".This
is because, the remote home reference is not able to type casted to the"Home Interface"
of the EJB, even if I type casted explicitly. It is creating the context and able
to identify the EJB with the JNDI name.
Could please help me in solving this problem.I am pasting the code here.
Thanks in advance,
Dharma
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException
resp.setContentType("text/html");
PrintWriter out = new PrintWriter(resp.getOutputStream());
try
Context context=getInitialContext();
Object reference=context.lookup("ArlProjContractorAppletSession");
ArlProjContractorAppletSessionHome home=(ArlProjContractorAppletSessionHome)PortableRemoteObject.narrow(reference,ArlProjContractorAppletSessionHome.class);
//Exception is occuring in the above statement. It is unable
//to cast to the home interface
ArlProjContractorAppletSession the_ejb=null;
try
the_ejb=home.create();
System.out.println("the_ejb = " + the_ejb.toString());
catch(Exception e)
e.printStackTrace();
catch(Exception e)
e.printStackTrace();
// to do: code goes here.
out.println("<HTML>");
out.println("<HEAD><TITLE>Contractor TimeTracker</TITLE></HEAD>");
out.println("<BODY>");
// to do: your HTML goes here.
out.println("</BODY>");
out.println("</HTML>");
out.close();
I came across this kind of problem once. My problem went away after I upgraded
from 5.1 SP6 to 5.1 SP8.
"Dharma" <[email protected]> wrote:
>
>Hi,
>
>I am working on J2EE applications.I am using Webgain studio and weblogic
>server.I
>got a problem while invoking EJB from the servlet.
>
>While calling an EJB from the servlet, it is giving that "Class Cast
>Exception".This
>is because, the remote home reference is not able to type casted to the"Home
>Interface"
>of the EJB, even if I type casted explicitly. It is creating the context
>and able
>to identify the EJB with the JNDI name.
>
>Could please help me in solving this problem.I am pasting the code here.
>
>Thanks in advance,
>Dharma
>
>
>public void doGet(HttpServletRequest req, HttpServletResponse resp)
> throws ServletException, IOException
> {
> resp.setContentType("text/html");
> PrintWriter out = new PrintWriter(resp.getOutputStream());
>
> try
> {
>
> Context context=getInitialContext();
>
> Object reference=context.lookup("ArlProjContractorAppletSession");
>
> ArlProjContractorAppletSessionHome home=(ArlProjContractorAppletSessionHome)PortableRemoteObject.narrow(reference,ArlProjContractorAppletSessionHome.class);
>
>//Exception is occuring in the above statement. It is unable
>//to cast to the home interface
>
> ArlProjContractorAppletSession the_ejb=null;
>
> try
> {
> the_ejb=home.create();
>
> System.out.println("the_ejb = " + the_ejb.toString());
>
> }
> catch(Exception e)
> {
> e.printStackTrace();
> }
> }
> catch(Exception e)
> {
> e.printStackTrace();
> }
> // to do: code goes here.
>
> out.println("<HTML>");
> out.println("<HEAD><TITLE>Contractor TimeTracker</TITLE></HEAD>");
> out.println("<BODY>");
>
> // to do: your HTML goes here.
>
> out.println("</BODY>");
> out.println("</HTML>");
> out.close();
> }
>
>
>
>
>
-
How to hide applet .class name in html under CODE= applet.class?
I want the user not to know about my .class name in the source code.
I know there is a way in javascript.
Does anybody knows how to do it?
in other words...in the following code ..the user can know what it the .class name of my applet..and can download the NewJApplet.class
on his/her computer easily..
remember it could be .class or .jar file FYI.
Thanks in advance
<HTML>
<BODY>
<P>
<APPLET code="NewJApplet.class" width=800 height=560></APPLET>
</P>
<HR WIDTH="100%"><FONT SIZE=-1>
</BODY>
</HTML>Thanks for your comment .. but it sounds lots of encryption/decryption
involved.. I need somthing very simple... i have seen this code which does this.. here is the code but i am not an javascript expert .. so please
if someone gets any clue let me know...
here is the code ... it just a part of the drop down menu that 's
why it has <a class="drop" syntex in front of it ...
<a class="drop" href="javascript:AnyApplet('y')">My Applet</a><br></div> -
Class loading exceptions while importing Spring, EHCache in BPMStudio 10g
Hi,
We are facing Class loading / Class NOt Found exceptions while importing Spring.jar and EHCache.jar in BPMStudio 10g Catalog and BPM Enterprise Server 10g. Java classes are bundled in an external JAR file. This JAR is referencing Spring and EHCache library. This Java component is invoked from an automatic activity in BPM process. Task execution is failing in BPM workspace in Studio and Enterprise server.
We tried copying the JARS in the following folders. But nothing is working.
D:\OraBPMStudioHome\lib
D:\OraBPMStudioHome\ext
D:\OraBPMStudioHome\webapps\workspace\WEB-INF\lib
D:\OraBPMStudioHome\webapps\workspace\WEB-INF\classes
<Enterprise_Server_WL_Home>/server/<Domain_Lib>Ariel,
You are right. I have already added the JARS as external resource. I am getting the errors while cataloging Java component in BPM Studio in a Catalog Module. I am able to add Log4J Jar as an external resource and catalog the resource as java component. In case one JAR has a dependency on another JAR it is failing to catalog. In Eclipse or Weblogic Workshop 10g, we can add multiple JARS in the Project classpath and it works fine. In case of BPM Studio, we are getting Class Loading or ClassNotFound errors while cataloging multiple JAR files
Thanks
Subhabrata -
Swing Applet Class Names. Help!!
I`ve written an applet to put on my web page. I use Kawa to compile my Java files. The problem I have is that when I try and upload my .class files to the server, it says the filenames I`m using are illegal.
The main applet class contains an inner class that contains the event listeners. The main class is called Frame and the inner class called Listener. This means that when I compile I end up with the .class files, Frame.class and Frame$Listener.class. I believe the server wont allow the dollar symbol, $. Is there any way I can get around this without rewriting my applet???
ThanksFirst, applet doesn't run out of the server...it's run out of the user's system. Second, to some servers, a $ in the name of the file is considered an illegal character -- in cases like this, the only way to get around it is to put all of your class files in a jar like so:
jar -cf myJar.jar *.class
and in your HTML, your applet tag would look like this:
<APPLET CODE="myApplet" CODEBASE="." ARCHIVE="myJar.jar" WIDTH=100 HEIGHT=100>
</APPLET>
where myApplet is the name of your main class and myJar.jar is the jar file created with the jar command shown above.
;o)
V.V. -
IDE version: 10.1.2.3.0.4066
I get following exception while I open and close jsps in jdeveloper. The jsp editor was working fine till recent, but suddenly started giving this error. It might be due one of the jsps added recently. Please tell me how to find out problem here...
java.lang.ClassCastException: oracle.xml.parser.v2.XMLComment
at oracle.adf.dt.objects.JUDTBean$11.run(JUDTBean.java:291)
at oracle.adfdt.jdev.transaction.JDevTransactionManager.fetchUnderReadLock(JDevTransactionManager.java:310)
at oracle.adf.dt.objects.JUDTBean.getAttributes(JUDTBean.java:320)
at oracle.adf.dt.datacontrols.JUDTAdapterDataControl$DCDefinitionWrapper.addAttributeDefs(JUDTAdapterDataControl.java:1021)
at oracle.adf.dt.datacontrols.JUDTAdapterDataControl$DCDefinitionWrapper.loadStructure(JUDTAdapterDataControl.java:984)
at oracle.adf.dt.datacontrols.JUDTAdapterDataControl$DCDefinitionWrapper.buildStructureDef(JUDTAdapterDataControl.java:935)
at oracle.adf.dt.datacontrols.JUDTAdapterDataControl$DCDefinitionWrapper.retrieveAdapterStructureDef(JUDTAdapterDataControl.java:903)
at oracle.adf.dt.datacontrols.JUDTAdapterDataControl$DCDefinitionWrapper.<init>(JUDTAdapterDataControl.java:839)
at oracle.adf.dt.datacontrols.JUDTAdapterDataControl.getDataControlDefinition(JUDTAdapterDataControl.java:554)
at oracle.adf.dt.objects.JUDTDataControl.createDataControlTreeNode(JUDTDataControl.java:262)
at oracle.adf.dt.controls.treemodel.DataControlsTreeModel.addSessionContentsToTree(DataControlsTreeModel.java:108)
at oracle.adf.dt.controls.treemodel.DataControlsTreeModel.<init>(DataControlsTreeModel.java:57)
at oracle.adf.dt.controls.treemodel.DataControlsTreeModel.<init>(DataControlsTreeModel.java:35)
at oracle.adf.dt.controls.treemodel.DataControlsTreeModel.<init>(DataControlsTreeModel.java:30)
at oracle.adf.dt.controls.treemodel.DataControlsTreeModel.<init>(DataControlsTreeModel.java:25)
at oracle.adf.dt.controls.DataControlsTree.createDataControlsTreeModel(DataControlsTree.java:81)
at oracle.adf.dt.controls.ModelCreator.run(DataControlsTree.java:113)
at oracle.adf.dt.controls.DataControlsTree.internalPopulateFromActiveWorkSpace(DataControlsTree.java:76)
at oracle.adf.dt.dbpanel.DataBindingPanelTree.dataControlSetChanged(DataBindingPanelTree.java:115)
at oracle.adf.dt.DataControlManager.notifyDataControlSetChanged(DataControlManager.java:54)
at oracle.adf.dt.dbpanel.DataBindingPanel.populateTreeIfNecessary(DataBindingPanel.java:99)
at oracle.adf.dt.dbpanel.DataBindingDockeableWindow.dockableShown(DataBindingDockeableWindow.java:146)
at oracle.ide.docking.DockableWindow$ShowHideTranslator.dockableShown(DockableWindow.java:68)
at oracle.ideimpl.docking.DockStationImpl.fireDockableEvent(DockStationImpl.java:961)
at oracle.ideimpl.docking.DockStationImpl.fireDockableEvent(DockStationImpl.java:1001)
at oracle.ideimpl.docking.TitledPanel.fireDockableShown(TitledPanel.java:627)
at oracle.ideimpl.docking.TitledPanel.whenTabSelectionChanges(TitledPanel.java:203)
at oracle.ideimpl.docking.TitledPanel.mav$whenTabSelectionChanges(TitledPanel.java:89)
at oracle.ideimpl.docking.TitledPanel$EventListener.valueChanged(TitledPanel.java:2073)
at oracle.ideimpl.controls.CustomTab.fireSelectionChange(CustomTab.java:268)
at oracle.ideimpl.controls.CustomTab._setSelectedPage(CustomTab.java:575)
at oracle.ideimpl.controls.CustomTab.setSelectedPage(CustomTab.java:537)Found the problem. One of my team mates have added a comment line in one of the facades data control xml. <!-- -->
-
How can i get all java class names from a package using reflection?
hi,
can i get all classes name from a package using reflection or any other way?
If possible plz give the code with example.You can't, because the package doesn't have to be on the local machine. It could be ANYWHERE.
For example, via a URLClassLoader (ie from the internet) I could load a class called:
com.paperstack.NobodyExpectsTheSpanishInquisitionI haven't written it yet. But I might tomorrow. How are you going to determine if that class is in the package?
This subject comes up a lot. If you want to do something a bit like what you're asking for (but not quite) there are plenty of threads on the subject. Use google and/or the forum search facility to find them.
But the answer to your question, as you asked it, is "you can't do that". -
Invalid URL Exception while opening a file using external window in webdynp
I am trying open an URL ythru external window on click of button in my webdynpro.
This is the URl I am trying to open
File://mww/Documents/Attachments/2008/10/56254/{FD803B0D-157F-47F9-A5A8-C687E1DC6B96}_break.JPG
if I try to open from a from the browser it works fine but thru webdynpro it is throwing the error.
mww is another system where the file is residing.
But I am using the same techniue in other component where I am able to open file from an external window.
File://mww/Documents/Attachments/2008/10/56254/some.jpg
The only difference in the URL is {FD803B0D-157F-47F9-A5A8-C687E1DC6B96}Since this URL is generated by another system I do not have any other aletrnative but I have live with this URL.
can some body please give some idea how to fix this
if I use java.net.URLEncoder.encode() then I am not getting any error , buit file is not opening in the browser( external window)
below is the error stack I am getting.
com.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException: Invalid URL=File://mww/Documents/Attachments/2008/10/56254/{FD803B0D-157F-47F9-A5A8-C687E1DC6B96}_break.JPG
at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.checkURL(AbstractURLGenerator.java:699)
at com.sap.tc.webdynpro.services.sal.url.core.URLGeneratorInternal.checkURL(URLGeneratorInternal.java:390)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createNonModalExternalWindow(ClientComponent.java:1037)
at com.gis.dcww.findsrch.AttachmentView.onActionOpen_Attachement(AttachmentView.java:179)
at com.gis.dcww.findsrch.wdp.InternalAttachmentView.wdInvokeEventHandler(InternalAttachmentView.java:203)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
thanks
PKHi Armin, Josue
Thanks for the reply
Please note I am able to open an external window( browser ) thru my code with "File" protocol.
I have no issue opening an external window or using File protocol.
I am able to open an image/doc with a normal URL as follows
File://mww/documents/image.jpg
or
File://mww/document/temp.csv
But My URL has some system( thru Other applications ) generated charaters in it , I need get the path from DB( which I have done ) and pass this URL to the ExternalNonModalWindow as paramter.
MY code is opening successfully the external window for any URL .
but for URL which has these character { } is throwing the invalid URL error
for the below URL, I am getting the error
File://mww/Documents/Attachments/2008/10/56254/{FD803B0D-157F-47F9-A5A8-C687E1DC6B96}_break.JPG
thanks
PK
because of the flower bracket it is throwing the error.
thansk
PK
Maybe you are looking for
-
Can Not installed latest iTunes 10.5.2 for Windows XP
To System support, I am having trouble installed latest iTunes 10.5.2 for Windows XP. When I start install the exe file, I got an error message: "There is problem with this Windows Installer package. A program run as part of the setup did not finish
-
Microsoft Explorer keeps shutting down during the conversion of a PDF file to Word and gives me an error message regarding the Adobe web page. It keeps circling back to the PDF conversion window and will not allow the process to continue. What can
-
Need help with adding lightbox feature to images pulled from .js
Hello, I've been attempting to add a lightbox to separate images (no group) in a responsive one page portfolio template. Unfortunately I'm not savy with this topic. The template came with a hover action to apply what I would believe to be a light box
-
Hi all I am new to Flash site design and would like to see what other people/developers are creating or find any tutorials or discussions on this subject! My first flash website is titled Diatonic Scales and was developed entirely in Flash. The theme
-
Really need help here!-Why won't all selected Photos sync to my iPod Touch?
This is really a concern to me: I can only get about 9 months of my iPhotos to sync onto my iPod Touch - but with OS 2.x I could get all the photos-- used essentially all my free space. I just upgraded my first generation iPod Touch (Dec 2007) to 3.1