Creating a response object
Hi,
I have the following case. I am intiliazing all the variables in the init() method of the servlet using a resoruce bundle.
I want to put a condition in init() by which it cannot get the resource bundle then the user should get directed to an error page.
I know that it is acheieved by response.sendRedirect("error.jsp");
But how can i create the response object.
Regards
sandeep
hi sandeep,
i think we can't get the request or response objects in init() method,
so we can't redirect to the any other page in init() method.
regards,
sekhar
Similar Messages
-
What is the use of creating a detail object on a measure.
Hi Experts,
In BI 4.X business layer, we can create a detail object of a dimension and as well as measure.
Can you please let me know what could be the use of the detail object of a measure object?
In the business layer, it is showing like this...
<Measure object>
-><Detail Object>
Dimensions have attributes, we create those attributes as details objects.
when we want to see the different grains of the measure in one report. we will use these details objects.
Example:
1. Query 1 returns country, sales revenue
2. Query 2 Returns Country,State,Sales revenue.
But in the report if we want to show the State wise Revenue. It is not possible bcz both the quires are returning different grain.
state object is incompatible object, so you can't drag the object into report.
in this scenario we will merge the Country dimension , create the state object as details with merged dimension, then you can drag the state details detail object.
this will give expected results Country and State wise revenue.
Normally Dimensions and details objects will drives the measures values in report.
So, Detail object on measure not helpful in case of relational database(Please correct me if i am wrong). It is useful only for OLAP database because when I have created a webi report on top of BEx query then it is automatically created a detail object on measure object.
As far I know, 'Measure attribute' introduced for OLAP based business layer. which can provides information for the formatted value like unit, currency or value.
For example:-
Amount is key figure in BEx query and when I have created Webi report on top of that then it will create three object.
1. Amount as meausre.
->2. Amount currency(detail).
->3. Amount formatted value(detail).
Below is the output after running the report.
Amount || Amount currency || Amount formatted value
30 || $ || 30.00
8 || $ || 8.00
I have found one difference, We can't implement the index awareness on detail object which we have created on measure object although we can implement the index awareness on detail object which we have created on top dimension object.
But Still I am looking for good example of Detail object on measure object..
Any thought would be welcome...
Thanks,
SachinI moved this to the Semantic Layer space for faster response.
-
WebService response object in XML - parsing attributes
Hi- new to Flex and I'm trying to parse out the attributes of the response object. I can get the entire object and see that its working, but I cant get just a single attribute. It pulls weather info for world cities. For example, I just want the location name and temperature.
Any advice on this? Thanks!
<?xml version="1.0"?>
<!-- fds\rpc\RPCResultFaultMXML.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:s="library://ns.adobe.com/flex/spark">
<mx:Script>
<![CDATA[
import mx.rpc.soap.SOAPFault;
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import mx.controls.Alert;
import mx.utils.ObjectUtil;
public function showErrorDialog(event:FaultEvent):void {
// Handle operation fault.
Alert.show(event.fault.faultString, "Error");
public function defaultFault(event:FaultEvent):void {
// Handle service fault.
if (event.fault is SOAPFault) {
var fault:SOAPFault=event.fault as SOAPFault;
var faultElement:XML=fault.element;
// You could use E4X to traverse the raw fault element returned in the SOAP envelope.
Alert.show(event.fault.faultString, "Error");
public function log(event:ResultEvent):void {
// Handle result.
trace(event.result);
//trace(ObjectUtil.toString(event.result));
//var len:int;
//len = event.result.length;
//trace(len);
//trace(event.result);
//trace(event.result.GetWeatherResponse.Location);
//var myXML:XML = new XML(event.result);
//trace(myXML.attribute("Location"));
]]>
</mx:Script>
<mx:WebService id="WeatherService" wsdl="http://www.webservicex.com/globalweather.asmx?wsdl"
fault="defaultFault(event)">
<mx:operation name="GetWeather"
fault="showErrorDialog(event)"
result="log(event)"
resultFormat="xml">
<mx:request>
<CityName>{myCity.text}</CityName>
<CountryName>{myCountry.text}</CountryName>
</mx:request>
</mx:operation>
</mx:WebService>
<mx:TextInput id="myCity" text="Madrid"/>
<mx:TextInput id="myCountry" text="Spain"/>
<!-- Call the web service operation with a Button click. -->
<mx:Button width="60" label="Get Weather"
click="WeatherService.GetWeather.send();"/>
<!-- Display the Weather -->
<mx:Label text="Weather:"/>
<mx:TextArea text="{WeatherService.GetWeather.lastResult}" height="200"/>
</mx:Application>The WSDL says GetWeatherResponse is a string, and it appears to be a string of XML, so set <mx:operation resultFormat="object"> as this will unwrap the SOAP response value and leave a string typed value intact. You can then create a new ActionScript 3.0 E4X-based XML instance from the unwrapped string:
var myXML:XML = new XML(event.result.toString());
You can then travese the XML document using E4X syntax, a simple example is included below:
trace(myXML..Location);
trace(myXML..Temperature); -
Error with response object in Portal Application Module
Hi,
i have a portal application project in NWDS, with a JspDynpage component. I have a jsp that contains this code:
OutputStream os = componentResponse.getServletResponse().getOutputStream();
response.addHeader("Content-Disposition", "attachment;filename=" + sTITLE +".pdf");
response.setContentType("application/pdf");
os.write(contenido);
os.close();
this code open a pdf in new window. In web module project that app runs correctly but in portal application no, it fails in object response. the log (in default trace) doesn´t help me nothing, only sais:
Jun 6, 2011 3:19:55 PM com.sap.portal.prt.runtime.servlet_jsp [SAPEngine_Application_Thread[impl:3]_13] Error: >>> JSPCompiler >>> ERROR in Compiling :JSPFileInfo :314221189
JSP File : /usr/sap/DP4/DVEBMGS40/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/appl.factdist.efact.por/pagelet/inicio.jsp
Class Name: sapportalsjspInicio
Java File : /usr/sap/DP4/DVEBMGS40/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/appl.factdist.efact.por/work/pagelet/_sapportalsjsp_inicio.java
Package Name : pagelet
Class File : /usr/sap/DP4/DVEBMGS40/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/appl.factdist.efact.por/work/pagelet/_sapportalsjsp_inicio.class
Is out dated : false [email protected]bbc2b
In addition, i can use the request object perfectly
somebody knows what's happening??
Thank you,
FernandoHi,
You shouldn't use the response object directly
Instead, create a new HttpServletResponse reference from the componentRequest object.
Try using the following:
long length = file.length(); // where 'file' is a File() object of your sTITLE +".pdf" file
// Create the byte array to hold the data
byte[] bytes = new byte[(int)length];
int offset = 0;
int numRead = 0;
while (offset < bytes.length && (numRead=is.read(bytes, offset, bytes.length-offset)) >= 0) {
offset += numRead;
//The most important part:
HttpServletResponse res = componentRequest.getServletResponse(true);
res.setContentType("application/pdf");
res.addHeader("Content-Disposition", "attachment;filename=" + sTITLE +".pdf");
res.getOutputStream().write(bytes); -
Web service response object contains no values
Hi,
Using Netweaver, I've created an EJB-based web service that contains a single method. The method takes two input parameters and returns as a response, a data transfer object (DTO) containing several boolean values. When I test this web service with the Web Service Navigator however, the response object contains a flat DTO-- meaning the contents of the DTO are missing. For example, this is what happens now when I call the web
service...
Incoming parameters:
...userID (String) = some user ID
...systemID (String) = some system ID
Outgoing parameters:
...response
......(nothing contained within response--
...... there should be boolean values here)
But this is what I should see when I call the web service...
Incoming parameters:
...userID (String) = some user ID
...systemID (String) = some system ID
Outgoing parameters:
...response
......booleanValue1
......booleanValue2
......booleanValue3
Documentation doesn't seem to address this problem. Does anyone know how to correct this?
Thanks,
AmyHi
Have you found the workaround?
Sorry for refreshing topic. Flag mustUnderstand ='1' in response is unussual thing.
BR -
How to create a new object of HttpServletRequest class manually?
Dear all,
I don't know how silly my question is, however I have no way except asking.
I know that when I send a request from the client to the server, server authomatically creates an object of
HttpServletRequest and assigns all the request information to that object, so that you can extract these information by the available methods in the HttpServletRequest class like getHeader, getMethod and so on. What I need to do in my project is doing all above process manually. My question is how I can do it?
In other words, I have the header and body part of a http request and I want to create a HttpServletRequest
object and assign the header and body data to the object so that I'll be able to extract those data by using the getHeader, getMethod and other methods available in the HttpServletRequest class.
Please Help me, I really need your help?
Your help is appreciated.
Thanks.Hi shadgar ,
as rightly mentioned by Sudha and GrayMan, you can provide the implementation for the HttpServletRequest interface in your own way for the requirement, but it leads to a new Servlet Container development as you need to handle many things than the HttpServletRequest.
I think the current interface and the Servlet Container will be able to handle if your request is over HTTP protocol and it don't deviate from the prtocol's request/response model.
Check out the javax.servlet.http.HttpServletRequestWrapper class, which is the implementation of the javax.servlet.http.HttpServletRequest and javax.servlet.ServletRequest interfaces.
Hope it will give some idea about the actual problem and rethink about the solution proposed.
Thanks,
Sanath Kumar -
Exception creating new Poolable object
Hi All
I have installed jdeveloper 12.1.2 and when running the hello world page iam getting this error....pls advice
*500 Internal Server Error*
oracle.apps.fnd.common.AppsException: oracle.apps.fnd.common.PoolException: Exception creating new Poolable object. at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1509) at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:362) at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:211) at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:171) at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:148) at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1294) at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:1149) at oracle.apps.fnd.common.logging.DebugEventManager.internalReinit(DebugEventManager.java:1118) at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1085) at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1072) at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:595) at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:593) at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:570) at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:524) at oracle.apps.fnd.common.WebAppsContext.<init>(WebAppsContext.java:1140) at oracle.apps.fnd.common.WebRequestUtil.validateContext(WebRequestUtil.java:225) at OAErrorPage.jspService(_OAErrorPage.java:62) [OAErrorPage.jsp] at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193) at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:847) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:813) at runregion.jspService(_runregion.java:193)Hi kali....
yes i have downloaded<<Patch 9172975>> 10G JDEVELOPER WITH OA EXTENSION ARU FOR R12.1 RUP2..and got the latest .dbc file now from dba...now iam getting.......
Exception Details.
oracle.apps.fnd.framework.OAException: Application: FND, Message Name: PASSWORD_INVALID.
at oracle.apps.fnd.framework.server.OAExceptionUtils.processAOLJErrorStack(Unknown Source)
at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(Unknown Source)
at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(Unknown Source)
at oracle.apps.fnd.framework.CreateIcxSession.createSession(Unknown Source)
at runregion.jspService(_runregion.java:132)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
at java.lang.Thread.run(Thread.java:595)
althogh i have created new user......and assigned the responsibility.....
select fnd_web_sec.validate_login('TEST_USER','TEST@123') from dual;
vaue is 'Y'
select fnd_web_sec.validate_login('GUEST','ORACLE') from dual;
vaue is 'Y'
PLS ADVISE.... -
Getting response object field value as null when importing xsd file in wsdl
I have created a java webservice using X-Fire 1.2.6 framework and deployed on Tomcat 6.0 server. The response of the service is a java object named LoginDetail.
Inorder to reuse the basic elements and types we have defined them in a separate Types.xsd file which have been imported in the WSDl file using xsd:import by giving the path to the xsd file.
Below you can see the portion of the wsdl file
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://webservices.gtl.de/xsd">
<xsd:import namespace="http://webservices.gtl.de/xsd"
schemaLocation="file:///D:/wsdl/LoginTypes.xsd"></xsd:import>
</xsd:schema>
</wsdl:types>
After deploying the application on Tomcat I could access the WSDL using a web browser and after that I could successfully generate webservice client code using using XFire wsgen ant build.
But when tried to call the service the fields of the response object(in my case it is LoginDetail object) returns null.
Follwing are the main class used for running the client and the output received as webservice respone.
Main class
public static void main(String[] args) {
CCLoginNewClient client = new CCLoginNewClient();
CCLoginNewPortType service = client.getCCLoginNewHttpPort();
LoginDetail loginDetail = service.getLogin("CCLoginNew", "DE", "DE", "100", "0", "CC", "15","9344");
System.out.println("service got in response : "+loginDetail.getService());
Output
service got in response : null
is this the right way to import an xsd file in a wsdl file?
Any input would be appreciated!
Thanks in advancePramodDas wrote:
Output
service got in response : nullCheck with Apache TCPMonitor what response you are receiving from web service.
is this the right way to import an xsd file in a wsdl file?Make sure that you really need import, not the include. However, I guess it has nothing do with the actual issue. It just to make sure that you are using right option. -
How to send an object thru "response" object
I need to send an object to a servlet thru my jsp page.
When I created an ObjectOutputStream passing response.getOutStream as parameter, I am getting an IllegalStateException. I have checked that the response object is not being used anywhere else.
Please help me out.
Thanks a tonTry this and let me know
try {
ObjectOutputStream p = new ObjectOutputStream(
response.getOutputStream() );
p.writeObject("what ever object");
p.flush();
p.close();
}catch (Exception e) {
e.printStackTrace();
I use this in my code and it works perfectly. If it still does not work, send me the entire code that you have written and I shall try to look into it and see whats going wrong.
--ramsci -
Creating multiple response instances.
I have created a jsp through which i can download a jar on to my cell.
My requirement is first to send a wml to the client and then start downloading
the jar file. But, i am able to display the wml file but not able to download the jar
file.
[b]this is code i am using to send the wml file:
response.setContentType("text/vnd.wap.wml");
RequestDispatcher viewPage_sucess1=request.getRequestDispatcher("/sucess.wml");
viewPage_sucess1.forward(request,response);
this is code i am using to download the jar file:
response.setContentType("application/vnd.symbian.install");
String disHeader = "Attachment;Filename=" + fileName ;
response.setHeader("DownloadFile",disHeader);
path="/".concat(path);
System.out.println("NEW PATH----------------------------->>>"+path);
file = new File(path);
out.clear();
out=pageContext.pushBody();
fileInputStream = new FileInputStream(file);
int i;
while ((i=fileInputStream.read())!=-1) {
response.getOutputStream().write(i);
response.getOutputStream().flush();
if i try download the jar without the wml file, it works fine.
can anyone please suggest me what to do. Is problem due to response
object. how would solve this problem.I need to use an xml file for the questions and answers.
And there are more than 1 correct answer for the questions.
I'm pretty new to actionscript so a few pointers in the right
direction would be a great help to me.
Should I be using the xml component? The dataset components?
Check box components for the questions?
How do I get the xml to interact with the flash.... sorry for
all the questions. -
Clearing Request / Response Objects
Hi,
I have a File Upload Screen where I have validated for the File Content Length to be within 3 MB. Now I call the MultiPartRequest Reusable Object provided by Jason Hunter from a Servlet. Now as long as the file (which I am uploading) size is less than 3 MB, the Screen seems to be very fast. The Problem that I face is as follows:
I am trying to upload a file of 5 MB file size. Since my validation is in the Reusable MultiPartRequest Object, an Exception is thrown out of this Object and caught in the Servlet.
Scenerio 1:
Now from the Servlet I was using RequestDispatcher to forward to the Error Page. Since when I forward like this, the same request Object is send back to the Client which increases the response time. For me the Screen crashes due to Browser Time out.
Scenerio 2:
Now from the Servlet I tried using response.sendRedirect to the Error Page. Still the response time is more but comparatively less than the Scenerio 1.
My Question:
1. Is there a way to clear the contents of the Request and Response Object so that the response time to the client is reduced?
2. I think what I am asking is not possible. But still taking a chance is not a mistake. Is there a way to create a new Request or Response Object? I believe we (as an application developer) have no control over this as the Application Server will have control over this.
Any help or tips would be appreciated.
Thanks and regards,
Pazhanikanthan. PHi,
Thanks for your response. I do agree it is not the problem with the Multipart Classes.
Kindly see the following URL for the differences between RequestDispatcher.forward () and response.sendRedirect ().
http://www.theserverside.com/discussion/thread.jsp?thread_id=742
Here they say that "the request and response objects remain the same both from where the forward call was made and the resource which was called." Is this wrong?
More over I found that MultipartParser doesnt improve the performance very drastically over the MultipartRequestObject ...
Please find attached the time I have calculated in between the time I forward / redirect in Servlet to the time when the response is painted in the Screen.
Using Send Redirect Method (in Seconds)
=======================================
MultipartParser.java
170.156
MultipartRequestObject.java
172.422
Using requestDispatcher.forward () (in seconds)
==============================================
MultipartParser.java
Browser Times out
MultipartRequestObject.java
Browser Times out
Here is my code:
public void doPost(HttpServletRequest request,HttpServletResponse response)
throws ServletException, IOException
HttpSession objSession = request.getSession(true);
String strFilePath = "D:\\uploads";
String strFilename = "";
MultipartRequestObject clsMulti;
MultipartParser clsMultiParser;
try
System.out.println ("Action is :" + request.getParameter ("hdAction"));
if (request.getParameter ("hdAction") == null)
clsMultiParser = new MultipartParser (request, 1*1024*1024);
Part objPart = clsMultiParser.readNextPart ();
if (objPart != null)
FilePart objFilePart = (FilePart) objPart;
System.out.println ("The File Name is : " +objFilePart.getFileName ());
objFilePart.writeTo (new File (strFilePath + File.separatorChar + objFilePart.getFileName ()));
clsMulti = new MultipartRequestObject (request, strFilePath, 1*1024*1024);
Enumeration enumFiles=clsMulti.getFileNames();
while(enumFiles.hasMoreElements())
String strName=(String)enumFiles.nextElement();
strFilename = clsMulti.getFilesystemName(strName);
catch(Exception expGeneral)
System.out.println ("" + new java.util.Date () + "----" + expGeneral.getMessage ());
objSession.setAttribute ("MESSAGE", expGeneral.getMessage ());
try
System.out.println (1);
RequestDispatcher dispatcher = this.getServletContext().getRequestDispatcher("/Upload.jsp");
System.out.println (2);
java.util.Date dt1 = new java.util.Date ();
System.out.println (dt1.getTime ());
dispatcher.forward(request, response);
System.out.println (3);
java.util.Date dt1 = new java.util.Date ();
System.out.println (1);
System.out.println (dt1.getTime ());
response.reset ();
System.out.println (2);
response.sendRedirect ("Upload.jsp");
System.out.println (3);
return;
catch (Exception e)
e.printStackTrace ();
For testing pupose I have commented some part of the code.
Thanks and regards,
Pazhanikanthan. P -
I am creating a NetStream object in Adobe Media Server application, and getting the following error:
Sending error message: Response object not found (_result:0).
I have defined a handler for the onStatus message, which is working fine, but it doesn't catch this error. And I can't find any information on this error message anywhere. Indeed, the documentation on server-side error messages is very limited.
The code causing this error is:
var ns = null;
try
ns = new NetStream(application.nc);
catch (e)
trace("____NetStream error" + e.name + " " + e.message);
return;
ns.onStatus = netStreamStatusHandler;
I am getting NetStream.Connect.Success though. And I was wondering if the NetStream constructor calls a method initStream() on the other server?
thanks, PaulI highly recommend you read either the Sun Servlet tutorial or one on the web. But this should at least get you started:
HttpServletRequest
Used to retrieve HTML form parameters submitted to the Servlet
Maintains a reference to the user's HTTP web session
Used to inspect any HTTP headers sent by the client browser
Used to retrieve any HTTP message body data (say, XML submitted to the server or form parameters, as above)
Used to retrieve references to other objects descriping the Servlet configuration, intialization parameters, and container informationHttpServletResponse
Used to send HTTP headers back to the client browser (content-type, content-length, etc.)
Used to send HTTP message body data back to the client browser (HTML content, PDF content, etc.)The reason you passed the response object to sendPage2() is so the content type could be set (in this case, 'text/html' indicating an HTML web page) and so that a Writer reference could be obtained to output the actual HTML content back to the browser.
- Saish -
Error while creating a callable object - User Interface
Hello,
When i'm trying to create a callable object - User Interface in the guided procedure design time. i'm getting an error. An internal server error. This is happening while i'm trying to create a guided procedure with webdynpro's.
Is there any body who allready had somthing like this.
Greetings
KurtHi Raja Akella,
I allready had the roles and my portal version is upgraded until SP8 and all the possible patches.
I get an internal server error when i want to create a callable object. specially when i want to create a webdynpro ( ABAP / JAVA).
In the visual administrator i get the following errors.
<b>Error 1</b>
Exception occured during processing of a Web Dynpro application: "com.sap.tc.webdynpro.repository.RepositoryRuntimeException: Failed to get Related Model Object for the object com.sap.caf.eu.gp.dt.comp.semanticbrowser.SemanticBrowserApp, relation Component.".
[EXCEPTION]
com.sap.tc.webdynpro.repository.RepositoryRuntimeException: Failed to get Related Model Object for the object com.sap.caf.eu.gp.dt.comp.semanticbrowser.SemanticBrowserApp, relation Component.
at com.sap.tc.webdynpro.repository.model.DelegatorRepositoryModelClass.getRelatedModelObject(DelegatorRepositoryModelClass.java:640)
at com.sap.tc.webdynpro.progmodel.repository.IWDApplicationInfo$Implementation.getComponentInternal(IWDApplicationInfo.java:286)
at com.sap.tc.webdynpro.progmodel.repository.IWDApplicationInfo$Implementation.getComponent(IWDApplicationInfo.java:270)
at com.sap.caf.eu.gp.ui.co.config.wdapp.COConfigWDApp.addWdappsElement(COConfigWDApp.java:646)
at com.sap.caf.eu.gp.ui.co.config.wdapp.COConfigWDApp.readWebDynproApps(COConfigWDApp.java:631)
at com.sap.caf.eu.gp.ui.co.config.wdapp.COConfigWDApp.readApplications(COConfigWDApp.java:308)
at com.sap.caf.eu.gp.ui.co.config.wdapp.wdp.InternalCOConfigWDApp.readApplications(InternalCOConfigWDApp.java:190)
at com.sap.caf.eu.gp.ui.co.config.wdapp.VSelect.initCreate(VSelect.java:306)
at com.sap.caf.eu.gp.ui.co.config.wdapp.VSelect.onPlugFromDispatch(VSelect.java:174)
at com.sap.caf.eu.gp.ui.co.config.wdapp.wdp.InternalVSelect.wdInvokeEventHandler(InternalVSelect.java:168)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:826)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.navigate(ClientComponent.java:873)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doNavigation(WindowPhaseModel.java:498)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:144)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:330)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
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:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
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:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: com.sap.tc.webdynpro.repository.RepositoryRuntimeException: XMLParser: Bad attribute list. Expected WhiteSpace, / or >: (:main:, row:1, col:491)
at com.sap.tc.webdynpro.repository.persistence.xml.XMLConfigurationParserWriter.startParsing(XMLConfigurationParserWriter.java:178)
at com.sap.tc.webdynpro.repository.persistence.xml.XMLPersistence.doReadVMO(XMLPersistence.java:126)
at com.sap.tc.webdynpro.repository.persistence.RepositoryPersistence.readVMO(RepositoryPersistence.java:356)
at com.sap.tc.webdynpro.repository.persistence.RepositoryPersistence.doFindRepositoryObject(RepositoryPersistence.java:598)
at com.sap.tc.webdynpro.repository.persistence.RepositoryPersistence.findRepositoryObject(RepositoryPersistence.java:170)
at com.sap.tc.webdynpro.repository.model.Repository.findRepositoryObjectInternal(Repository.java:590)
at com.sap.tc.webdynpro.repository.model.RepositoryObjectRelation$XMLGuidWrapper.getModelObject(RepositoryObjectRelation.java:462)
at com.sap.tc.webdynpro.repository.persistence.RepositoryPersistence.getCurrentLayerObject(RepositoryPersistence.java:702)
at com.sap.tc.webdynpro.repository.model.Repository.getCurrentLayerObject(Repository.java:1483)
at com.sap.tc.webdynpro.repository.model.NonSharedRelationToOne.doMergeInheritedTarget(NonSharedRelationToOne.java:85)
at com.sap.tc.webdynpro.repository.model.NonSharedRelationToOne.mergeInheritedTargets(NonSharedRelationToOne.java:49)
at com.sap.tc.webdynpro.repository.model.RelationToOne.getTarget(RelationToOne.java:93)
at com.sap.tc.webdynpro.repository.model.AbstractRepositoryModelClass.getRelatedModelObject(AbstractRepositoryModelClass.java:234)
at com.sap.tc.webdynpro.repository.model.DelegatorRepositoryModelClass.getRelatedModelObject(DelegatorRepositoryModelClass.java:636)
... 39 more
Caused by: com.sap.engine.lib.xml.parser.NestedSAXParserException: XMLParser: Bad attribute list. Expected WhiteSpace, / or >: (:main:, row:1, col:491)(:main:, row=1, col=491) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad attribute list. Expected WhiteSpace, / or >:(:main:, row:1, col:491)
at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:148)
at com.sap.tc.webdynpro.repository.persistence.xml.XMLConfigurationParserWriter.startParsing(XMLConfigurationParserWriter.java:166)
... 52 more
Caused by: com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad attribute list. Expected WhiteSpace, / or >:(:main:, row:1, col:491)
at com.sap.engine.lib.xml.parser.XMLParser.scanAttList(XMLParser.java:1566)
at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1687)
at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2792)
at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:227)
at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:141)
at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:156)
at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:259)
at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:278)
at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:340)
at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125)
... 53 more
<b>error 2</b>
Processing HTTP request to servlet [dispatcher] finished with error. The error is: com.sap.tc.webdynpro.repository.RepositoryRuntimeException: Failed to get Related Model Object for the object com.sap.caf.eu.gp.dt.comp.semanticbrowser.SemanticBrowserApp, relation Component.
at com.sap.tc.webdynpro.repository.model.DelegatorRepositoryModelClass.getRelatedModelObject(DelegatorRepositoryModelClass.java:640)
at com.sap.tc.webdynpro.progmodel.repository.IWDApplicationInfo$Implementation.getComponentInternal(IWDApplicationInfo.java:286)
at com.sap.tc.webdynpro.progmodel.repository.IWDApplicationInfo$Implementation.getComponent(IWDApplicationInfo.java:270)
at com.sap.caf.eu.gp.ui.co.config.wdapp.COConfigWDApp.addWdappsElement(COConfigWDApp.java:646)
at com.sap.caf.eu.gp.ui.co.config.wdapp.COConfigWDApp.readWebDynproApps(COConfigWDApp.java:631)
at com.sap.caf.eu.gp.ui.co.config.wdapp.COConfigWDApp.readApplications(COConfigWDApp.java:308)
at com.sap.caf.eu.gp.ui.co.config.wdapp.wdp.InternalCOConfigWDApp.readApplications(InternalCOConfigWDApp.java:190)
at com.sap.caf.eu.gp.ui.co.config.wdapp.VSelect.initCreate(VSelect.java:306)
at com.sap.caf.eu.gp.ui.co.config.wdapp.VSelect.onPlugFromDispatch(VSelect.java:174)
at com.sap.caf.eu.gp.ui.co.config.wdapp.wdp.InternalVSelect.wdInvokeEventHandler(InternalVSelect.java:168)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:826)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.navigate(ClientComponent.java:873)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doNavigation(WindowPhaseModel.java:498)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:144)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:330)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
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:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
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:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: com.sap.tc.webdynpro.repository.RepositoryRuntimeException: XMLParser: Bad attribute list. Expected WhiteSpace, / or >: (:main:, row:1, col:491)
at com.sap.tc.webdynpro.repository.persistence.xml.XMLConfigurationParserWriter.startParsing(XMLConfigurationParserWriter.java:178)
at com.sap.tc.webdynpro.repository.persistence.xml.XMLPersistence.doReadVMO(XMLPersistence.java:126)
at com.sap.tc.webdynpro.repository.persistence.RepositoryPersistence.readVMO(RepositoryPersistence.java:356)
at com.sap.tc.webdynpro.repository.persistence.RepositoryPersistence.doFindRepositoryObject(RepositoryPersistence.java:598)
at com.sap.tc.webdynpro.repository.persistence.RepositoryPersistence.findRepositoryObject(RepositoryPersistence.java:170)
at com.sap.tc.webdynpro.repository.model.Repository.findRepositoryObjectInternal(Repository.java:590)
at com.sap.tc.webdynpro.repository.model.RepositoryObjectRelation$XMLGuidWrapper.getModelObject(RepositoryObjectRelation.java:462)
at com.sap.tc.webdynpro.repository.persistence.RepositoryPersistence.getCurrentLayerObject(RepositoryPersistence.java:702)
at com.sap.tc.webdynpro.repository.model.Repository.getCurrentLayerObject(Repository.java:1483)
at com.sap.tc.webdynpro.repository.model.NonSharedRelationToOne.doMergeInheritedTarget(NonSharedRelationToOne.java:85)
at com.sap.tc.webdynpro.repository.model.NonSharedRelationToOne.mergeInheritedTargets(NonSharedRelationToOne.java:49)
at com.sap.tc.webdynpro.repository.model.RelationToOne.getTarget(RelationToOne.java:93)
at com.sap.tc.webdynpro.repository.model.AbstractRepositoryModelClass.getRelatedModelObject(AbstractRepositoryModelClass.java:234)
at com.sap.tc.webdynpro.repository.model.DelegatorRepositoryModelClass.getRelatedModelObject(DelegatorRepositoryModelClass.java:636)
... 39 more
Caused by: com.sap.engine.lib.xml.parser.NestedSAXParserException: XMLParser: Bad attribute list. Expected WhiteSpace, / or >: (:main:, row:1, col:491)(:main:, row=1, col=491) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad attribute list. Expected WhiteSpace, / or >:(:main:, row:1, col:491)
at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:148)
at com.sap.tc.webdynpro.repository.persistence.xml.XMLConfigurationParserWriter.startParsing(XMLConfigurationParserWriter.java:166)
... 52 more
Caused by: com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad attribute list. Expected WhiteSpace, / or >:(:main:, row:1, col:491)
at com.sap.engine.lib.xml.parser.XMLParser.scanAttList(XMLParser.java:1566)
at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1687)
at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2792)
at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:227)
at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:141)
at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:156)
at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:259)
at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:278)
at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:340)
at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125)
... 53 more
<b>error 3</b>
Processing HTTP request to servlet [dispatcher] finished with error.
The error is: com.sap.tc.webdynpro.repository.RepositoryRuntimeException: Failed to get Related Model Object for the object com.sap.caf.eu.gp.dt.comp.semanticbrowser.SemanticBrowserApp, relation Component.
Exception id: [00505691431B006F0000003E00000FE800041B45B87F7617]
thanks in advance
Kurt -
Error while creating a system object for R3 in portal
Hi,
I am getting error while trying to create a system object in portal.
Following are the details I used :
Under WAS...
Web AS Host Name :<XXXX>:8001
Web AS path: /sap/bc/bsp/sap/
Web AS protocol : http
Under User management:
Authentication Ticket Type : SAP Logon Ticket
Logon Method :SAPLOGONTICKET
User Mapping Type : admin,user
Under Connector:
SAP Client : <Client NO>
SAP System ID : <System ID>
SAP System No : <System No>
System Type : SAP_R3
While trying with connection test... I am getting like this:
SAP Web AS Connection
Test Details:
The test consists of the following steps:
1. Checks the validity of system ID in the system object.
2. Checks if the system can be retrieved from the PCD.
3. Check whether a SAP system is defined in the system object
4. Validate the following parameters: WAS protocol; WAS host name
5. Checks if the host name of the server can be resolved.
6. Pings the server to see if it is alive.
7. Pings the WAS ping service; works only if the service is activated on the ABAP WAS.
8. Checks HTTP/S connectivity to the defined back-end application
Results
1. The system ID is valid
2. The system was retrieved.
3. The system object represents an SAP system
4. The following parameters are valid: Web AS Protocol (http) Web AS Host Name (<FQDN server name>:8001)
5. The host name <FQDN Server Name> was resolved successfully.
6. The server sapdwh01 could not be pinged successfully.
Test Connection with Connector
Test Details:
The test consists of the following steps:
1. Retrieve the default alias of the system
2. Check the connection to the backend application using the connector defined in this system object
Results
Retrieval of default alias successful
Connection failed. Make sure that Single Sign-On is configured correctly
It seems that the portal is not able to ping to R3 system. I tried to ping to R3 server from portal server by command prompt. I am able to ping. Also under SICF, I can see ping service as in activated state.
Kindly help.
Regards,
Niraj
Edited by: Niraj Kumar on Dec 11, 2008 10:41 AMI created a SAP Transactional iView for transaction SE80.
Also, I tried from under System Administration -> Support -> SAP Transaction. It is not working.
Got portal Runtime error :
Portal Runtime Error
An exception occurred while processing your request
Exception id: 12:57_11/12/08_0003_2795650
See the details for the exception ID in the log file.
Regards,
Niraj -
Error while creating New Responsibility
Hi
We have a R12 Instance. While defining a new responsibility I am getting a error as " ORA-01403: no data found, FRM-40735: ON-UPDATE trigger raised unhandled exception ORA--4063Hi,
Please see these docs.
FNDSCRSP - Creating New Responsibility Gives Errors FRM-40735 ORA-04068 [ID 239530.1
ORA-01403 FRM-40735 WHEN-NEW-INSTANCE Trigger Raised Unhandled Exception ORA-06502 [ID 437087.1]
Thanks,
Hussein
Maybe you are looking for
-
-
Would like to change my security questions since i don't know the answers
i recently added a new gmail address, changed ITunes e-mail to new one, made a new password. have been getting prompts via the old address, but it will not accept the old password associated with that e-mail. can't get in. can't figure out how to exp
-
CLIENT_CREATE_FAILED
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1"> <SAP:Category>XIServer</SAP:Category> <SAP:Code area="INTERNAL">CLIENT_CREATE_FAILED</SAP:Code> <SAP:P1>1</
-
Producing cubes in high view point with PRC
Hello, I'm a latex user and I also use the Asymptote external program to make my 3d solids. I can produce pdf files using PRC features : I can move my solids by turning, rotating them ... I'd like to use high view point representation for my solids i
-
Photoshop elements 12 connection problem
Editor workspace would not load. After trying system restore the problem was still there. I reinstalled the product from disc, but on trying to reactivate I got an error message Please conect to the internet and retry, either your computer is offline