Error : cannot find setter method....
hi i am using Ant 1.6 and struts framework .....to run a simple program to print a name
i have followed all the basic steps ....to create a struts application
now the problem is
when i am trying to acces the applicatin it is giving
org.apache.jasper.JasperException: /index.jsp(9,2) Unable to find setter method for attribute: name
the form tag in index.jsp is
<html:form action="Name"name="nameForm" type="NameForm">
the bean is
package com;
//import statements
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
public class NameForm extends ActionForm {
String name = null;
public String getName() {
return name;
public void setName(String name) {
this.name = name;
public void reset(ActionMapping mapping, HttpServletRequest request) {
this.name = null;
} the struts-config.xml file...
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
<struts-config>
<form-beans>
<form-bean name="nameForm" type="com.NameForm"/>
</form-beans>
<action-mappings>
<action path="/Name"
type="com.NameAction"
name="nameForm"
input="/index.jsp">
<forward name="success" path="/displayname.jsp"/>
<forward name="failure" path="/index.jsp"/>
</action>
</action-mappings>
</struts-config>
thanks....in advance
Hal-.- wrote:
I downloaded Lucene from its homepage, I have tried Lucene 2.3.0 and Lucene 2.2.0, but same errors occurs which is cannot find symbol method Text.
I checked class Field under Lucene, it doesn't have Text function. Well there you go. You can't call methods that don't exist.
What should I do to add two Fields "path" & "contents" into Document?It seems very likely that the object that represents an indexed document, has some way to express the concepts of "path" and "contents". You should probably just read the docs some more.
But other than that I have no idea. Ask on a Lucene forum.
Similar Messages
-
Error: cannot find symbol method Text
Hi
I want to make an index for txt files by using Lucene, it got an error: cannot find symbol method Text. what is it about? Does it mean the Text is not in Field?
thank you v much
pls look into my code:
package TestLucene;
import java.io.File;
import java.io.FileReader;
import java.io.Reader;
import java.util.Date;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.index.IndexWriter;
import org.apache.lucene.document.Fieldable;
import java.io.Serializable;
* This class demonstrate the process of creating index with Lucene
* for text files
public class Lucene {
public static void main(String[] args) throws Exception{
//indexDir is the directory that hosts Lucene's index files
File indexDir = new File("D:\\luceneIndex");
//dataDir is the directory that hosts the text files that to be indexed
File dataDir = new File("D:\\luceneData");
Analyzer luceneAnalyzer = new StandardAnalyzer();
File[] dataFiles = dataDir.listFiles();
IndexWriter indexWriter = new IndexWriter(indexDir,luceneAnalyzer,true);
long startTime = new Date().getTime();
for(int i = 0; i < dataFiles.length; i++){
if(dataFiles.isFile() && dataFiles[i].getName().endsWith(".txt")){
System.out.println("Indexing file " + dataFiles[i].getCanonicalPath());
Document document = new Document();
Reader txtReader = new FileReader(dataFiles[i]);
document.add(Field.Text("path",dataFiles[i].getCanonicalPath()));
document.add(Field.Text("contents",txtReader));
indexWriter.addDocument(document);
indexWriter.optimize();
indexWriter.close();
long endTime = new Date().getTime();
System.out.println("It takes " + (endTime - startTime)
+ " milliseconds to create index for the files in directory "
+ dataDir.getPath());Hal-.- wrote:
I downloaded Lucene from its homepage, I have tried Lucene 2.3.0 and Lucene 2.2.0, but same errors occurs which is cannot find symbol method Text.
I checked class Field under Lucene, it doesn't have Text function. Well there you go. You can't call methods that don't exist.
What should I do to add two Fields "path" & "contents" into Document?It seems very likely that the object that represents an indexed document, has some way to express the concepts of "path" and "contents". You should probably just read the docs some more.
But other than that I have no idea. Ask on a Lucene forum. -
Custom Tag: Cannot find setter method for attribute
This has been working fine in appserver6.5.
In the jsp:
=======
<display:table configFileDir="theDirectory"...>
=======
The tld entry:
<tag>
<name>table</name>
<tagclass>org.apache.taglibs.display.TableTag</tagclass>
<teiclass>org.apache.taglibs.display.TableTagExtraInfo</teiclass>
<bodycontent>JSP</bodycontent>
<attribute>
<name>configFileDir</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
=============
In TableTag.java:
=============
private String configFileDir = null;
public void setConfigFileDir( String v )
v = v.trim();
this.configFileDir = v;
============
Help, I'm going nuts.Then you also need to create a UI element that extends HtmlPanelGrid
that has a tModelKey member and getters/setters. That object will hold
the information so that you can use it in your bean.Whoops... ignore that! Sorry. Attributes are simply stored in the component map component.getAttributes().
Add to your Tag class:
public void setProperties(UIComponent component) {
super.setProperties(component);
Tags.setString(component, "tModelKey", tModelKey);
public void release() {
// see above
}Where Tags.java is:public class Tags {
public static void setString(UIComponent component, String attributeName, String attributeValue) {
if (attributeValue != null) {
if (UIComponentTag.isValueReference(attributeValue)) {
setValueBinding(component, attributeName, attributeValue);
} else {
component.getAttributes().put(attributeName, attributeValue);
public static void setValueBinding(UIComponent component, String attributeName, String attributeValue) {
FacesContext context = FacesContext.getCurrentInstance();
Application app = context.getApplication();
ValueBinding vb = app.createValueBinding(attributeValue);
component.setValueBinding(attributeName, vb);
} -
Cannot find symbl method update Date(int,java.util.Date)
I get following error
cannot find symbl method update Date(int,java.util.Date) on compling class called GuestDataBean at line ( rowSet.updateDate( 4, guest.getDate() ); ).
GustBean.java. I need help on why I get it.
// JavaBean to store data for a guest in the guest book.
package com.deitel.jhtp6.jsp.beans;
import java.util.*;
public class GuestBean
private String firstName;
private String lastName;
private String email;
private Date date;
private String message;
//Constructors
public GuestBean(){
public GuestBean(String firstname, String lastname, String email,Date date,String message){
this.firstName=firstname;
this.lastName=lastName;
this.email=email;
this.date=date;
this.message=message;
// set the guest's first name
public void setFirstName( String name )
firstName = name;
} // end method setFirstName
// get the guest's first name
public String getFirstName()
return firstName;
} // end method getFirstName
// set the guest's last name
public void setLastName( String name )
lastName = name;
} // end method setLastName
// get the guest's last name
public String getLastName()
return lastName;
} // end method getLastName
// set the guest's email address
public void setEmail( String address )
email = address;
} // end method setEmail
// get the guest's email address
public String getEmail()
return email;
} // end method getEmail
public void setMessage( String mess)
message = mess;
} // end method setEmail
// get the guest's email address
public String getMessage()
return message;
} // end method getEmail
public void setDate( Date dat )
date = dat;
} // end method setEmail
// get the guest's email address
public Date getDate()
return date;
} // end method getEmail
} // end class GuestBean
GuestDataBean.java/**
* @(#)GuestDataBean.java
* @author
* @version 1.00 2008/7/18
// Class GuestDataBean makes a database connection and supports
// inserting and retrieving data from the database.
package com.deitel.jhtp6.jsp.beans;
import java.sql.SQLException;
import javax.sql.rowset.CachedRowSet;
import java.util.ArrayList;
import com.sun.rowset.CachedRowSetImpl; // CachedRowSet implementation
import java.sql.*;
public class GuestDataBean
private CachedRowSet rowSet;
// construct TitlesBean object
public GuestDataBean() throws Exception
// load the MySQL driver
Class.forName( "org.gjt.mm.mysql.Driver" );
// specify properties of CachedRowSet
rowSet = new CachedRowSetImpl();
rowSet.setUrl( "jdbc:mysql://localhost:3306/virsarmedia" );
rowSet.setUsername( "root" );
rowSet.setPassword( "" );
// obtain list of titles
rowSet.setCommand(
"SELECT firstName, lastName, email,date,message FROM guest" );
rowSet.execute();
} // end GuestDataBean constructor
// return an ArrayList of GuestBeans
public ArrayList< GuestBean > getGuestList() throws SQLException
ArrayList< GuestBean > guestList = new ArrayList< GuestBean >();
rowSet.beforeFirst(); // move cursor before the first row
// get row data
while ( rowSet.next() )
GuestBean guest = new GuestBean();
guest.setFirstName( rowSet.getString( 1 ) );
guest.setLastName( rowSet.getString( 2 ) );
guest.setEmail( rowSet.getString( 3 ) );
guest.setDate( rowSet.getDate( 4 ) );
guest.setMessage( rowSet.getString( 5 ) );
guestList.add( guest );
} // end while
return guestList;
} // end method getGuestList
// insert a guest in guestbook database
public void addGuest( GuestBean guest ) throws SQLException
rowSet.moveToInsertRow(); // move cursor to the insert row
// update the three columns of the insert row
rowSet.updateString( 1, guest.getFirstName() );
rowSet.updateString( 2, guest.getLastName() );
rowSet.updateString( 3, guest.getEmail() );
rowSet.updateDate( 4, guest.getDate() );
rowSet.updateString( 5, guest.getMessage() );
rowSet.insertRow(); // insert row to rowSet
rowSet.moveToCurrentRow(); // move cursor to the current row
rowSet.commit(); // propagate changes to database
} // end method addGuest
} // end class GuestDataBeanThis isn't a JSP question, it better belongs in the JavaProgramming, or JDBC forums.
But the problem is because the updateDate method uses a java.sql.Date object and you are giving it a java.util.Date object. You have to convert from java.util.Date to java.sql.Date. See: [the api for java.sql.Date|http://java.sun.com/javase/6/docs/api/java/sql/Date.html] .
Edited by: stevejluke on Jul 21, 2008 5:43 PM -
Custom tag - unable to find setter method error
I see this compileException on IAS but not on BEA app server and iWS.
JSPProvider.processJSPFile(): jsp=searchContent.jsp, org.apache.jasper.compiler.CompileException
Unable to find setter method for attribute: input
The reason is because the custom tag has a setInput() that takes a String parameter while the getInput() returns an InputStream.
Should both get and set methods have the same type of parameters or is this a due to a bug in the app server ?I see this compileException on IAS but not on BEA app
server and iWS.
JSPProvider.processJSPFile(): jsp=searchContent.jsp,
org.apache.jasper.compiler.CompileException
Unable to find setter method for attribute: input
The reason is because the custom tag has a setInput()
that takes a String parameter while the getInput()
returns an InputStream.
Should both get and set methods have the same type of
parameters or is this a due to a bug in the app server
I was only going off info from the original post. The error specifically states "Unable to find setter method for attribute: input" with a lower case i for the input attribute. You also specifcally stated "The reason is because the custom tag has a setInput()" with a capital I for the setInput method. This would most definitely cause the error you were receiving. That is unless you corrected this between your original post and your followup testing.
Cliff -
Error to invoke service by soap : Cannot find dispatch method
i m using jdevelopper 11g and oracle 10g , i write a fonction soap like that:
-- create or replace function get_naissance(id in varchar2, url in varchar2) return varchar2 as soap_request varchar2(30000);
declare
soap_request varchar2(30000);
soap_respond varchar2(30000);
http_req utl_http.req;
http_resp utl_http.resp;
resp XMLType;
begin
soap_request:= '<?xml version = "1.0" encoding = "UTF-8"?>
*<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://communes/"> <env:Header/>*
*<env:Body> <ns1:getNaissanceFindById> <arg0>272001</arg0> </ns1:getNaissanceFindById> </env:Body> </env:Envelope> ';*
http_req:= utl_http.begin_request ( 'http://localhost:7101/naissances-Naissances-webapp/naissanceWS' , 'POST' , 'HTTP/1.1' );
utl_http.set_header(http_req, 'Content-Type', 'application/soap+xml');
utl_http.set_header(http_req, 'Content-Length', length(soap_request));
utl_http.set_header(http_req, 'SOAPAction', '');
utl_http.write_text(http_req, soap_request);
http_resp:= utl_http.get_response(http_req);
utl_http.read_text(http_resp, soap_respond);
utl_http.end_response(http_resp);
resp:= XMLType.createXML(soap_respond);
DBMS_OUTPUT.PUT_LINE ('naissance is : '||soap_respond);
resp:= resp.extract('//ns2:getNaissanceFindByIdResponse/return' , 'xmlns:ns2="http://communes/"' );
-- dbms_output.put_line('naissance: '||resp.getStringVal());
-- return resp.getStringVal();
end;
there generate an error
*naissance is : <?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://www.w3.org/2003/05/soap-envelope"><S:Body><S:Fault xmlns:ns4="http://schemas.xmlsoap.org/soap/envelope/"><S:Code><S:Value>S:Sender</S:Value></S:Code><S:Reason><S:Text xml:lang="fr">Cannot find dispatch method for {http://communes/}getNaissanceFindById</S:Text></S:Reason></S:Fault></S:Body></S:Envelope>*
the method getNaissanceFindById is correctly implement , the web service run correctly :
*/** <code>select o from Naissance o where o.naissanceid like :id</code> */*
*@RequestWrapper(className = "jaxws.overloaded.GetNaissanceFindById2")*
*@ResponseWrapper(className = "jaxws.overloaded.GetNaissanceFindById2_Response")*
*@WebMethod(operationName = "getNaissanceFindById_2")*
*public Naissance getNaissanceFindById(String id) {*
RETURN (Naissance)em.createNamedQuery("Naissance.findById").setParameter("id", id).getSingleResult();
the result when i put id= 272001 when the service is running :
*<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://communes/">*
*<env:Header/>*
*<env:Body>*
*<ns1:getNaissanceFindById_2>*
*<arg0>271002</arg0>*
*</ns1:getNaissanceFindById_2>*
*</env:Body>*
*</env:Envelope>*
*<?xml version = '1.0' encoding = 'UTF-8'?>*
*<S:Envelope xmlns:S="http://www.w3.org/2003/05/soap-envelope">*
*<S:Body>*
*<ns2:getNaissanceFindById_2Response xmlns:ns2="http://communes/">*
*<return>*
*<addrid>1</addrid>*
*<communeid>27100</communeid>*
*<datnais>1962-11-09 00:00:00.0</datnais>*
*<gender>f</gender>*
*<idMere>270000</idMere>*
*<idPere>270000</idPere>*
*<naissanceid>271002</naissanceid>*
*<nom>amamra</nom>*
*<objectVersionId>0</objectVersionId>*
*<prenom>zahia</prenom>*
*</return>*
*</ns2:getNaissanceFindById_2Response>*
*</S:Body>*
*</S:Envelope>*
so i need your help to resolve this error it's amazing , if you want athers details i 'll give u
thank youPlease note you're on the SQL Developer forum, so I doubt you'll get answers here...
Have fun,
K. -
JAX-WS web service - "Cannot find dispatch method"
I'm getting the same error response every time I send a request to my JAX-WS web service:
<ns2:Fault xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope">
<faultcode>ns2:Client</faultcode>
<faultstring>Cannot find dispatch method for {http://www.w3.org/2003/05/soap-envelope}Envelope</faultstring>
</ns2:Fault>I've tried using JAX-WS RI 2.1.7 and 2.2 on my Tomcat server, but both return the same error response. It will return the WSDL just fine (when "?wsdl" is appended to the endpoint URL). I used "wsimport" to generate the necessary Java classes from my WSDL--it used JAX-WS RI 2.1.6 (the one included with the JDK I guess) to generate the Java source files.
Other people online have had similar problems, but never with the SOAP element "{http://www.w3.org/2003/05/soap-envelope}Envelope", always with things specific to their WSDLs like "{}reqParams" or "{http://www.telekom.at/eai/WSToCramerCSIRead}CSIRead". I set a debug breakpoint at the start of my SIB method and it doesn't even get that far.
Any ideas? Thanks for your help.
WSDL:
<?xml version="1.0" encoding="utf-8"?>
<!-- This wsdl file is for an XDS-I.b Imaging Document Source Actor
It can be used 'as is' to support Imaging Document Source Retrieve Imaging Document Set Transaction
using Synchronous Web Services.
-->
<definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ihe="urn:ihe:iti:xds-b:2007" xmlns:iherad="urn:ihe:rad:xdsi-b:2009" xmlns:rs="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0"
targetNamespace="urn:ihe:rad:xdsi-b:2009" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" name="ImagingDocumentSource">
<documentation>IHE XDS-I.b Imaging Document Source</documentation>
<types>
<xsd:schema elementFormDefault="qualified"
targetNamespace="urn:ihe:iti:xds-b:2007"
xmlns:ihe="urn:ihe:iti:xds-b:2007">
<!-- Include the message schema -->
<xsd:include schemaLocation="../schema/IHE/XDS.b_DocumentRepository.xsd"/>
</xsd:schema>
<xsd:schema elementFormDefault="qualified"
targetNamespace="urn:ihe:rad:xdsi-b:2009"
xmlns:ihe="urn:ihe:iti:xds-b:2007"
xmlns:iherad="urn:ihe:rad:xdsi-b:2009">
<!-- Include the message schema -->
<xsd:include schemaLocation="../schema/IHE/XDSI.b_ImagingDocumentSource.xsd"/>
</xsd:schema>
<xsd:schema elementFormDefault="qualified"
targetNamespace="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0"
xmlns:rs="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0">
<!-- Include the message schema -->
<xsd:include schemaLocation="../schema/ebRS/rs.xsd"/>
</xsd:schema>
<!-- While no elements are directly used from these schema in the WSDL,
they need to be present here in order for
code generating toolkits to work properly -->
<xsd:schema elementFormDefault="qualified"
targetNamespace="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:3.0"
xmlns:lcm="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:3.0">
<!-- Include the message schema -->
<xsd:include schemaLocation="../schema/ebRS/lcm.xsd"/>
</xsd:schema>
<xsd:schema elementFormDefault="qualified"
targetNamespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0"
xmlns:lcm="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0">
<!-- Include the message schema -->
<xsd:include schemaLocation="../schema/ebRS/rim.xsd"/>
</xsd:schema>
</types>
<message name="RetrieveImagingDocumentSetRequest_Message">
<documentation>Retrieve Imaging Document Set</documentation>
<part name="body" element="iherad:RetrieveImagingDocumentSetRequest"/>
</message>
<message name="RetrieveDocumentSetResponse_Message">
<documentation>Retrieve Document Set Response</documentation>
<part name="body" element="ihe:RetrieveDocumentSetResponse"/>
</message>
<portType name="ImagingDocumentSource_PortType">
<operation name="ImagingDocumentSource_RetrieveImagingDocumentSet">
<input message="iherad:RetrieveImagingDocumentSetRequest_Message"
wsaw:Action="urn:ihe:rad:xdsi-b:2009:RetrieveImagingDocumentSet"/>
<output message="iherad:RetrieveDocumentSetResponse_Message"
wsaw:Action="urn:ihe:iti:2007:RetrieveDocumentSetResponse"/>
</operation>
</portType>
<binding name="ImagingDocumentSource_Binding" type="iherad:ImagingDocumentSource_PortType">
<soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="ImagingDocumentSource_RetrieveImagingDocumentSet">
<soap12:operation soapAction="urn:ihe:rad:xdsi-b:2009:RetrieveImagingDocumentSet"/>
<input>
<soap12:body use="literal"/>
</input>
<output>
<soap12:body use="literal"/>
</output>
</operation>
</binding>
<service name="ImagingDocumentSource_Service">
<port name="ImagingDocumentSource_Port_Soap12" binding="iherad:ImagingDocumentSource_Binding">
<soap12:address location="http://localhost:8080/webservice-test/ridsService"/>
</port>
</service>
</definitions>
Request:
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:urn="urn:ihe:rad:xdsi-b:2009"
xmlns:urn1="urn:ihe:iti:xds-b:2007"
xmlns:a="http://www.w3.org/2005/08/addressing">
<soap:Header>
<a:Action soap:mustUnderstand="1">urn:ihe:rad:2009:RetrieveImagingDocumentSet</a:Action>
<a:MessageID>urn:uuid:0fbfdced-6c01-4d09-a110-2201afedaa02</a:MessageID>
<a:ReplyTo soap:mustUnderstand="1">
<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
</a:ReplyTo>
<a:To>http://localhost:8080/webservice-test/ridsServer</a:To>
</soap:Header>
<soap:Body>
<urn:RetrieveImagingDocumentSetRequest>
<!--1 or more repetitions:-->
<urn:StudyRequest studyInstanceUID="test1">
<!--1 or more repetitions:-->
<urn:SeriesRequest seriesInstanceUID="test2">
<!--1 or more repetitions:-->
<urn1:DocumentRequest>
<!--Optional:-->
<urn1:HomeCommunityId>test3</urn1:HomeCommunityId>
<urn1:RepositoryUniqueId>test4</urn1:RepositoryUniqueId>
<urn1:DocumentUniqueId>test5</urn1:DocumentUniqueId>
</urn1:DocumentRequest>
</urn:SeriesRequest>
</urn:StudyRequest>
<urn:TransferSyntaxUIDList>
<!--1 or more repetitions:-->
<urn:TransferSyntaxUID>?</urn:TransferSyntaxUID>
</urn:TransferSyntaxUIDList>
</urn:RetrieveImagingDocumentSetRequest>
</soap:Body>
</soap:Envelope>
Response (HTTP 500):
<ns2:Fault xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope">
<faultcode>ns2:Client</faultcode>
<faultstring>Cannot find dispatch method for {http://www.w3.org/2003/05/soap-envelope}Envelope</faultstring>
</ns2:Fault>I posted here to benefit anybody who is looking for a solution.
The solution is to use WebServiceContext to get ServletContext, then use ServletContext to get parameters defined in web.xml.
@Resource private WebServiceContext m_wsCxt;
Then in method
SOAPMessageContext soapCxt = (SOAPMessageContext) m_wsCxt.getMessageContext();
ServletContext servletCxt = (ServletContext) soapCxt.get(javax.xml.ws.handler.MessageContext.SERVLET_CONTEXT);
} -
Pi 7.1: Exception when contacting WS - "Cannot find dispatch method"
Hi All,
I have been receiving the following error message as shown in ICM log, where the trace level is set to 3, when a request is sent to a Web Server.
...<SOAP:Faultmlns:SOAP='htt//schemas.xmlsp.org/soap/envope/'><faultco>SOAP:Client</ultcode><faultring>Cannot find dispatch method for arg0</faultstring/SOAP:Fault>..
No error message is returned using a soap client (as soapUI), after loading the same wsdl file.
About the configuration of the SOAP Communication Channel, no conversion parameter have been set and no SOAP Action has been set because the seme exception is also raised by setting "arg0" as SOAP Action.
The structure of the response message is like this.
<Field1>
<arg0>
<field2>
<field3>
Any help will be well appreciated.
Many thanks in advacne for your kind support.
Regards,
GiovanniHi All !!
This problem has been solved with the last SAP_XI* Patches.
We install:
SAP_XIESR SP06 Patch 11
SAP_XIAF SP06 Patch 11
SAP_XITOOL SP06 Patch 10
and the problem...... SOLVED !!!
Regards,
Juan. -
Xmlreader schema validation error: Cannot find the declaration of element
I have multiple schemas with namespaces but I would like to validate an xml document without namespaces. The schemas all have elementFormDefault="unqualified" in the root element.
I am encountering error below in my validation using xmlreader:
ERROR:
Cannot find the declaration of element 'NewTradenetDeclaration'.
my code is:
xmlReader = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
xmlReader.setFeature(VALIDATION_FEATURE_ID, true);
xmlReader.setFeature(SCHEMA_VALIDATION_FEATURE_ID, true);
xmlReader.setFeature(SCHEMA_FULL_CHECKING_FEATURE_ID, true);
xmlReader.setFeature(SCHEMA_NAMESPACE_FEATURE_ID, true);
xmlReader.setProperty(JAXP_SCHEMA_LANGUAGE, XMLConstants.W3C_XML_SCHEMA_NS_URI);
String schemaURI = "NewTradenetDeclaration.xsd";
// ive tried all of the ff but throws the same error
//xmlReader.setProperty(EXTERNAL_SCHEMA_LOCATION, "urn:crimsonlogic:tn:schema:xsd:NewTradenetDeclaration NewTradenetDeclaration.xsd");
//xmlReader.setProperty(EXTERNAL_SCHEMA_LOCATION, schemaURI);
xmlReader.setProperty(JAXP_SCHEMA_SOURCE, schemaURI);
// set entity resolver to resolve xsd locations
MyResolver resolver = new MyResolver();
xmlReader.setEntityResolver(resolver);the entity resolver has:
public InputSource resolveEntity (String publicId, String systemId) {
String filename = "c:/workspace/TXParser/schema/"+ systemId.substring(systemId.lastIndexOf("/")+1);
File f = new File(filename);
InputSource source = null;
try {
source = new InputSource(new FileReader(f));
} catch(Exception e) {
System.out.println("InputSource exception: " + e.getMessage());
return source;
}Help please. Thanks.I fight with the same error, it is curious that the schema from schemaLocation can not be validated. If i set the schema manually through an attribute it works. What i try to do is overwriting the resolveEntity in the handler to get the schema from another location and validate the xml against the schema specified in the attribute schemaLocation rather than setting it manually :-(
-
Installation error: Cannot find a J2SE SDK installed at path C:\Program Fi
I am installing latest version of SQL Developer, Release 1.2. I have Sun Java 2 Standard Edition Version 1.5.0 (build 1.5.0_10-b03). When I browse and select the java.exe found it comes up with error: Cannot find a J2SE SDK installed at patch
C:\Program Files\Java\jre1.5.0_10
I am installing the version I downloaded for Windows systems with JDK1.5.
I have tried on two different machines.
Any ideas?This is going to seem loooong, but comprehensive.
I'd initially always suggest using the bundled
package, since that's supposed to be a tested and
proven combination.You know what, I'm gonna be mighty surprised if you're implying that Oracle hasn't 'tested and proven' the releases at http://www.oracle.com./technology/software/products/sql/index.html other than the first 77 MB download labeled Oracle SQL Developer for Windows... :)
After having problems with a graphics card for
example, installing the latest JDK might be
indicated.Huh?!? Not a clue what you're talkin' 'bout! :S
It's also easy for users who don't know which Java
version to download, or even where to find it! You
guys have proven that: although it's stated you need
.First of all, it says right there on the download page (http://www.oracle.com./technology/software/products/sql/index.html) that:
"JDK 1.5 (JDK 5.0) is required. This is the minimum JDK version required"
And we've "proven that [..] although it's stated you need the JDK, [we]'ve tried running with the JRE" and have NOT been able to run the application. It just presents the user a dialog box to locate the 'SDK' manually and exits gracefully if you try to dismiss it. So, conclusively proven, the JDK (or as SQL Developer puts it, Java SDK) is required- QED.
And given users might have several versions running
on the same machine (I have half a dozen), sqldev
could easily pick up a wrong version.And every JRE installation (atleast all of Sun's) make sure they update the default (via PATH and other required system variables) JRE point to the latest one installed. So if you have anything 1.5+ you're good to go; if not, you've got an incompatile JRE. Doesn't sound that hard to me!
As for being bulky, even without the bundled JDK, it
still is.Ya missed the point. Developers are making Java applications bulkier by including the JRE/JDK with their distributions. A SQL Developer release sans JDK is about 46 MB; with JDK that climbs to 77 MB (sizes quoted from download page linked above).
Imagine what happens when you have, besides SQL Developer (JDK 1.5 included), some-cool-java-app that also includes the JRE/JDK it was built on; and then another-java-app that also includes a JRE/JDK... I bet JDeveloper also comes with a JDK bundled in. So, now you have FOUR copies of JRE/JDK (aside from the "have half a dozen" that probably installed themselves via Java Update Checker)!
Here's the big picture, the savings in disk space would only be the beginning of your benefits. Here's a few others:
- Class Data Sharing (http://java.sun.com/javase/6/docs/technotes/guides/vm/class-data-sharing.html) introduced in Java SE 5.0 provides for storing definitions of commonly used classes in a representation closer to machine code, even closer than bytecode, this reducing load and startup time. Plus all VM's launced using that particular distribution get to share the cache- Performace+ !!
Running each app offa' it's own VM just causes multiple caches to be loaded. You just multiplied your losses! :(
- Sun is currently working on a way to have applications simply inject into a running JVM. That way, there is no load and startup time for the JVM, just the time to load you app classes. Using different distros would completely defeat this!
(The reason why this feature isn't out yet is because they're still trying to make it possible to specify hitherto VM configurations like security and logging as application configurations. Then there's also the issue of setting up class loading boundaries between applications.
You say you don't have to bring over the VB runtime
for each app? I remember in the 90's doing it all the
time. Of course, being MS, now that's not necessary
anymore, since it's "magical" Windows. I don't have
any machine from Sun, but for sure they've got Java
bundled with it, right?I don't believe you had to do that since VB 5; and that's because MS realized that they messed up on this very point upto then! Sun worked the simple solution to that into their deployment strategy- install only ONE runtime and run all apps off that. As for you're half-a-dozen, I think you can safely uninstall the five older versions; because, even today, people are running apps developed using JDK1.1 on Java SE 6.0!
Again, I find the most logical difference between JRE
and JDK being the debugger. As you say it yourself:
JRE for end-users, who don't need to do any
debugging.
Now, sqldev is not just a table browser, but also for
debugging PL/SQL. 1 + 1 = 2.I think it's a little naive to differentiate between the JRE and JDK on just the debugger! Aside from the obvious inclusion of a compiler, the JDK has several other tools for monitoring/managing the heap, threads and logging on the fly. There's also the Doclet API and Sun's javadoc implementation, dev interfaces for instrumenting the VM, native interfaces, ...
And I reiterate, we're talkin' PL/SQL developers here. Why would I want to give a PL/SQL developer a Java Development Kit?!? ;|
Nevertheless, as said in the other thread, if the
team discloses how to circumvent the SDK check at
startup, you can go ahead and use the JRE. In any
case, you'd have to agree that won't work as
out-of-the-box solution...You're right, it won't work like a standard Windows OOTB app. But, it WILL work as a Java OOTB that only mandates that there be a JRE available; just like the scores of Java apps out there- from tiny little Pong clones to large IDE's like NetBeans.
BTW, don't even think about quoting Websphere/Rational/Eclipse as counter-arguments. They are the biggest offenders as far as this issue goes. And jikes is an abomination, a curse Sun must carry as a result to opening the VM Spec. But, I digress... -
Configure: error: Cannot find php-config
After security update 2008-002 for Leopard, the PHP module builder stops, because the PHP version running on the machine doesn't match the header files from the PHP-developer part. More info see: http://www.naquah.net/blog/dennis/2008/03/20/how-to-get-eaccelerator-working-aga in-after-installing-security-update-2008-0#comment-50
After editing /usr/bin/php-config
Change
version="5.2.4" to version="5.2.5" and
vernum="50204" to vernum="50205"
and /usr/include/php/main/php_version.h
Change
#define PHPRELEASEVERSION 4 to #define PHPRELEASEVERSION 5
#define PHP_VERSION "5.2.4" to #define PHP_VERSION "5.2.5" and
#define PHPVERSIONID 50204 to #define PHPVERSIONID 50205
the ./configure command stops with a:
configure: error: Cannot find php-config. Please use --with-php-config=PATH
even when explicitly specifying the php-config location, the ./configure --with-php-config=/usr/bin/php-config command still throws an identical error.
The file is there, accessible and not empty:
$ ls -l /usr/bin/php-config
-r-xr-xr-x 1 root wheel 3031 22 mrt 21:44 /usr/bin/php-config
$ head /usr/bin/php-config
#! /bin/sh
SED="/usr/bin/sed"
prefix="/usr"
exec_prefix="${prefix}"
version="5.2.5"
vernum="50205"
include_dir="${prefix}/include/php"
includes="-I$include_dir -I$include_dir/main -I$include_dir/TSRM -I$include_dir/Zend -I$include_dir/ext -I$include_dir/ext/date/lib"
ldflags=" -L/usr/lib/mysql"
Re installing Xcode 3.0 didn't solve the problem.
What could be done to repair the (php) configure command, to allow me to build php modules again?On my installation I have both NVidia and mesa drivers installed, thus two sets of GL headers/libraries.
For Mesa: SUNWxorg-mesa
Nvidia: NVDAgraphics
If you want to develop on your system you may want to install much more than just GL headers.
Its a pity that Solaris packaging is not really flexible, so you better do a full install indeed...
regards,
__Fedor. -
Configure: error: Cannot find GLX header
I install gtkglext from its source code and get an error after the 'configure' command.
bash-3.00$ ./configure
checking GL/glx.h usability... no
checking GL/glx.h presence... no
checking for GL/glx.h... no
configure: error: Cannot find GLX header
I guess the OpenGL files are not installed during Solaris 10 installation. Could someone tell me where can I get opengl files? Are they in the Solaris 10 installation disks? How to install opengl files?On my installation I have both NVidia and mesa drivers installed, thus two sets of GL headers/libraries.
For Mesa: SUNWxorg-mesa
Nvidia: NVDAgraphics
If you want to develop on your system you may want to install much more than just GL headers.
Its a pity that Solaris packaging is not really flexible, so you better do a full install indeed...
regards,
__Fedor. -
Error : 'cannot find symbol getText()'
please check my java coding. when I compile it, the error: 'cannot find symbol
getText() ' is appear. What wrong with this coding.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class buatAction
public static void main(String[] args)
JFrame f= new JFrame("Contoh Action");
f.setSize(150,200);
f.setLocation(200,200);
f.addWindowListener(new WindowAdapter()
public void windowClosing(WindowEvent we)
System.exit(0);
//setkan button
final JPanel OK = new JPanel();
JButton buttonOK = new JButton("OK");
OK.add(buttonOK);
final JPanel txt = new JPanel();
JTextField inputText = new JTextField(15);
inputText.setFont(new Font("Serif", Font.PLAIN, 12));
txt.add(inputText);
Container content = f.getContentPane( );
content.setLayout(new GridLayout(1,1));
content.add(txt);
content.add(OK);
buttonOK.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent ae)
String ayat = txt.getText().getActionCommand();
System.out.println(ayat);
f.setVisible(true);
}please check my java coding. when I compile it, the error: 'cannot find symbol
getText() ' is appear. What wrong with this coding.
final JPanel txt = new JPanel();...
buttonOK.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent ae)
String ayat = txt.getText().getActionCommand();
System.out.println(ayat);
});Final variable 'txt' is a JPanel. JPanels don't have a 'getText()' method; hence
the compiler diagnostics message.
kind regards,
Jos
ps. better stick your code between [code] ... [/code] tags for readability reasons. -
Error: cannot find symbol implements..
I have an interface and I'm trying to implement.
package data_structures;
public interface ListADT<E> extends Iterable<E> {
//Method Signatures
and
package data_structures;
public class LinkedListDS<E> implements ListADT<E> {
//Code
And when I try to compile the class I get
LinkedListDS.java:3 error: cannot find symbol
public class LinkedListDS<E> implements ListADT<E> {
____________________________________^
symbol: class ListADT
And I'm not really sure what I'm doing wrong here or what exactly Java wants me to do to correct this error.What are you using to compile? If the command line, and not an IDE which will do this for you, then compile the interface, first.
-
Unable to find setter method for attribute:
I am using Jboss jboss-4.2.3.GA, JDK 1.6.
I am trying to deploy our application on Jboss. When loading sources page or whenever we try to load the taglib we are getting the following error.
org.apache.jasper.JasperException: jspfile.jsp(67,1) Unable to find setter method for attribute: collection
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
at org.apache.jasper.compiler.Generator$GenerateVisitor.evaluateAttribute(Generator.java:2736)
at org.apache.jasper.compiler.Generator$GenerateVisitor.generateSetters(Generator.java:2965)
at org.apache.jasper.compiler.Generator$GenerateVisitor.generateCustomStart(Generator.java:2169)
at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1689)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2394)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
at org.apache.jasper.compiler.Generator.generate(Generator.java:3374)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:210)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
at com.ssmb.common.servlets.GenericControllerServlet.service(GenericControllerServlet.java:639)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
The line corresponding in JSP file is ,
<ssmb:list name="src_" collection="sources" showAll='<%= "" + true %>'>
Please let me know if you have faced this issue before.Have you written this tag in a tld or a tag file?
How have you declared the attribute "collection"?
Does the class which implements the custom tag <ssmb:list> have a method in it: public void setCollection(String collection) ?
Maybe you are looking for
-
Get first and last day of the year
and razm.date >= to_date('01.01.'||:VDATE||'', 'dd.mm.yyyy') AND razm.date <= to_date('31.12.2010.'||:VDATE||'', 'dd.mm.yyyy'); but i get: ORA-01830: date format picture ends before converting entire input string 01830. 00000 - "date format picture e
-
Audigy 4 pro sound card HELL please advise!!!
hi all, right i'll TRY to keep it simple!..... BEFORE my (recently brand new) hard dri've died and caused me all sorts of probs (and ?300) my soundcard was fine it was : windows 7 audigy 4 cubase 4 daniel k's drivers (i think OR it was the one that c
-
I have the awkward 2011 MacBook Pro with a single Thunderbolt port and no USB3. I very frequently use it connected to my HP 2311x LED Monitor. For the very first time, today I placed a external Thunderbolt drive in-between my MacBook Pro and the HP
-
Zen vision:M Need new outfit. Screen dam
Well i use my Zen vision:M every day. and that protecting thing slip off.. So now the vision in videos is pretty bad.. because screen damage.. can i Buy new outfit to my Zen some where?! ps: Sorry, Bad english..
-
Dynamically updating UI (binding, maybe?)
So I am writing an export plugin for lightroom. I need to update the export UI dynamically after getting a result from Lrhttp.post. The code is underlined below. Basically, how can I display to the user that their login is successful by dynamically u