Cant generate new URL() Object in Dashcode
As the topic says i im not able to generate a new URL() Object.
like:
var url = new URL();
in Dashcode it says that url is not declared why?
Hello,
Thx for the answer but I think I didnt told you why i need the fetch() method.
The fetch method takes the data(e.g. html) and puts it in a string variable or into a file.
I need this because I want to make a widget(I finished but one feature is missing) which opens a site and tells you how which trains or busses you need.
My Problem is that this site needs detailed information and so you have to choose on the site.
I want to put this choosing into my widget.
As you recognized the idea is like Ajax.
But i dont think that xmlhttprequest will work for my problem.
Is there any other solutions?
Similar Messages
-
Hi, problem occurs when I'm clicking a button or a new url on the current site. For instance, when i clicked that "Ask This" button on this web site, It redirects me to the default homepage. I cant go back and I'm losing the previous web site HELP PLEASE!
Try the Firefox SafeMode. <br />
''A troubleshooting mode, which disables most Add-ons.'' <br />
''(If you're not using it, switch to the Default Theme.)''
# You can open the Firefox 4.0 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
# Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes -
Performance issue in linux while using set with URL object
Hi,
I am facing performance issue while using Set(HashSet) with URL object on linux. But it is running perfectly on windows.
I am using
set.contains(urlObject)
Above particular statement is taking 40 sec on Linux, and only a fraction of ms on windows.
I have checked the jre version on both OS. It is the same version (jre6)
on both the OS.
Could anyone please tell me what is the exact reason, why the same statement is taking more time on linux than windows.
Thanks & Regards
Naveenjtahlborn wrote:
I believe the URL hashCode/equals implementations have some /tricky behavior which involves network access in order to run (doing hostname lookups and the like). you may want to either use simple Strings, or possibly the URI class (i think it fixed some of this behavior, although i could be wrong).The second new thing I have learned today. I was wrong in reply # 1 because looking at the URL code for 1.6 I see that the hash code is generated from the IP address and this has a lazy evaluation. Each URL placed in a HashMap (or other hash based collection) requires a DNS lookup the first time the hash code is used.
P.S. 40 seconds does seem a long time for a DNS lookup!
Edited by: sabre150 on Feb 13, 2008 3:40 PM -
Help needed with message: "Exception creating new Poolable object"
In r12.1.3 EBS users occasionally instead of getting the login screen will see the following message *"Unable to generate forwarding URL. Exception: oracle.apps.fnd.common.AppsException: oracle.apps.fnd.common.PoolException: Exception creating new Poolable object"* Restarting the applications usually resolves the issue but it happens so infrequently that we've been unable to diagnose the problem or recreate the problem at will.
Any assistance would be greatly be appreciated in diagnosing the problem.
We've logged an SR with Oracle Support and they recommended turning on OC4J Debugging which they advised would create large log files. Since we can replicate this issue at will we would like to avoid turning on debugging and creating the large log files.user6035136 wrote:
In r12.1.3 EBS users occasionally instead of getting the login screen will see the following message *"Unable to generate forwarding URL. Exception: oracle.apps.fnd.common.AppsException: oracle.apps.fnd.common.PoolException: Exception creating new Poolable object"* Restarting the applications usually resolves the issue but it happens so infrequently that we've been unable to diagnose the problem or recreate the problem at will.
Any assistance would be greatly be appreciated in diagnosing the problem.
We've logged an SR with Oracle Support and they recommended turning on OC4J Debugging which they advised would create large log files. Since we can replicate this issue at will we would like to avoid turning on debugging and creating the large log files.Can you find any details about the error in the application.log and Apache log files file when the issue happens?
Do you have the patches in these docs applied?
Connection Leak On Login [ID 1462034.1]
Connection Leak: Find LeakedConnectionException Reported in AOLJ Database Connection Pool Test [ID 1177093.1]
Connection Leaks From fndgfm (fndgfm.java, fndgfm.jsp, _fndgfm.java) [ID 1231393.1]
Please also see these docs.
Got Error "Exception: oracle.apps.fnd.common.AppsException: oracle.apps.fnd.common.PoolException: Exception creating new Poolable object" When Login EBS [ID 1485112.1]
R12: On a cloned target the logon screen reports 'HTTP error 500 Internal server error' [ID 1335176.1]
Upgrading From 11.510 To R121.3 and Encountered HTTP 500 Internal server [ID 1360410.1]
Concurrent Requests (Java Based) Failing With NoClassDefFoundError 'Could not initialize class javax.crypto.SunJCE_b' [ID 1423414.1]
Oracle.Apps.Fnd.Common.Poolexception: Not Able To Create New Database Connection [ID 1434807.1]
Thanks,
Hussein -
How to add a new url link in a view of an existing webdynpro component?
How to add a new url link in a view of an existing webdynpro component?
hi ,
refer SAP online hep :
Implementing Enhancements in a View
http://help.sap.com/erp2005_ehp_04/helpdata/EN/46/233f2189f74f08e10000000a114a6b/frameset.htm
To enhance the layout of the view, you can create new UI elements. This procedure is no different u2013 from a technical viewpoint u2013 from creating UI elements in components themselves. All UI elements created within the enhancement implementation can then be processed as usual.
Enhancements means inserting user developments into SAP development objects at predefined positions.
The Enhancement Framework enables you to add functionality to standard SAP software without actually changing the original repository objects, and to organize these enhancements as effectively as possible.
refernce :
have a look at this article
How to Create Enhancement Implementation in Web Dynpro ABAP
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/700317da-bd79-2c10-368e-8f18bf5d8b81&overridelayout=true
as pointed correctly by Saurav in earlier thread
regards,
amit -
Step By Step Creation Of A new Business Object
hi,
Please Give Me Details Of A Business Object,like step by step creation of a new business object and it's utilization.Create a business object (SWO1).
Give the business object name prefixed with Z_.
Enter the following fields with values:
Object type: Z_TESTXX
This is the internal technical key. Page: 1
Object type can have maximum 10 characters. This must be unique across all object type. Objects are specific instances of object types at runtime.
Object name: Object_Name_for_XX
The object type is addressed with this name by external applications. This is a descriptive English name and can be up to 32 characters. This also must be unique across all object type.
Name: Object Name: XX
This is a meaningful name of the business object.
Description: Object Description: XX
Page: 1
Object description, can be up to 40 characters.
Program: Z_TESTXX
Each object type has an ABAP/4 program in which methods of the object are implemented. This program is generated automatically when you create or revise an object type.
Application: indicates cross application.
3: Create an event.
Open the Object type in change mode. When you change your subtype the first step is to create a new event, this is done by selecting the Event node and clicking the create button. Give the event a name and a description. Next set the status of this object type component to implemented.
Event: Z_EVENT_XX
Name: Event name: XX
Description: Event Description: XX
Click on the new event andu2026
Edit - Change Release Status- Object Type Component - Implemented
(A small box sign vanishes from the right side of the event, indicating that it is implemented)
There can be multiple triggering events for a standard/customer task.
In R/3 4.0 the release strategy for new Object Types and Object Type Components (methods, attributes, events, etc.) was enhanced. Now when an object type and/or components are created, there are different statuses to select, based on its required purpose. The statuses are:
u2022 Modeled - objects cannot be accessed at runtime. This is the status that is automatically set when an object type or component is created. Items with a modeled status cannot be referenced in any type of workflow task.
u2022 Implemented - objects can be used internally in a test environment. They are accessible, but may not be stable (especially if no delegation has been defined).
u2022 Released - objects are ready for production. Note: Local objects cannot be released.
u2022 Obsolete - objects are typically replaced by new functionality or incompatible with previous versions. This status is optional.
4: Create a method.
Next a method must be created without using any function module template. When creating the method ensure that the method call is synchronous - this means that the method doesn't require a terminating event.
A method can be synchronous or asynchronous. Synchronous Method
Method that, for the duration of its execution, assumes the process control and, after its execution, reports to the calling component (work item manager, in this case).
Synchronous methods can return the following data, if defined: Return parameters, one result and Exceptions.
Terminating events can also be defined for a single-step task described with a synchronous method. At runtime, the relevant work item is then terminated either when the synchronous method is successfully executed or when one of the defined terminating events occurs.
Asynchronous Method
Method that, after its execution, does not report directly to the calling component (work item manager, in this case).
Asynchronous object methods do not return results, parameters or exceptions.
At least one terminating event must be defined for a single-step task described with an asynchronous object method.
At runtime, the relevant work item is only terminated if one of the defined terminating events occurs.
Next set the status of this object type component to implemented. The methods are not implemented unless you once open their program. Select the method and open its program. It gives a message u201CDo you want to generate a template automatically for the missing sectionu201D. Click u201CYesu201D. Inside the program insert the code u201CCALL TRANSACTION u2018FB03u2019. Display Financial Document.
Method: Z_METHODXX
Name: Method name: XX
Description: Method Description: XX
Edit - Change Release Status - Object Type Component - Implemented
5. Create Key fields.
Create key fields with ABAP dictionary field proposal.
It is the identifying key, via which the system can access a specific object, that is, an instance of the object type. The key fields of an object type are usually also the key fields in the table containing the header data for the object type. Only character-based data types are allowed as key fields. The total length allowed for all key fields is 70 characters. Each key field refers to a field in the ABAP Dictionary.
Enter u2018BKPFu2019 in table name field and select all the key fields. Press Continue button. Next set the status of these key fields to implemented.
Edit - Change Release Status -Object Type Component - Implemented
6:Implement business object.
The whole business object needs to be implemented so click on the business object title andu2026
Edit - Change Release Status - Object Type - Implemented
Now you can check the syntax, generate the Business Object and then test it. Execute the custom method you created and give the Company code, Document number and Year. -
Validator Cleaned existing formbean or generated new one
Hi buddies,
I'd like to use struts validator in my project. It seems working but cleaning existing formbean or generating new formbean.
The case is: after listing all customers, user can choose edit or delete one of them. Supposed (and it works correctly before I applied validator in) the Action will find the client and populate the appropriate field value into form bean, and the form bean is to be forward to edit jsp page. But now, in the fields on the edit jsp page are blank, just like create new record.
it took me 2 days, and cannot fix the problem. Please gave me some ideas. Your any input is appreciated.
[u]struts-config.xml[/u]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
<form-beans>
<form-bean name="customerListForm"
type="com.articy.struts.form.CustomerListForm" />
<form-bean name="customerEditForm"
type="com.articy.struts.form.CustomerEditForm" />
<form-bean name="loginForm"
type="com.articy.struts.form.LoginForm" />
</form-beans>
<global-exceptions />
<global-forwards>
<forward name="welcome" path="/default.do" redirect="true" />
<forward name="Logon" path="/security/login.jsp"
redirect="true" />
</global-forwards>
<action-mappings>
<action forward="/jsp/index.jsp" path="/default" unknown="true" />
<action attribute="customerListForm"
input="/jsp/customerList.jsp" name="customerListForm"
path="/customerList" scope="request"
type="com.articy.struts.action.CustomerListAction">
<forward name="listCustomer" path="/jsp/customerList.jsp" />
</action>
<action attribute="customerEditForm"
input="/jsp/customerEdit.jsp" name="customerEditForm" parameter="do"
path="/customerEdit" scope="request"
type="com.articy.struts.action.CustomerEditAction">
<forward name="addCustomer" path="/jsp/customerAdd.jsp" />
<forward name="listCustomers" path="/customerList.do"
redirect="true" />
<forward name="editCustomer" path="/jsp/customerEdit.jsp" />
</action>
<action attribute="loginForm" input="/security/login.jsp"
name="loginForm" path="/login" scope="request"
type="com.articy.struts.action.LoginAction">
<forward name="loginSuccess"
path="/security/loginSucess.jsp" />
<forward name="loginFailure"
path="/security/loginFailure.jsp" redirect="true" />
</action>
<action path="/logout"
type="com.articy.struts.action.LogoutAction">
<forward name="Success" path="/security/logoutSuccess.jsp"
redirect="true" />
</action>
<action attribute="loginForm" name="loginForm"
path="/prepareLogin" scope="request"
type="com.articy.struts.action.PrepareLoginAction">
<forward name="logon" path="/security/login.jsp" />
</action>
</action-mappings>
<controller
processorClass="org.apache.struts.tiles.TilesRequestProcessor" />
<message-resources
parameter="com.articy.struts.ApplicationResources" />
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config"
value="/WEB-INF/tiles-defs.xml" />
<set-property property="definitions-parser-validate"
value="true" />
<set-property property="moduleAware" value="true" />
</plug-in>
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
<set-property property="stopOnFirstError" value="true" />
</plug-in>
</struts-config>
validation.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration
1.1.3//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">
<form-validation>
<global>
<constant>
<constant-name>phone</constant-name>
<constant-value>^\(?(\d{3})\)?[-| ]?(\d{3})[-| ]?(\d{4})$</constant-value>
</constant>
<constant>
<constant-name>zip</constant-name>
<constant-value>^\d{5}\d*$</constant-value>
</constant>
</global>
<!-- ========================= Default Formset ========================= -->
<formset>
<constant>
<constant-name>zip</constant-name>
<constant-value>^\d{5}(-\d{4})?$</constant-value>
</constant>
<form name="customerForm">
<field property="lastname" depends="required,mask,minlength">
<arg0 key="customereditform.lastname.displayname" position="0"/>
<arg1 name="minlength" key="${var:minlength}" resource="false"
position="1"/>
<var>
<var-name>mask</var-name>
<var-value>^\w+$</var-value>
</var>
<var>
<var-name>minlength</var-name>
<var-value>5</var-value>
</var>
</field>
<field property="name" depends="required,mask,maxlength">
<msg name="mask" key="customereditform.name.maskmsg" />
<arg0 key="customereditform.name.displayname" position="0" />
<arg1 name="maxlength" key="${var:maxlength}" resource="false"
position="1"/>
<var>
<var-name>mask</var-name>
<var-value>^[a-zA-Z]*$</var-value>
</var>
<var>
<var-name>maxlength</var-name>
<var-value>30</var-value>
</var>
</field>
</form>
</formset>
</form-validation>
customerEditAction.java
package com.articy.struts.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;
import www.articy.wdb.bl.LibraryManager;
import com.articy.struts.form.CustomerEditForm;
public class CustomerEditAction extends DispatchAction {
public ActionForward editCustomer(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
System.out.println("editCustomer");
CustomerEditForm customerEditForm = (CustomerEditForm) form;
* Arthur Niu get id of the customer from request
Integer id = Integer.valueOf(request.getParameter("id"));
// get business logic
LibraryManager vvmManager = new LibraryManager();
customerEditForm.setCustomer(vvmManager.getCustomerByPrimaryKey(id));
return mapping.findForward("editCustomer");
public ActionForward deleteCustomer(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
System.out.println("deleteCustomer");
CustomerEditForm customerEditForm = (CustomerEditForm) form;
* Arthur Niu get id of the customer from request
Integer id = Integer.valueOf(request.getParameter("id"));
// get business logic
LibraryManager vvmManager = new LibraryManager();
vvmManager.removeCustomerByPrimaryKey(id);
return mapping.findForward("listCustomers");
public ActionForward addCustomer(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
System.out.println("addCustomer");
CustomerEditForm customerEditForm = (CustomerEditForm) form;
return mapping.findForward("addCustomer");
public ActionForward saveCustomer(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
CustomerEditForm customerEditForm = (CustomerEditForm) form;
if (isCancelled(request)) {
removeFormBean(mapping, request);
return (mapping.findForward("listCustomers"));
// get business logic
LibraryManager vvmManager = new LibraryManager();
vvmManager.saveCustomer(customerEditForm.getCustomer());
return mapping.findForward("listCustomers");
protected void removeFormBean(ActionMapping mapping,
HttpServletRequest request) {
// Remove the obsolete form bean
if (mapping.getAttribute() != null) {
if ("request".equals(mapping.getScope())) {
request.removeAttribute(mapping.getAttribute());
} else {
HttpSession session = request.getSession();
session.removeAttribute(mapping.getAttribute());
customerEditForm.java
package com.articy.struts.form;
import java.io.Serializable;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.validator.ValidatorForm;
import www.articy.wdb.Customer;
public class CustomerEditForm extends ValidatorForm implements Serializable {
private static final long serialVersionUID = 1L;
private Customer customer;
public Customer getCustomer() {
return customer;
public void setCustomer(Customer customer) {
this.customer = customer;
public boolean equals(Object rhs) {
return customer.equals(rhs);
public Integer getId() {
return customer.getId();
public void setId(Integer id) {
customer.setId(id);
public String getName() {
return customer.getName();
public void setName(String name) {
customer.setName(name);
public String getLastname() {
return customer.getLastname();
public void setLastname(String lastname) {
customer.setLastname(lastname);
public Integer getAge() {
return customer.getAge();
public void setAge(Integer age) {
customer.setAge(age);
public Boolean getActive() {
return customer.getActive();
public void setActive(Boolean active) {
customer.setActive(active);
public java.sql.Date getBod() {
return customer.getBod();
public void setBod(java.sql.Date bod) {
customer.setBod(bod);
public java.sql.Timestamp getLogontime() {
return customer.getLogontime();
public void setLogontime(java.sql.Timestamp logontime) {
customer.setLogontime(logontime);
public String toString() {
return customer.toString();
public void reset(ActionMapping mapping, HttpServletRequest request) {
customer = new Customer();
customerList.jsp
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%>
<html>
<head>
<title>JSP for customerListForm form</title> </head> <body> <table border="1"> <tbody>
<%-- set the header --%>
<logic:present name="customerListForm" property="customers">
<tr>
<td>Id</td>
<td>Name</td>
<td>Lastname</td>
<td>Age</td>
<td>Active</td>
<td>Bod</td>
</tr>
<%-- start with an iterate over the collection customer --%> <logic:iterate name="customerListForm" property="customers" id="customer"> <tr>
<%-- customer information --%>
<td><bean:write name="customer" property="id" /></td>
<td><bean:write name="customer" property="name" /></td>
<td><bean:write name="customer" property="lastname" /></td>
<td><bean:write name="customer" property="age" /></td>
<td><bean:write name="customer" property="active" /></td>
<td><bean:write name="customer" property="bod" /></td>
<%-- edit and delete link for each customer --%> <td><html:link action="customerEdit.do?do=editCustomer"
paramName="customer"
paramProperty="id"
paramId="id">Edit</html:link>
</td>
<td><html:link action="customerEdit.do?do=deleteCustomer"
paramName="customer"
paramProperty="id"
paramId="id">Delete</html:link>
</td>
</tr>
</logic:iterate>
<%-- end interate --%>
</logic:present>
<%-- if customers cannot be found display a text --%> <logic:notPresent name="customerListForm" property="customers"> <tr> <td colspan="5">No customer found.</td> </tr> </logic:notPresent>
</tbody>
</table>
<br>
<%-- add and back to menu button --%>
<html:button property="add"
onclick="location.href='customerEdit.do?do=addCustomer'">Add a new customer </html:button> <html:button property="back"
onclick="location.href='default.do'">Back to menu </html:button> </body> </html>
customerEdit.jsp
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<html>
<head>
<title>JSP for customerEditForm form</title> </head> <body>
<logic:messagesPresent>
<bean:message key="errors.header"/>
<ul>
<html:messages id="error">
<li><bean:write name="error"/></li>
</html:messages>
</ul><hr />
</logic:messagesPresent>
<html:form action="customerEdit" method="post">
<html:hidden property="id"/> <html:hidden property="do" value="saveCustomer"/>
Id: <html:text property="id"/><br/>
Name: <html:text property="name"/><br/>
Lastname: <html:text property="lastname"/><br/>
Age: <html:text property="age"/><br/>
Active: <html:text property="active"/><br/>
Bod: <html:text property="bod"/><br/>
<html:submit property="submit" onclick="bCancel=false;">
<bean:message key="button.save"/>
</html:submit>
<html:cancel/>
</html:form>
</body>
</html>anybody can help?
-
How do i update a single bookmark to a new url.
probably already there but i cant find it .
there are some very old bookmarks in my personal bookmark collection. Some of them point to a wrong adress.
How do i update them ?
Maybe something like chose 'update bookmark' while being on the new page and then select an old bookmark ..
-mjaha, nice.
an update option in this context menu would be really nice
now i have to copy the new url and paste it in the edit box....
I tried to drag it but when click the adres the editbox dissapears ....
ok it sort of works
thx
maybe an idea for a next update -
PCUI - Open new url or bsp with a Toolbar Button
Hi all,
I have a PCUI custom application (CRM_BSP_FRAME)and i want open a new url or bsp with my button on the toolbar of result list. Important: Without modification of standard.
Thx in Advance
Regards.
ManuelHi Manuel,
in the event you can enter an object link.
Regards
Thomas -
Problem of reading source HTML document via URL object?
Hi, Friends,
why the following simple program can't work correctly?
import java.net.*;
import java.io.*;
public class URLReader {
public static void main(String[] args) throws Exception {
URL ieee = new URL("http://www.ieee.com/");
BufferedReader in = new BufferedReader(
new InputStreamReader(
yahoo.openStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
you know, when we use http://www.ieee.com/ to visit the ieee website via browser, it works well, only the adress is reset to http://ieee.com/portal/site/iportals/ , why the browser can do that, while the URL object can't?A URL is simply a reference to a "file" location.
To do I/O on that object requires some sort of protocol. HTTP (a "web server"), will allow you to do this, but uses the HttpURLConnection object.
The Java Tutorials shows you CAN read/write to a URL, but requires the underlying HTTP protocol client implementation.
I think you are using this code from the Sun site: http://java.sun.com/docs/books/tutorial/networking/urls/readingURL.html
Which may be why you create 'ieee' but reference 'yahoo' in your code.
Were you getting an error message when trying to compile your program?
You may wish to look further into the tutorial pages at: http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html
But I still would refer you in the end to HttpURLConnection which is much more in-depth. -
URL object with https string throws malformed url exception: unknown protocol: https
In WebLogic I am trying to connect to an HTTPS url by passing that url
string into the contructor for URL object. This throws a Malformed URL
Exception : unknown protocol: https.
When i run this same block of code outside of weblogic (in a stand-alone
app), it runs perfectly. (not exceptions when creating the URL object).
why do i get this exception in weblogic?
could weblogic be loading its own URL class rather than the java.net.URL
class (which supports ssl)? if so how do i override that classloading?
is there a weblogic security "feature" that prevents opening an ssl
connection?
thanks for any help
mike
[email protected]You need to modify your weblogic.policy file to allow you to change the
the property java.protocol.handler.pkgs ... and any other properties
that you may probably change using JSSE (for example:
javax.net.ssl.trustStore for storing certificates of servers that you
want to connect to from WLS )
Regards,
John Salvo
Michael Harrison wrote:
>
thanks for the help dennis, but still get the "unknown protocol https".
the URL object sees that the URLStreamHandler ==null and get the value for
java.protocol.handler.pkgs (which should be
com.sun.net.ssl.internal.www.protocol) then it tries to load that class. i
believe that the GetPropertyAction("java.protocol.handler.pkgs","") is not
returning com.sun.net.ssl.internal.www.protocol. therefore the class is not
getting loaded
i think that my classpath is set up properly for classpath and
weblogic_classpath so i think that i me calling
System.setProperty("java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol"); is not effective.
do you know anyway i can trouble shoot this.
thanks
mike
Dennis O'Neill <[email protected]> wrote in message
news:39d23c28$[email protected]..
Https is an add-in so to speak. Try this before you create your url:
System.setProperty ("java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol");
// add the default security provider (again, in JSSE1.0.1)
int iap = java.security.Security.addProvider(new
com.sun.net.ssl.internal.ssl.Provider() );
dennis -
Generating relative URLs in 12.1.3 menus
Does anyone know if it is possible to get R12.1.3 to generate relative URL for all menu items?
The new AJAX based menus are returning absolute URL for all menu item links.
If this is the wrong forum please let me know
thanksHi,
ERROR: I/O or zip error while attempting to read entry oracle/xdo/parser/schema/XSDIdConstraintTable$NodeTable.class in zip This error indicates one of the following:
- Permission are not set correctly, so please verify the permissions -- See (Note: 339762.1)
- The file is corrupted or missing, and you would need to find the file and copy it to the appropriate directory -- See (Note: 299723.1, 299964.1, 343639.1, 746167.1) for examples
If none of the above helps, I would suggest you log a SR.
Thanks,
Hussein -
Thread: Exception creating new Poolable object
Hi All,
I have installed jdeveloper 12.1.3 and when running the hello world page iam getting this error....pls advice
Error Details ................
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)
select fnd_web_sec.validate_login('TEST_USER','TEST@123') from dual;
vaue is 'N'
select fnd_web_sec.validate_login('GUEST','ORACLE') from dual;
vaue is 'N'
Thanks
MuthuYou can use below URL to confirm the jdev version
http://oracleanil.blogspot.com/2009/05/getting-setting-value.html
Metallink Note 416708.1
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=416708.1
Thanks
AJ -
Creating new business object key.
Hi experts,
i created a new z business object and created its keys but when i am trying to release the business object key 'personnelnumber' it's showing following error:
"Function 'Change status' is not supported by the selected object 'PersonnelNumber' ".
Please suggest me the solution.But in program of my Z business object ZANNUAL_COMP error is shown as follows so i can't generate my business object.
The data object "OBJECT-_ZANNUAL_COMP" does not have a component
"PERSONNELNUMBER".
please suggest me solution.
thanks
Snehasish Das -
Can I copy MATERIAL adapter object and create new business object in R3AC1
Hi experts,
I need to copy MATERIAL adapter object and create a new business object R3AC1.
Please let me know whether this is feasible.
Thanks & Regards,
KeyaUsually when there is a need to change/create an adapter object, I suggest to change object class to CUSTOMIZING in R3AC1. Then save it and call transaction R3AC3. There do necessary changes and afterwards switch back to original object class. There is no copy functionality for adapter objects. Kindly use transaction R3AC3 to create a new adapter object and maintain all tabs according to your requirements. When you are finished, kindly change the object class "CUSTOMIZING" to the original class name you're copying and the new adapter object will be visible in R3AC1.
Documentation can be found in
https://service.sap.com/ce -> Early Product Training > SAP CRM 4.0 & mySAP CRM Edition 2004 .. on the learning map, please choose "Development Consultant" -> Open "Enhance CRM Scenarios"
Here you can find a lot of guides and SAP tutors on how to create an adapter object, example coding, and so on.
To enable Filter Fields for an Adapter object make requisite changes in table SMOFFILFLD and generate the Adapter Object using SMOGGEN. CHeck table CRMPAROLTP in ECC to enable Filtering
Maybe you are looking for
-
Request assistance/ guidance please-- How do I remove my ex wife's phone from my plan, but allow her to remain a verizon wireless customer without interruption in her phone service? She would like to remain with Verizon Wireless. thank you! Russ
-
Different links for different forms of the same list.
Greetings, I have a custom list created with several columns one of which is the Title column. I have created three different views for this list. Using SharePoint Designer 2013 I have created three separate forms, one is a custom new for, a custom e
-
Tried to install Sound Blaster Live! 5.1 but won't wor
Hi, I tried to install a Li've! 5. card i recently bought, and the guy from the store told me i wouldn't need a CD-ROM because XP auto-installs it. So i opened my pc, and plugged the sound blaster into a free motherboard slot. When i try to startup,
-
Why does it take CS4 Encore 2 days to transcode Blu-ray h.264 High Def
I have been trying to create a Blu-ray disc for Days by adobe dynamic link from Adobe Premiere Pro. I have no problems with creating a DVD. I only have problems when I try sending over 1080i High Definition footage instead of Standard Definition. I w
-
Spry drop down menu not working after page created from template
Hi all. I created a template and the drop down Spry menu is working fine on local testing on my browser as follows: I then created a New Page from this above Template. I did no alteration to this new page and just saved it as index.html but when prev