Help coderanch get a
new server
by contributing to the fundraiser

prathibha, ar

Greenhorn
+ Follow
since Jun 22, 2001
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 prathibha, ar

Hi
Using the method Response.Write(object) , i have inserted an object in the response object. But in the calling component after getting the response how to retrieve the Object which is inserted in the response object can be retrieved back.
Can anybody help in this regard
Regards
Prathibha
22 years ago
I am using CORBA inorder to access the remote objects.
I am using BOA for this and ORB is Visibroker for java4.5.
My program runs fine if I run the client by means of
vbj exe. But if I run the same class file by java exe it will give the error
C:\corba\counterboa>vbj countClient
Initializing the orb
binding the object
setting the initial value to zero
incrementing
Tuime taken=750
sum is=1000
C:\corba\counterboa>java countClient
Initializing the orb
binding the object
exception =org.omg.CORBA.BAD_PARAM: minor code: 0 completed: No
As it is giving error with java exe, It is giving the same error if i access the class file by means of a JSP. I am using Java 1.3
Can any one help me in solving this problem
regards
prathibha
22 years ago
Hi,
I am validating my XML file by means of an XSD. Can I specify in
the XSD for not accepting a particular pattern.
I don't want to accept the string containing pattern "'".
Becuase if it tries to get inserted into database error will occur.
Thanks in advance
prathibha
Ho,
thanyou very much. Can u please give me the details of this pattern
<xsd attern value="^[\w-_\.]*[\w-_\.]\@[\w-]+\.[\w-_\.]+$"/>
Like what is the correct value according to this pattern.
If I want to replace this email format with a different number
which contains numbers and an hyphen anywhere in the value,
how should i write this
thanks and regards
prathibha
Thankyou for the reply.
I tried the think which u had told . but it is giving the error
as
Attribute 'nullable' cannot appear in 'element'.
What may be the reason for this.
prathibha
Hi,
I have an xml file and i am validating this xml file by means of xsd.
I have an attribute called date which can be null also. but if suppose it is not null then i want to check for the pattern for it.
Is it is possible.
Thanks and regards
prathibha
Hi,
I have got an xml file and an XSD. I am validating xml file writing all the rules in xsd.
Suppose I want to check whether the character '@' is there in the email attribute of xml file.
with regards
prathibha
Hi
Thankyou for your suggestion. WE got it worked. It was becuase of xerces.jar files which was not there in the tomcat's lib directory.
prathibha
Hai Saiprasad,
Even I am having the same problem as u had. I read in the forum that you were able to solve the problem which u were facing.
The following is the description of the problem.
I am writing the xml file reading a simple text file. This xml file is parsed through a parser using Schema Validation(XSD).
But this works fine in the command prompt. But if I call this class from a JSP it gives the following error.
I am using JAXP 1.1. parser and tomcat3.2.1 and JDK1.3.1 and SAX parser
I have placed all the recent jar files which I had in the jdk1.3.1/lib directory in the
jakarta-tomcat/lib directory.
Once I removed tomcat and installed freshly also inorder to avoid old jar files.
But still it is giving following error
Unhandled error! You might want to consider having an error page to report such
errors more gracefully
java.lang.NoSuchMethodError
at org.apache.xerces.parsers.DOMParser.startElement(DOMParser.java:1132)
at org.apache.xerces.validators.common.XMLValidator.callStartElement(XML
Validator.java:1197)
at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumen
tScanner.java:1862)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
atch(XMLDocumentScanner.java:1005)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035)
at org.apache.xerces.validators.common.XMLValidator.resolveSchemaGrammar
(XMLValidator.java:2728)
at org.apache.xerces.validators.common.XMLValidator.bindNamespacesToElem
entAndAttributes(XMLValidator.java:2610)
at org.apache.xerces.validators.common.XMLValidator.callStartElement(XML
Validator.java:1152)
at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumen
tScanner.java:1862)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
atch(XMLDocumentScanner.java:1005)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035)
at xmljava.ValidateWithSchemaJAXPmain.Validate(ValidateWithSchemaJAXPmai
n.java:72)
at xmljava.Write_XML.Write_XMLFile(Write_XML.java:79)
at jsp._0002fjsp_0002fvalidatexml_0002ejspvalidatexml_jsp_4._jspService(
_0002fjsp_0002fvalidatexml_0002ejspvalidatexml_jsp_4.java:92)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspSer
vlet.java:174)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:2
61)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja
va:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559
)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:160)
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.j
ava:338)
at java.lang.Thread.run(Thread.java:484)

