Acrobat sdk, not able to run samples, getting a message, unable to start the program
Hi,
I have downloaded Acrobat sdk XI and tried to run plugin samples in visual studio 2010, It is build successfully but when I try to run the program am getting an error message saying " Unable to start Program 'C:\Users\downloads\sdk110_VI_win\Adobe\acrobatXISdk\Version1\Plugin Support\samples\BasicPlugin\Win32\Debug\BasicPlugin.api'."
Can anybody help me finding out why am getting this message.
Thanks.
How do you run the program?
I need to copy the compiled BasicPlugin.api under Acrobat\plug_ins folder. I can create a subfolder of plug_ins and copy the .api file there. Just one level deep: if I create a subfolder under a subfolder of plug_ins, the .api file will not be found by Acrobat.
Then I need to restart Acrobat and I find the plugin running. In particular, BasicPlugin add a new Acrobat SDK menu and a menu item under it.
If I close Acrobat and go back to Visual Studio, I can push the Debug button which will open Acrobat for me and stop the program execution at any breakpoints I have set in the code.
Similar Messages
-
When I try to connect to the wi-fi net work at my work place on my new iPad 3 I get a message, "unable to join the network". I have verified the password, so I know it is correct. I know the wi-fi works, because I can connect at home. I have already tried the following:
turn wi-fi off and on again
did a hard restart of my iPad
reset network connections back to factory settings
verified wi-fi is working as my computer accesses internet without issue.
verified that my software is up to date.
Does anyone have more suggestions?Couple of suggestions.
First, many companies have a gateway on their networks that block non approved devices. I work in such a place. You might check with an IT guy , and see if they have a block in place.
Second, the message you are getting means that you have not negotiated the security settings. So either the password is wrong ( case sensitive), or, in some cases, they want a network key as opposed to your normal password.
Again, if you can find one, talk to an IT guy and see if he has some suggestions. -
i get this message when i start the computer :" error : unable to start the bluetooth stack service"
If a power cycle of the TC works then the issue is simply Lion.. and there is as yet no fix.. and may never be..
Apple do not seem to acknowledge the issue but plenty of people have it.. It doesn't happen with SL.. one very good reason to not bother with Lion.. Maybe ML will fix it.. without Apple having to ever admit an issue.
In the meantime, if possible downgrade TC to 7.5.2 .. it has less issues than 7.6 or later.
Reset the TC and change all names, TC and wireless names, to short, no spaces, no special characters.
If it is the main router, set the dhcp lease to a short time.. 10min I recommend.
The above will probably not fix the issue.. but it might go a bit longer before a reboot is needed.. going back to SL would fix it. -
Since I "upgraded" to FF 4, I have constant crashes (I tried updating my graphics drivers--it did not help) and now all of my bookmarks have disappeared. When I try to restore them, I get this error message "Unable to process the backup file". I have lost years of bookmarks...please help.
I am using Windows XP, SP 3 if that matters.I am also unable to restore any of the backups of the bookmarks, both automatic backups and two backups that I created manually. Since I was able to restore backups before, and since no changes have occurred to these backup files, the problem must be with Firefox.
Right before my bookmarks disappeared, FF crashed and I accidentally started FF 3.5. When I saw what I did, I ended the Firefox process and started FF 4. That's when all my bookmarks were gone and I discovered I couldn't retrieve any backups. I did note that an add-on was updated when I restarted FF. Maybe that's the problem. Does FF have a Safe mode? -
I am trying to debug the 64 bit application using any cpu. I've tried using x86 also. but still couldn't start the program.
"Debug x64 bit app" What do you mean by that? If you have a project open and you click Debug (F5) and the platform is set to Any CPU then the app will run based upon your bitness.
When do you get this error?
What is your OS bitness?
What type of app is it?
What platform are you using?
Can you at least get to the entry point of your app? Do you have any interop code?
Michael Taylor
http://blogs.msmvps.com/p3net -
Not able to run sample Java concurrent program in Jdevloper
Hi
I am using a Patch p5856648_R12_GENERIC
Trying to run following program
package cisco.com.test;
import oracle.apps.fnd.cp.request.CpContext;
import oracle.apps.fnd.cp.request.LogFile;
import oracle.apps.fnd.cp.request.OutFile;
import oracle.apps.fnd.cp.request.ReqCompletion;
import oracle.apps.fnd.util.NameValueType;
import oracle.apps.fnd.util.ParameterList;
public class HelloWorldApp {
public HelloWorldApp() {
public void runProgram(CpContext ctx) {
//Obtain the reference to the Output file for Concurrent Prog
OutFile out = ctx.getOutFile();
//Obtain the reference to the Log file for Concurrent Prog
LogFile log = ctx.getLogFile();
try {
//To read parameters passed via Concurrent Program
String myName = null;
ParameterList lPara = ctx.getParameterList();
while (lPara.hasMoreElements()) {
NameValueType aNVT = lPara.nextParameter();
if (aNVT.getName().equalsIgnoreCase("My Name"))
myName = aNVT.getValue();
//Write your logic here
out.writeln("This will be printed to the Output File");
log.writeln("This will be printed to the Log File", 0);
//Request the completion of this Concurrent Prog
//This step will signal the end of execution of your Concurrent Prog
ctx.getReqCompletion().setCompletion(ReqCompletion.NORMAL,
"Completed.");
//Handle any exceptional conditions
catch (Exception e) {
StackTraceElement ste[] = e.getStackTrace();
for (int i = 0; i < ste.length; i++) {
log.writeln(ste.toString(), 0);
I have made changes in run configuration
C:\Softwares\p5856648_R12_GENERIC\jdevhome\jdev\myclasses\oracle\apps\fnd\cp\request\Run.class
In Java Option
jre -Ddbcfile=C:\Softwares\p5856648_R12_GENERIC\jdevbin\oaext\dbc_files\secure\dv3qtc.dbc -Drequest.logfile=c:\jcpdemo.log -Drequest.outfile=c:\jcpdemo.out
Program arguments
cisco.com.test.JCPDemoClass
Run directory
C:\Softwares\p5856648_R12_GENERIC\jdevhome\jdev\myclasses
When I click on run
I am getting following Messages
Validation error in document "HomePG":
Invalid value "/oracle/apps/fnd/wf/worklist/webui/AdvancWorklistRG" for property "Extends" on component "/oracle/apps/fnd/framework/toolbox/tutorial/webui/HomePG.Notifications". Component "/oracle/apps/fnd/wf/worklist/webui/AdvancWorklistRG" cannot be referenced from "/oracle/apps/fnd/framework/toolbox/tutorial/webui/HomePG.Notifications" because it violates scope restrictions. validating OA Extension XML "C:\Softwares\p5856648_R12_GENERIC\jdevhome\jdev\myprojects\oracle\apps\fnd\framework\toolbox\tutorial\webui\HomePG.xml" file.
validating OA Extension XML "C:\Softwares\p5856648_R12_GENERIC\jdevhome\jdev\myprojects\oracle\apps\fnd\framework\toolbox\tutorial\webui\PoDescITPG.xml" file.
validating OA Extension XML "C:\Softwares\p5856648_R12_GENERIC\jdevhome\jdev\myprojects\oracle\apps\fnd\framework\toolbox\tutorial\webui\PoDetailsPG.xml" file.
validating OA Extension XML "C:\Softwares\p5856648_R12_GENERIC\jdevhome\jdev\myprojects\oracle\apps\fnd\framework\toolbox\tutorial\webui\PoLinesITPG.xml" file.
validating OA Extension XML "C:\Softwares\p5856648_R12_GENERIC\jdevhome\jdev\myprojects\oracle\apps\fnd\framework\toolbox\tutorial\webui\PoReviewITPG.xml" file.
C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdk\jre\bin\java.exe -jar C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\lib\ojc.jar -source 1.5 -target 1.5 -noquiet -warn -nowarn:320 -deprecation:self -nowarn:560 -nowarn:704 -nowarn:489 -nowarn:415 -nowarn:909 -nowarn:412 -nowarn:414 -nowarn:561 -nowarn:376 -nowarn:371 -nowarn:558 -nowarn:375 -nowarn:413 -nowarn:377 -nowarn:372 -nowarn:557 -nowarn:556 -nowarn:559 -encoding Cp1252 -g -d C:\Softwares\p5856648_R12_GENERIC\jdevhome\jdev\myclasses -make C:\Softwares\p5856648_R12_GENERIC\jdevhome\jdev\myclasses\JCPDemoProject.cdi -classpath C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdk\jre\lib\rt.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdk\jre\lib\i18n.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdk\jre\lib\sunrsasign.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdk\jre\lib\jsse.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdk\jre\lib\jce.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdk\jre\lib\charsets.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdk\jre\classes;C:\Softwares\p5856648_R12_GENERIC\jdevhome\jdev\myclasses;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\lib\jdev-rt.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdbc\lib\ojdbc14dms.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdbc\lib\orai18n.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdbc\lib\ocrs12.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\diagnostics\lib\ojdl.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\lib\dms.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jlib\jdev-cm.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\BC4J\lib\adfshare.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\BC4J\lib\bc4jmt.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\BC4J\lib\collections.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\BC4J\lib\bc4jct.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\lib\xmlparserv2.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jlib\ojmisc.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jlib\commons-el.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jlib\jsp-el-api.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jlib\oracle-el.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\BC4J\lib\bc4jctejb.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\j2ee\home\lib\ejb.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\BC4J\lib\bc4jmtejb.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\BC4J\jlib\bc4jhtml.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\BC4J\jlib\datatags.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\BC4J\jlib\bc4juixtags.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\BC4J\jlib\graphtags.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\j2ee\home\lib\ojsp.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\j2ee\home\jsp\lib\taglib\ojsputil.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\j2ee\home\oc4j.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\j2ee\home\lib\oc4j-internal.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\j2ee\home\lib\servlet.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\lib\ojc.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jlib\jewt4.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\regexp.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\share.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\uix2.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\oaext\mds\lib\mdsrt.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\oaext\lib\mdsdt.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\oaext\lib\oamdsdt.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\fwkjbo.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\fwk.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\wf.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\ak.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\flex.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\aolj.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\collections.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\appsSSO.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\concurrent.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\oamMaintMode.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\wsp.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\fwkCabo.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\diagnostics.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\wsrp-container.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\pdkjava.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\ptlshare.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\xml.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\wsrp-container-types.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\jaxb-impl.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\jaxb-libs.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\jazn.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\jazncore.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\bibeans\lib\biamlocal.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\bibeans\lib\bipres.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\bibeans\lib\bicmn.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\bibeans\lib\bidatasvr.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\bibeans\lib\bidataclt.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\bibeans\lib\bidatacmn.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\bibeans\lib\biext.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\bibeans\lib\bicmn-nls.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\bibeans\lib\bipres-nls.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\bibeans\lib\bidata-nls.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\bibeans\lib\olap_api.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\BC4J\lib\bc4jdomorcl.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\BC4J\jlib\bc4jdatum.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\rosettaRt.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\jttComn.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\iasjoc.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\pat.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\patch_jars;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\portalFlexComps.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\svc.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\appslibrt\svctester.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\lib\xml.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\BC4J\lib\adfm.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\BC4J\jlib\adfui.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\BC4J\lib\adfbinding.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\BC4J\jlib\bc4jtester.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jlib\help4.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jlib\share.jar;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jlib\oracle_ice.jar -sourcepath C:\Softwares\p5856648_R12_GENERIC\jdevhome\jdev\myprojects;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdk\src.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\BC4J\src\adfmsrc.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\BC4J\src\bc4jsrc.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\BC4J\src\bc4jaddinsrc.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\BC4J\src\bc4jhtmlsrc.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\src\uix2-src.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\oaext\mds\src\mdsrtSrc.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\oaext\src\oamdsdtSrc.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\src\fwkjboSrc.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin\jdev\src\fwkSrc.zip;C:\Softwares\p5856648_R12_GENERIC\jdevbin
[3:06:29 PM] Compilation complete: 0 errors, 56 warnings.
And in log file
The target JCPDemoClass.java cannot be started as a servlet, because the class cisco.com.test.JCPDemoClass does not extend javax.servlet.GenericServlet.
The target JCPDemoClass.java cannot be started as an application, because the class JCPDemoClass does not have a main method.
Can you please help me?
-Thanks in advance !!Have you noticed this ?
The target JCPDemoClass.java cannot be started as a servlet, because the class cisco.com.test.JCPDemoClass does not extend javax.servlet.GenericServlet.
The target JCPDemoClass.java cannot be started as an application, because the class JCPDemoClass does not have a main method. -
Hi I just installed the CS5 mastercollection. Everything is workign great except Acrobat. I uninstalled the version on there and did a clean install and I still get this error:
Any help would be great! I have a first gen mac pro, 12 gb ram.
The only thing I did differently was install CS5 on a different drive than the main drive due to lack of space.
Thanks in advance!http://kb2.adobe.com/cps/512/cpsid_51260.html
Solution 1 worked for me.
Hope I could help... -
I can still see the JSON files on my PC, but I can't figure out why FF4 is not showing my bookmarks.
I think I just resolved my issue. I exited Firefox, then deleted the places.sqlite file then restarted Firefox 4. My bookmarks immediately appeared.
Here's where I got the instructions.
https://support.mozilla.com/en-US/kb/Bookmarks%20not%20saved?s=bookmarks+won%27t+save&as=s -
As above. Additional point my previous trial was still active on my defunct computer. Would this prevent it opening on my new computer.
no.
uninstall, clean and reinstall per Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6 -
I had trouble with WiseStamp and was advised to create a new profile. I did and the WiseStamp issue was resolved. However, I now have no bookmarks on the new profile. I copied the places. file from the old profile to the new one, but with no success. The bookmarks do exist on the old profile. I like having WiseStamp working, but need those multitude of bookmarks more! Any advice greatly appreciated. :)
Did you try to restore from another JSON backup?
You can try to move places.sqlite to another location and only leave that backup file in the bookmarkbackups folder.
See:
* http://kb.mozillazine.org/Profile_folder_-_Firefox
* http://kb.mozillazine.org/Locked_or_damaged_places.sqlite -
Not able to run validation using validation.xml & validator-rules.xml
Hello Friends,
I am not able to run validation using validation.xml & validator-rules.xml.
Entire code in running prefectly but no error messages are prompted.
Following is my code:
File Name : struts-config.xml
<struts-config>
<!-- Form Beans Configuration -->
<form-beans>
<form-bean name="searchForm"
type="com.solversa.SearchForm"/>
</form-beans>
<!-- Global Forwards Configuration -->
<global-forwards>
<forward name="search" path="/search.jsp"/>
</global-forwards>
<!-- Action Mappings Configuration -->
<action-mappings>
<action path="/search"
type="com.solversa.SearchAction"
name="searchForm"
scope="request"
validate="true"
input="/search.jsp">
</action>
</action-mappings>
<!-- Message Resources Configuration -->
<message-resources
parameter="ApplicationResources"/>
<!-- Validator Configuration -->
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml"/>
</plug-in>
</struts-config>
<br> File Name : <b> validation.xml </b>
<form-validation>
<formset>
<form name="searchForm">
<field property="name" depends="minlength">
<arg key="label.search.name" position = "0"/>
<arg1 name="minlength" key="${var:minlength}" resource="false"/>
<var>
<var-name>minlength</var-name>
<var-value>5</var-value>
</var>
</field>
<field property="ssNum" depends="mask">
<arg0 key="label.search.ssNum"/>
<var>
<var-name>mask</var-name>
<var-value>^\d{3}-\d{2}-\d{4}$</var-value>
</var>
</field>
</form>
</formset>
</form-validation>
<br> File Name : <b> SearchForm.java </b>
package com.jamesholmes.minihr;
import java.util.List;
import org.apache.struts.validator.ValidatorForm;
public class SearchForm extends ValidatorForm
private String name = null;
private String ssNum = null;
private List results = null;
public void setName(String name) {
this.name = name;
public String getName() {
return name;
public void setSsNum(String ssNum) {
this.ssNum = ssNum;
public String getSsNum() {
return ssNum;
public void setResults(List results) {
this.results = results;
public List getResults() {
return results;
<br> File Name : <b> SearchAction.java </b>
package com.jamesholmes.minihr;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public final class SearchAction extends Action
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
EmployeeSearchService service = new EmployeeSearchService();
ArrayList results;
SearchForm searchForm = (SearchForm) form;
// Perform employee search based on what criteria was entered.
String name = searchForm.getName();
if (name != null && name.trim().length() > 0) {
results = service.searchByName(name);
} else {
results = service.searchBySsNum(searchForm.getSsNum().trim());
// Place search results in SearchForm for access by JSP.
searchForm.setResults(results);
// Forward control to this Action's input page.
return mapping.getInputForward();
<br> File Name : <b> EmployeeSearchService.java </b>
package com.jamesholmes.minihr;
import java.util.ArrayList;
public class EmployeeSearchService
/* Hard-coded sample data. Normally this would come from a real data
source such as a database. */
private static Employee[] employees =
new Employee("Bob Davidson", "123-45-6789"),
new Employee("Mary Williams", "987-65-4321"),
new Employee("Jim Smith", "111-11-1111"),
new Employee("Beverly Harris", "222-22-2222"),
new Employee("Thomas Frank", "333-33-3333"),
new Employee("Jim Davidson", "444-44-4444")
// Search for employees by name.
public ArrayList searchByName(String name) {
ArrayList resultList = new ArrayList();
for (int i = 0; i < employees.length; i++) {
if (employees.getName().toUpperCase().indexOf(name.toUpperCase()) != -1) {
resultList.add(employees[i]);
return resultList;
// Search for employee by social security number.
public ArrayList searchBySsNum(String ssNum) {
ArrayList resultList = new ArrayList();
for (int i = 0; i < employees.length; i++) {
if (employees[i].getSsNum().equals(ssNum)) {
resultList.add(employees[i]);
return resultList;
<br> File Name : <b> Employee.java </b>
package com.solversa;
public class Employee
private String name;
private String ssNum;
public Employee(String name, String ssNum) {
this.name = name;
this.ssNum = ssNum;
public void setName(String name) {
this.name = name;
public String getName() {
return name;
public void setSsNum(String ssNum) {
this.ssNum = ssNum;
public String getSsNum() {
return ssNum;
Pls help me out.
Not able to prompt errors.Hello Friends,
I am not able to run validation using
validation.xml & validator-rules.xml.
Entire code in running prefectly but no error
messages are prompted.
Following is my code:
File Name : struts-config.xml
<struts-config>
<!-- Form Beans Configuration -->
<form-beans>
<form-bean name="searchForm"
type="com.solversa.SearchForm"/>
ans>
<!-- Global Forwards Configuration -->
<global-forwards>
<forward name="search" path="/search.jsp"/>
global-forwards>
<!-- Action Mappings Configuration -->
<action-mappings>
<action path="/search"
type="com.solversa.SearchAction"
name="searchForm"
scope="request"
validate="true"
input="/search.jsp">
tion>
</action-mappings>
<!-- Message Resources Configuration -->
<message-resources
parameter="ApplicationResources"/>
<!-- Validator Configuration -->
<plug-in
className="org.apache.struts.validator.ValidatorPlugI
">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml"/>
>
</struts-config>
<br> File Name : <b> validation.xml </b>
<form-validation>
<formset>
<form name="searchForm">
<field property="name" depends="minlength">
<arg key="label.search.name" position = "0"/>
<arg1 name="minlength" key="${var:minlength}"
resource="false"/>
<var>
<var-name>minlength</var-name>
<var-value>5</var-value>
</var>
</field>
<field property="ssNum" depends="mask">
<arg0 key="label.search.ssNum"/>
<var>
<var-name>mask</var-name>
<var-value>^\d{3}-\d{2}-\d{4}$</var-value>
</var>
</field>
/form>
</formset>
form-validation>
<br> File Name : <b> SearchForm.java </b>
package com.jamesholmes.minihr;
import java.util.List;
import org.apache.struts.validator.ValidatorForm;
public class SearchForm extends ValidatorForm
private String name = null;
private String ssNum = null;
private List results = null;
public void setName(String name) {
this.name = name;
public String getName() {
return name;
public void setSsNum(String ssNum) {
this.ssNum = ssNum;
public String getSsNum() {
return ssNum;
public void setResults(List results) {
this.results = results;
public List getResults() {
return results;
<br> File Name : <b> SearchAction.java </b>
package com.jamesholmes.minihr;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
public final class SearchAction extends Action
public ActionForward execute(ActionMapping
mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
EmployeeSearchService service = new
EmployeeSearchService();
ArrayList results;
SearchForm searchForm = (SearchForm) form;
// Perform employee search based on what criteria
was entered.
String name = searchForm.getName();
if (name != null && name.trim().length() > 0) {
results = service.searchByName(name);
else {
results =
service.searchBySsNum(searchForm.getSsNum().trim());
// Place search results in SearchForm for access
by JSP.
searchForm.setResults(results);
// Forward control to this Action's input page.
return mapping.getInputForward();
<br> File Name : <b> EmployeeSearchService.java </b>
package com.jamesholmes.minihr;
import java.util.ArrayList;
public class EmployeeSearchService
/* Hard-coded sample data. Normally this would come
from a real data
source such as a database. */
ivate static Employee[] employees =
new Employee("Bob Davidson", "123-45-6789"),
new Employee("Mary Williams", "987-65-4321"),
new Employee("Jim Smith", "111-11-1111"),
new Employee("Beverly Harris", "222-22-2222"),
new Employee("Thomas Frank", "333-33-3333"),
new Employee("Jim Davidson", "444-44-4444")
// Search for employees by name.
public ArrayList searchByName(String name) {
ArrayList resultList = new ArrayList();
for (int i = 0; i < employees.length; i++) {
if
(employees.getName().toUpperCase().indexOf(name.toU
pperCase()) != -1) {
resultList.add(employees[i]);
return resultList;
// Search for employee by social security number.
public ArrayList searchBySsNum(String ssNum) {
ArrayList resultList = new ArrayList();
for (int i = 0; i < employees.length; i++) {
if (employees[i].getSsNum().equals(ssNum)) {
resultList.add(employees[i]);
return resultList;
<br> File Name : <b> Employee.java </b>
package com.solversa;
public class Employee
private String name;
private String ssNum;
public Employee(String name, String ssNum) {
this.name = name;
this.ssNum = ssNum;
public void setName(String name) {
this.name = name;
public String getName() {
return name;
public void setSsNum(String ssNum) {
this.ssNum = ssNum;
public String getSsNum() {
return ssNum;
Pls help me out.
Not able to prompt errors.
Hi,
Your error message are not displaying because u does not made Message-Resoucrce property file (Resource Bundle) when you make it .
give it entry in
struts-config.xml
<message-resources parameter="ApplicationResources" />
and
define key and corresponding error message to key in this ApplicationResources i.e
#Error Resources
label.search.ssNum=Plz Enter correct ssNum -
Not able to run python programs on OSx maverics
I bought Mac book pro 1.5 yrs back, and it came with OSx 10.6 now few months back I upgraded to OSx maverics and since then I am not able to run python tools properly. Just importing something in the python commandline i get segmentation fault 11.
now I just tried
import os
and i got segmentation fault with below error,
Process:
Python [1230]
Path:
/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/ MacOS/Python
Identifier:
Python
Version:
2.7.4 (2.7.4)
Code Type:
X86-64 (Native)
Parent Process: bash [883]
Responsible:
Terminal [749]
User ID:
501
Date/Time:
2015-01-15 09:46:08.784 +0530
OS Version:
Mac OS X 10.9.2 (13C64)
Report Version: 11
Anonymous UUID: A975CB81-1635-0611-4AD9-0DC61C4EC9A0
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
VM Regions Near 0:
-->
__TEXT
0000000100000000-0000000100001000 [
4K] r-x/rwx SM=COW /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents /MacOS/Python
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 readline.so
0x00000001002f2f97 call_readline + 647
1 org.python.python
0x0000000100008e92 PyOS_Readline + 274
2 org.python.python
0x000000010000a6e8 tok_nextc + 104
3 org.python.python
0x000000010000ae93 PyTokenizer_Get + 147
4 org.python.python
0x0000000100005a8a parsetok + 218
5 org.python.python
0x00000001000e8af2 PyParser_ASTFromFile + 146
6 org.python.python
0x00000001000e9dd3 PyRun_InteractiveOneFlags + 243
7 org.python.python
0x00000001000ea0be PyRun_InteractiveLoopFlags + 78
8 org.python.python
0x00000001000ea8d1 PyRun_AnyFileExFlags + 161
9 org.python.python
0x000000010010155d Py_Main + 3101
10 org.python.python
0x0000000100000f14 0x100000000 + 3860
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000100322290 rcx: 0x0000000102000000 rdx: 0x0000000000000a00
rdi: 0x0000000000000000 rsi: 0x00000001002f3254 rbp: 0x00007fff5fbff2d0 rsp: 0x00007fff5fbff200
r8: 0x0000000102000000 r9: 0x0000000000000000 r10: 0x0080002140000003 r11: 0x0000000000000001
r12: 0x0000000000000001 r13: 0x0000000000000009 r14: 0x00007fff5fbff290 r15: 0x00007fff5fbff210
rip: 0x00000001002f2f97 rfl: 0x0000000000010206 cr2: 0x0000000000000000
Logical CPU:
1
Error Code:
0x00000004
Trap Number:
14
Binary Images:
0x100000000 -
0x100000fff +org.python.python (2.7.4 - 2.7.4) <A450FF23-FAE2-B1D7-E70F-5511C3FAD379> /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents /MacOS/Python
0x100003000 -
0x10016fff7 +org.python.python (2.7.4, [c] 2004-2013 Python Software Foundation. - 2.7.4) <D4B4F67F-D7AA-AECF-2E7C-6C605A9B1EA9> /Library/Frameworks/Python.framework/Versions/2.7/Python
0x1002f1000 -
0x1002f3fff +readline.so (???) <CDBF1919-7992-8A7E-5F30-D429DB67EF51> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/rea dline.so
0x100700000 -
0x10071effb libedit.2.dylib (39) <1B0596DB-F336-32E7-BB9F-51BF70DB5305> /usr/lib/libedit.2.dylib
0x10072f000 -
0x100783fe7 +libncursesw.5.dylib (5) <3F0079C0-01C1-3CB8-19CA-F9B49AA4F4A4> /Library/Frameworks/Python.framework/Versions/2.7/lib/libncursesw.5.dylib
0x7fff64d5d000 -
0x7fff64d90817 dyld (239.4) <2B17750C-ED1B-3060-B64E-21897D08B28B> /usr/lib/dyld
0x7fff88329000 -
0x7fff8833aff7 libsystem_asl.dylib (217.1.4) <655FB343-52CF-3E2F-B14D-BEBF5AAEF94D> /usr/lib/system/libsystem_asl.dylib
0x7fff8833b000 -
0x7fff88340ff7 libunwind.dylib (35.3) <78DCC358-2FC1-302E-B395-0155B47CB547> /usr/lib/system/libunwind.dylib
0x7fff88b16000 -
0x7fff88b3dff7 libsystem_network.dylib (241.3) <8B1E1F1D-A5CC-3BAE-8B1E-ABC84337A364> /usr/lib/system/libsystem_network.dylib
0x7fff88b3e000 -
0x7fff88b5aff7 libsystem_kernel.dylib (2422.90.20) <20E00C54-9222-359F-BD98-CB79ABED769A> /usr/lib/system/libsystem_kernel.dylib
0x7fff88de4000 -
0x7fff88e14fff libncurses.5.4.dylib (42) <BF763D62-9149-37CB-B1D2-F66A2510E6DD> /usr/lib/libncurses.5.4.dylib
0x7fff88e15000 -
0x7fff88e1bff7 libsystem_platform.dylib (24.90.1) <3C3D3DA8-32B9-3243-98EC-D89B9A1670B3> /usr/lib/system/libsystem_platform.dylib
0x7fff88e8c000 -
0x7fff88ea7ff7 libsystem_malloc.dylib (23.10.1) <A695B4E4-38E9-332E-A772-29D31E3F1385> /usr/lib/system/libsystem_malloc.dylib
0x7fff891a9000 -
0x7fff891f7fff libcorecrypto.dylib (161.1) <F3973C28-14B6-3006-BB2B-00DD7F09ABC7> /usr/lib/system/libcorecrypto.dylib
0x7fff892a2000 -
0x7fff892acfff libcommonCrypto.dylib (60049) <8C4F0CA0-389C-3EDC-B155-E62DD2187E1D> /usr/lib/system/libcommonCrypto.dylib
0x7fff892c0000 -
0x7fff89312fff libc++.1.dylib (120) <4F68DFC5-2077-39A8-A449-CAC5FDEE7BDE> /usr/lib/libc++.1.dylib
0x7fff8a0de000 -
0x7fff8a105ffb libsystem_info.dylib (449.1.3) <7D41A156-D285-3849-A2C3-C04ADE797D98> /usr/lib/system/libsystem_info.dylib
0x7fff8b079000 -
0x7fff8b080fff libcompiler_rt.dylib (35) <4CD916B2-1B17-362A-B403-EF24A1DAC141> /usr/lib/system/libcompiler_rt.dylib
0x7fff8b081000 -
0x7fff8b082ffb libremovefile.dylib (33) <3543F917-928E-3DB2-A2F4-7AB73B4970EF> /usr/lib/system/libremovefile.dylib
0x7fff8b083000 -
0x7fff8b23bff3 libicucore.A.dylib (511.31) <167DDD0A-A935-31AF-B5B9-940268EC3A3C> /usr/lib/libicucore.A.dylib
0x7fff8bb00000 -
0x7fff8bb2ffd2 libsystem_m.dylib (3047.16) <B7F0E2E4-2777-33FC-A787-D6430B630D54> /usr/lib/system/libsystem_m.dylib
0x7fff8c3a5000 -
0x7fff8c3a6ff7 libsystem_blocks.dylib (63) <FB856CD1-2AEA-3907-8E9B-1E54B6827F82> /usr/lib/system/libsystem_blocks.dylib
0x7fff8cd63000 -
0x7fff8cd65ff7 libquarantine.dylib (71) <7A1A2BCB-C03D-3A25-BFA4-3E569B2D2C38> /usr/lib/system/libquarantine.dylib
0x7fff8d8fa000 -
0x7fff8d923ff7 libc++abi.dylib (49.1) <21A807D3-6732-3455-B77F-743E9F916DF0> /usr/lib/libc++abi.dylib
0x7fff8dbcc000 -
0x7fff8dbd3ff7 libsystem_pthread.dylib (53.1.4) <AB498556-B555-310E-9041-F67EC9E00E2C> /usr/lib/system/libsystem_pthread.dylib
0x7fff8dbfb000 -
0x7fff8dbffff7 libcache.dylib (62) <BDC1E65B-72A1-3DA3-A57C-B23159CAAD0B> /usr/lib/system/libcache.dylib
0x7fff8ddf9000 -
0x7fff8de00ff8 liblaunch.dylib (842.90.1) <38D1AB2C-A476-385F-8EA8-7AB604CA1F89> /usr/lib/system/liblaunch.dylib
0x7fff8de01000 -
0x7fff8de43ff7 libauto.dylib (185.5) <F45C36E8-B606-3886-B5B1-B6745E757CA8> /usr/lib/libauto.dylib
0x7fff8de4d000 -
0x7fff8de51ff7 libsystem_stats.dylib (93.90.3) <1A55AF8A-B6C4-3163-B557-3AD25DA643A8> /usr/lib/system/libsystem_stats.dylib
0x7fff8ecd8000 -
0x7fff8eebdfff com.apple.CoreFoundation (6.9 - 855.14) <617B8A7B-FAB2-3271-A09B-C542E351C532> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff90c81000 -
0x7fff90c89fff libsystem_dnssd.dylib (522.90.2) <A0B7CF19-D9F2-33D4-8107-A62184C9066E> /usr/lib/system/libsystem_dnssd.dylib
0x7fff90c8b000 -
0x7fff90c8cff7 libDiagnosticMessagesClient.dylib (100) <4CDB0F7B-C0AF-3424-BC39-495696F0DB1E> /usr/lib/libDiagnosticMessagesClient.dylib
0x7fff91b4f000 -
0x7fff91b54fff libmacho.dylib (845) <1D2910DF-C036-3A82-A3FD-44FF73B5FF9B> /usr/lib/system/libmacho.dylib
0x7fff91c4e000 -
0x7fff91c55ff3 libcopyfile.dylib (103) <5A881779-D0D6-3029-B371-E3021C2DDA5E> /usr/lib/system/libcopyfile.dylib
0x7fff91d91000 -
0x7fff91e1aff7 libsystem_c.dylib (997.90.3) <6FD3A400-4BB2-3B95-B90C-BE6E9D0D78FA> /usr/lib/system/libsystem_c.dylib
0x7fff91e6e000 -
0x7fff91e77ff3 libsystem_notify.dylib (121) <52571EC3-6894-37E4-946E-064B021ED44E> /usr/lib/system/libsystem_notify.dylib
0x7fff9272c000 -
0x7fff9272dff7 libsystem_sandbox.dylib (278.11) <5E5A6E09-33A9-391A-AB34-E57D93BB1551> /usr/lib/system/libsystem_sandbox.dylib
0x7fff92ede000 -
0x7fff92f02fff libxpc.dylib (300.90.2) <AB40CD57-F454-3FD4-B415-63B3C0D5C624> /usr/lib/system/libxpc.dylib
0x7fff93601000 -
0x7fff93602ff7 libSystem.B.dylib (1197.1.1) <BFC0DC97-46C6-3BE0-9983-54A98734897A> /usr/lib/libSystem.B.dylib
0x7fff9363c000 -
0x7fff937e9f27 libobjc.A.dylib (551.1) <AD7FD984-271E-30F4-A361-6B20319EC73B> /usr/lib/libobjc.A.dylib
0x7fff93b8e000 -
0x7fff93b8eff7 libkeymgr.dylib (28) <3AA8D85D-CF00-3BD3-A5A0-E28E1A32A6D8> /usr/lib/system/libkeymgr.dylib
0x7fff949e8000 -
0x7fff949ebff7 libdyld.dylib (239.4) <CF03004F-58E4-3BB6-B3FD-BE4E05F128A0> /usr/lib/system/libdyld.dylib
0x7fff94df0000 -
0x7fff94df2ff3 libsystem_configuration.dylib (596.13) <B51C8C22-C455-36AC-952D-A319B6545884> /usr/lib/system/libsystem_configuration.dylib
0x7fff95357000 -
0x7fff95358fff libunc.dylib (28) <62682455-1862-36FE-8A04-7A6B91256438> /usr/lib/system/libunc.dylib
0x7fff95380000 -
0x7fff95391ff7 libz.1.dylib (53) <42E0C8C6-CA38-3CA4-8619-D24ED5DD492E> /usr/lib/libz.1.dylib
0x7fff95392000 -
0x7fff953acfff libdispatch.dylib (339.90.1) <F3CBFE1B-FCE8-3F33-A53D-9092AB382DBB> /usr/lib/system/libdispatch.dylib
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 1192
thread_create: 0
thread_set_state: 0
VM Region Summary:
ReadOnly portion of Libraries: Total=76.9M resident=147.6M(192%) swapped_out_or_unallocated=16777216.0T(22877170565120%)
Writable regions: Total=46.0M written=2644K(6%) resident=3112K(7%) swapped_out=0K(0%) unallocated=42.9M(93%)
REGION TYPE
VIRTUAL
===========
=======
Kernel Alloc Once
4K
MALLOC
37.6M
MALLOC (admin)
16K
STACK GUARD
56.0M
Stack
8192K
VM_ALLOCATE
8K
__DATA
1432K
__LINKEDIT
66.2M
__TEXT
10.7M
__UNICODE
544K
shared memory
4K
===========
=======
TOTAL
180.5M
Model: MacBookPro9,2, BootROM MBP91.00D3.B06, 2 processors, Intel Core i5, 2.5 GHz, 4 GB, SMC 2.2f38
Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In, 1024 MB
Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1600 MHz, 0x02FE, 0x45424A3230554638424455302D474E2D4620
Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1600 MHz, 0x02FE, 0x45424A3230554638424455302D474E2D4620
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xF5), Broadcom BCM43xx 1.0 (5.106.98.100.22)
Bluetooth: Version 4.2.3f10 13477, 3 services, 15 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
Serial ATA Device: APPLE HDD HTS547550A9E384, 500.11 GB
Serial ATA Device: HL-DT-ST DVDRW GS31N
USB Device: Hub
USB Device: Android
USB Device: FaceTime HD Camera (Built-in)
USB Device: Hub
USB Device: Hub
USB Device: IR Receiver
USB Device: Apple Internal Keyboard / Trackpad
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 25.1
I would really appreciate if some one can help solve the above issue.That is always a classpath issue. Fix your classpath so it uses the J2ee.jar. If you are using an IDE you will have to look up how to add JARs to the IDE's classpath, which is usually not the same as the system classpath.
-
Hi,
Not able to open PDF or do any changes even if the PDF opens. Run Time Error is shown every time when trying to open PDF. Please helpHi Shilpa ,
Please refer to the following link and see if that helps you out.
https://helpx.adobe.com/acrobat/kb/runtime-error-roaming-profile-workflows.html
Are you trying to access the PDF with Acrobat or Adobe Reader?
Regards
Sukrit Dhingra -
Not able to run a report on BiPublisher version 10.1.3.4
I am using Bipublisher version 10.1.3.4. i am not able to run the Report. I am calling this report using
webservice from java code.I have added entry "Guest" in Guest Folder name also i have
checked the checkbox AllowGuest acess in Admin->ServerConfiguration tab.
i have xdo file in location /Guest/Test/InvoiceBatchReport/InvoiceBatchReport.xdo
I am getting exception at line following line
ReportResponse reportResp = (ReportResponse) call.invoke( new Object[] {report, "Administrator", "Administrator"} );
following is the exception detail
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: oracle.apps.xdo.webservice.exception.OperationFailedException: PublicReportService::generateReport failed: due to unable to read
ReportDataFile [Guest/Test/InvoiceBatchReport/InvoiceBatchReport.xdo]
faultActor:
faultNode:
faultDetail:
{}oracle.apps.xdo.webservice.exception.OperationFailedException:null
{http://xml.apache.org/axis/}hostname:GTMDevWS
oracle.apps.xdo.webservice.exception.OperationFailedException: PublicReportService::generateReport failed: due to
unable to read ReportDataFile
[Guest/Test/InvoiceBatchReport/InvoiceBatchReport.xdo]
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContex
t.java:1087)
can any body provide me the solution ?I missed to attach the source code.following is mine source code.
public static void runReport() throws Exception {
final String bipEndpoint = "http://localhost:9706/xmlpserver/services/PublicReportService?wsdl";
final String bipNamespace = "http://xmlns.oracle.com/oxp/service/PublicReportService";
final String xdofile = "/Guest/Test/InvoiceBatchReport/InvoiceBatchReport.xdo";
// set up the call object
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(new URL(bipEndpoint));
// TEST Run Report
System.out.println("TESTING runReport Service BEGIN");
// register the ReportRequest class
QName reportReq = new QName(bipNamespace, "ReportRequest");
call.registerTypeMapping(ReportRequest.class, reportReq, BeanSerializerFactory.class, BeanDeserializerFactory.class);
// register the ParamNameValue class
QName nmvals = new QName(bipNamespace, "ParamNameValue");
call.registerTypeMapping(ParamNameValue.class, nmvals, BeanSerializerFactory.class, BeanDeserializerFactory.class);
// register the BIPReportResponse class
QName reportRespqn = new QName(bipNamespace, "ReportResponse");
call.registerTypeMapping(ReportResponse.class, reportRespqn, BeanSerializerFactory.class, BeanDeserializerFactory.class);
// Default return type based on what we expect
call.setOperationName( new QName(bipNamespace, "runReport" ));
call.addParameter( "ReportRequest", reportReq, ParameterMode.IN );
call.addParameter("admin", XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter("yuvraj79", XMLType.XSD_STRING, ParameterMode.IN);
call.setReturnClass(ReportResponse.class);
ParamNameValue[] paramNmVals = new ParamNameValue[2];
paramNmVals[0] = new ParamNameValue(false, "dept", null) ;
paramNmVals[1] = new ParamNameValue(false, "emp", new String[] {"*"}) ;
ReportRequest report = new ReportRequest("pdf", "en-US", "Simple",false, null, "/Guest/Test/InvoiceBatchReport/InvoiceBatchReport.xdo",null, xdofile, -1);
// issue the reques
ReportResponse reportResp = (ReportResponse) call.invoke( new Object[] {report, "Administrator", "Administrator"} );
System.out.println("Return ReportResponse: ContentType = " + reportResp.getReportContentType());
// Save the report
byte[] binaryBytes = reportResp.getReportBytes();
OutputStream out = new FileOutputStream("D:\\temp\\out.pdf");
out.write(binaryBytes);
out.close();
System.out.println("Success for Run Report");
} -
I am not able to run a Windows Azure application
I have a very strange issue.
I am not able to run a windows azure application which has a WCF service and mschart in it. Following are the steps to reproduce the error:
1) Create a new windowsazureapplication with a blank asp.net webrole
2) Now add a new WCfService
3) run to check it runs ok
http://i.stack.imgur.com/1g6gW.png
4) now in one of the pages include mschart, and open the design of the page to make sure the webconfig is changed to use the mschart.
5) now try to run the project.
I am getting error message like this one:
enter image description here
Is this a problem with windows azure or am I doing somthing wrong?
FYI: This is not my first project on windows azure.
RuchitRamiAs far as I know Toshiba doesnt support such Microsoft stuff so I think Microsoft is the right adres for such issues.
Have you already checked what Microsoft say about that?
Maybe you are looking for
-
when i right click to open link in a new tab , the new tab is blank and wont load the page. But, if I right click and open in a new window it loads the page just fine. This is after I upgraded to firefox 4.
-
I currently have a gmail account set-up on my iPhone that pulls in two other e-mail accounts via gmail. I want to add a secondary e-mail account which is my work e-mail (probably a MS Exchange account). Is there anyway to do this as I believe that th
-
Upgrading from 10.6.7 to 10.6.8 issue with GUI
Hi, I've been trying to upgrade 10.6.7 to 10.6.8 multiple times now on my MBP and gets to the same error every single time. 10.6.7 runs like a charm - no issues no nothing. I download 10.6.8 v1.1 combo pack and try to install it, it runs and want to
-
File Hyperlinks - How to hide the extension?
Hi, I'm trying to link to a file but I'm finding that the format of the hyperlink is not very customisable. For example, I want to link to a file called eulogy.doc but just have the link read Eulogy. I have tried hiding the extension on the file, but
-
firefox asks for security exception and i allow however page still does not display properly