FileUpload give ClassCastException
Hi,
I am using FileUpload ui in my application. I restrict file extention. It gives error msg when other then pdf file uploads. But when i upload second time it give CallCastException .
Please let me know that,.
Regards,
Gurprit Bhatia
Hi
Try with the following code in the Action handler
//file source is a context attr with type binary
IWDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute(IPrivateSendMailView.IContextElement.FILE_SOURCE);
// requires type cast
IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
IPrivateSendMailView.IContextElement element = wdContext.currentContextElement();
// if a file in the FileUpload field exists
if (element.getFileSource() != null) {
try {
//file storage map is a Hash map to place all upload files details
String mimeType = binaryType.getMimeType().toString();
byte[] file = element.getFileSource();
InputStream fileInput = new ByteArrayInputStream(file);
fileStorageMap.put(wdContext.currentContextElement().getFileName(),fileInput);
// NOTE: context attribute 'fileName' must not be set, because the
// FileUpload-UI-element property 'fileName' is bound to it. Consequently the
// fileName is automatically written to the context after file upload.
wdComponentAPI.getMessageManager().reportMessage(IMessageAdobeTestComp.FILE_UPLOADED, new Object[] { binaryType.getFileName()}, false);
} catch (Exception e) {
throw new WDRuntimeException(e);
// if no file in the FileUpload field exists
else {
// report error message
IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
msgMgr.reportContextAttributeMessage(element,attInfo,IMessageAdobeTestComp.NO_FILE,new Object[] { "" },true);
Regards
Kalyan
Similar Messages
-
Mapping XML object to java object gives ClassCastException
Hi All,
I am trying to map a specific XML object to a specific java object using web
services and received the following exception:
java.lang.ClassCastException: weblogic.soap.xml.XMLObject
at $Proxy0.getMonster(Unknown Source)
at serviceClient.TestServiceClient.main(TestServiceClient.java:46)
Exception in thread "main"
I tried to map a simple type:
<types>
<schema targetNamespace='java:biomaterials'
xmlns='http://www.w3.org/1999/XMLSchema'>
<element name="Monster">
<complexType>
<all>
<element name="name"
type="string"/>
<element name="age"
type="int"/>
</all>
</complexType>
</element>
</schema>
</types>
To the following java bean:
package biomaterials;
public class
ster{
private String name;
private Integer age;
public Monster(String name, int age) {
this.name=name;
this.age=new Integer(age);
public String getName() {
return name;
public void setName(String s) {
this.name=s;
public Integer getAge() {
return age;
public void setAge(int n) {
this.age=new Integer(n);
Here is my client code:
package serviceClient;
import java.util.Properties;
import weblogic.soap.codec.CodecFactory;
import weblogic.soap.codec.SoapEncodingCodec;
import weblog
ic.soap.codec.LiteralCodec;
import weblogic.soap.WebServiceProxy;
import weblogic.soap.SoapMethod;
import weblogic.soap.SoapType;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.ejb.*;
import biomaterials.ServiceSession;
import java.io.File;
import java.io.IOException;
import org.w3c.dom.Element;
import biomaterials.Monster;
public class TestServiceClient
public static void main( String[] arg ) throws Exception
Properties h = new Properties();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.soap.http.SoapInitialContextFactory");
h.put("weblogic.soap.wsdl.interface",
ServiceSession.class.getName() );
Context context = new InitialContext(h);
ServiceSession serv =
(ServiceSession)context.lookup("http://localhost:7001/biocat/biomaterials.Se
rviceSession/biomaterials.ServiceSession.wsdl");
//try
//int result = serv.getTheNum();
//String result=serv.getBIXBiologicals();
//int result=serv.setBIXInfo("TARNUMBER");
Monster result=serv.getMonster();
System.out.print("The value is "+result);
} /* end of main */
} /* end of class */
Here is the method in my stateless session bean:
public Monster getMonster()
return new Monster("Sully",3);
And here is my whole wsdl file:
<% response.setHeader( "Content-Type", "text/xml; charset=utf-8" ); %>
<definitions
targetNamespace="java:biomaterials"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="java:biomaterials"
>
<types>
<schema targetNamespace='java:biomaterials'
xmlns='http://www.w3.org/1999/XMLSchema'>
<element name="Monster">
<complexType>
<all>
<element name="name" type="string"/>
<element name="age" type="int"/>
</all>
</complexType>
</element>
</schema>
</types>
<message name="getBIXBiologicalsRequest"></message>
<message name="getBIXBiologicalsResponse">
<part name="return" type="xsd:string" />
</message>
<message name="setBIXInfoRequest">
<part name="arg0" type="xsd:string" />
<part name="arg1" type="xsd:string" />
<part name="arg2" type="xsd:integer" />
</message>
<message name="setBIXInfoResponse"></message>
<message name="getMonsterRequest"></message>
<message name="getMonsterResponse">
<part name="body" element="tns:Monster"/>
</message>
<portType name="ServiceSessionPortType">
<operation name="getBIXBiologicals">
<input message="tns:getBIXBiologicalsRequest"/>
<output message="tns:getBIXBiologicalsResponse"/>
I am using weblogic 6.1 SP1 on WIN NT.
Please help me out in this issue.
Thanks in advance.
SapanHI !
i dont think that the servicepack is an issue in this case.
anyway i ahve tried it on 6.1SP4 and still getting similar results.
any pointers will be highly appreciated.
Thanks,
sapan
"manoj cheenath" <[email protected]> wrote in message
news:[email protected]...
I just skimmed through your email. You said you
are using WLS 6.1 SP1. Can you try this using
the latest SP. There are many bug fixes done
after SP1.
Web service support in 6.1 is very limited. But, It
looks like 6.1 can handle the case you are trying out.
regards,
-manoj
"Sapan Agarwal" <[email protected]> wrote in message
news:[email protected]...
Hi All,
I am trying to map a specific XML object to a specific java object usingweb
services and received the following exception:
java.lang.ClassCastException: weblogic.soap.xml.XMLObject
at $Proxy0.getMonster(Unknown Source)
at
serviceClient.TestServiceClient.main(TestServiceClient.java:46)
>>
Exception in thread "main"
I tried to map a simple type:
<types>
<schema targetNamespace='java:biomaterials'
xmlns='http://www.w3.org/1999/XMLSchema'>
<element name="Monster">
<complexType>
<all>
<element name="name"
type="string"/>
<element name="age"
type="int"/>
</all>
</complexType>
</element>
</schema>
</types>
To the following java bean:
package biomaterials;
public class
ster{
private String name;
private Integer age;
public Monster(String name, int age) {
this.name=name;
this.age=new Integer(age);
public String getName() {
return name;
public void setName(String s) {
this.name=s;
public Integer getAge() {
return age;
public void setAge(int n) {
this.age=new Integer(n);
Here is my client code:
package serviceClient;
import java.util.Properties;
import weblogic.soap.codec.CodecFactory;
import weblogic.soap.codec.SoapEncodingCodec;
import weblog
ic.soap.codec.LiteralCodec;
import weblogic.soap.WebServiceProxy;
import weblogic.soap.SoapMethod;
import weblogic.soap.SoapType;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.ejb.*;
import biomaterials.ServiceSession;
import java.io.File;
import java.io.IOException;
import org.w3c.dom.Element;
import biomaterials.Monster;
public class TestServiceClient
public static void main( String[] arg ) throws Exception
Properties h = new Properties();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.soap.http.SoapInitialContextFactory");
h.put("weblogic.soap.wsdl.interface",
ServiceSession.class.getName() );
Context context = new InitialContext(h);
ServiceSession serv =
(ServiceSession)context.lookup("http://localhost:7001/biocat/biomaterials.Se
rviceSession/biomaterials.ServiceSession.wsdl");
file://try
file://int result = serv.getTheNum();
file://String result=serv.getBIXBiologicals();
file://int result=serv.setBIXInfo("TARNUMBER");
Monster result=serv.getMonster();
System.out.print("The value is "+result);
} /* end of main */
} /* end of class */
Here is the method in my stateless session bean:
public Monster getMonster()
return new Monster("Sully",3);
And here is my whole wsdl file:
<% response.setHeader( "Content-Type", "text/xml; charset=utf-8" ); %>
<definitions
targetNamespace="java:biomaterials"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="java:biomaterials"
>
<types>
<schema targetNamespace='java:biomaterials'
xmlns='http://www.w3.org/1999/XMLSchema'>
<element name="Monster">
<complexType>
<all>
<element name="name" type="string"/>
<element name="age" type="int"/>
</all>
</complexType>
</element>
</schema>
</types>
<message name="getBIXBiologicalsRequest"></message>
<message name="getBIXBiologicalsResponse">
<part name="return" type="xsd:string" />
</message>
<message name="setBIXInfoRequest">
<part name="arg0" type="xsd:string" />
<part name="arg1" type="xsd:string" />
<part name="arg2" type="xsd:integer" />
</message>
<message name="setBIXInfoResponse"></message>
<message name="getMonsterRequest"></message>
<message name="getMonsterResponse">
<part name="body" element="tns:Monster"/>
</message>
<portType name="ServiceSessionPortType">
<operation name="getBIXBiologicals">
<input message="tns:getBIXBiologicalsRequest"/>
<outputmessage="tns:getBIXBiologicalsResponse"/>
>>
>>
>>
>>
>>
>>
>>
I am using weblogic 6.1 SP1 on WIN NT.
Please help me out in this issue.
Thanks in advance.
Sapan -
HttpsURLConnection gives ClassCastException in Weblogic 5.1
am getting an error when i run my application in weblogic 5.1 as
java.lang.ClassCastException: weblogic.net.http.HttpsURLConnection.
I know the reason after creating URLConneciton the object i am getting
is "weblogic.net.http.HttpsURLConnection" instead of com.sun.net.ssl.HttpsURLConnection
But if I run this application outside weblogic environment my application is running fine.
How do I make the weblogic server to pick com.sun.net.ssl.HttpsURLConnection instead of weblogic.net.http.HttpsURLConnection.
Thanks in advance
ArshadAre you casting the object to com.sun.net.ssl.HttpsURLConnection?
Why not just use javax.net.HttpsURLConnection? I have never worked with
WebLogic before, but I'm sure it will extend that class. -
Table Data Source Search Result gives ClassCastException
I set up a table data source and queried it using the following URL:
http://machine_name:port/ultrasearch/query/search.jsp?usearch.p_mode=Advanced
and specified my table data source. The result URLs
came up with the right primary key id. However when I
click the URL, I get:
java.lang.ClassCastException: com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].sql.OrclCallableStatement
at oracle.ultrasearch.query.DisplayUtil.displayTableUrl(DisplayUtil.java:131)
at display.jspService(_display.java:1568) [SRC:/display.jsp:81]
at com.orionserver[Oracle9iAS (9.0.2.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
I have specified NUMBER as the data type for my primary key column and it is of type NUMBER in my table DDL. Is that OK or could this be causing the problem?
DineshDinesh,
Can you provide the following information for creating the table data source:
- Is the table data source based on a table or a view?
- Is the table/view in the local or remote database?
- If the table is in the local database, is the table in the instance owner schema or another schema?
- Do you login to Ultra Search Admin Tool as the instance owner or other users?
- Does the instance owner schema have privileges to read the contents in the table/view? -
EJB 3.0 JNDI lookup gives ClassCastException
The object returned by the JNDI lookup of a EJB 3.0 Statefull Session Bean is not of the expected type, but rather of an obviously generated Proxy type (ejb_DistributionProcessor_LocalProxy_4h350 instead of expected DistributionProcessor). Does anybody have any idea about what this could be?
Details:
We are using annotations @Statefull and @Local and are deploying on a standalone OC4J 10.1.3.1. The beans are presumably loaded correctly since they get listed in Enterprise Managers list of beans for the application. There is also obviously an object at the desired JNDI location, presumably some kind of proxy. Unfortunately the proxy cannot be cast to the original type making the retrieved object useless.
I can supply more details if necessary, but really don't know what more is relevant.Well, I figured it out, it seems I had the classes in both the EJB and the WEB deployment, so when casting it tried to cast X from EJB to X from WEB application and since they reside in different locations they weren't the same file and therefore not castable.
-
ClassCastException in executable JAR not inside IDE
I have a problem running my application outside Eclipse. It gives ClassCastException at the place where the application inside IDE does not. In particular, I output to the terminal the name of the instance I'm trying to cast and inside IDE it gives the correct type such as "NestedEngineImpl" whereas outside IDE it gives "EngineImpl" with the exception that EngineImpl cannot be cast to NestedEngineImpl. NestedEngineImple extends EngineImpl.The executable jar has been created using Eclipse' Export Runnable JAR file. The jar opens and runs until the point of exception.
Any advice will be greatly appreciated.The application works fine inside Eclipse. These classes are built from the source code in the project. When I output the instance I'm trying to cast with .getClass().getName() it returns NestedEngineImpl, meaning that it can be cast to NestedEngineImpl. When the applications runs in standalone, the output is EngineImpl and the cast fails. Why is the output EngineImpl?
Edited by: 807433 on Nov 4, 2010 3:30 PM -
How to Resolve ClassCastException
Hi all,
I am trying to build a table with data using DefaultTableModel(vector,vector) Constructor.But it gives ClassCastException.Why I don't know...
what's wrong with the code...
pls help me
// Due to Some reasons I am changing the tableModel object later
private DefaultTableModel tableModel=new DefaultTableModel(data,cols);
private CJTable cJTable1=new CJTable(tableModel);
Vector v4=new Vector(10,1);
for(int i=0;i<14;i++)
ModalBlock bm = new ModalBlock(); // Defined below
String temp="CHS"+i; // Some Name
bm.setBlockId(temp);
bm.setRowFillingOrder("Increasing");
bm.setColFillingOrder("Increasing");
bm.setColFillingPattern("By Column");
v4.add(bm);
Vector vcol4=new Vector(4,1);
vcol4.add("1");
vcol4.add("2");
vcol4.add("3");
vcol4.add("4");
tableModel=new DefaultTableModel(v4,vcol4); // Exception is coming at this point ..
cJTable1=new CJTable(tableModel);
// My Modal Block
public class ModalBlock
String blockId;
String rowFillingOrder;
String colFillingOrder;
String colFillingPattern;
public ModalBlock(){}
public void setBlockId(String bId)
this.blockId=bId;
public void setRowFillingOrder(String rowFillId)
rowFillingOrder=rowFillId;
public void setColFillingOrder(String colFillOrder)
colFillingOrder=colFillOrder;
public void setColFillingPattern(String colFillPattern)
colFillingPattern=colFillPattern;
public String getBlockId()
return blockId;
public String getColFillingPattern()
return colFillingPattern;
public String getRowFillingOrder()
return rowFillingOrder;
public String getColFillingOrder()
return colFillingOrder;tableModel=new DefaultTableModel(v4,vcol4);
cant be the correct location of your classcastexception, there is no classcast on that line.
Post the stacktrace and relevent code. -
How can i let Displaytag work in an Oracle 10g Portal environment?
Hi there,
I'm already searching and trying this for a week, but didn't succeed yet.
I want to use displaytag to be able to sort and page data in a HTML table on a very generic and easy-to-use way.
Locally in JDeveloper 10.1.3 on OC4J (embedded) it works like a charm (even exporting with the export filter).
On portal...it "sucks" :-s ... It doesn't work at all. It displays the data, but when i click a column for sorting, or a another page of the displaytag an error occurs.
If i do nothing (except giving requestURI="") , the portal suddenly displays it's toplevel page.
If i try to compose the requestURI in the JSP itself, and get the approximate URI that the oracle portal needs, the action is called, but apparently our http session is invalidated, i get nullpointers of an object that should be on the request.getSession(), but it is null there.
I already tried something like implementing the PortletRequestHelper and PortletHref , but therefore i need access to the request (or pageContext?) attributes renderResponse and portletRequest, that should be in the request or page as an attribute with a given name.
I have already printed all session, request and pagecontext attributes and their names in a header.jsp (included like <%@ include file="header.jsp"%> ) , but no objects like javax.portlet.PortletRequest or javax.portlet.RenderResponse appear to be there.
So i can't fetch them from the PageContext attribute in my custom PortletRequestHelper implementation.
Well :-s I need help urgently. Can anyone give me more information to this? I already googled, searched different sources, addressed some colleagues here, and nothing could help me. You, Oracle experts, are my last hope. (Normally, i have a colleague who is very known with Oracle Portal, Oracle expert in our company, but he's ill).
It must have something to do with a wrong URL, but i checked the URL generated by portal for a tab that we can click to change pages, and the URL generated by portal on the displaytag column headers ... (in my current code with the hand-written requestURI in the JSP itself) , and it is completely the same, only 2 request parameters are added. If i click the column, it gives a nullpointerexception on an object that should be on the session but is null.
If you need more information, i'll be so kind as to answer your questions.
I hope this explanation was clear enough :-s i'm quite aggitated that i can't get this wonderfull displaytag working in oracle portal.
Kind regards,
SteveHi there :-)
Thanks already for your replies.
Well, i checked PortletRenderRequest and responses already ... But well ...
I have to re-implement the PortletRequestHelperFactory to allow displaytag to generate the links.
Displaytag expects me to make a PortletRequestHelperFactory (AbsentPortletRequestHelperFactory --> The project call Absenteisme ... employees that are absent from work are registered) that gives a pageContext parameter to an AbsentPortletRequestHelper.
The PortletHref that i need to re-implement (AbsentPortletHref), is constructed using a PortletRequest and a PortletResponse parameter, like the default PortletHref in de Displaytag-Portlet source.
PortletRequest and PortletRenderRequest aren't the same, this gives ClassCastExceptions, and other problems. I already tried using wrappers but can't find anything that works.
:-s
I really don't know further what to do, except indeed working with the correct objects, but how then override those porltet helper objects.
Anyone experience with sorting / paging displaytag in oracle portal ? (I already read that export of displaytag data might pose problems in oracle portal, but this isn't a primary concern ... first i need sortable and pageable data working in Oracle Portal). -
OAS 4.0.8.1 - Some issues
1) Is connection pooling possible in OAS 4.0.8.1 ?
2) Can JDBC 2.0 drivers be used with OAS 4.0.8.1 . If yes , can we register the datasource in the JNDI namespace ? How ?
nullHi, working on a similar project with Oracle 8.0.5. database server and OAS4.0.8.1 JServlet Cartridge. Do not have answers to your questions, but have some more.
1) oracle.html package:
a) How can I add events like onChange, onClick etc. to Items?
b) Font and TableRow class do not provide closing tags. Is it a bug? Any workarounds?
2) Cannot store objects like connection pools, etc. in servletcontext as when I try to get them in another servlets, it gives ClassCastException. However, if I get them in an Object reference and display Classname, it does display the proper class name.
getServlet also does not work so that I can share a global object with all servlets. Is it a but in OAS.
Any other way by which I can share global objects across servlets.
3) If I put a class in a CLASSPATH directory of the OAS application, and if that directory is not a virtually mapped directory, it is unable to locate my classes. Wonder how it is able to locate the oracle.html libraries which I access in the same way.
null -
Hi I have been working with javascript and php to upload files. I am having problems with
the backend of the file upload.
So when the file is recieved in the backend.php . It comes like:
$fileupload=$_POST['upload_file'];
The above $fileupload is the url of the file:
I am trying to extract name , type and size using:
$name=$_FILE['$fileupload']['name'];
$tmp_name=$_FILE['$fileupload']['tmp_name'];
$size=$_FILE['$fileupload']['size'];
But this seems not to work.
echo $fileupload; //gives me the file url.
but:
echo $name or $tmp_name or $size
does not work.
Can any one help.Hi Rob
Thanks so much for the replay. $name=$_FILES['photofield']['name'];
does not work in this circumstance because I am recieving the file through the ajax code below:
<script type="text/javascript">
// JavaScript Document
var phototitle;
var photogenre;
var photodesc;
var photofield;
function AjaxStuff(){
phototitle = jQuery("#phototitle").attr("value");
photogenre = jQuery("#photogenre").attr("value");
photodesc = jQuery("#photodesc").attr("value");
photofield = jQuery("#photofield").attr("value");
jQuery.ajax({
type: "POST",
url: "Uploadfix.php",
cache: false,
dataType: "html",
data: "phototitle=" + phototitle + "&photogenre=" + photogenre + "&photodesc=" + photodesc + "&photofield=" + photofield,
success: function(response){
// if sucessful; response will contain some stuff echo-ed from .php
// alert("Here is your response: " + response);
// Append this response to some <div> => let's append it to div with id "serverMsg"
jQuery("#allresult").append(response);
jQuery("#contentgrid").trigger("reloadGrid");});
} // END OF FormAjaxStuff()
</script>
photofield is the file. Uploadfix.php is where the data is posted:
Uploadfix.php
$phototitle=$_POST['photofield];
the for file:
$photo=$_FILES['photofield']['name'];
echo $photo; //Nothing comes out.
echo $photofield; //The url for the file appears. -
OAS 4.0.8.1 connection pooling ?
Question 1
===========
How does the oracle application server connect to the database using Jweb and Jservlet catridge ? any connection pooling before spawning the database ? if yes? how can I control the pooling system?
Question 2
==========
How can I log the following session being spawn thru the OAS with Oracle8i ?
Are there any Monitoring tools in OAS that able to track the following session connecting to the database because I am doing a stress test on the tier architecture with 2 simple servlet
1) without connection pooling
2) with connection poolingHi, working on a similar project with Oracle 8.0.5. database server and OAS4.0.8.1 JServlet Cartridge. Do not have answers to your questions, but have some more.
1) oracle.html package:
a) How can I add events like onChange, onClick etc. to Items?
b) Font and TableRow class do not provide closing tags. Is it a bug? Any workarounds?
2) Cannot store objects like connection pools, etc. in servletcontext as when I try to get them in another servlets, it gives ClassCastException. However, if I get them in an Object reference and display Classname, it does display the proper class name.
getServlet also does not work so that I can share a global object with all servlets. Is it a but in OAS.
Any other way by which I can share global objects across servlets.
3) If I put a class in a CLASSPATH directory of the OAS application, and if that directory is not a virtually mapped directory, it is unable to locate my classes. Wonder how it is able to locate the oracle.html libraries which I access in the same way.
null -
OAS 4.0.8, Internet Explorer 5.5 and cookies
Hello all,
We are using Designer 6.0 to generate a Web Pl/Sql
application. The application is called from an asp page on an
Microsoft IIS server where certain cookies with information on
the user is set e.g. user's uid, user's role, etc.
The application was developed and tested on Internet Explorer
v5.0 - the cookies were read fine in the application. Our client
has now upgraded to Internet Explorer v5.5 and we're losing the
cookie values. The cookie is set when you first come into the
application, but as soon as you start navigating around, the
cookie value is lost which is reaking havoc in our application
since I need to read the information in the cookies.
Has anyone used OAS 4.0.8, IE 5.5 and Designer 6.0 web
generated Pl/sql modules? Database is 8.1.7. Has anyone had
similar problems and found any solutions?
Any and all help would be most appreciated, thanks!!!
MaryHelenHi, working on a similar project with Oracle 8.0.5. database server and OAS4.0.8.1 JServlet Cartridge. Do not have answers to your questions, but have some more.
1) oracle.html package:
a) How can I add events like onChange, onClick etc. to Items?
b) Font and TableRow class do not provide closing tags. Is it a bug? Any workarounds?
2) Cannot store objects like connection pools, etc. in servletcontext as when I try to get them in another servlets, it gives ClassCastException. However, if I get them in an Object reference and display Classname, it does display the proper class name.
getServlet also does not work so that I can share a global object with all servlets. Is it a but in OAS.
Any other way by which I can share global objects across servlets.
3) If I put a class in a CLASSPATH directory of the OAS application, and if that directory is not a virtually mapped directory, it is unable to locate my classes. Wonder how it is able to locate the oracle.html libraries which I access in the same way.
null -
Obtaining already serialized objects
Hi All,
In my previous release of an application i used to serialize objects of a particular class say A.class
Now i have a new release of my application in which the class A has been changed. Now if I try to read the already serialized objects, it give ClassCastException.
I don't want to loose the old information inside already serialized objects of Old Version. But want to read them and write the full file again with the new Class A objects.
Any suggestion??
Thanks in Advance,
Manjinder SinghHi All,
In my previous release of an application i used to
serialize objects of a particular class say A.class
Now i have a new release of my application in which
the class A has been changed. Now if I try to read the
already serialized objects, it give
ClassCastException.
I don't want to loose the old information inside
already serialized objects of Old Version. But want to
read them and write the full file again with the new
Class A objects.
Any suggestion??
Thanks in Advance,
Manjinder SinghYes, read the tutorial. The solution is suggested there. -
Return HttpsURLConnectionOldImpl from URLConnection.openConnection
I am using a java plug-in that establishes HTTPS URL Connection, and returns com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl
I used the -DUseSunHttpHandler option at server start up, which will return the sun http handler javax.net.ssl.HttpsURLConnection , but this gives classCastException.
How can I return the OldImplementation instead?I am using a java plug-in that establishes HTTPS URL Connection, and returns com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl
I used the -DUseSunHttpHandler option at server start up, which will return the sun http handler javax.net.ssl.HttpsURLConnection , but this gives classCastException.
How can I return the OldImplementation instead? -
Flex ArrayCollection to Java HashSet
Hi,
I got a problem that I cannot resolve by googleing. I need your expertise:
Here s the part of the story:
1 Bdc have many BdcDetails, so in Flex Bdc.as ==> public var bdcdetails:ArrayCollection; in Java Bdc.java ==> private Set<BdcDetails> bdcdetails = new HashSet<BdcDetails>();
It works perfectly in Flex which means Flex understand what is inside a Java HashSet. But when a Bdc is sent to Java. Java don't understand what is inside ArrayCollection, everything is ASObject. So ((BdcDetails)bdc.getBdcdetails().toArray()[0]) ==> give ClassCastException
Please help! Thanks
P/S: I am using Blaze DS 4.5.0.0-SNAPSHOTThanks, i ve found the work around.
I create a setter for Bdc.as
funtion set bdcDetails in which i loop through the arraycollection, cast
each item to BdcDetails then put back to the arraycollection.
That s it. I dont know it s good or not but it works
Maybe you are looking for
-
Getting an unusual error message in Compressor 4.1 when I try to submit a job
I'm running Mavericks and have Compressor 4.1 on my Mac Pro along with FCP 10.1. When I submit a job to compressor, I then add the Dolby Digital and Mpeg-2 6.2 Mbps/90. When I hit Start Batch I get this error message /var/folders/k9/f6fyk4sj4f3_rj2
-
Fastest method for searching within a PDF file?
I have created a PDF document that holds all document reports for the last 10 years. It is currently 30,000 pages. As time goes on, incoming reports append to this PDF. This has proven to be an excellent way of holding and retrieving information, all
-
Managing Null Values in a string
Dear all, I have an employee view with these columns ( EmpNo , FirstName, SecondNane, ThirdName, FamilyName ) now when i bring the full name am writing the following : ViewObject vo = ... Row vor=vo.next(); fullName = (String) vor.getAttribute("First
-
How to programatically start j2ee application/service from command line
Hi all We have developed a j2ee application and deployed the .ear file on SAP J2EE (Netweaver'04) engine. We are able to successfully start/stop the application from Visual administrator -> Deploy -> Service -> Start application (or) Stop applicatio
-
Wait While Processing - Javascript?
Hello I have two applications which take a while to processes. I would like to display a mesaage asking the user to wait while processing is been completed ... also stop them from entering "send" twice I expect a solution I looking for is a Javascrip