[Management, JMX/JBoss] - Error on setting the max. Number of JMS Messages via JMX
by ti
Hi Everybody
I have set up a testQueue for receiving jms messages with an MDB.
Now i would like to change the "The maximum number of messages this queue can hold before they are dropped" from -1 to 10 for some test.
If I now invoking the apply button on the jms console im getting an Error and the following Exception on the JBoss Console:
09:48:50,875 ERROR [[HtmlAdaptor]] Servlet.service() for servlet HtmlAdaptor threw exception
javax.management.MalformedObjectNameException: Key properties cannot be empty
at javax.management.ObjectName.construct(ObjectName.java:467)
at javax.management.ObjectName.(ObjectName.java:1403)
at org.jboss.jmx.adaptor.control.Server.setAttributes(Server.java:171)
at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet$5.run(HtmlAdaptorServlet.java:403)
at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet$5.run(HtmlAdaptorServlet.java:400)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.setAttributes(HtmlAdaptorServlet.java:399)
at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.updateAttributes(HtmlAdaptorServlet.java:259)
at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:102)
at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
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:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentVa
a:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentVal
:70)
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:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Every help is appreciated.
Best regards
Tom
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201258#4201258
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201258
17 years, 6 months
[JBoss Portal] - Re: error when trying to add 'gender' field to user profile
by Wuahaha
Hi csagar, I'm sorry to intrude your thread, but this is the only thread I've found having the same issue as I am facing now. I need some help. :D
I am using JBoss Portal 2.7.0, I want to add extra fields in the user profile. So I am referring to the Reference guide example to add gender into the profile. But I encountered the problem where the gender value is stored in jbp_user_prop. I want to ask whether you were able to store it in the jbp_users table?
Setting the mapping in the profile-config.xml like below doesn't help.
| <property>
| <name>user.gender</name>
| <type>java.lang.String</type>
| <access-mode>read-write</access-mode>
| <usage>optional</usage>
| <display-name xml:lang="en">Gender</display-name>
| <description xml:lang="en">The gender</description>
| <mapping>
| <database>
| <type>column</type>
| <value>jbp_gender</value>
| </database>
| </mapping>
| </property>
|
Hope you can help ... thanks in advance !! ;)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201242#4201242
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201242
17 years, 6 months
[Persistence, JBoss/CMP, Hibernate, Database] - org.postgresql.util.PSQLException: FATAL: sorry, too many cl
by sauravkr
Hello All,
I am using Jboss 4.2.2 and postgres8.3.2. I am using CMP with normal ds file without any tuning.
With 64 rmi clients I am getting this exception.
Please suggest somthing.
Throwable
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.postgresql.util.PSQLException: FATAL: sorry, too many clients already)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:179)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:577)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:262)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:538)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:341)
at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:315)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
at org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection(InjectedDataSourceConnectionProvider.java:47)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
at org.hibernate.loader.Loader.doQuery(Loader.java:673)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
at org.hibernate.loader.Loader.doList(Loader.java:2220)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
at org.hibernate.loader.Loader.list(Loader.java:2099)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:64)
at com.barco.cms.openapi.PerspectiveMgtAPIImpl.lookupDisplays(PerspectiveMgtAPIImpl.java:10624)
at com.barco.cms.openapi.PerspectiveMgtAPIImpl.getDisplaysInfo(PerspectiveMgtAPIImpl.java:1621)
at sun.reflect.GeneratedMethodAccessor175.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
at com.barco.cms.openapi.PerspectiveMgtAPIImpl.initialSteps(PerspectiveMgtAPIImpl.java:274)
at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:146)
at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:304)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:908)
at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:742)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:695)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:549)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:230)
Caused by: org.postgresql.util.PSQLException: FATAL: sorry, too many clients already
at org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(ConnectionFactoryImpl.java:444)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:99)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
at org.postgresql.jdbc2.AbstractJdbc2Connection. (AbstractJdbc2Connection.java:124)
at org.postgresql.jdbc3.AbstractJdbc3Connection. (AbstractJdbc3Connection.java:30)
at org.postgresql.jdbc3.Jdbc3Connection. (Jdbc3Connection.java:24)
at org.postgresql.Driver.makeConnection(Driver.java:386)
at org.postgresql.Driver.connect(Driver.java:260)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:171)
... 64 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201240#4201240
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201240
17 years, 6 months
[JBossWS] - SLSB exposed as WS security issue
by okiSM
I have SLSB exposed as WS. I tried to add security. WS is deployed as jar. I've placed jboss-wsse-server and keystore files into META-INF (together with persistence.xml).
<?xml version="1.0" encoding="UTF-8"?>
| <jboss-ws-security xmlns="http://www.jboss.com/ws-security/config"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
| <key-store-file>META-INF/wsse.keystore</key-store-file>
| <key-store-password>jbossws</key-store-password>
| <trust-store-file>META-INF/wsse.truststore</trust-store-file>
| <trust-store-password>jbossws</trust-store-password>
| <config>
| <sign type="x509v3" alias="wsse"></sign>
| <encrypt type="x509v3" alias="wsse"></encrypt>
| <requires>
| <signature />
| <encryption />
| </requires>
| </config>
| </jboss-ws-security>
|
This configuration is read during deployment (if I put wrong locations of keystores, jar deployment breaks). However, when I try to access this WS with an unsecured client (generated using wsconsume) it responds normally (as if there is no security).
Endpoint interface:
import javax.ejb.Remote;
| import javax.jws.WebMethod;
| import javax.jws.WebService;
| import javax.jws.soap.SOAPBinding;
|
| @WebService(name = "CityFacadeProxy", targetNamespace="http://gint_scm_ws")
| @SOAPBinding(style=SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL, parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
| @Remote
| public interface CityFacadeSEI {
| @WebMethod
| public City createCity(String cityName) throws RemoteException;
| }
|
Implemetation bean:
import gint.scm.ws.entity.City;
|
| import javax.ejb.Remote;
| import javax.ejb.Stateless;
| import javax.jws.WebService;
| import javax.persistence.EntityManager;
| import javax.persistence.PersistenceContext;
| import javax.xml.ws.BindingType;
|
| import org.jboss.ws.annotation.EndpointConfig;
| import org.jboss.wsf.spi.annotation.WebContext;
|
| @Stateless
| @WebService(endpointInterface = "gint.scm.ws.session.CityFacadeSEI",
| serviceName = "CityFacadeServis", targetNamespace="http://gint_scm_ws")
| @WebContext(contextRoot="/SCM", urlPattern="/*")
| @BindingType(value = "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true")
| @EndpointConfig(configName = "Standard WSSecurity Endpoint")
| @Remote(CityFacadeSEI.class)
| public class CityFacadeBean implements CityFacadeSEI {
|
| @PersistenceContext(name = "scm")
| EntityManager em;
|
| public City createCity(String cityName) {
| em.persist(new City(cityName.hashCode(), cityName));
| return new City(cityName.hashCode(), cityName);
| }
|
| }
What's wrong here? There are no examples for security for SLSB WS (or I couldn't find them in last 4 weeks).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201217#4201217
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201217
17 years, 6 months
[Installation, Configuration & DEPLOYMENT] - configure Email in JBOSS ESB on a DLQ
by vasu2009
To configure Email in JBOSS ESB followed configuring below files, but email not generated:
1) monitoring-service.xml
jboss:service=Mail
<![CDATA[%(ESB DeadLetterQueue Monitor) was triggered for attribute %(ATTRIBUTE).]]>
Email Alert
Vasu_Syagonda(a)mindtree.com
Vasu_Syagonda(a)mindtree.com
Vasu_Syagonda(a)mindtree.com
<![CDATA[[jboss-alert] %(ESB DeadLetterQueue Monitor)]]>
2) mail-service.xml
<?xml version="1.0" encoding="UTF-8"?>
java:/Mail
jbossesb
jboss:service=Naming
3) DeadLetterQueue_Monitor-Service.xml
<?xml version="1.0" encoding="UTF-8"?>
ESB DeadLetterQueue Monitor
jboss.esb:category=MessageCounter,deployment=jbossesb.esb,service-name=DeadLetterService
overall service message count
4
-1
1000
true
<depends-list optional-attribute-name="AlertListeners">
<depends-list-element>
jboss.alerts:service=ConsoleAlertListener
</depends-list-element>
<depends-list-element>
jboss.alerts:service=EmailAlertListener
</depends-list-element>
</depends-list>
jboss.esb:deployment=jbossesb.esb
After server restart, i get following DEBUG statements in Console Log:
======================================================================
10:06:45,608 INFO [STDOUT] DEBUG: JavaMail version 1.4ea
10:06:45,608 INFO [STDOUT] DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jdk1.5.0_16\jre\lib\javamail.providers (The system cannot find the file specified)
10:06:45,608 INFO [STDOUT] DEBUG: !anyLoaded
10:06:45,608 INFO [STDOUT] DEBUG: not loading resource: /META-INF/javamail.providers
10:06:45,623 INFO [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
10:06:45,623 INFO [STDOUT] DEBUG: Tables of loaded providers
10:06:45,623 INFO [STDOUT] DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
10:06:45,623 INFO [STDOUT] DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
10:06:45,623 INFO [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
10:06:45,623 INFO [STDOUT] DEBUG: !anyLoaded
10:06:45,623 INFO [STDOUT] DEBUG: not loading resource: /META-INF/javamail.address.map
10:06:45,623 INFO [STDOUT] DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jdk1.5.0_16\jre\lib\javamail.address.map (The system cannot find the file specified)
10:06:45,623 INFO [MailService] Mail Service bound to java:/Mail
Any more ideas about this - did I miss on some configuration?
Thanks.
Vasu Syagonda
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201213#4201213
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201213
17 years, 6 months