Exception while Route Requests using un-geocoded addresses
Hi,
We are having the simple Street data with 301 NODES and 399 EDGES. We use the partition router procedure to make the PARTITION table. My query is if we are making a query for Routing Engine using un-geocoded addresses
a. What can I pass as street and lastline value? In street data I have only street name.
b. Am getting the Routing server Exception as
<?xml version="1.0" encoding="UTF-8" ?>
<RouteServerException>[RSE-0206: Unexpected output format from Geocoder!!!]</RouteServerException>
Can you help me out in this...? Where exactly the error is...
Thanks and Regards
Aravindan
Hi Siva,
Is there any option to send attachment in this Forum? Can you give your mail id...? I will send it to you... Now Im just sending the Table structure and sample Data.
And I have these two Queries also?
1. If we need to use un-geocoded address what are the steps to be followed
2. If we need to use geocoded address then what are all the steps to be followed.
Here is the sample Records for NODE and EDGE
NODE Table
NODE_ID NUMBER,
GEOMETRY SDO_GEOMETRY,
PARTITION_ID NUMBER
Sample Records for NODE table
1|(2001, 8307, (2188960.66, 648363.592, ), , )|2
2|(2001, 8307, (2189028.967, 647964.749, ), , )|2
3|(2001, 8307, (2189230.556, 647707.982, ), , )|2
4|(2001, 8307, (2189455.414, 648925.465, ), , )|2
5|(2001, 8307, (2189561.739, 639546.905, ), , )|2
6|(2001, 8307, (2189685.175, 643866.604, ), , )|2
7|(2001, 8307, (2189711.672, 646828.068, ), , )|2
8|(2001, 8307, (2189800.212, 643839.681, ), , )|2
9|(2001, 8307, (2189819.514, 644169.93, ), , )|2
10|(2001, 8307, (2189841.689, 648495.18, ), , )|2
EDGE Table
EDGE_ID NUMBER,
START_NODE_ID NUMBER,
END_NODE_ID NUMBER,
PARTITION_ID NUMBER,
FUNC_CLASS NUMBER,
LENGTH NUMBER,
SPEED_LIMIT NUMBER,
GEOMETRY SDO_GEOMETRY,
NAME VARCHAR2(64 BYTE)
Sample Records for EDGE table
1|50|57|2|2|10.5||(2002, 8307, , (1, 2, 1, , , , , , , ), (2191225.85, 649495.947, 2191525.681, 649506.262, , , , , , , , , , , , , , ))|Shady Lane
2|69|73|2|2|10.5||(2002, 8307, , (1, 2, 1, , , , , , , , , , , , , , ), (2191934.235, 649451.044, 2192022.915, 649859.637, 2192120.978, 650151.819, , , , , , , , , , , , ))|Wilson's Mills
3|57|69|2|2|10.5||(2002, 8307, , (1, 2, 1, , , , , , , , , , , , , ), (2191525.681, 649506.262, 2191583.829, 649531.754, 2191934.235, 649451.044, , , , , , , , , , , , , ))|Shady Lane
4|96|97|2|2|10.5||(2002, 8307, , (1, 2, 1, , , , , , , , , , , , ), (2193317.397, 649360.341, 2193348.534, 649693.946, , , , , , , , , , , , , ))|Hillcrest
5|68|69|2|2|10.5||(2002, 8307, , (1, 2, 1, , , , , , , , , , , , , , ), (2191918.389, 649325.733, 2191934.235, 649451.044, , , , , , , , , , , , ))|Wilson's Mills
6|96|102|2|2|10.5||(2002, 8307, , (1, 2, 1, , , , , , , , , ), (2193317.397, 649360.341, 2193560.118, 649187.223, , , , , , , , , , , , ))|Poplar
Thanks and Regards
Aravindan
Similar Messages
-
Cannot submit route requests using lat/long to Oracle RouteServer
I have version 10g of Oracle RouteServer running under OAS, and a backend 10g database loaded with some NAVTEQ data. The route server handles ordinary requests with un-geocoded addresses -- most of the time. Whenever I attempt a route request using latitude and longitude, even using the sample requests at http://<myhost>/routeserver/route_requests/lat_long.html, I get the following response:
<RouteServerException>
[RSE-0206: Unexpected output format from Geocoder!!!]
</RouteServerException>.
What does this mean? How can the Oracle-provided sample request fail?Here's the XML for the original lat/long routing request to the Oracle RouteServer.
<?xml version="1.0" standalone="yes"?>
<route_request id="8"
route_preference="shortest"
road_preference="highway"
return_driving_directions="true"
distance_unit="meter"
time_unit="second"
return_route_geometry="true">
<start_location>
<input_location id="1" longitude="-122.39382" latitude="37.79518" />
</start_location>
<end_location>
<input_location id="2" longitude="-122.4054826" latitude="37.7423566" />
</end_location>
</route_request>
When I run a reverse geocoding query using the input location coordinates in the underlying database with
SELECT SDO_GCDR.REVERSE_GEOCODE('ODFUSER',
SDO_GEOMETRY(2001, 8307,
SDO_POINT_TYPE(-122.39382, 37.79518, NULL), NULL, NULL),
'US') FROM DUAL
and
SELECT SDO_GCDR.REVERSE_GEOCODE('ODFUSER',
SDO_GEOMETRY(2001, 8307,
SDO_POINT_TYPE(-122.4054826, 37.7423566, NULL), NULL, NULL),
'US') FROM DUAL
I get
SDO_GEO_ADDR(0, SDO_KEYWORDARRAY(), NULL, 'THE EMBARCADERO', NULL, NULL, 'SAN FRANCISCO BAY AREA', 'SAN FRANCISCO', 'CA', 'US', '94111', NULL, '94111', NULL, NULL, 'THE EMBARCADERO', NULL, 'F', 'F', NULL, NULL, 'R', 1, 916027581, '', 1, 'DEFAULT', -122.39382, 37.79518, '????1141114??404?')
and
SDO_GEO_ADDR(0, SDO_KEYWORDARRAY(), NULL, 'FLOWER ST', NULL, NULL, 'SAN FRANCISCO', 'SAN FRANCISCO', 'CA', 'US', '94124', NULL, '94124', NULL, '21', 'FLOWER', 'ST', 'F', 'F', NULL, NULL, 'L', .596104898, 199223581, '', 1, 'DEFAULT', -122.40546, 37.7424313, '????4141414??404?')
respectively. I'm fairly novice at reading this, but it appears that the reverse geocoding was successful. That makes it all the more puzzling as to why the routeserver, using the same data source, returns the following (in my browser window - IE7, FF 3.0.12, Chrome 2.0.172.33):
<RouteServerException>
[RSE-0206: Unexpected output format from Geocoder!!!]
</RouteServerException>
By the way, the database version is 10g Enterprise Edition Release 10.2.0.4.0.
Edited by: lowlyscrub on Jul 23, 2009 11:21 AM -
Hi guys,
While getting the sales order from the JDE database. It is giving
Caught exception while handling request: deserialization error: java.text.ParseException: Unparseable date: "-11-JA-01T12:00:00-05".
can any one of you can guide me about this exception
Expecting a reply from any one ASAP.
Regards,
Chakrithe schema element for this field is having different datatype than what you are receiving the data. Can you check logs and see on which column it is failing? If we know the exact xsd datatype used for the element and and value that is stored in table then we can correct the xsd accordingly. Are you using dynamic sql query or select options to get values from DB.
-
Exception while invoking webservices using Dynamic client without WSDL
Hi All,
I am getting the below exception while invoking webservices using Dynamic client without WSDL.
javax.xml.rpc.soap.SOAPFaultException: Exception during processing: java.lang.RuntimeException: Missing license file for: WebLogic Platform 8.1 (see Fault Detail for stacktrace)
at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:558)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
at atthi.webservice.TestWSWithWSDL.main(TestWSWithWSDL.java:41)
Exception in thread "main"
Please find my source file below....
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.Service;
import javax.xml.rpc.Call;
import javax.xml.rpc.ParameterMode;
import javax.xml.namespace.QName;
public class TestWSWithoutWSDL {
public static void main(String[] args) {
try{
String address = "<WSDL's SOAP Address>";
String namespaceURI = "<namespaceURI>";
String serviceName = "<serviceName>";
String portName = "<portName>";
String ENCODING_STYLE_PROPERTY = "javax.xml.rpc.encodingstyle.namespace.uri";
String URI_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
String agencyID = "AGN00533";
String fileName = "testWS";
String xmlString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><web-services>Sample Application</web-services>";
System.setProperty( "javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl");
ServiceFactory factory = ServiceFactory.newInstance();
* Create an instance of the Service with the given service QName
Service service = factory.createService(new QName(serviceName));
Call call = service.createCall(new QName(portName));
call.setTargetEndpointAddress(address);
call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING);
QName stringQName = new QName("http://www.w3.org/2001/XMLSchema", "string");
* Set operation name to invoke.
call.setOperationName(new QName(namespaceURI,"<operationName>"));
* Add parameters definitions in the call object.
call.addParameter("string", stringQName, String.class, ParameterMode.IN);
call.addParameter("string0", stringQName, String.class, ParameterMode.IN);
call.addParameter("string1", stringQName, String.class, ParameterMode.IN);
* Set definition of the return type.
call.setReturnType(stringQName);
Object[] inParams = new Object[3];
inParams[0] = new String(agencyID);
inParams[1] = new String(fileName);
inParams[2] = new String(xmlString);
String result = ((String)call.invoke(inParams)).toString();
System.out.println(result);
}catch (Exception e){
e.printStackTrace();
Please give your suggestions for the above said exception....
Thanks & Regards....Hi All,
I am getting the below exception while invoking webservices using Dynamic client without WSDL.
javax.xml.rpc.soap.SOAPFaultException: Exception during processing: java.lang.RuntimeException: Missing license file for: WebLogic Platform 8.1 (see Fault Detail for stacktrace)
at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:558)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
at atthi.webservice.TestWSWithWSDL.main(TestWSWithWSDL.java:41)
Exception in thread "main"
Please find my source file below....
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.Service;
import javax.xml.rpc.Call;
import javax.xml.rpc.ParameterMode;
import javax.xml.namespace.QName;
public class TestWSWithoutWSDL {
public static void main(String[] args) {
try{
String address = "<WSDL's SOAP Address>";
String namespaceURI = "<namespaceURI>";
String serviceName = "<serviceName>";
String portName = "<portName>";
String ENCODING_STYLE_PROPERTY = "javax.xml.rpc.encodingstyle.namespace.uri";
String URI_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
String agencyID = "AGN00533";
String fileName = "testWS";
String xmlString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><web-services>Sample Application</web-services>";
System.setProperty( "javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl");
ServiceFactory factory = ServiceFactory.newInstance();
* Create an instance of the Service with the given service QName
Service service = factory.createService(new QName(serviceName));
Call call = service.createCall(new QName(portName));
call.setTargetEndpointAddress(address);
call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING);
QName stringQName = new QName("http://www.w3.org/2001/XMLSchema", "string");
* Set operation name to invoke.
call.setOperationName(new QName(namespaceURI,"<operationName>"));
* Add parameters definitions in the call object.
call.addParameter("string", stringQName, String.class, ParameterMode.IN);
call.addParameter("string0", stringQName, String.class, ParameterMode.IN);
call.addParameter("string1", stringQName, String.class, ParameterMode.IN);
* Set definition of the return type.
call.setReturnType(stringQName);
Object[] inParams = new Object[3];
inParams[0] = new String(agencyID);
inParams[1] = new String(fileName);
inParams[2] = new String(xmlString);
String result = ((String)call.invoke(inParams)).toString();
System.out.println(result);
}catch (Exception e){
e.printStackTrace();
Please give your suggestions for the above said exception....
Thanks & Regards.... -
Error: [env:ClienT:caught exception while handling request]
failure when calling to the service Web
1. I INTRODUCE DIRECTION WSDL URL And SOON PULSE TO SHOW METODOS
2. And IT INDICATES The METODOS To ME AVAILABLE FOR THIS SERVICE WEB
3. LATER IT SHOWS THE PARAMETERS TO ME THAT NEEDS TO MAKE THE CALL TO THE PREVIOUS METODO
4. I INTRODUCE THE VALUE OF THE PARAMETER AND WHEN I TEST THE TEST RESULTS IS THE FOLLOWING ERROR:
[env:Client : caught exception while handling request: unexpected encoding style: expected=, actual=http://xml.apache.org/xml-soap/literalxml]failure when calling to the service Web
1. I INTRODUCE DIRECTION WSDL URL And SOON PULSE TO SHOW METODOS
2. And IT INDICATES The METODOS To ME AVAILABLE FOR THIS SERVICE WEB
3. LATER IT SHOWS THE PARAMETERS TO ME THAT NEEDS TO MAKE THE CALL TO THE PREVIOUS METODO
4. I INTRODUCE THE VALUE OF THE PARAMETER AND WHEN I TEST THE TEST RESULTS IS THE FOLLOWING ERROR:
[env:Client : caught exception while handling request: unexpected encoding style: expected=, actual=http://xml.apache.org/xml-soap/literalxml] -
Exception while sending mail using javamail
below i am using the code to send a mail to [email protected]
but it is giving exception
"class com.sun.mail.smtp.SMTPSendFailedException: 554 <[email protected]>: Recipient address rejected: Relay access denied"
please can any body help me to solve this problem
Properties props = new Properties();
props.put("mail.smtp.host", "xxxxxxxxxxxxx");
Session s = Session.getInstance(props,null);
MimeMessage message = new MimeMessage(s);
InternetAddress from = new InternetAddress("[email protected]");
message.setFrom(from);
InternetAddress to = new InternetAddress("[email protected]");
message.addRecipient(Message.RecipientType.TO, to);
message.setSubject("Test from JavaMail.");
message.setText("Hello from JavaMail!");
Transport.send(message);I was getting the same error as the others, and I added authentication, but it still gives me the error.
All "AutomailingUtility" constants are strings
public class SMTPSender {
private Session session;
public SMTPSender() {
Properties props = new Properties();
props.setProperty("mail.smtp.host", AutomailingUtility.HOST);
props.put("mail.smtp.auth", AutomailingUtility.AUTH);
Authenticator auth = new MyAuthenticator(AutomailingUtility.USERNAME, AutomailingUtility.PASSWORD);
session = Session.getInstance(props, auth);
public void sendMessage(String toUser, String message, String subject) {
try {
Message msg = new MimeMessage(session);
msg.setSubject(subject);
msg.setSentDate(new Date());
InternetAddress ia = new InternetAddress(AutomailingUtility.FROM_ADDRESS);
msg.setFrom(ia);
msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(toUser));
msg.setText(message);
Transport.send(msg);
} catch (AddressException e) {
e.printStackTrace();
} catch (MessagingException e) {
e.printStackTrace();
any ideas? -
Null Pointer Exception while Retrieving Records using Java API
Hi,
I am using the Class RetrieveLimitedRecords, to retrieve he records from the main table.
While using this class I am getting an error Null Pointer Exception, when there are no records matching the search criteriea.
Could anybody tell me how to ignore this error.
Thanks,
Priya.Hi,
Thanks for the reply.
There is no any class which automatically handles, so we should handle exceptions individually.
Thanks,
Priya. -
Exception while forwarding request to another jsp file.
Hi
I am getting following exception when I try to forward request from one jsp file to another using <jsp:forward> . I am using tomcat 5.5.9.
thanks in advance
org.apache.jasper.JasperException
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:66)
at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:81)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:293)
at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:693)
at org.apache.jasper.runtime.PageContextImpl.access$1000(PageContextImpl.java:65)
at org.apache.jasper.runtime.PageContextImpl$11.run(PageContextImpl.java:647)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:645)
at org.apache.jsp.mseries.SpareCheckSend_jsp._jspService(org.apache.jsp.mseries.SpareCheckSend_jsp:141)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:534)I believe you will need to more clearly describe what you are trying to do and what the problem is that you are having before you get a reply to your question.
-
Getting exceptions while sending mail using javamail api
Hi to all
I am developing an application of sending a mail using JavaMail api. My program is below:
quote:
import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;
public class sms
public static void main(String args[])
try
String strstrsmtserver="smtp.bol.net.in";
String strto="[email protected]";
String strfrom="[email protected]";
String strsubject="Hello";
String bodytext="This is my first java mail program";
sms s=new sms();
s.send(strstrsmtserver,strto,strfrom,strsubject,bodytext);
catch(Exception e)
System.out.println("usage:java sms"+"strstrsmtpserver tosddress fromaddress subjecttext bodyText");
System.exit(0);
public void send(String strsmtpserver,String strto,String strfrom ,String strsubject,String bodytext)
try
java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
Properties p=new Properties(System.getProperties());
if(strsmtpserver!=null)
p.put("mail.transport.protocol","smtp");
p.put("mail.smtp.host","[email protected]");
p.put("mail.smtp.port","25");
Session session=Session.getDefaultInstance(p);
Message msg=new MimeMessage(session);
Transport trans = session.getTransport("smtp");
trans.connect("smtp.bol.net.in","[email protected]","1234563757");
msg.setFrom(new InternetAddress(strfrom));
msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(strto,false));
msg.setSubject(strsubject);
msg.setText(bodytext);
msg.setHeader("X-Mailer","mtnlmail");
msg.setSentDate(new Date());
Transport.send(msg);
System.out.println("Message sent OK.");
catch(Exception ex)
System.out.println("here is error");
ex.printStackTrace();
It compiles fine but showing exceptions at run time.Please help me to remove these exceptions.I am new to this JavaMail and it is my first program of javamail.Please also tell me how to use smtp server.I am using MTNL 's internet connection having smtp.bol.net.in server.
exceptions are:
Here is exception
quote:
Javax.mail.MessagingException:Could not connect to SMTP host : smtp.bol.net.in, port :25;
Nested exception is :
Java.net.ConnectException:Connection refused: connect
At com.sun.mail.smtp.SMTPTransport.openServer<SMTPTransport.java:1227>
At com.sun.mail.smtp.SMTPTransport.protocolConnect<SMTPTransport.java:322>
At javax.mail.Service .connect(Service.java:236>
At javax.mail.Service.connect<Service.java:137>
At sms.send<sms.java:77>
At sms.main<sms.java:24>Did you find the JavaMail FAQ?
You should talk to your ISP to get the details for connecting to your server.
In this case I suspect your server wants you to make the connection on the
secure port. The FAQ has examples of how to do this for GMail and Yahoo
mail, which work similarly. By changing the host name, these same examples
will likely work for you. -
InvalidPDFHeaderSignature Exception while opening pdf using itext jar
Hi,
I am getting InvalidPDFHeader while opening pdf file using itext jar.
How to overcome this?
Thanks,
VeeraPlease continue in your previous thread: Sample code to dynamically append bytes to pdf
Mod: I'm locking up. -
Exception while contributing content using webdav
Hi All,
Getting the below exception when i try to check in files using webdav (i.e. from windows explorer), not sure why this is happening ? please provide your inputs for troubleshooting this issue.
Stellent Product Version: 7.5.2
helperservice 04.28 00:11:13.716 IdcServerThread-290730 service exception in COLLECTION_CHECKIN_REVISION[23] -1 doService -1 !csDynHTMLArgumentMessage2,3,<$dAlias$>!syParameterNotFound,dAlias!$
deprecation 04.28 00:11:13.719 IdcServerThread-290730 obsolete method SystemUtils.error() called, use err() instead-exception stack
java.lang.Exception: obsolete method SystemUtils.error() called, use err() instead
at intradoc.common.SystemUtils.reportDeprecatedUsage(SystemUtils.java:767)
at intradoc.common.SystemUtils.error(SystemUtils.java:477)
at webdavextension.WebdavHandler.doPutMethod(WebdavHandler.java:614)
at sun.reflect.GeneratedMethodAccessor215.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at intradoc.common.IdcMethodHolder.invokeMethod(ClassHelperUtils.java:336)
at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:128)
at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:73)
at intradoc.server.Service.doCodeEx(Service.java:674)
at intradoc.server.Service.doCode(Service.java:656)
at intradoc.server.Service.doAction(Service.java:580)
at intradoc.server.Service.doActions(Service.java:425)
at intradoc.server.Service.doRequest(Service.java:1860)
at intradoc.server.ServiceManager.processCommand(ServiceManager.java:350)
at intradoc.server.IdcServerThread.run(IdcServerThread.java:162)
Thanks,
BharaniHi
syParameterNotFound,dAlias is the core reason why the checkin is failing .
Looks to me that you have a metadata configured on your UCM instance with this name .
So what you can do is to navigate to Administration - Folder Administration - Default Information Inherit - Check the option box for <dAlias metadata> - Update
Set the value for this metadata from CS GUI for the Folder where the checkin is being done .
Then checkin the content to this folder from WebDAV again .
See if the issue still persists .
Thanks
Srinath -
Authentication Failed Exception while reading mail using POP
Hi,
I am using POP3 for reading mails from mail id. When I try to read the mail from Microsoft Exchange server 2007, it is a success. But same code is giving "Authentication Failed Exception" with Microsoft Exchange server 2010.
One more difference, I figured out. Microsoft Exchange server 2007 is having NTLM as LoginType and code works fine with it. Where as Microsoft Exchange server 2010 is having TLS as LoginType and code is giving "Authentication Failed Exception".
Line of code which is giving exception is...
store = session.getStore(providerPOP3);
store.connect(host, user, password); //throws exception
Please advice how this code can work with Microsoft Exchange server 2010 having TLS as LoginType.
Regards,Thanks for your reply.
Yes, I am using javamail 1.4.3. My code is working fine with Exchange server 2007 having NTLM.
But when I changed the credentials as per mail id configured on Exchange Server 2010 having TLS support, it did not work. Can you please help what code change would be required to read mails from mail id configured on Exchage Server 2010 having TLS support.
Sorry, if my point seems not understandable as I am as new with these terminologies (mail server and all) as baby with world. :)
Thanks for supprt. -
Exception while using Nested types in Oracle
Hi All,
I am getting an exception while trying to use Nested types in Oracle. The same thing works in other systems. So it might be some problem with my configuration. Can anyone please help me out with this one. Thanks in advance..
java.sql.SQLException: Internal Error
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.initCollElemTypeName(OracleTypeCOLLECTION.java:1074)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.getAttributeType(OracleTypeCOLLECTION.java:1107)
at oracle.jdbc.oracore.OracleNamedType.getFullName(OracleNamedType.java:81)
at oracle.jdbc.oracore.OracleNamedType.getFullName(OracleNamedType.java:68)
at oracle.sql.TypeDescriptor.initSQLName(TypeDescriptor.java:237)
at oracle.sql.TypeDescriptor.getName(TypeDescriptor.java:198)
at oracle.sql.StructDescriptor.getClass(StructDescriptor.java:1105)
at oracle.sql.STRUCT.toJdbc(STRUCT.java:574)
at oracle.jdbc.oracore.OracleTypeUPT.unpickle81UPT(OracleTypeUPT.java:502)
at oracle.jdbc.oracore.OracleTypeUPT.unpickle81rec(OracleTypeUPT.java:456)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81ImgBodyElements(OracleTypeCOLLECTION.java:1011)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81ImgBody(OracleTypeCOLLECTION.java:952)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81(OracleTypeCOLLECTION.java:764)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.unlinearizeInternal(OracleTypeCOLLECTION.java:243)
at oracle.jdbc.oracore.OracleTypeCOLLECTION.unlinearize(OracleTypeCOLLECTION.java:217)
at oracle.sql.ArrayDescriptor.toJavaArray(ArrayDescriptor.java:891)
at oracle.sql.ARRAY.getArray(ARRAY.java:315)
at weblogic.jdbc.wrapper.Array_oracle_sql_ARRAY.getArray(Unknown Source)
Regards,
Praveen G SOk .. i got around this issue myself ..
For others who might have had to face the same problem, let me tell them the problem that i had... i ll b happy if it helps someone ...
The issue was improper privleges of the Nested Types in the schema to which my server was connecting. Once proper privelges were given, everything started working just fine ... -
I have the following situation --
1. I have two WebServices A and B deployed onto OC4J_10.1.3
They both work when I test them using the test service
2. My real need is to call webservice A from B. So I created a proxy for A using JDEV
and deployed into OC4J. Now when I use the test service and call methods on B as before it does not work. I get the following exceptions when I try to instantiate the stub.
WebServiceASoapHttpPortClient myPort = new WebServiceASoapHttpPortClient();
SEVERE: caught exception while handling request: java.lang.NoSuchMethodError: oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<init>(Ljavax/xml
/namespace/QName;ZZLjavax/xml/namespace/QName;Ljava/lang/String;Z)V java.lang.NoSuchMethodError: oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<init>(Ljavax/xml/namespace/QName;ZZLjavax/xml/namespace/QName;Ljava/lang/Stri
ng;Z)V
It seems as though OC4J is not able to find LiteralFragmentSerializer methods. But wsclient.jar must be available on OC4J's CLASSPATH.
My webservice is very simple and the encoding is SOAP1.1 (Document/Literal).
Any insights ?
Thanks very much.
--venkatHave you tried downloading and installing wsclient_extended.jar instead of wsclient.jar?
-
Problem while sending/Receiving request using the HttpURLConnection obj
Hi,
We are facing the problem while passing the request in Weblogic.
Looks like there is some problem with Weblogic while sending/Receiving the request using the HttpURLConnection object.
Currently we are migrating 2 applications to WebLogic. Application1 to application2 request should pass.
Below is some example we tried:
"When we send a request to our code using the SSOAdaptor code (which handles the request/session in our application) which is on the SunOne server the request parameters are received by our code successfully. And also in Create User Functionality of application1 we are sending a request to webpass(which is on Sunone Server) using the HttpURLConnection object and the SOAP request is received successfully by the Webpass."
Looks like when we send request (using HttpURLConnection) from a server other than Weblogic to a servlet in a Weblogic the request parameters are received with out issues.
Where as when the request is sent from WebLogic to WebLogic the request parameters are missing some how.
Is there any issue in Weblogic? Please helpus on this.
Thanks,
Nagesh
Edited by: user9307541 on Mar 15, 2010 5:08 AMHi,
Please find below scenario for testing.
We have tested the SSOAdaptor code (it is the fucntion name which will send the data from source) locally by hittiing the WPS adaptor URL in a Java client program(TestRequest.java) and the request parameters were reaching the WPS Adapter successfully.
Then we have written two test servlets to test the communication between SSOAdaptor(TestServlet.java) and WPS adaptor(WPSServlet.java).
Functionality of TestSevlet: It is sending a request to WPSServelt similar to the way we are doing it in SSOAdaptor.
Functionality of WPSServlet: It will receive the request parameters and write the parameter Map to console.
We have deployed and these two servlets(in a single webapplication) on Tomcat server and the request parameters are reaching the WPSServlet successfully.
Output on Tomcat server:
before sending request
**********************Inside WPS Servlet -- the request Map is:{TypeAcc=[Ljava.lang.String;@14e3f41, ServiceName=[Ljava.lang.String;@1acd47, GMEPortalUserID=[Ljava.lang.String;@19b04e2, UserID=[Ljava.lang.String;@5dcec6, Country=[Ljava.lang.String;@b25b9d}
after sending request
After this we have deployed these two servlets (with in a single webapplication) on the Weblogic server in Dev machine(path: /apps/usmport/domains/usmport/servers/usmport_admin/upload/ssoAdaptor/WEB-INF/classes/com/gm/gmeportal/security/adaptor) and
now the request parameters are not reaching the WPSServlet.
Output on Weblogic Server:
before sending request
**********************Inside WPS Servlet -- the request Map is:{}
after sending request
Looks like there is some problem with Weblogic while sending/Receiving the request using the HttpURLConnection object.
When we send a request to WPSAdaptor using the Old SSOAdaptor code which is on the SunOne server the request parameters are received by WPS successfully. And also in Create User Functionality of Portal we are sending a request to webpass(which is on Sunone Server) using the HttpURLConnection object and the SOAP request is received successfully by the Webpass.
Looks like when we send request (using HttpURLConnection) from a server other than Weblogic to a servlet in a Weblogic the request parameters are received with out issues. Where as when the request is sent from weblogic to weblogic the request parameters are missing some how.
Please find below javs source code used to test this:
TestRequest.java
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
public class TestRequest {
* @param args
public static void main(String[] args) throws Exception{
// TODO Auto-generated method stub
excutePost("http://localhost:8080/Testing/TestServlet", "GMEPortalUserID=captest.wss@it0555&UserID=bl1133&Country=it&TypeAcc=256&ServiceName=Logon");
//System.out.println("********** Now the request is from SSO *****************");
//excuteGet("http://10.156.0.173:7013/channel21/wpsadapter", "GMEPortalUserID=captest.wss@it0554&UserID=bl1133&Country=it&TypeAcc=256&ServiceName=Logon");
public static String excutePost(String targetURL, String urlParameters)
URL url;
HttpURLConnection connection = null;
try {
//Create connection
url = new URL(targetURL);
connection = (HttpURLConnection)url.openConnection();
connection.setRequestMethod("POST");
connection.setRequestProperty("Content-Type",
"application/x-www-form-urlencoded");
connection.setRequestProperty("Content-Length", "" +
Integer.toString(urlParameters.getBytes().length));
connection.setRequestProperty("Content-Language", "en-US");
connection.setUseCaches (false);
connection.setDoInput(true);
connection.setDoOutput(true);
//Send request
DataOutputStream wr = new DataOutputStream (
connection.getOutputStream ());
wr.writeBytes (urlParameters);
wr.flush ();
wr.close ();
//Get Response
InputStream is = connection.getInputStream();
BufferedReader rd = new BufferedReader(new InputStreamReader(is));
String line;
StringBuffer response = new StringBuffer();
while((line = rd.readLine()) != null) {
response.append(line);
response.append('\r');
rd.close();
System.out.println("Response is:" + response);
return response.toString();
} catch (Exception e) {
e.printStackTrace();
return null;
} finally {
if(connection != null) {
connection.disconnect();
public static String excuteGet(String targetURL, String urlParameters) throws Exception
URL url = new URL(targetURL);
HttpURLConnection httpurlconnection =
(HttpURLConnection) url.openConnection();
/*httpurlconnection.setRequestProperty(
"cookie",
constructRequestParams(httpservletrequest.getCookies()));*/
httpurlconnection.setDoOutput(true);
httpurlconnection.setDoInput(true);
httpurlconnection.setRequestProperty(
"Content-length",
String.valueOf(urlParameters.length()));
OutputStream outputstream = httpurlconnection.getOutputStream();
outputstream.write(urlParameters.getBytes());
outputstream.flush();
//Get Response
try{
InputStream is = httpurlconnection.getInputStream();
BufferedReader rd = new BufferedReader(new InputStreamReader(is));
String line;
StringBuffer response = new StringBuffer();
while((line = rd.readLine()) != null) {
response.append(line);
response.append('\r');
rd.close();
System.out.println("Response from SSO is:" + response);
return response.toString();
} catch (Exception e) {
e.printStackTrace();
return null;
} finally {
if(httpurlconnection != null) {
httpurlconnection.disconnect();
TestServlet.java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
* Servlet implementation class TestServlet
public class TestServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
* Default constructor.
public TestServlet() {
// TODO Auto-generated constructor stub
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
doPost(request,response);
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
//System.out.println("********************** the request Map is:" + request.getParameterMap());
try {
System.out.println("before sending request");
excuteGet("http://localhost:7003/ssoAdaptor/WPSServlet", "GMEPortalUserID=captest.wss@it0554&UserID=bl1133&Country=it&TypeAcc=256&ServiceName=Logon");
System.out.println("after sending request");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
public String excuteGet(String targetURL, String urlParameters) throws Exception
URL url = new URL(targetURL);
HttpURLConnection httpurlconnection =
(HttpURLConnection) url.openConnection();
/*httpurlconnection.setRequestProperty(
"cookie",
constructRequestParams(httpservletrequest.getCookies()));*/
httpurlconnection.setDoOutput(true);
httpurlconnection.setDoInput(true);
httpurlconnection.setRequestProperty(
"Content-length",
String.valueOf(urlParameters.length()));
OutputStream outputstream = httpurlconnection.getOutputStream();
outputstream.write(urlParameters.getBytes());
outputstream.flush();
//Get Response
try{
InputStream is = httpurlconnection.getInputStream();
BufferedReader rd = new BufferedReader(new InputStreamReader(is));
String line;
StringBuffer response = new StringBuffer();
while((line = rd.readLine()) != null) {
response.append(line);
response.append('\r');
rd.close();
//System.out.println("Response from SSO is:" + response);
return response.toString();
} catch (Exception e) {
e.printStackTrace();
return null;
} finally {
if(httpurlconnection != null) {
httpurlconnection.disconnect();
WPSServlet.java
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
* Servlet implementation class WPSServlet
public class WPSServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
* @see HttpServlet#HttpServlet()
public WPSServlet() {
super();
// TODO Auto-generated constructor stub
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
System.out.println("**********************Inside WPS Servlet -- the request Map is:" + request.getParameterMap());
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
doGet(request,response);
Thanks,
Nagesh
Maybe you are looking for
-
This is part of a paid subscription but it has stopped working. I have re-installed but no dice, says the same thing. Any ideas as to what the problem is?
-
Pages uses other language than rest of iWork
Hello there, since upgrading to Lion, Pages is in German, although Numbers and Keynote are both in English, just as my system is running in English language. I have not found out how to change Pages to English, therefore I hope the community can help
-
Two XP PC's and one Time Capsule
Thanks in advance for your help on this one! I've scoured the boards and can't seem to find my same predicament. I've installed the airport utility on a PC running XP, and the Time Capsule is serving as my main media library for iTunes, Apple TV, etc
-
Error message ORA-0097 missing right parenthesis
Dear all; Please what is wrong with this particular code because I keep getting the error message ORA-0097: missing right parenthesis pl/sql: sql statement ignored. Thank you spectification of package create or replace package NEW_INFORMATION is func
-
Trying to download latest vertion Adobe Reader. What does that mean and how do I fix it?