Can u please tell me the steps which I have to take in order to solve this problem
Thanks and Regards
prathibha

Hi,
I am writing the xml file reading a simple text file. This xml file is parsed through a parser using Schema Validation(XSD).
But this works fine in the command prompt. But if I call this class from a JSP it gives the following error.
I am using JAXP 1.1. parser and tomcat3.2.1 and JDK1.3.1 and SAX parser
I have placed all the recent jar files which I had in the jdk1.3.1/lib directory in the
jakarta-tomcat/lib directory.
Once I removed tomcat and installed freshly also inorder to avoid old jar files.
But still it is giving following error

Unhandled error! You might want to consider having an error page to report such
errors more gracefully
java.lang.NoSuchMethodError
at org.apache.xerces.parsers.DOMParser.startElement(DOMParser.java:1132)
at org.apache.xerces.validators.common.XMLValidator.callStartElement(XML
Validator.java:1197)
at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumen
tScanner.java:1862)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
atch(XMLDocumentScanner.java:1005)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035)
at org.apache.xerces.validators.common.XMLValidator.resolveSchemaGrammar
(XMLValidator.java:2728)
at org.apache.xerces.validators.common.XMLValidator.bindNamespacesToElem
entAndAttributes(XMLValidator.java:2610)
at org.apache.xerces.validators.common.XMLValidator.callStartElement(XML
Validator.java:1152)
at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumen
tScanner.java:1862)
at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
atch(XMLDocumentScanner.java:1005)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035)
at xmljava.ValidateWithSchemaJAXPmain.Validate(ValidateWithSchemaJAXPmai
n.java:72)
at xmljava.Write_XML.Write_XMLFile(Write_XML.java:79)
at jsp._0002fjsp_0002fvalidatexml_0002ejspvalidatexml_jsp_4._jspService(
_0002fjsp_0002fvalidatexml_0002ejspvalidatexml_jsp_4.java:92)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspSer
vlet.java:174)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:2
61)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja
va:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559
)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:160)
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.j
ava:338)
at java.lang.Thread.run(Thread.java:484)




Can anybody help in solving this error

Thanks and Regards
prathibha
hi all!
iam creating an xml file by reading a simple text file which contains member details like name,address and some payment details.
Using schema validations iam validating this xml file with some 10 rules.
suppose if the parser throws some error while checking the rules
iam writing the errors in to the errorlog.txt file.
Is it is possible to get the data's from the xml file only from the point at which the error occured.Becuase I want to log into the errorlog.txt file only the datas from which the error occured
to the end of the file.
If possible Can I know how it is possible.
It is required uregently.
Thanks and Regards
prathibha

I am using the following lines of code to set the features of XMLReader.
parser = saxParser.getXMLReader();
try{
parser.setFeature("http://xml.org/sax/features/validation", true);
parser.setFeature("http://xml.org/sax/features/namespaces", true);
parser.setFeature("http://apache.org/xml/features/validation/schema",true);
}
catch(SAXNotRecognizedException e)
{
}
But when I run the program it is givng the following error
org.xml.sax.SAXNotRecognizedException: Feature: http://apache.org/xml/features/validation/schema
at org.apache.crimson.parser.XMLReaderImpl.setFeature(XMLReaderImpl.java:204)at ValidateWithSchemaJAXP.main(ValidateWithSchemaJAXP.java:61)
When I try to go the URL mentioned in the setFeature I am not able to access the page.
Can anybody suggest me how to solve this problem
Thanks and Regards
prathibha

I am using XML which uses XML schema(XSD) for validation. I am using org.apache.xerces.parsers.SAXParser . But the parser is not validating the xml document.
Can anybody please send me a code which helps in validating the XML.
Thanks in advance
prathibha