Ajay Vikas

Ranch Hand
+ Follow
since Nov 08, 2006
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 Ajay Vikas


Hi All,

I am new to RPC calls. I am trying to access the XMLRPC server in php(xmlrpc.php) and get the data out of it. But i am facing with the following exceptions,

Fatal Error] :1:1: Content is not allowed in prolog.
org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse servers response: Content is not allowed in prolog.
at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:177)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:145)
at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:94)
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:44)
at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:157)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:146)
at com.ltp.test.TestlinkAPIXMLRPCClient.testLinkReport(TestlinkAPIXMLRPCClient.java:48)
at com.ltp.test.TestlinkAPIXMLRPCClient.main(TestlinkAPIXMLRPCClient.java:71)
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:175)
... 9 more
Caused by:

Please help me over this.

Thanks,
Ajay.
14 years ago

Hey thank you for your touch on this issue. We got rid off this issue as it is due to corrupt of war file during transfer which we discovered much later. It is worked now. We support Weblogic 6 as it is required to support one of our esteemed client.

Thanks,
Vikas.
14 years ago

Thanks for your reply. It is a struts-war file and we use weblogic 6.x and solaris box for deployment.
Please let me know for more details.

--
Vikas.
14 years ago

Hi Ranchers,

I got the following exceptions when i deployed the application. Stack trace is,

####<13-Oct-09 10:49:40> <Error> <Management> <tstts024> <asfserver> <Application Manager Thread> <system> <> <141004> <IOException opening application asfdomain:Name=PinSetup,Type=Application, loading from path ./config/asfdomain/applications>
java.io.FileNotFoundException: invalid END header (bad central directory offset)
at weblogic.management.mbeans.custom.Application.findType(Application.java:1947)
at weblogic.management.mbeans.custom.Application.adminLoad(Application.java:458)
at weblogic.management.mbeans.custom.Application.load(Application.java:394)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:374)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:466)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:207)
at $Proxy8.load(Unknown Source)
at weblogic.management.mbeans.custom.ApplicationManager.addApplication(ApplicationManager.java:980)
at weblogic.management.mbeans.custom.ApplicationManager.addApplication(ApplicationManager.java:954)
at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:851)
at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:781)
at weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:210)
at weblogic.management.mbeans.custom.ApplicationManager$ApplicationPoller.run(ApplicationManager.java:1135)

Please help me over this.

--
Vikas.

14 years ago

Hi Ranchers,

I am very new to LDAP concepts. can any one help me to get email id from LDAP server by providing ldap username , password and group.

--
Vikas.
SCJP 1.4, SCWCD 1.5
14 years ago

Hi Ranchers,

Can i please know how to get user names in a group using ldap. My input param will be only group name, so i need to fetch all user names under it.
Please help me over this.

--
Vikas.
SCJP 1.4,SCWCD 1.5.
14 years ago

Hi Ranchers,

Please help me in knowing the variable carrying from child window to parent window and vice-versa. Also all other combinations of parent and child windows.

Thanks in advance,

--
Vikas.
SCJP 1.4,SCWCD 1.5.

Hi All,

I am completely new to LDAP concept. Please help me in sources to understand it and few examples of using it.

Thanks in Advance,

Ajay.
14 years ago
Thanks a Ton Tim. It has worked for me now.

--
Ajay.
14 years ago
Hi All,

I am trying to run a Linux command from ant and facing the following errors,

Script Task:

<exec executable="/usr/bin/diff" failonerror="true" output="Main_Agg_diff.log">
<arg line="TAOuput.log TLPOuput.log"/>
</exec>

Error is :

[exec] Current OS is Linux
[exec] Output redirected to /home/ajay/TATest/Main_Agg_diff.log
[exec] Executing '/usr/bin/diff' with arguments:
[exec] 'TAOuput.log'
[exec] 'TLPOuput.log'
[exec]
[exec] The ' characters around the executable and arguments are
[exec] not part of the command.

BUILD FAILED
/home/ajay/TATest/build.xml:36: exec returned: 1
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:591)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:617)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:452)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Please help me over this.

Thanks in advance.

--
Ajay.
SCJP 1.4.
14 years ago

Thanks Ranchers for all your replies.

--
Ajay.
14 years ago

Please go ahead in using apache dbcp.jar and start using connection pooling mechanism.

--
Ajay.
SCJP 1.4
14 years ago

Thanks Tim for the information. Can i know the place/file where we can configure the interval property in tomcat?


--
Ajay,
SCJP 1.4.
14 years ago
Hi Ranchers,

How can i enable appserver hot deployment property in tomcat webserver. I have tried in server.xml changing autoReload=true but i am not successful in doing so.
Please add your views.


--
Vikas.
SCJP 1.4.
14 years ago