Invalid URL /interop/index.jsp when trying to access Shared Services
Hi All!!
I have EPM 11.1.2.2 under Windows Server 2008 and when I try to access the HSS , the login windows is showed in blank, but if I refresh the page with F5, this window is showed normally. The error message in the SharedServices_Admin.log is the following :
[2013-04-26T15:50:22.560-03:00] [FoundationServices0] [NOTIFICATION] [EPMCAS-11057] [oracle.EPMCAS.CAS] [tid: 39] [userId: <anonymous>] [ecid: 0000Jt7fczWFw0G6yzFg6G1HUgCW0000_T,0] [SRC_CLASS: ] [APP: SHAREDSERVICES#11.1.2.0] [SRC_METHOD: ] URL Inválido /interop/index.jsp
And when I try to call esscmd from prompt I've got error message like the following :
C:\>esscmd
Essbase Command Mode Interface 64-bit - Release 11.1.2 (ESB11.1.2.2.102B025)
Copyright (c) 1991, 2012, Oracle and/or its affiliates. All rights reserved.
U.S. Patent Number 5,359,724
U.S. Patent Number 6,317,750
ESSLANG environment variable not set
Failed getting locale. Please set proper ESSLANG environment.
But the ESSLANG is set at environment variable and its value is ESSLANG=English_UnitedStates.Latin1@Binary.
Does someone could helpme on that ?
Thanks,
Alvaro
Which browser are you testing with, also to start esscmd or maxl you will need to use the startesscmd and StartMaxl scripts, more info at http://docs.oracle.com/cd/E17236_01/epm.1112/epm_install_1112200/ch12s02s08.html
Cheers
John
http://john-goodwin.blogspot.com/
Similar Messages
-
Error when trying to access Shared Services Console
When trying to access the Shared Services Console, I recieved an error message which indicated that an error had occured while performing this operation. http://localhost:28080/interop/jsp/config/defaultError.jsp. The error message from the diagnostics reports indicate that the error has to do with the SSO service error: java.net.ConnectException: Connection refused: connect.
I am installing EPM 11.1.1.2 Hyperion 9.5
Any ideas would be great.Make sure the Shared Services from the Services have been started and the Database configured with the Shared Services is up.
-
An error occurred when trying to access the service
I'm asking myself why I purchased a one year subscription to Adobe Reader to convert PDF files to Doc files, when it NEVER WORKS and no one seems to be able to help me!!! I am on a Mac Book Pro with Yosemite (don't upgrade it slows your Mac badly) and whenever I try to convert a pdf to a doc I get 'an error occurred when trying to access the service', can anybody help me please?
Hi Cedric,
The customer service number is 800833687
The direct link for chat support is: http://adobe.ly/19llvMN
You need to click on 'Still need help' to initiate the chat session.
Are you getting this error: "an error occurred when trying to access the service" while trying to access the service via Reader.
Try using the link: https://cloud.acrobat.com/exportpdf sign in with your Adobe ID and try to convert a pdf to doc and check if that works for you.
Reards,
Rave -
Export PDF will not convert a pdf to MS Word. This failure has been going on for about a week. The error message is "An error occurred when trying to access the service." What can I do to get this working again?
Hi,
It seems it was working fine earlier.
Is this happening with all files?
You can try using different browser.
Regards,
Florence -
I am unable to convert a pdf to a word doc. I get, "An error occured when trying to access the service"
This is the Reader forum, and your question seems to be related with ExportPDF. If it does, you should ask here:
http://forums.adobe.com/community/exportpdf -
Fix for "Not Connected" Error Messages When Trying to Access Web Services
If you run across an error message on your printer stating that it is "Not Connected" when trying to access ePrint or your Apps, but you know it is connected to the internet, it probably just means that the printer is not connecting to the server properly.
Here is the first set of steps I would try, since they seem to resolve this issue half of the time.
The first thing I would try in this situation is a network reboot.
First, disconnect the power cord from the back of your router.
Next disconnect the power cord from either the back of the printer or the wall, without powering it off first.
Wait about 30 seconds and reconnect the power cord to your router.
Wait about another 30 seconds and plug the printer back in. It should boot back up automatically, but if it doesn't go ahead and press the power button.
Once everything is back up and running, try to access ePrint or your Apps.
If those steps don't work for you, the next thing would be setting a Static IP & DNS for the printer. Before doing this, you want to print off a network configuration page. It varies from model to model, but it is usually found under the Wireless Settings or under Reports in the Setup menu. After you have that page, follow these steps.
Before we start, we need a network configuration page with your current connection settings. To get this, press the wireless button on the front of your printer and then press "Print Info" or "Print Report". This will print off a network configuration page, which has information on it that we need to complete the next few steps.
After you have that, we will need to access the printers Embedded Web Server (EWS). You can do so by entering the printers IP address (from the network configuration page) into your browsers address bar and pressing enter.
Once there, press the "Network" tab at the top of the page. From there you will want to click the "IPv4" button, located on the lef-hand side of the page. It will be there for WIreless and Wired, so make sure to click the one for you however you are connected. If you do not see "IPv4", you should see "Networking", press that and then press "Network Address(IP)".
Next, you will want to click the small round button next to "Manual IP Address" and then fill in the boxes for IP Address, Subnet Mask, and Default Gateway, using the information found on the network configuration page.
For the Primary or Preffered DNS Server, you will want to enter 8.8.8.8.
For the Secondary or Alternate DNS Server, you will want to enter 8.8.4.4.
Click apply and when the message pops up saying that the changes have been applied, press "OK".
Press the power button on your printer, wait for it to fully power off and then press it again to power it back on.
After doing this, go ahead and try to enable ePrint again.
-------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------
This question was solved.
View Solution.The reason we recommend using 8.8.8.8 and 8.8.4.4 for the DNS server is because they work when ISP assigned DNS servers do not. The DNS server assigned to you by your ISP is not able to resolve the domain for web services, therefore not allowing the printer to connect.
I assure you that it is with your ISP's DNS server and not the printer. If you were to take the printer back to the store and get a replacement, you would have the same issue, unless you changed the DNS. Same goes for any of our web service enabled printers.
-------------How do I give Kudos? | How do I mark a post as Solved? -------------------------------------------------------- -
Cannot get any exports to work on PDF's after I bought the membership? Any help?
Hi Dylan,
Are you trying to access the service from Acrobat Reader?
Try using the link: https://cloud.acrobat.com/exportpdf sign in with your Adobe ID and try to convert a pdf to doc and check if that works for you.
Regards,
Rave -
Access Denied when trying to access shared folders on the server with administrative privileges
I have problem accessing shared folder on the server machine from Windows 7 machine even if I try to access it with administrative privileges (server Administrator account). I will try now to explain better my situation.
In my company, we have small network infrastructure with one main server machine (HP ProLiant server) with Windows Server 2012 R2 installed and couple of desktop machines. The network is administrated by me.
On Windows Server we have installed and setup DHCP, DNS, Remote Access and Routing, File and Storage and Active Directory services. Desktop machines are having Windows 8.1 Pro, Windows 8.1 or Windows 7 Home Premium installed on them. In Active
Directory I have created domain, User groups and Users for employees in my company and so far, I didn't added desktop machines to the domain.
Also, I've created one folder on the server which should contain different projects data for network users and I have set access permissions and security for this folder and shared it on the network (I've added couple of users to one user group and I
gave Full control to this group over this folder). When I try to access this folder from network, I've been asked for login credentials (normally), where I just type in one of users username and password who has been given access permissions to (who is member
of group with full control over the folder). From Windows 8.1 Pro and Windows 8.1 machines I can access and work on this folder without any problems.
The problem comes with Windows 7 machines. On Windows 7 machines (I have also tried this with Windows 7 Ultimate in VMWare) I can access server, I can see its shares, but as soon I try to access folder I've created for projects, I get Access Denied message
with request for User login credentials. Whichever user account I use (even servers main Administrator account) I keep getting this message over and over and I'm unable to access it at all.
I have also tried to access the server through VPN (from local or outside) but I'm getting the same error again. Also I've tried to add these Windows 7 machines to the domain and login with domain user but the result is the same. Turned off both firewalls
(on server and desktop machines, which I know is unnecessary, but lets try it), still same case. I've tried couple more things with registry editor on desktop machines which I found on different forums and websites but still no luck. And now I don't know
what else I can do.
Does anyone knows what's the problem here, have I set something wrong, have not set something I should?Hi MeipoXu,
thanks for your response. I will first answer on your question.
Yes, the main issue is that we can see the folder when we access the server but we cannot access its contents from Windows 7 machines. I have tried on two machines, one with Windows 7 Home Premium version and the other one with Windows 7 Ultimate version
and the situation is the same.
As you recommended, I've checked Network Discovery and File and Printer Sharing and the situation is next: File and Printer Sharing is turned on all layers (Private, Public and Domain) while Network Discovery is off for all layers too. I don't know if this
is normal thing but Network Discovery cannot be turned on in Windows Server (I'm able to select Turn on Network Discovery and apply the changes, but when I get back to this settings page, I again see that it's turned off, so I assume this can't be changed
at all).
I also tried with icacls in command prompt and everything seems to be ok there regarding permissions. Share permissions are set to Full control to Everyone and Security permissions are set to Full control only for Administrators and the user group I've created
for employees in my company. The confirmation for this is that on Windows 8 machines you can access this folder without any problem and without getting any message connected with access permissions with any user account within this user group. This share is
created through File and Storage Services service in Server Manager panel.
And then something came up on my mind. I went in Server Manager to check shared folder settings in File and Storage Services and under Settings page I saw that "Encrypt data access" has been enabled (I enabled this option because I thought
I will get more security with this option). I asked my self what would happen if I disable it, tried it and now everything works ok on Windows 7 machines too. Now I assume that Windows 7 doesn't have this feature implemented or there are some
settings which needs to be set on Windows 7 machines to make this encryption thing work with Windows Server. So basically, I will let this feature off for now until I find out more about it and how to implement it to work with all operating systems.
I want to thank you once more for your kind help! -
Error code 6600 when trying to access shared network drive
Hi everybody
When trying to "enter" a shared NAS network drive, which appears on my Macbook, I just get error code -6600. What is wrong, do you know what I can do to resolve this???
I have previously managed to do this operation but now it just does not work. Any ideas are greatly appreciated!
Thanks
//MikeAfter some research I found the following tip to be working:
https://discussions.apple.com/message/25038447#25038447
So I changed my IPv4 as well as IPv6 DNS-Servers under Windows Network Preferences and everything worked again.
HTH
Christian -
Error from JNI.ADD_OBJECT_ARG when trying to access web service
Hi,
I'm hoping someone can help me with this. I am very new to Java and my lack of experience is probably killing me...
Trying to be very explicit probably caused me to create a very lengthy post..my apologies...
My issue:
I've created a post_database_commit trigger to access my web service (written in C# .NET). I used JDeveloper 10.3.3.1 to create the wrapper code using my WSDL file. I am receiving an error message "Unable to call out to Java, invalid object type for argument 1" when the code line 'rv := UIDItemSvcSoap12Client.addUidItem(my_object, a0);' is executed in the trigger. I do not see the reason for the error.
Here are code excerpts:
(Post_database_commit trigger)
rv varchar2(1000);
ex ora_java.jobject;
a0 ora_java.jobject;
my_object ORA_JAVA.jOBJECT;
BEGIN
my_object := UIDItemSvcSoap12Client.new() ;
---create args list (Varchar2 in, jobject out)
a0 := Exception_.new(:uid_table.uid_no);
UIDItemSvcSoap12Client.main(a0);
rv := UIDItemSvcSoap12Client.addUidItem(my_object, a0);
(Package spec)
-- Method: addUidItem (Luidwebsvcproject/proxy/UIDItem;)Ljava/lang/String;
FUNCTION addUidItem(
obj ORA_JAVA.JOBJECT,
a0 ORA_JAVA.JOBJECT) RETURN VARCHAR2;
(Entire Package body created by Jdeveloper)
PACKAGE BODY UIDItemSvcSoap12Client IS
-- DO NOT EDIT THIS FILE - it is machine generated!
args JNI.ARGLIST;
-- Constructor for signature ()V
FUNCTION new RETURN ORA_JAVA.JOBJECT IS
BEGIN
args := NULL;
RETURN (JNI.NEW_OBJECT('uidwebsvcproject/proxy/UIDItemSvcSoap12Client', '()V', args));
END;
-- Method: main ([Ljava/lang/String;)V
PROCEDURE main(
a0 ORA_JAVA.JARRAY) IS
BEGIN
args := JNI.CREATE_ARG_LIST(1);
JNI.ADD_OBJECT_ARG(args, a0, '[Ljava/lang/String;');
JNI.CALL_VOID_METHOD(TRUE, NULL, 'uidwebsvcproject/proxy/UIDItemSvcSoap12Client', 'main', '([Ljava/lang/String;)V', args);
END;
-- Method: getPort ()Luidwebsvcproject/proxy/UIDItemSvcSoap;
FUNCTION getPort(
obj ORA_JAVA.JOBJECT) RETURN ORA_JAVA.JOBJECT IS
BEGIN
args := NULL;
RETURN JNI.CALL_OBJECT_METHOD(FALSE, obj, 'uidwebsvcproject/proxy/UIDItemSvcSoap12Client', 'getPort', '()Luidwebsvcproject/proxy/UIDItemSvcSoap;', args);
END;
-- Method: getClientTransport ()Loracle/webservices/transport/ClientTransport;
FUNCTION getClientTransport(
obj ORA_JAVA.JOBJECT) RETURN ORA_JAVA.JOBJECT IS
BEGIN
args := NULL;
RETURN JNI.CALL_OBJECT_METHOD(FALSE, obj, 'uidwebsvcproject/proxy/UIDItemSvcSoap12Client', 'getClientTransport', '()Loracle/webservices/transport/ClientTransport;', args);
END;
-- Method: addUidItem (Luidwebsvcproject/proxy/UIDItem;)Ljava/lang/String;
FUNCTION addUidItem(
obj ORA_JAVA.JOBJECT,
a0 ORA_JAVA.JOBJECT) RETURN VARCHAR2 IS
BEGIN
args := JNI.CREATE_ARG_LIST(1);
JNI.ADD_OBJECT_ARG(args, a0, 'uidwebsvcproject/proxy/UIDItem');
RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'uidwebsvcproject/proxy/UIDItemSvcSoap12Client', 'addUidItem', '(Luidwebsvcproject/proxy/UIDItem;)Ljava/lang/String;', args);
END;
-- Method: getEndpoint ()Ljava/lang/String;
FUNCTION getEndpoint(
obj ORA_JAVA.JOBJECT) RETURN VARCHAR2 IS
BEGIN
args := NULL;
RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'uidwebsvcproject/proxy/UIDItemSvcSoap12Client', 'getEndpoint', '()Ljava/lang/String;', args);
END;
-- Method: getMaintainSession ()Z
FUNCTION getMaintainSession(
obj ORA_JAVA.JOBJECT) RETURN BOOLEAN IS
BEGIN
args := NULL;
RETURN JNI.CALL_BOOLEAN_METHOD(FALSE, obj, 'uidwebsvcproject/proxy/UIDItemSvcSoap12Client', 'getMaintainSession', '()Z', args);
END;
-- Method: setMaintainSession (Z)V
PROCEDURE setMaintainSession(
obj ORA_JAVA.JOBJECT,
a0 BOOLEAN) IS
BEGIN
args := JNI.CREATE_ARG_LIST(1);
JNI.ADD_BOOLEAN_ARG(args, a0);
JNI.CALL_VOID_METHOD(FALSE, obj, 'uidwebsvcproject/proxy/UIDItemSvcSoap12Client', 'setMaintainSession', '(Z)V', args);
END;
-- Method: setUsername (Ljava/lang/String;)V
PROCEDURE setUsername(
obj ORA_JAVA.JOBJECT,
a0 VARCHAR2) IS
BEGIN
args := JNI.CREATE_ARG_LIST(1);
JNI.ADD_STRING_ARG(args, a0);
JNI.CALL_VOID_METHOD(FALSE, obj, 'uidwebsvcproject/proxy/UIDItemSvcSoap12Client', 'setUsername', '(Ljava/lang/String;)V', args);
END;
-- Method: getUsername ()Ljava/lang/String;
FUNCTION getUsername(
obj ORA_JAVA.JOBJECT) RETURN VARCHAR2 IS
BEGIN
args := NULL;
RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'uidwebsvcproject/proxy/UIDItemSvcSoap12Client', 'getUsername', '()Ljava/lang/String;', args);
END;
-- Method: setPassword (Ljava/lang/String;)V
PROCEDURE setPassword(
obj ORA_JAVA.JOBJECT,
a0 VARCHAR2) IS
BEGIN
args := JNI.CREATE_ARG_LIST(1);
JNI.ADD_STRING_ARG(args, a0);
JNI.CALL_VOID_METHOD(FALSE, obj, 'uidwebsvcproject/proxy/UIDItemSvcSoap12Client', 'setPassword', '(Ljava/lang/String;)V', args);
END;
-- Method: getPassword ()Ljava/lang/String;
FUNCTION getPassword(
obj ORA_JAVA.JOBJECT) RETURN VARCHAR2 IS
BEGIN
args := NULL;
RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'uidwebsvcproject/proxy/UIDItemSvcSoap12Client', 'getPassword', '()Ljava/lang/String;', args);
END;
-- Method: setEndpoint (Ljava/lang/String;)V
PROCEDURE setEndpoint(
obj ORA_JAVA.JOBJECT,
a0 VARCHAR2) IS
BEGIN
args := JNI.CREATE_ARG_LIST(1);
JNI.ADD_STRING_ARG(args, a0);
JNI.CALL_VOID_METHOD(FALSE, obj, 'uidwebsvcproject/proxy/UIDItemSvcSoap12Client', 'setEndpoint', '(Ljava/lang/String;)V', args);
END;
-- Method: hashCode ()I
FUNCTION hashCode(
obj ORA_JAVA.JOBJECT) RETURN NUMBER IS
BEGIN
args := NULL;
RETURN JNI.CALL_INT_METHOD(FALSE, obj, 'uidwebsvcproject/proxy/UIDItemSvcSoap12Client', 'hashCode', '()I', args);
END;
-- Method: getClass ()Ljava/lang/Class;
FUNCTION getClass(
obj ORA_JAVA.JOBJECT) RETURN ORA_JAVA.JOBJECT IS
BEGIN
args := NULL;
RETURN JNI.CALL_OBJECT_METHOD(FALSE, obj, 'uidwebsvcproject/proxy/UIDItemSvcSoap12Client', 'getClass', '()Ljava/lang/Class;', args);
END;
-- Method: wait (JI)V
PROCEDURE wait(
obj ORA_JAVA.JOBJECT,
a0 NUMBER,
a1 NUMBER) IS
BEGIN
args := JNI.CREATE_ARG_LIST(2);
JNI.ADD_LONG_ARG(args, a0);
JNI.ADD_INT_ARG(args, a1);
JNI.CALL_VOID_METHOD(FALSE, obj, 'uidwebsvcproject/proxy/UIDItemSvcSoap12Client', 'wait', '(JI)V', args);
END;
-- Method: wait ()V
PROCEDURE wait(
obj ORA_JAVA.JOBJECT) IS
BEGIN
args := NULL;
JNI.CALL_VOID_METHOD(FALSE, obj, 'uidwebsvcproject/proxy/UIDItemSvcSoap12Client', 'wait', '()V', args);
END;
-- Method: wait (J)V
PROCEDURE wait(
obj ORA_JAVA.JOBJECT,
a0 NUMBER) IS
BEGIN
args := JNI.CREATE_ARG_LIST(1);
JNI.ADD_LONG_ARG(args, a0);
JNI.CALL_VOID_METHOD(FALSE, obj, 'uidwebsvcproject/proxy/UIDItemSvcSoap12Client', 'wait', '(J)V', args);
END;
-- Method: equals (Ljava/lang/Object;)Z
FUNCTION equals(
obj ORA_JAVA.JOBJECT,
a0 ORA_JAVA.JOBJECT) RETURN BOOLEAN IS
BEGIN
args := JNI.CREATE_ARG_LIST(1);
JNI.ADD_OBJECT_ARG(args, a0, 'java/lang/Object');
RETURN JNI.CALL_BOOLEAN_METHOD(FALSE, obj, 'uidwebsvcproject/proxy/UIDItemSvcSoap12Client', 'equals', '(Ljava/lang/Object;)Z', args);
END;
-- Method: notify ()V
PROCEDURE notify(
obj ORA_JAVA.JOBJECT) IS
BEGIN
args := NULL;
JNI.CALL_VOID_METHOD(FALSE, obj, 'uidwebsvcproject/proxy/UIDItemSvcSoap12Client', 'notify', '()V', args);
END;
-- Method: notifyAll ()V
PROCEDURE notifyAll(
obj ORA_JAVA.JOBJECT) IS
BEGIN
args := NULL;
JNI.CALL_VOID_METHOD(FALSE, obj, 'uidwebsvcproject/proxy/UIDItemSvcSoap12Client', 'notifyAll', '()V', args);
END;
-- Method: toString ()Ljava/lang/String;
FUNCTION toString(
obj ORA_JAVA.JOBJECT) RETURN VARCHAR2 IS
BEGIN
args := NULL;
RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'uidwebsvcproject/proxy/UIDItemSvcSoap12Client', 'toString', '()Ljava/lang/String;', args);
END;
BEGIN
NULL;
END;
(Code from JDeveloper)
public String addUidItem(UIDItem UIDItem) throws java.rmi.RemoteException {
return _port.addUidItem(UIDItem);
}That's a network or server issue, not a problem with your Mac.
-
Security Error when trying to access web service
I have an app that connects over HTTPS to a web service on
our internal network. The interface to the web service was created
by using the WSDL Import function of the Flex IDE.
I can run the app and retrieve data without a problem when I
run from the debug-bin folder that the Flex IDE compiles to.
However, I cannot connect to the web service from anywhere else,
such as a different location on my own local drives, a network
drive, or another persons machine.
I've setup a local instance of Apache with mod_ssl so I could
host the app under an HTTPS connection itself, which the
documentation seemed to imply that would work. However, when I run
the app, I get:
[FaultEvent fault=[RPC Fault faultString="Security error
accessing url" faultCode="Channel.Security.Error"
faultDetail="Destination: DefaultHTTPS"] messageId=null
type="fault" bubbles=true cancelable=true eventPhase=2]
I am accessing the app by going to
https://mymachine.companydomain.com/myapp.html, and the web service
is being accessed through https://webservice.companydomain.com/.
Anybody have any thoughts on what I should be looking at?
I've been searching and trying things for a few days with no luck.
Any help would be appreciated. Thanks.The SSL handshake works differently to a browser as it is making the connections automatically.
The browser asks every time if you want to trust an expired certificate, and it also recommends not to. Its impractical to manually check every service call to say do you trust the certificate so the functionality doesn't exist. I doubt any integration product does this. Therefore there isn't a option to ignore the certificate if it has expired.
This makes sence as the certificate is untrustworthy. The whole idea around SSL is trusting the site you are communicating with, all parties need to be trusted. This stops hackers from replicating their site and intercepting data.
If the administrator of the remote site is not willing to renew the certificate, are they really interested in SSL. I suggest they expose a non SSL service.
cheers
James -
I am using Adobe Reader with paid up service through May 2015. When I attempt to convert a file either to PDF or from PDF, I get the error message, "An error occurred while trying to access the service". What do I need to do to get access to the service I have paid for?
Hi DeaconTomColorado,
Please see "Error occurred when trying to access this service" when logging on to Acrobat.com.
Adobe has just released an update to Adobe Reader, so if you're accessing the service via Reader, please let us know whether the update helps resolve the issue.
Best,
Sara -
I keep getting a 404 error when trying to access any search link using google, I can get to a website by directly using the URL. I have cleared history, empited the cache and reset safari. Any suggestions.
Right. If you are using delegated privs and sudo, make sure that sudo is configured to pass on the PERL5LIB and ORACLE_HOME environment variables at least.
-
After automatic update to 32.2 (then I tried to update to 33.0 beta with no improvement) Firefox keeps returning a "Gone The requested resource /administrator/index.php is no longer available" reponse when trying to access joomla login. The problem is there even when I fill manually the fileds "user" and "password" in the joomla admin login page. The problem appears in different sites on different servers, and do not occurr using Google Chrome. It's clearly a Firefox issue. Could you please give me some ideas on how to solve ?
Works here.
*http://www<i></i>.centrostellapolare<i></i>.it/administrator/index<i></i>.php
Try to disable IPv6 (check for other possible causes as well).
*http://kb.mozillazine.org/Error_loading_websites -
Error 403 Reported when trying to access web page through a program.
I was writing a program for fun, to try to download a web page, pdf or anything from the web. The program works fine when given local file system path in URL and also works well when i tried to access a page from the tomcat installed on my machine but gives a error 403 when tried to access URL's outside the system. Tried to read about 403, seems that many sites does not allow to access a particular URL directly using the directory structure, you have to pass thru different hyperlinks before reaching resource.
IS THERE ANY WAY THIS PROBLEM CAN BE SOLVED.
import java.io.*;
import java.net.*;
class TestDownload
public static void main(String[] args)
try
URL url = new URL("http://www.webmasterworld.com/forum48/1966.htm");
// URL url = new URL("http://localhost:8080/index.html");
// URL url = new URL("file:\\C:\\web_2.pdf");
URLConnection connection = url.openConnection();
InputStream stream = connection.getInputStream();
BufferedInputStream in = new BufferedInputStream(stream);
FileOutputStream file = new FileOutputStream("x.html");
BufferedOutputStream out = new BufferedOutputStream(file);
int i;
while ((i = in.read()) != -1) {
out.write(i);
out.flush();
catch(IOException e)
e.printStackTrace();
System.out.println("Hello World!");
}I was writing a program for fun, to try to download a web page, pdf or anything from the web. The program works fine when given local file system path in URL and also works well when i tried to access a page from the tomcat installed on my machine but gives a error 403 when tried to access URL's outside the system. Tried to read about 403, seems that many sites does not allow to access a particular URL directly using the directory structure, you have to pass thru different hyperlinks before reaching resource.
IS THERE ANY WAY THIS PROBLEM CAN BE SOLVED.
import java.io.*;
import java.net.*;
class TestDownload
public static void main(String[] args)
try
URL url = new URL("http://www.webmasterworld.com/forum48/1966.htm");
// URL url = new URL("http://localhost:8080/index.html");
// URL url = new URL("file:\\C:\\web_2.pdf");
URLConnection connection = url.openConnection();
InputStream stream = connection.getInputStream();
BufferedInputStream in = new BufferedInputStream(stream);
FileOutputStream file = new FileOutputStream("x.html");
BufferedOutputStream out = new BufferedOutputStream(file);
int i;
while ((i = in.read()) != -1) {
out.write(i);
out.flush();
catch(IOException e)
e.printStackTrace();
System.out.println("Hello World!");
}
Maybe you are looking for
-
How do I make my MacBook Air discover itself as a Bluetooth device?
My MacBook Air will discover and pair my iPhone and Touch, but it won't discover itself.
-
With contacts who have more than 1 number assigned to them, I dial their name on the main screen, and then press the Send button, which is supposed to show me the various phone number choices to dial. It stopped doing this, and doesn't do anything un
-
I unplugged my apple tv and when i plugged it back in, my movie rental disappeared. How can I get it back?
-
Upgrade path for Oracle XE to Oracle 10G rel2 Standard/Enterprise Edition
Good day, We are currently have application using Oracle 10G XE. Is there a document guide available to assist migration/upgrades from Oracle 10G XE to Oracle 10G Rel2 Thank you in advance for your guidance
-
Automatic GR possible for STO's?
We have message type SPED setup for STO's; after GI for the outbound delivery, an inbound is automatically created. We would like to have the GR proces after creation of the inbound delivery automated as well, so confirmation of the pick quantity (on