[JBoss Messaging] - Invalid Selector
by macross27
Hi all,
I got following error with JBoss messaging:
| 15:29:00,896 WARN [Selector] Invalid selector: JMSCorrelationID=1179926940029
| java.lang.Exception: Bad Object: expected 'String' got 'Long' for operation: 0:EQUAL(
| Identifier@JMSCorrelationID
| 1179926940029
| )
|
| at org.jboss.jms.selector.Operator.throwBadObjectException(Operator.java:980)
| at org.jboss.jms.selector.Operator.equal(Operator.java:214)
| at org.jboss.jms.selector.Operator.apply(Operator.java:916)
| at org.jboss.jms.selector.Selector.accept(Selector.java:168)
| at org.jboss.jms.server.endpoint.ServerConsumerEndpoint.accept(ServerConsumerEndpoint.java:347)
| at org.jboss.jms.server.endpoint.ServerConsumerEndpoint.handle(ServerConsumerEndpoint.java:233)
| at org.jboss.messaging.core.local.RoundRobinPointToPointRouter.handle(RoundRobinPointToPointRouter.java:120)
| at org.jboss.messaging.core.ChannelSupport.deliverInternal(ChannelSupport.java:600)
| at org.jboss.messaging.core.ChannelSupport.deliver(ChannelSupport.java:306)
| at org.jboss.jms.server.endpoint.ServerSessionEndpoint$2.run(ServerSessionEndpoint.java:952)
| at EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExecutor.java:89)
| at java.lang.Thread.run(Thread.java:595)
|
If I'm not wrong, apparently the attached systems tries to retrieve a message via a JMSCorrelationID which is not a string but a long. Is there a possibility to make this work? Of course I can't do anything in the source code of this attached ERP system.
Thanks for your help...
Sebastian
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047916#4047916
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047916
18 years, 11 months
[JBoss Seam] - s:validateAll cumulates validation error messages when used
by petr.mk
Hello,
does anyone meet the same problem?
When <s:validateAll> tag is used in form together with dispalying error messahes using <h:messages globalOnly="false"/>, then the same validation message for one input form is cumulated. After first submit (in form is only one input field!) can be seen:
length must be between 10 and 255
length must be between 10 and 255
after second submit:
length must be between 10 and 255
length must be between 10 and 255
length must be between 10 and 255
etc.
It looks like <s:validateAll> problem, because when <s:validate/> is used, all is O.K.
Here is test example:
BookDetailTest.xhtml:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:s="http://jboss.com/products/seam/taglib">
#{libraryMessages.border_facelets_library}
<meta http-equiv="Content-type" content="text/html; charset=windows-1250" />
<meta http-equiv="Content-Language" content="cs" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
<f:view>
<h:messages globalOnly="false" />
<h:form id="saveform">
<s:validateAll>
<h:panelGrid columns="2" border="0" cellpadding="0" cellspacing="2">
<f:facet name="header">
<h:outputText id="bookDetail_book" value="#{libraryMessages.bookDetail_kniha}" />
</f:facet>
<f:facet name="aroundInvalidField">
<s:span styleClass="error"/>
</f:facet>
<f:facet name="afterInvalidField">
<h:outputText value=" *)" />
</f:facet>
<h:outputText id="bookDetail_author" value="#{libraryMessages.bookDetail_autor}" />
<s:decorate id="author">
<h:inputText type="text"
label="#{libraryMessages.bookDetail_autor}"
value="#{bookDetailBean.author}"
required="true"
size="30"
maxlength="30" />
</s:decorate>
<f:facet name="footer">
<h:panelGroup>
<h:commandButton type="submit"
id="savebutton"
action="save"
value="#{libraryMessages.bookDetail_ulozit}" />
<h:commandButton type="submit"
id="backbutton"
action="back"
immediate="true"
value="#{libraryMessages.bookDetail_zpet}" />
</h:panelGroup>
</f:facet>
</h:panelGrid>
</s:validateAll>
</h:form>
</f:view>
BookDetailTestBean.java:
package cz.profinit.education.library.web.beans;
import java.io.Serializable;
import org.hibernate.validator.Length;
import org.hibernate.validator.NotNull;
import org.jboss.seam.annotations.Name;
/**
*
* Book detail implementation class.
*
* @author $Author: pmarek $
* @version $Revision: 1.0 $
*/
@Name("bookDetailTestBean")
public class BookDetailTestBean extends LibraryBaseBean implements Serializable {
private static final long serialVersionUID = -1547896425866324414L;
private String author;
@NotNull
@Length(min = 10, max = 255)
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
/**
* SaveBookListener.
* @ cycle
*/
public String save() {
return "success";
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047915#4047915
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047915
18 years, 11 months
[JBossWS] - Port 8080 and Web Services
by guiturk
I can not use port 8080, so I switched to 8082. Everything works fine, but when deploying web services I get this:
22:05:31,812 INFO [ServiceEndpointManager] WebService started: http://PVGT:8080/pharos
My web client can access the wsdl but when I try to load the service implmentation class using ServiceFactory, it fails:
Exception in thread "main" java.lang.NullPointerException
at java.lang.System.arraycopy(Native Method)
at org.apache.xerces.impl.xs.XSModelImpl.getAnnotations(Unknown Source)
at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.copyXSModel(WSSchemaUtils.java:737)
at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:180)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:227)
at org.jboss.ws.metadata.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:118)
at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:145)
at org.jboss.ws.metadata.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:273)
at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:110)
at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:82)
at org.jboss.ws.jaxrpc.ServiceImpl.(ServiceImpl.java:96)
at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157)
at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128)
at PharosWebTest.main(PharosWebTest.java:29)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047911#4047911
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047911
18 years, 11 months
[JBoss Seam] - UI: Filtering with drop-downs does not work
by thephil
I am running JBoss 4.0.5 with ejb3 profile. I am using Seam 1.2.1.GA.
I have generated a CRUD Seam application with "seam generate-entities". Now I would like to filter results for the list pages using a drop down.
1. The list page displays parameters. Each parameter is linked to a category (own entity/db table).
2. I now wanted to add a dropdown to select filter parameters based on category.
However, it does not seem to work. Could somebody please help me out on this one? Maybe I am just thinking too complicated...
Here is what I did:
ParameterList.java (extends EntityQuery)
I added one Line to the RESTRICTIONS array. It now looks like this:
| @Name("parameterList")
| public class ParameterList extends EntityQuery {
|
| private static final String[] RESTRICTIONS = {
| "lower(parameter.name) like concat(lower(#{parameterList.parameter.name}),'%')",
| "lower(parameter.description) like concat(lower(#{parameterList.parameter.description}),'%')",
| "lower(parameter.designDocument) like concat(lower(#{parameterList.parameter.designDocument}),'%')",
| "lower(parameter.settingsDescription) like concat(lower(#{parameterList.parameter.settingsDescription}),'%')",
| "parameter.paramcategory.paramcategoryId = #{parameterList.parameter.paramcategory.paramcategoryId}",};
|
(I have added only the last line. Paramcategory is the category of the parameter.)
ParameterList.xhtml
I added the dropdown menu. I looked at the seam ui example and tried to map that code to my application.
| <rich:simpleTogglePanel label="Parameter search parameters" switchType="ajax">
|
| [... other search fields ...]
|
| <s:decorate template="layout/display.xhtml">
| <ui:define name="label">settingsDescription</ui:define>
| <h:inputText id="settingsDescription" value="#{parameterList.parameter.settingsDescription}"/>
| </s:decorate>
|
| [... here comes my searchfield ...]
|
| <s:decorate template="layout/display.xhtml">
| <ui:define name="label">category</ui:define>
| <h:selectOneMenu value="#{parameterList.parameter.paramcategory}" >
| <s:selectItems value="#{paramcategoryList.resultList}" var="category" label="#{category.name}" />
| <s:convertEntity />
| </h:selectOneMenu>
| </s:decorate>
| </rich:simpleTogglePanel>
|
If I select something from the dropdown, no filtering happens. In the logfile, you can see that Hibernate assembles the SELECT statement to the DB correctly:
| 2007-05-22 13:35:31,915 DEBUG [org.hibernate.SQL] select * from ( select parameter0_.PARAMETER_ID as PARAMETER1_69_, parameter0_.CATEGORY_ID as CATEGORY8_69_, parameter0_.TYPE_ID as TYPE6_69_, parameter0_.STATUS_ID as STATUS7_69_, parameter0_.DESIGN_DOCUMENT as DESIGN2_69_, parameter0_.SETTINGS_DESCRIPTION as SETTINGS3_69_, parameter0_.NAME as NAME69_, parameter0_.DESCRIPTION as DESCRIPT5_69_ from MICSCONF.PARAMETER parameter0_ where parameter0_.CATEGORY_ID=? ) where rownum <= ?
|
| 2007-05-22 13:35:31,915 INFO [STDOUT] Hibernate: select * from ( select parameter0_.PARAMETER_ID as PARAMETER1_69_, parameter0_.CATEGORY_ID as CATEGORY8_69_, parameter0_.TYPE_ID as TYPE6_69_, parameter0_.STATUS_ID as STATUS7_69_, parameter0_.DESIGN_DOCUMENT as DESIGN2_69_, parameter0_.SETTINGS_DESCRIPTION as SETTINGS3_69_, parameter0_.NAME as NAME69_, parameter0_.DESCRIPTION as DESCRIPT5_69_ from MICSCONF.PARAMETER parameter0_ where parameter0_.CATEGORY_ID=? ) where rownum <= ?
|
| 2007-05-22 13:35:31,915 DEBUG [org.hibernate.loader.hql.QueryLoader] bindNamedParameters() 3 -> el5 [1]
|
However, no filtering happens in the result on the webpage. Also, the selection of the dropdown is not being preserved (after page reload, the dropdown shows the default category, not the one I selected earlier).
Can anybody help me please? I am running down against wall now...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047910#4047910
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047910
18 years, 11 months