satya devarapalli

Greenhorn
+ Follow
since Jan 28, 2009
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 satya devarapalli

Lets say I have an ORM which has several child instances. If there is change in only one of the fields in the child instance and I do a save or update on the parent ORM, will it just save the instance that has the change?

I would like to know if there is any performance issue doing a save on the parent ORM since it has several other child instances. I could do a save just on the Child instance that will change but I want to keep my code generic.
Hello,

I have a web app which has both Struts 1 (v1.2.9) and Struts2 (2.3.16). App Container is JBoss 4.2.3GA. Everytime I build my app with Maven3, I get this error on deployment. It works fine when I build with Maven2. Can anybody help me with this?

Caused by: Unable to load jar:file:/public/server/jboss-4.2.3.GA/server/server/tmp/deploy/tmp3473827488320436377abcd-exp.war/WEB-INF/lib/struts2-core-2.3.16.jar!/struts-default.xml - Class: org.gjt.xpp.jaxp11.SAXParserFactoryImpl
File: SAXParserFactoryImpl.java
Method: newSAXParser
Line: 100 - org/gjt/xpp/jaxp11/SAXParserFactoryImpl.java:100:-1
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:1022)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:165)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:132)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:233)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
... 142 more
Caused by: Unable to create SAX parser - Class: org.gjt.xpp.jaxp11.SAXParserFactoryImpl
File: SAXParserFactoryImpl.java
Method: newSAXParser
Line: 100 - org/gjt/xpp/jaxp11/SAXParserFactoryImpl.java:100:-1
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:107)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:1017)
... 146 more
Caused by: javax.xml.parsers.ParserConfigurationException: validation is not supported
at org.gjt.xpp.jaxp11.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:100)
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:105)
... 147 more
10 years ago
Hello,

I have an action in struts1 which has validate=true and uses struts validation framework which works fine. Now I have another action, which when invoked, I would like to call the struts validation only when the user is in validation mode ( meaning only when the user invoked the first action before).

I tried to manually call the validation in the second action implemented and assigned to GLOBAL Keys in the request. But the jsp didnot render the error messages.

Thanks!
11 years ago
Hello,

I am using IText 5.1.3 to generate PDFs. Now I have this challenge of making the PDF 508 compliant. For this I need to set the document structure so that the screen readers can read the document.

The pdf on a high level is split into tables, a header, body table (has nested tables inside), footer table. After reading Itext in action, i figured out until this point.

I am not sure how to assign my header or body table to this PdfStructureElement. Let me know if there is a better way to do it.

Thanks!
12 years ago
Hello,

I have few calculations done in excel sheets using macros. Now, I would like to invoke those macros through Java and get the results back.
I found this solution for invokation,
Runtime.getRuntime().exec("cmd /c start calling.vbs");
This command looks like it will work for windows environment. The environment I will be running my java application is UNIX based, how should I invoke my excel macros ?
Let me know if there are other options.

Thanks much!
Satya
12 years ago
Hi All,

we are moving to BRMS/GUVNOR from our already existing application implemented in DROOLS. Now that the rules have hibernate queries, how can we achieve that from guvnor guided/technical rules? Is there anyway to hook up this feature and able to test it ?? I was following the PACTPublished JBoss Drools Business Rules book, but it doesnot say anything about SQL in rules.

Thanks for your time!

~Satya
14 years ago
Unfortunately I do not have any application that uses the web service. I have to ask the customer. I tried tcpmon, but the request, response were in html(not sure whether I am doin the rite way). Please suggest me with any open published working wsdl files on the internet so that I can look at the tcpmon request..responses.

Meanwhile, looking at the exception log, I explored the axis source code and found something interesting..

http://svn.apache.org/viewvc/webservices/axis/trunk/java/src/org/apache/axis/message/EnvelopeBuilder.java?view=markup


{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: Bad envelope tag: definitions
at org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.java:71)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)


In the EnvelopeBuilder.startElement method it says,

Its looking for ENVELOPE tag but encounters a DEFINITIONS tag and raises exception. I know that its trying to build a SOAP message but not sure what is going on. Am I in the rite track?

Thanks for your time.
15 years ago
Thankyou for the reply.


I tried using the end-point reference that is in the location object to set the TargetEndpointAddress but it still gives the same exception.

I have to tell you that the actual WSDL from the client url has some validation errors. So I copied into my local machine made necessary changes(Typo, Adding a missing operation in the binding element). Then using this I generated the stubs in eclipse, axis1.4. Am not sure what role it plays by invoking an operation call using this stub generated from local wsdl.
Using the generated code, it raises the same exception I mentioned before while invoking the call.
15 years ago
Hi,

Trying to consume some services through wsdl file given by the customer.
Its RPC-encoded SOAP protocol.
Platform:
Java 1.5
Axis1.4
Tomcat 4.1.39
Eclipse 3.4.1 on Mac 10.5
Tryin to execute
call = (Call) (new Service()).createCall();
call.setTargetEndpointAddress(new java.net.URL(epr));//epr is the wsdl url
call.setOperationName(new QName(target, opName));//target is the TargetNameSpace
call.addParameter("user_no", XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter("building", XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter("unit", XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter("resident", XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter("ManagementCompany", XMLType.XSD_STRING, ParameterMode.IN);
call.setReturnType(XMLType.SOAP_STRING);
String ts="";
ts = (String) call.invoke(new Object[]{"11465", "", "", "", "jenark"});
****It returns successful when the parameters are passed as a http request from the browser. Any help in this is appreciated.
The exception ....
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Bad envelope tag: definitions
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: Bad envelope tag: definitions
at org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.java:71)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at accountNS.AccountNSPortProxy.currentBalance(AccountNSPortProxy.java:146)
at org.apache.jsp.Result_jsp._jspService(Result_jsp.java:123)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:720)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:720)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:199)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:145)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:139)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2460)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:119)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:157)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:613)

15 years ago