Java Exception (HTTP)
I'm trying to use java to go to website specified by a user, pull the index.html page, then search through the information I've pulled to find and print the title of the webpage. I know this seems like an odd request, it is for a homework assignment. I can get the program to work with simple websites, ie google.com however it seems to crash on websites with large amounts of source code. Here are the errors I receive.
C:\Users\Kyle\My Documents\cosc 4360>java MyHTTP
Please input the desired website/IP address and press enter.
The desired format for websites is 'www.website.com'. Thank you.
www.uttylerbsm.org
Start: 471 Finish: 513
SiteGround Web Hosting Server Default Page
C:\Users\Kyle\My Documents\cosc 4360>java MyHTTP
Please input the desired website/IP address and press enter.
The desired format for websites is 'www.website.com'. Thank you.
www.google.com
Start: 667 Finish: 673
Google
C:\Users\Kyle\My Documents\cosc 4360>java MyHTTP
Please input the desired website/IP address and press enter.
The desired format for websites is 'www.website.com'. Thank you.
www.yahoo.com
Start: 6 Finish: -1
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String ind
ex out of range: -7
at java.lang.String.substring(Unknown Source)
at MyHTTP.read(MyHTTP.java:26)
at MyHTTP.main(MyHTTP.java:62)
C:\Users\Kyle\My Documents\cosc 4360>
The first 2 are successful the 3rd fails. Code is below, any help even if just pointing in the right direction will help. Thanks!
import java.io.*;
import java.net.*;
import java.util.*;
class MyHTTP
public static String IP_ADDRESS = "74.125.159.103"; //Google
public static final int PORT = 80;
private static String read(BufferedReader br) throws IOException
int c;
int start;//determines start of title
int finish;//determines end of title
String response = "";
while ((c = br.read()) != -1)
response += (char) c;
//find title in response
start = (response.indexOf("<title>")) +7;
finish = response.indexOf("</title>");
//debugging for start and finish
System.out.printf("Start: %d Finish: %d\n", start, finish);
response = response.substring(start, finish);
//return the title to be printed
return response;
public static void main (String[] args) throws Exception
//create scanner
Scanner input = new Scanner(System.in);
//take user input
System.out.println("\n\nPlease input the desired website/IP address and press enter.");
System.out.println("The desired format for websites is 'www.website.com'. Thank you.");
IP_ADDRESS = input.nextLine();
//declare Variables
String sentence = "";
//creates tcpsocket using user input, predefined port
Socket tcpSocket = new Socket(IP_ADDRESS, PORT);
DataOutputStream outToReceiver = new DataOutputStream(tcpSocket.getOutputStream());
BufferedReader inFromReceiver = new BufferedReader(
new InputStreamReader(tcpSocket.getInputStream()));
String title = "";
//appends website information to string
sentence += "GET /index.html HTTP/1.0\n";
sentence += "\r\n\n";
outToReceiver.writeBytes(sentence);
title = read(inFromReceiver);
System.out.print(title);
tcpSocket.close();
}
Also I see more flaws in the requirements of this assignment, unless they were specified:
1) There's no guarantee that a site has a "default page"
2) There's no guarantee that the page you get back, even if it is a real page instead of a redirect response like the OP recieved, has a <title> element
3) There could be many <title> elements (could be embedded in commented out XML, or in places other than the <head> element). But you only want to process the one (if any) that is within the proper (if any) <head> element.
Similar Messages
-
Java Exception in Main/Menu/Reporting Tools/XML Publisher/Report Definition
Hi ,
One know this error :
Java Exception: java.lang.NoSuchMethodError: oracle.xml.parser.schema.XSDBuilder.build(Ljava/io/InputStream;Ljava/net/URL;)Loracle/xml/parser/schema/XMLSchema;: during call of com.peoplesoft.pt.xmlpublisher.PSXPXsdUtils.getLevel0ColNames. (2,763) PSXPRPTDEFN_WRK.FUNCLIB.FieldFormula Name:GetBurstFieldValues PCPC:3211 Statement:48
Called from:PSXPRPTDEFN_WRK.FUNCLIB.FieldFormula Name:SetBurstFieldValues Statement:81
Called from:PSXPRPTDEFN_WRK.FUNCLIB.FieldFormula Name:LoadReportDefn Statement:660
Called from:PSXPRPTDEFN_WRK.FUNCLIB.FieldFormula Name:SelectReportDefn Statement:744
Called from:PSXPRPTDEFN.GBL.PostBuild Statement:36 The noted Java error was thrown during a call of the given method.
It's if i Add a New Value in the report definition (Peoplesoft 8.5 , CRM ) : No customization in this
Thanks in advance..Judging by the error, it looks like the xsd can not be constructed.
I would start of by checking if the target location is defined in the Intergration Broker.
PeopleBooks > PeopleTools 8.52: PeopleSoft Integration Broker Administration > Configuring PeopleSoft Integration Broker for Handling Services > Using the Target Locations Page to Set Target Locations for Services
http://docs.oracle.com/cd/E28394_01/pt852pbh1/eng/psbooks/tiba/book.htm?File=tiba/htm/tiba08.htm#H3007 -
"ORA-29532: Java call terminated by uncaught Java exception
Dear Oracle:
I am trying to establish an HTTPS connection from a Java stored
procedure that is wrapped in a PL/SQL procedure and loaded into a
Package. We are running on Oracle 8.1.7.
My Java code compiles and runs fine when run stand-alone outside
Oracle; I can establish the connection to a secure server and talk to
the server. However when I load this Java class (using the loadjava
utility) this class can no longer run and I get a the following
exception:
"ORA-29532: Java call terminated by uncaught Java exception:
javax.net.ssl.SSLException: SSL handshake failed:
X509CertChainIncompleteErr"
I have tried loading the JSSE from Sun and I still get the same error.
Searching in the Discussing Forums I found the following link (which
describes a procedure that logs into the UPS secure server site and
grabs some XML) http://osi.oracle.com/~mbpierma/SSL_Java_DB.html .
This code works ok if we try to connect to UPS server. However this
code doesn't work if we try to log in to a different server (such as
???). If I modify this code slightly and try to log to any other
sever server I get the same error as the one above. Investigation
lead us to understand that the certificate at the UPS web site is a
self-signed certificate -- not one generated by a major 'recognized'
authority such as Verisign or Thawte.
Further research pointed me to the following URL
http://www.znow.com/sales/oracle/network.816/a76932/appf_ora.htm#619367
This URL has the documentation for JAVA SSL for 8.1.6 which I figure
I could read and try to make it work in 8.1.7.
I looked at your Secure Hello World example, however the code is
missing the most critical parts of the whole example, it does not
specify where the certificate or any of the security settings come
from (see the attached JavaCertExample.txt file).
So, my questions are the following:
1) What should I do to avoid the error mentioned above?
2) Do you have a sample piece of code that describes how to make a
HTTPS connection using a Java stored procedure?
3) Can I make the HTTPS connection using a URL class and not using
sockets directly?
4) Do I need to load the JSEE provided by Sun?
5) Will the solution be different for Oracle 9i?
// SecureHelloClient.java
import java.net.*;
import java.io.*;
import java.util.*;
import javax.net.ssl.*;
import javax.security.cert.X509Certificate;
import oracle.security.ssl.OracleSSLCredential;
import oracle.security.ssl.OracleSSLSocketFactory;
import oracle.security.ssl.OracleSSLProtocolVersion;
import oracle.security.ssl.OracleSSLSession;
public class SecureHelloClient
public static void main(String argv[])
String hostName = "localhost";
if(argv.length != 0)
String hostName = argv[0];
// Set the SSLSocketFactoryImpl class as follows:
java.util.Properties prop = System.getProperties();
prop.put("SSLSocketFactoryImplClass",
"oracle.security.ssl.OracleSSLSocketFactoryImpl");
try
// Get the default socket factory
OracleSSLSocketFactory sSocFactory
= (OracleSSLSocketFactory)SSLSocketFactory.getDefault();
sSocFactory.setSSLProtocolVersion(OracleSSLProtocolVersion.SSL_Version_3_0);
OracleSSLCredential sslCredObj = new OracleSSLCredential();
// Where did these values come from? caCert, userCert, trustedCert,
// Set the certificate chain and private key if the
// server requires client authentication
sslCredObj.addCertChain(caCert)
sslCredObj.addCertchain(userCert)
sslCredObj.setPrivateKey(userPvtKey, userPassword)
// Populate credential object
sslCredObj.addTrustedCert(trustedCert);
sSocFactory.setSSLCredentials(sslCredObj);
// Create the socket using factory
SSLSocket jsslSoc =
(SSLSocket)sSocFactory.createSocket(hostName, 8443);
String [] ciphers = jsslSoc.getSupportedCipherSuites() ;
// Select the ciphers you want and put them.
// Here we will put all availabel ciphers
jsslSoc.setEnabledCipherSuites(ciphers);
// We are creating socket in client mode
jsslSoc.setUseClientMode(true);
// Do SSL handshake
jsslSoc.startHandshake();
// Print negotiated cipher
System.out.println("Negotiated Cipher Suite: "
+jsslSoc.getSession().getCipherSuite());
System.out.println("");
X509Certificate[] peerCerts
= ((javax.net.ssl.SSLSocket)jsslSoc).getSession().getPeerCertificateChain();
if (peerCerts != null)
System.out.println("Printing server information:");
for(int i =0; i ? peerCerts.length; i++)
System.out.println("Peer Certificate ["+i+"] Information:");
System.out.println("- Subject: " + peerCerts.getSubjectDN().getName());
System.out.println("- Issuer: " + peerCerts[i].getIssuerDN().getName());
System.out.println("- Version: " + peerCerts[i].getVersion());
System.out.println("- Start Time: " + peerCerts[i].getNotBefore().toString());
System.out.println("- End Time: " + peerCerts[i].getNotAfter().toString());
System.out.println("- Signature Algorithm: " + peerCerts[i].getSigAlgName());
System.out.println("- Serial Number: " + peerCerts[i].getSerialNumber());
else
System.out.println("Failed to get peer certificates");
// Now do data exchange with client
OutputStream out = jsslSoc.getOutputStream();
InputStream in = jsslSoc.getInputStream();
String inputLine, outputLine;
byte [] msg = new byte[1024];
outputLine = "HELLO";
out.write(outputLine.getBytes());
int readLen = in.read(msg, 0, msg.length);
if(readLen > 0)
inputLine = new String(msg, 0, readLen);
System.out.println("");
System.out.println("Server Message:");
System.out.println(inputLine );
else
System.out.println("Can't read data from client");
// Close all sockets and streams
out.close();
in.close();
jsslSoc.close();
catch(SSLException e)
System.out.println("SSL exception caught:");
e.printStackTrace();
catch(IOException e)
System.out.println("IO exception caught:");
e.printStackTrace();
catch(Exception e)
System.out.println("Exception caught:");
e.printStackTrace();Hi,
I have the same problem.
Is some ORACLE guru that can help us ?
We need to communicate with some servlet
via POST method of https (SSL3)
and with using private certificate on the client site.
We need furthermore allow using of some proxy.
Client site is realized as set of stored procedures within ORACLE 8.1.7
In this time I am able to communicate with server without SSL and certificate
using package utl_tcp
(but with this solution without certificate is our customer not satisfied -:))
ORACLE help us please !
Pavel Pospisil
[email protected] -
Is there a way to handle custom java exception in OSB?
For example, i created a exception that extends RuntimeException.
My exception has a new field called "code".
I want to handle this exception in Oracle Service Bus process and retrieve this code to throws another exception with a XML structure that includes the code.
Is there a way to do that ?
<con:fault xmlns:con="http://www.bea.com/wli/sb/context">
<con:errorCode>BEA-382515</con:errorCode>
<con:reason>Callout to java method "public static org.apache.xmlbeans.XmlObject ...</con:reason>
<con:java-exception xmlns:con="http://www.bea.com/wli/sb/context">
<con:java-content ref="jcid:33a6c126:14006f3df18:-7fd9"/>
</con:java-exception>
<con:location xmlns:con="http://www.bea.com/wli/sb/context">
<con:node>optmusPipeline</con:node>
<con:pipeline>optmusPipeline_request</con:pipeline>
<con:stage>processStage</con:stage>
<con:path>request-pipeline</con:path>
</con:location>
</con:fault>
it is not enough to recover the information i needed.Hi Sandro,
I've got the same situation. I agree that returning xml from function is not a best choice as you have to manually check if return status is an error or not. Processing exception in error handler is better and this is how I do it:
I am doing a java callout to a function that can throw exception. Then I add ErrorHandler to stage containing this callout (all the exception are caught here).
In the error handler I check if $fault/ctx:java-exception is not null. If not then I pass thrown exception to my utility function that converts it to xml similar to yours:
import org.apache.xmlbeans.XmlException;
import org.apache.xmlbeans.XmlObject;
public static XmlObject exceptionToXML(Throwable exception)
throws XmlException {
String xmlString = exceptionToString(exception);
return XmlObject.Factory.parse(xmlString);
public static String exceptionToString(Throwable exception) {
String cause = "";
if (exception.getCause() != null) {
cause = exceptionToString(exception.getCause());
return String
.format("<exception><name>%s</name><description>%s</description>%s</exception>",
exception.getClass().getName(), exception.getMessage(),
cause);
Calling exceptionToXML with $fault/ctx:java-exception/ctx:java-content returns:
<exception>
<name>pl.app.MyException</name>
<description>Exception message</description>
</exception>
Then you can check the exception class (IF action: $exception/name/text() = "pl.app.MyException") and handle it accordingly.
Good luck,
Krzysiek -
Hi,
I have a requirement of calling BI webservices from Plsql stored procedure. I generated all my wsdl java classes and loaded them into the database. However, when I tried to call one of my java class using stored procedure, it is giving me"ORA-29532: Java call terminated by uncaught Java exception: java.lang.NoClassDefFoundError".
*Cause: A Java exception or error was signaled and could not be
resolved by the Java code.
*Action: Modify Java code, if this behavior is not intended.
But all my dependency classes are present in database as java class objects and are valid. Can some one help me out of this?Stiphane,
You can look in USER_ERRORS to see if there's anything more specific reported by the compiler. But, it could also be the case that everything's OK (oddly enough). I loaded the JavaMail API in an 8.1.6 database and also got bytecode verifier errors, but it ran fine. Here are the errors I got when loading Sun's activation.jar, which ended up not being a problem:
ORA-29552: verification warning: at offset 12 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):12 by a throw at offset 18 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):18 by a throw at offset 30 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):30 by a throw
Hope this helps,
-Dan
http://www.compuware.com/products/devpartner/db/oracle_debug.htm
Debug PL/SQL and Java in the Oracle Database -
Error: ORA-29532: Java call terminated by uncaught Java exception:
Anyone have this similar problem of
ORA-29532: Java call terminated by uncaught Java exception:
javax.xml.rpc.soap.SOAPFaultException: Caught exception while handling request:
deserialization error: XML reader error: unexpected character content:
"A"
The service is running fine in a browser and returns the date. When I run it using the PL/SQL it has the error mentioned above.
I am running the following:
CREATE OR REPLACE FUNCTION GetDate_wb( p_dummy IN VARCHAR2 )
RETURN DATE
AS
l_service sys.UTL_DBWS.service;
l_call sys.UTL_DBWS.call;
l_result ANYDATA;
l_wsdl_url VARCHAR2(1024);
l_service_name VARCHAR2(200);
l_operation_name VARCHAR2(200);
l_input_params sys.UTL_DBWS.anydata_list;
l_port sys.UTL_DBWS.qname := 8988;
BEGIN
l_wsdl_url := 'http://org-lblakisa1:8988/BPEL_OD-LoginWS-context-root/getDate1SoapHttpPort?WSDL';
l_service_name := 'getDate1';
l_operation_name := 'getDate';
l_service := sys.UTL_DBWS.create_service (
wsdl_document_location => URIFACTORY.getURI(l_wsdl_url),
service_name => l_service_name);
l_call := sys.UTL_DBWS.create_call (
service_handle => l_service,
port_name => NULL,
operation_name => l_operation_name);
l_input_params(1) := ANYDATA.ConvertVarchar2(p_dummy);
l_result := sys.UTL_DBWS.invoke (
call_handle => l_call,
input_params => l_input_params);
sys.UTL_DBWS.release_call (call_handle => l_call);
sys.UTL_DBWS.release_service (service_handle => l_service);
RETURN ANYDATA.AccessDate(l_result);
END;
/Problem is resolved... We had a version issue in that 10.1.3 web service is not compatible. 10.1.2 worked.
-
Java Exception & error loading fmrweb.res
I have installed Oracle9i Database and oracle 9i Forms on windows XP.
When i try to run a form i get a java Exception
MessageManager: key VERSION bundle oracle.forms.engine.RunformBundle exception java.lang.IllegalArgumentException: unknown format type at
At the same time i get an error while opening the fmrweb.res file.
I have seen some solutions to this problem, but I'm not sure i fully understand them. I hope somebody could help me.What is the error message, this looks like normal informational messages
I have signed it sucessfully..Now i am getting the
following in the java console
Oracle JInitiator: Version 1.3.1.9
Using JRE version 1.3.1.9 Java HotSpot(TM) Client VM
User home directory = C:\Documents and
Settings\Aruns
Proxy Configuration: Manual Configuration
Proxy: proxy1.emirates.net.ae:8080
Proxy Overrides: 172.16.*,<local>
JAR cache enabled
Location: C:\Documents and Settings\Aruns\Oracle
racle Jar Cache
Maximum size: 50 MB
Compression level: 0
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
Loading
http://hpc266:8888/forms90/java/f90all_jinit.jar from
JAR cache
Cached copy of
http://hpc266:8888/forms90/java/webutil.jar is out of
date
Cached copy: Jul 4, 2005 8:50:04 AM
Server copy: Jul 4, 2005 8:52:15 AM
Downloading
http://hpc266:8888/forms90/java/webutil.jar to JAR
cache
Cached copy of
http://hpc266:8888/forms90/java/jacob.jar is out of
date
Cached copy: Jul 4, 2005 8:50:16 AM
Server copy: Jul 4, 2005 8:51:59 AM
Downloading http://hpc266:8888/forms90/java/jacob.jar
to JAR cache
connectMode=HTTP, native.
Forms Applet version is : 90270
Can anybody pls help me in this issue -
LSOCP 200 Content Player Java Exception
Dear Collegues,
I am encountering an issue with the LSOCP 200.
Our client's infrastructure as follows:
SAP R/3 Enterprise 4.7 Ext 2.00
LSO 200 0029 SAPK-200PTINLSO LSO 200 (Learning Solution - Back End) I
LSOFE 200 0027 SAPK-200PRINLSOFE LSOFE 200 (Learning Solution - Front End
SAP EP 6.0
I have done all the required configuration in R/3 by pointing to the content server and pointing to the Content Player in the respective IMG Tasks.
Now, when I log on as a learner and attempt to start a course, I receive a Java Exception:
*Errors occurred
Incomplete or incorrect data:
com.sap.hcm.ls.lms.servlets.exceptions.InvalidArgumentException course update failed :
at com.sap.hcm.ls.lms.servlets.control.CourseUpdater.update(CourseUpdater.java:78)
at com.sap.hcm.ls.lms.servlets.control.EventDispatcher.updateModels(EventDispatcher.java:116)
at com.sap.hcm.ls.lms.servlets.control.RequestProcessor.doProcess(RequestProcessor.java:98)
at com.sap.hcm.ls.lms.servlets.control.RequestProcessor.process(RequestProcessor.java:83)
at com.sap.hcm.ls.lms.servlets.control.Mediator.processRequest(Mediator.java:221)
at com.sap.hcm.ls.lms.servlets.control.Mediator.doGet(Mediator.java:150)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java(Compiled Code))
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code))
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))
CAUSED BY: com.sap.hcm.ls.lms.courseengine.EngineException: failed to get macrostrategy with token=
at com.sap.hcm.ls.lms.courseengine.steamengine.SteamEngine.getSteamMacroStrategyByToken(SteamEngine.java:180)
at com.sap.hcm.ls.lms.courseengine.steamengine.SteamCourse.(SteamCourse.java:108)
at com.sap.hcm.ls.lms.courseengine.steamengine.SteamEngine.loadCourse(SteamEngine.java:303)
at com.sap.hcm.ls.lms.courseengine.steamengine.SteamEngine.loadCourse(SteamEngine.java:313)
at com.sap.hcm.ls.lms.data.session.SessionFacade.loadCourse(SessionFacade.java:587)
at com.sap.hcm.ls.lms.data.session.CourseStateUpdater.loadCourseFromPath(CourseStateUpdater.java:354)
at com.sap.hcm.ls.lms.data.session.CourseStateUpdater.loadCourse(CourseStateUpdater.java:176)
at com.sap.hcm.ls.lms.data.session.CourseStateUpdater.update(CourseStateUpdater.java:120)
at com.sap.hcm.ls.lms.servlets.control.CourseUpdater.update(CourseUpdater.java:74)*
The content plays on the local Content player on the desktop but the moment I attempt to play content with the server content player, this is what i get.
Could you please let me know if you have come across this problem.
Thanks and regards,
Ronald MeyerHi Abhiram,
Please get in the IMG
Training and Event Management -> SAP Learning Solution -> Learning Portal -> Select Learning Strategies
Here you need to update your strategies defined.
Regards,
Jorge -
Java Exception handling framework
Please suggest some frameworks for Java Exception handling
http://java.sun.com/docs/books/tutorial/essential/exceptions/
http://forum.java.sun.com/thread.jsp?forum=31&thread=173005
http://www.tfh-berlin.de/~knabe/java/multex/
http://www.impetus.com/comp_jeh.htm
http://www.softwaresummit.com/1998/1998/speakers/haggar.htm -
FRM-92101 - java exception - unable to communicate with runtime process
We have a Forms application developed in Forms 10.1.2.0.2. One of our forms gives a unusual error. This error comes from any client machine we run the application.
Our menu form (menu.fmb), in it's ON-LOGON trirgger, calls a form called login.fmb. Login has a canvas where username, pwd and db is specified with Login an Cancel buttons.
Problem is with the EXIT_FORM build it. When the form tries to execute this built in we get the Dr. Watson type screen with 2 buttons (Details... and OK). The alert says
FRM-92101: There was a failure in the Forms Server during startup. This could happen
due to invalid configuration. Please look into the web-server log file for details.When we press the Details... button we get
java exception
oracle.forms.net.ConnectionException: Forms session <> aborted: unable to
communicate with runtime processWe tried the "compile all" option as suggested by Note ID 444690.1 but no effect.
This question's ( http://tiny.cc/fpcfmw ) answer suggests to update the hosts files but it is not clear as to which hosts file (client, application server) and what information to put there.
Any help on this would be greatly appreciated.FRM-92101 means that the Forms runtime (frmweb.exe) crashed or could not be started. This has nothing to do with a network connection, unless your environment is configured with load balancing and session binding has not been enabled.
Given that you are using 10.1.2.0, this could be a bug which likely was corrected in a newer version. If you have a MyOracleSupport account, I recommend you patch to 10.1.2.3 (Patch ID 5983622). After doing so, I would further recommend that you install the latest Forms Bundle patch on top of that, as it includes a few fixes which may be related to your problem. See patch ID 9593176 and Note 1188127.1 -
S Java Exception - Class Cast Exception
When I go into my sms and mms inbox, as I click on one chat message thinger it shows the en thing in the top right, but it doesn't open, I have to click back then open it again and the message that person sent me doesn't show up. It's not happening with every chat, just the one, I've tried deleting it and starting a new one, but that didn't work, there seems to be nothing I can do with the Blackberry Desktop manager to fix it, so I turned to the internet, it appears no one else is having this problem, or they are and they just don't feel like posting about it.
I also get an error in my log right after the S Java Exception - ClassCastException that reads S Java Exception - IllegalArgumentException
Any ideas on the problem or any other information you need, I'll be checking this atleast every 8 hours from now till it's resolved. I hope someone knows something about it..That my friend is a Java error message.
means something broke....
But in all seriousness. It seems there was an application registry issue.
Im guessing that you are on BES?
see if this helps
http://www.blackberry.com/btsc/KB17831
If not, please provide more details (mainly what you were doing/trying to do when this happened)
and your os version.
thanks!
1). Please thank those who help you by clicking the beside the 'Reply' button.
2). If your issue has been solved, please resolve it by marking "Accept as Solution" on the correct post!
3). Remember to have fun! We are all in this together!
4). Follow me on -
Can Forte' IIOP Client catch Java exceptions?
Hi all,
we are using Forte' IIOP features in IDL Mode, to integrate a Forte' client
and a Java server.
Our configuration is:
- java jdk 1.1.5
- Visigenic VIsibroker 3.1 for Java ORB
- Forte' 3.0.G
Is it possible for the Forte' client to catch a Java exception?
We tried to define an IDL file based on our Java server:
module querye
interface QueryClass
exception MiaSQLException{};
string EseguiQuery(in string query_string) raises
(MiaSQLException);
Using forte' corbagen utility we generated the forte' .pex file:
begin TOOL querye;
forward QueryClass;
class QueryClass inherits from Framework.Object
class MiaSQLException inherits from FrameWork.GenericException
end class;
has public method EseguiQuery(
input query_string : string
) : string;
has property
distributed=(allow=on, override=on, default=on);
end class;
method QueryClass.EseguiQuery(
input query_string : string
) : string
begin
end method;
end querye;
We we tried to import the .pex file in the forte' repository, forte' raise
a Syntax Error.
Any idea?
TIA
Giuseppe Sorce
CSI Piemonte - C.so Unione Sovietica 216 - 10134 Torino - ITALY
tel. +39-011-3168736
fax +39-011-3168212
e-mail [email protected]
url http://www.csi.it
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>I am trying to get Forte to communicate with Orbix (not the web
version) via IIOP. Right now I am trying to set up an Orbix C++
server with Forte being the client. Eventually I will need to
communicate the other way (Forte being the server -- I need to do
both). Right now I cannot get Forte to connect to the server. Any
suggestions would be appreciated.
Thanks in advance,
Dale Boan
Details
I am running Forte on an NT machine and the Orbix server under HP-UX.
Under NT, I am using Forte 3.0.F.2 with IIOP enabled (I think - it
shows up in the partition GUI).Which version of Orbix are you using? I believe 2.3c is required. At least I
know that Forte has successfully called Orbix services using 2.3c.
- Coty -
Java Exception with SDO_UTIL.FROM_WKTGEOMETRY
Anyone have any idea why the following is not working?
INSERT INTO "OBJECT_EVENT" ("title", GEOMETRY) VALUES ( 'testPoly', SDO_UTIL.FROM_WKTGEOMETRY('POLYGON((-76.57418668270113 38.91891450597657 0, -76.57484114170074 38.91758725401061 0, -76.57661139965057 38.91881851059802 0, -76.57418668270113 38.91891450597657 0))'));This is producing the following error:
ERROR at line 1:
ORA-29532: Java call terminated by uncaught Java exception:
java.lang.RuntimeException: -2
ORA-06512: at "MDSYS.SDO_UTIL", line 137I'm a n00b with Oracle Spatial and there's so much documentation I can't find anything that references this issue. Which usually means I have something all wrong.
Thoughts? Help?
Thanks so much!Nick,
So does that mean the JTS download at spatialdbadvisor.com is the latest codebase you've contributed? i.e. Do I have your latest work? If not I'll redownload once you update. If so, I'll play around with the .sh script and see if I can't get it working. The current download is still called JTS. At some point the name will change, probably to something like JSC4O (Java Spatial Companion 4 Oracle)... I may drop the "Companion" but I don't want people thinking I am trying to replace SDO_GEOMETRY
like ESRI does or Jaspa aspires to. All I want to do is make the SDO_GEOMETRY experience for users a little easier in those areas where gaps appear between releases that users need plugged but the Oracle release/license cycle isn't flexible enough.
I often update the JTS library as I find bugs or add new functionality. For example, I release a version a few days ago which contained:
* ST_LineMerger
* Takes set of linestring geometries and constructs a collection of linear components
* that form maximal-length linestrings. The linear components are returned as a MultiLineString.
* @param p_resultSet : RefCur_T : Ref Cursor of Linestring Geometries
* @param p_precision : int : Number of decimal places of precision when comparing ordinates.
* @return STRUCT : Collection of linear sdo_geometries as MultiLineString.
* @throws SQLException
* @history Simon Greener, January 2012, Original Coding
* @copyright : Licensed under a Creative Commons Attribution-Share Alike 2.5 Australia License.
* http://creativecommons.org/licenses/by-sa/2.5/au/
Function ST_LineMerger(p_resultSet in &&defaultSchema..JTS.refcur_t,
p_precision in number)
Return mdsys.sdo_geometry
Deterministic;Also, I am improving/tuning my XSV exporter right now so those changes will go up.
As each goes up I modify this page: http://www.spatialdbadvisor.com/source_code/223/geoprocessing-package-documentation
I believe the latest version has some modifications to the install.sh script after your comments. Perhaps you might want to look at that version before starting?
regards
Simon -
SocketPermission & Uncaught Java Exception Problems
Hi,
I'm trying to run a applet that uses BC4J.
But I'm getting a SocketPermission - resolve-connect - problem.
When I try to grant "connect-resolve" permissions using the DBMS_JAVA procedure,
EXEC DBMS_JAVA.GRANT_PERMISSION('CONFIG','SYS:java.net.SocketPermision', '3.8.180.87', 'connect,resolve');
I'm getting the following exception:
ERROR at line 1:
ORA-29532: Java call terminated by uncaught Java exception:
java.lang.SecurityException: policy table update SYS:java.net.SocketPermision,
3.8.180.87
ORA-06512: at "SYS.DBMS_JAVA", line 0
ORA-06512: at line 1
BTW,
Both the Web Server and the Oracle DB Server are in the same computer.
I tried with both: SYSTEM and SYS users.
"CONFIG" is a DB existent schema -user-
"3.8.180.87" is the web & db server -I tried "*", too, but I got the same error-.
Could some body help me, please?
I think I'm doing the right steps -procedure.
Thanks in advance,
AgustinI'm in the process of publishing the following note (134280.1), titled "How to Resolve ORA-29532 Java 2 Permission Problems in RDBMS 8.1.6 and 8.1.7".
It will be accessible from Oracle Support's "Metalink" site.
"How to Resolve ORA-29532 Java 2 Permission Problems in RDBMS 8.1.6 and 8.1.7".
Problem Description
Periodically an application running in the Enterprise Java Engine
(EJE) formerly known as the "Oracle 8i JVM", "the JSERVER component", or
the "Aurora JVM" will fail with a "java 2" permissions error having the
following format :
Note : Message shown below have been reformatted for easier readability.
java.sql.SQLException: ORA-29532: Java call terminated by uncaught Java exception:
usually followed by a detailed error message similar to one of the following
messages :
Example # 1
java.security.AccessControlException: the Permission
(java.net.SocketPermission hostname resolve)
has not been granted by dbms_java.grant_permission to
SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
Example # 2
java.security.AccessControlException: the Permission
(java.util.PropertyPermission * read,write)
has not been granted by dbms_java.grant_permission to
SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
Example # 3
java.security.AccessControlException: the Permission
(java.io.FilePermission \matt1.gif read)
has not been granted by dbms_java.grant_permission to
SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
Explanation
The java 2 permission stated in line # 2 of each of the above "Examples"
has not been granted to the user specified in line 4 of the above "Examples".
Solution Description
The methodology to solve this issue is identical for all java 2 permissions
cases.
1) Format a call "dbms_java.grant_permission" procedure as described below.
2) Logon as SYS or SYSTEM
3) Issue the TWO commands shown below
4) Logoff as SYS or SYSTEM
5) Retry your application
For Example # 1
1) Logon as SYS or SYSTEM
2) Issue the following commands :
a) call dbms_java.grant_permission('SCOTT',
'java.net.SocketPermission',
'hostname',
'resolve');
b) commit;
Note: Commit is mandatory !!
3) Logoff as SYS or SYSTEM
4) Retry your application
For Example # 2
1) Logon as SYS or SYSTEM
2) Issue the following commands :
a) call dbms_java.grant_permission('SCOTT',
'java.util.PropertyPermission',
'read,write');
b) commit;
Note: Commit is mandatory !!
3) Logoff as SYS or SYSTEM
4) Retry your application
For Example # 3
1) Logon as SYS or SYSTEM
2) Issue the following commands :
a) call dbms_java.grant_permission('SCOTT',
'java.io.FilePermission',
'\matt1.gif',
'read');
b) commit;
Note: Commit is mandatory !!
3) Logoff as SYS or SYSTEM
4) Retry your application
References
For more details on java 2 permissions and security within the EJE, review
Chapter 5, in the Java Developer's Guide. entitled,
"Security For Oracle8i Java Applications"
The RDBMS 8.1.7 version can be found at :
http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/index.htm
null -
Hi,
We are getting the below exception in an ESS application. I have not analysed any Java exceptions before.
I want to know what all useful information this exception provides other than the obvious
'User INDUARV does not exist/not attached in this period.'
Thanks,
Aravind
Exception is given below
User INDUARV does not exist/not attached in this period.
User INDUARV does not exist/not attached in this period.:com.sap.pcuigp.xssfpm.java.FPMRuntimeException: User INDUARV does not exist/not attached in this period.
+ at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:112)+
+ at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:122)+
+ at com.sap.pcuigp.xssutils.pernr.EmployeeGroupInfo.init(EmployeeGroupInfo.java:140)+
+ at com.sap.pcuigp.xssutils.pernr.wdp.InternalEmployeeGroupInfo.init(InternalEmployeeGroupInfo.java:183)+
+ at com.sap.pcuigp.xssutils.pernr.FcEmployeeServices.initPernr(FcEmployeeServices.java:270)+
+ at com.sap.pcuigp.xssutils.pernr.FcEmployeeServices.onInit(FcEmployeeServices.java:226)+
+ at com.sap.pcuigp.xssutils.pernr.wdp.InternalFcEmployeeServices.onInit(InternalFcEmployeeServices.java:273)+
+ at com.sap.pcuigp.xssutils.pernr.FcEmployeeServicesInterface.onInit(FcEmployeeServicesInterface.java:135)+
+ at com.sap.pcuigp.xssutils.pernr.wdp.InternalFcEmployeeServicesInterface.onInit(InternalFcEmployeeServicesInterface.java:198)+
+ at com.sap.pcuigp.xssutils.pernr.wdp.InternalFcEmployeeServicesInterface$External.onInit(InternalFcEmployeeServicesInterface.java:258)+
+ at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.attachComponentToUsage(FPMComponent.java:922)+
+ at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.attachComponentToUsage(FPMComponent.java:891)+
+ at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPMProxy.attachComponentToUsage(FPMComponent.java:1084)+
+ at com.sap.xss.essceservices.vcceassignmentselection.VcCEAssignmentSelection.onInit(VcCEAssignmentSelection.java:235)+
+ at com.sap.xss.essceservices.vcceassignmentselection.wdp.InternalVcCEAssignmentSelection.onInit(InternalVcCEAssignmentSelection.java:174)+
+ at com.sap.xss.essceservices.vcceassignmentselection.VcCEAssignmentSelectionInterface.onInit(VcCEAssignmentSelectionInterface.java:162)+
+ at com.sap.xss.essceservices.vcceassignmentselection.wdp.InternalVcCEAssignmentSelectionInterface.onInit(InternalVcCEAssignmentSelectionInterface.java:144)+
+ at com.sap.xss.essceservices.vcceassignmentselection.wdp.InternalVcCEAssignmentSelectionInterface$External.onInit(InternalVcCEAssignmentSelectionInterface.java:220)+
+ at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:564)+
+ at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438)+
+ at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:196)+
+ at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)+
+ at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)+
+ at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)+
+ at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)+
+ at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)+
+ at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)+
+ at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:756)+
+ at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:291)+
+ at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)+
+ at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)+
+ at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)+
+ at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)+
+ at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)+
+ at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)+
+ at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:220)+
+ at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1289)+
+ at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:356)+
+ at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:549)+
+ at com.sap.portal.pb.PageBuilder.wdDoRefresh(PageBuilder.java:593)+
+ at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:865)+
+ at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)+
+ at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)+
+ at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)+
+ at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)+
+ at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)+
+ at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)+
+ at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:684)+
+ at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)+
+ at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)+
+ at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)+
+ at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)+
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)+
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)+
+ at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)+
+ at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)+
+ at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)+
+ at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)+
+ at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)+
+ at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)+
+ at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)+
+ at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)+
+ at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)+
+ at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)+
+ at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)+
+ at java.security.AccessController.doPrivileged(Native Method)+
+ at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)+
+ at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)+Hi Aravind,
Check whether the user is maintained with correct entry in IT0105...whether wrong username is given or not.
Also, check below threads -
/message/4680630#4680630 [original link is broken]
pcuigp.xssfpm.java.FPMRuntimeException: User J2EE_ADMIN does not exist
Regards,
Sen
Maybe you are looking for
-
User details in a specific computer- Config Mgr 2012 R2
I am using SCCM 2012 R2. I need to have an option for user details on a computer in a specific collection. When I select a computer after searching under devices, I would like to see search options(attached Screen shot) for Primary device user or ot
-
On Safari browser I have no visible toolbar, how do I get it back?
On opening the Safari browser I do not have a visible toolbar, just three icons, read, iCloud, link and the split address bar and search bar. How do I get.a full toolbar visible in the browser display?
-
Hi I am getting the below error when I am trying to see the result in BI Answer Odbc driver returned an error (SQLExecDirectW). Error Details Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10
-
JSplitPane resize problem (not a minimum size problem though)
I created a JSplitPane and put a JPanel in both the top and bottom sides. This JSplitPane is in the center section of a BorderLayout of a JFrame. The minimum sizes are set and I can move the divider bar all I want. Instead, I am having trouble resizi
-
Hi, I try to connect to INFORMIX SE 7.25 Machine using con url: jdbc:informix-sqli://hostIP:port/dbname:INFORMIXSERVER=servername;user=abc;password=xyz The problem is that my database is not in the users' assigned space in the server. Instead it is i