Graham Thorpe

Ranch Hand
+ Follow
since Mar 25, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Graham Thorpe

Could you please let me know how you resolved the issue and reply the email glkrr@yahoo.com
9 years ago
Hi there,
Can any body let me know how to insert hyperlinks at Email Body (MS Outlook) usuing the below syntax?

Hyperlink href mailto

If we run above code will open the outlook and set to filed as domain@domain.com and subject as Email Example and body as 'Example body text for email using href mailto' .
I would like to know how can I insert hyperliks at body part as mentioned above syntax?


Hi,

While I am passing date values into SOAP service getting the following exception.

Caused by: java.lang.NumberFormatException: WSWS3045E: Error: Invalid date: Mon Apr 20 14:57:11 CDT 2009 Message being parsed:

Any body know how to resolve the above issue?
We are using websphere 6.1 version and axis 1.2 version.

14 years ago
Hi there,
Did you resolve the issue?
If yes can you please let me know how to solve the issue?
14 years ago
me too getting the same problem.can any body have idea how to resolve issue?
16 years ago
Hi

I am trying to call those beans from Pega(BusinessProcessManagement) tool.

I would like to know when this exception will occur normally.

One of the application(ejb/classes) running different server like server A.

I want to call those ejb services from another Server like Server B

through JNDI.
17 years ago
Hi

I am getting following exception while calling beans via JNDI.

Caused by: weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Unable to load home class: java.lang.ClassNotFoundException: com.standardandpoors.apps.core.common.issue.IssueServiceHome ]
at weblogic.ejb20.internal.EJBMetaDataImpl.getHomeInterfaceClass(EJBMetaDataImpl.java:95)
at com.pega.pegarules.services.mdconverters.PREJB2WSDL.lookupEJBMetaData(PREJB2WSDL.java:621)
17 years ago
Hi I am getting following exception while use this code.can any body pls guide me how to fix this problem?

Exception occurred....com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregor
ianCalendarImpl#getXMLSchemaType() :Invalid set of fields set for XMLGregorianCalendar




DatatypeFactory df = null;
try {
df = DatatypeFactory.newInstance();
}
catch (DatatypeConfigurationException ex1) {
}

try
{
XMLGregorianCalendar xmlCalendar = df.newXMLGregorianCalendar();//here getting exception....
System.out.println("calendar"+ xmlCalendar);

}
catch (Exception e)
{
System.out.println("Exception occurred...."+ e.getMessage());
}
17 years ago
I am getting compiling errors ...package not found like that
can any one tell me where i will get jar with the following import packages?

import javax.rules.RuleRuntime;
import javax.rules.RuleServiceProvider;
import javax.rules.StatelessRuleSession;
17 years ago
Hi

Can any body tell us how to get the node value using SAX.
I have one xml as follows
<One>
<TABLE name="dress">
<TR>
<TD name="id">18</TD>
<TD name="number">3</TD>
</TR>
</TABLE>
</One>

Can any body tell us where i am wrong with this code for geting the element node values (<TD> like 18 and 3 for the particular node <one>?


import java.util.*;
import java.io.*;
import org.xml.sax.*;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import javax.xml.parsers.ParserConfigurationException;

import java.text.DateFormat;
import java.text.SimpleDateFormat;


public class SaxReader implements ContentHandler {

boolean flag = false;

StringBuffer sbf = new StringBuffer();

/**
* Field tagName
*/
private String tagName_;

/**
* Field tagValue
*/
private StringBuffer tagValue_;

/**
* Field loanPurpose
*/
private String loanPurpose;

/**
* Field ErrorList
*/
private ArrayList ErrorList = new ArrayList();

/**
* Field Data
*/
private HashMap Data = new HashMap();

/**
* Constructor SAXDataSource
* @param xml java.io.Reader
* @throws IOException
*/

public SaxReader(Reader xml) throws IOException {

try {

SAXParserFactory saxParserFactory =
SAXParserFactory.newInstance();
saxParserFactory.setValidating(true);
SAXParser sp = saxParserFactory.newSAXParser();

ErrorHandler handler = new ErrorHandler() {
public void warning(SAXParseException e) throws
SAXException {
ErrorList.add(e.getMessage());
}
public void error(SAXParseException e) throws
SAXException {
ErrorList.add(e.getMessage());

}
public void fatalError(SAXParseException e)
throws SAXException {
ErrorList.add(e.getMessage());
throw e;
}
};

XMLReader parser = sp.getXMLReader();

parser.setContentHandler(this);
parser.setErrorHandler(handler);
parser.parse(new InputSource(xml));


} catch (IOException e) {
throw e;
} catch (SAXException e) {

e.getMessage();
} catch (Throwable x) {
x.printStackTrace();
}
}

public void startElement(String namespaceURI, String localName,String qName, Attributes atts) {


// Get the number of attribute

int length = atts.getLength();
System.out.println("length.."+length + "localname"+ localName);

// Process each attribute
for (int i=0; i<length; i++) {
// Get names and values for each attribute
String name = atts.getQName(i);
String value = atts.getValue(i);
System.out.println("name=="+name+">>"+value);
System.out.println("loop qname values.."+qName);
System.out.println("qName.."+qName +"sds" + atts.getValue(namespaceURI,qName));
// The following methods are valid only if the parser is namespace-aware
}
}
/**
* Method endElement
*/
int count=0;
public void endElement(String nsURI, String localName, String qName) throws SAXException {

if(count >0) {
count=0;
}
if (qName.equals("TABLE")) {
flag = false;
sbf.append("</" + qName + ">");
System.out.println(sbf.toString());
count=1;
sbf=new StringBuffer();

}

if (flag) {
sbf.append("</" + qName + ">");

}
}

/**
* Field echo
*/

private boolean echo = false;

/**
* Method characters This method is used to obtain the
value
for required Tags.
*
* @param chars char[]
* @param pos
* @param len
* @exception SAXException
*/

public void characters(char[] chars, int pos, int len)
throws SAXException {

if (tagName_ != null && tagValue_ != null) {
String value = new String(chars, pos, len);
System.out.println("this is new...."+ value);
tagValue_.append(value);
Data.put(tagName_, tagValue_);

tagName_ = null;
tagValue_ = null;
}

if (flag) {
String value = new String(chars, pos, len);
sbf.append(value.trim());

}

}

/**
* Method getData This method returns the
* @return HashMap
*/

public HashMap getData() {
return this.Data;
}

public void endDocument() throws SAXException {
}
public void endPrefixMapping(String arg1) throws SAXException {
}
public void ignorableWhitespace(char[] chars, int pos, int len)
throws SAXException {
}
public void processingInstruction(String arg1, String arg2)
throws SAXException {
}
public void setDocumentLocator(Locator arg1) {
}
public void skippedEntity(String arg1) throws SAXException {
}
public void startDocument() throws SAXException {
}
public void startPrefixMapping(String arg1, String arg2)
throws SAXException {
}

/**
* Method main for Testing
*
*/

public static void main(String[] args) {
try {

SaxReader ds = new SaxReader(new FileReader("one.xml"));
} catch (Throwable x) {
x.printStackTrace();
}
}
}


With the above i am getting output like this

name
id
-----
name
number


Regards
Reddy
Yes i am using pega rules .
18 years ago
post complete exception what you getting at logs...
18 years ago
its not giving the further stack trace.
18 years ago
JSP
No its giving full track trace .
18 years ago
JSP
Even i removed flush="true" also am getting same exception



[ServletException in:/jsp/tiles/pages/Details.jsp] Server caught unhandled exception from servlet [action]: Response already committed.'
18 years ago
JSP