[JBoss Tools (users)] - JBoss aren't getting the newest files
by hvasoares
I have, one class, this class has one proprerty: data. I'm writing this for uploading imagens.
Local interface
import javax.ejb.Local;
|
| @Local
| public interface Upload {
|
| //seam-gen method
| public void upload();
|
| public byte[] getData();
|
| public void setData(byte[] data);
|
| public void finalizar();
|
| //add additional interface methods here
| }
Class that implements the interface
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.annotations.In;
| import org.jboss.seam.annotations.Logger;
| import org.jboss.seam.annotations.Destroy;
| import org.jboss.seam.annotations.Scope;
| import org.jboss.seam.ScopeType;
| import org.jboss.seam.log.Log;
| import org.jboss.seam.faces.FacesMessages;
| import javax.ejb.*;
|
| @Stateful
| @Name("upload")
| @Scope(ScopeType.SESSION)
| public class UploadBean implements Upload {
|
| @Logger private Log log;
|
| @In FacesMessages facesMessages;
|
| private byte[] data;
|
| public byte[] getData() {
| return data;
| }
|
| public void setData(byte[] data) {
| this.data = data;
| }
|
|
| public void upload()
| {
| //implement your business logic here
| log.info("upload.upload() action called");
| facesMessages.add("upload");
| }
|
| @Remove @Destroy
| public void finalizar(){
|
|
| }
| }
|
The lines are
| <h:form>
| <s:fileUpload data="#{upload.data}" accept="images/*"/>
| <h:commandButton action="#{upload.upload}" value="carregar"/>
| </h:form>
|
When I click on the comand button, an error happens:
javax.el.PropertyNotFoundException: /home.xhtml @28,43 value="#{upload.data}": Target Unreachable, identifier 'upload' resolved to null
Every change in the class or xhtml doesn't have any effects in the server, I've to restart the server many times before some changes go to the server.
Other time I get the same error and this error disappear mysteriously.
Anyone has an idea about this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160307#4160307
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160307
17 years, 10 months
When JMS Goes Wonky: Your survival guide?
by Bill Milbratz
Hi,
We've had a number of bugs/support issues over the last year when JMS--which
usually runs fine for weeks or months--either temporarily or permanently has
one of the following problems:
a) Error publishing message: socket closed
b) Connection Factory not bound, JNDI tree loses its entry for the jms
connetion factory
c) Corrupt Hsqldb prevents JMS from starting up.
The first two are "temporary, " i.e. restarting makes the problem "go away".
The third requires deleting the hsqldb and before restarting the app server.
To clarify: this error occurs in production, published software where all
the JMS code--with mdb's or hand-coded jms--normally runs fine. That is,
99.99% percent of the time all the jms-related code works without a hitch.
These errors occur intermittently with no obvious cause.
The question:
Why do these errors occur? How do you proactively prevent or monitor for
such errors? Any notes from the trenches? Any survival guide?
I've searched the jboss wiki but haven't found found such documentation or
notes.
Version Notes: We run jboss 4.2.2GA but have seen similar problems on Jboss
3.2.6.
thanks in advance,
bill
Here are some log excerpts:
socket closed:
[2008-04-27 14:05:29,046] [ERROR]
com.participate.util.j2ee.JMSMessagePublisher (JMSMessagePublisher.java:104)
- error publishing message (retry# 10)
org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server; -
nested throwable: (java.net.SocketException: socket closed)
at org.jboss.mq.Connection.sendToServer(Connection.java:1028)
at org.jboss.mq.SpySession.sendMessage(SpySession.java:1005)
at org.jboss.mq.SpyMessageProducer.send(SpyMessageProducer.java:265)
at org.jboss.mq.SpyMessageProducer.send(SpyMessageProducer.java:199)
at org.jboss.mq.SpyTopicPublisher.publish(SpyTopicPublisher.java:58)
at
com.participate.util.j2ee.JMSMessagePublisher.publishMessage(JMSMessagePublisher.java:89)
connection factory not bound:
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.naming.NameNotFoundException: peJmsConnectionFactory not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at javax.naming.InitialContext.lookup(Unknown Source)
at
corrupt hypersonic db:
MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: jboss:service=Hypersonic,database=localDB
state: FAILED
I Depend On:
Depends On Me: jboss.jca:service=ManagedConnectionFactory,name=DefaultDS
MBeanException: java.sql.SQLException: General error:
java.lang.NullPointerException
Cause: java.sql.SQLException: General error: java.lang.NullPointerException
com.participate.util.j2ee.JmsUtil.getDefaultTopicConnectionFactory(JmsUtil.java:55)
17 years, 10 months
[Installation, Configuration & DEPLOYMENT] - JBoss startup - Quartz Job instanciation error
by gsn
During JBoss load time, the quartz scheduler is started and starts catching triggers of waiting scheduled jobs (from the database). At the time a job is activated, the class which implements quartz Job cannot be instaciated (in order to
run the job) and the following Exception is thrown:
10:34:11,427 WARN [ServiceController] Problem starting service jboss.jca:service=RARDeployment,name='quartz-ra.rar'
javax.resource.spi.ResourceAdapterInternalException: org.quartz.SchedulerConfigException: Failure occured during job recovery.
[See nested exception: org.quartz.JobPersistenceException:
Couldn't recover jobs: Couldn't store trigger: No ClassLoaders found for: com.lamark.utils.BillingRetryJob
[See nested exception: org.quartz.JobPersistenceException: Couldn't store trigger: No ClassLoaders found for: com.lamark.utils.BillingRetryJob
[See nested exception: java.lang.ClassNotFoundException: No ClassLoaders found for: com.lamark.utils.BillingRetryJob]]]
at org.jboss.resource.adapter.quartz.inflow.QuartzResourceAdapter.start(QuartzReso urceAdapter.java:58)
at org.jboss.resource.deployment.RARDeployment.startService(RARDeployment.java:109 )
How can I ensure that the Job class I created will be created before quartz is loaded?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160298#4160298
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160298
17 years, 10 months
failure notice
by postmaster@lists.jboss.org
Hi. This is the smtp delivery program.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
<ssv(a)dataqsoft.com>, sorry, no mailbox here by that name.
--- Below this line is a copy of the message.
Received: from onity.com.s8a1.psmtp.com ([117.193.1.220])
(envelope-sender <jboss-user(a)lists.jboss.org>)
by 207.168.43.146 with ESMTP
for <ssv(a)dataqsoft.com>; Tue, 24 Jun 2008 09:34:16 -0700
Received: from [192.168.79.21] ([192.168.79.21]) by 117.193.1.220 with Microsoft SMTPSVC(6.0.3790.1830)
24 Jun 2008 20:15:18 +0400
From: =?windows-1251?B?yu7t8fLg7fLo7SDC6Ory7vDu4uj3?= <udmila(a)onity.biz>
To: <ssv(a)dataqsoft.com>
Subject: =?windows-1251?B?4uXx/CDx5fDo4OsgIuvl6vEgKGxleHgpIiDt4CAzMyBkdmQuIOTu8Q==?=
=?windows-1251?B?8uDi6uAg7+4g7O7x6uLlIOIg7vTo8SDo6+gg7eAg5O7sLg==?=
Date: 24 Jun 2008 20:15:18 +0400
MIME-Version: 1.0
Content-Type: text/plain;
charset="windows-1251"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MimeOLE: Produced By Microsoft Exchange V6.5
X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0274], KAS30/Release
X-SpamTest-Info: Not protected
X-Spam: Not detected
17 years, 10 months