[JBoss Messaging] - Re: Messaging installation validation is failed !
by bijianrui
Thank Clebert.
Installation validation has passed .
Now I fall into a new problem.
I have a JMS application , That is fine on JBOSS Messaging for window platform .
But it do not run on JBOSS Messaging for SUSE linux .
Error is blow :
16:16:05,011 INFO [MessageProxy] Connect to JMS server at url:localhost:1099
16:16:06,016 ERROR [ServerThread] failed to process invocation.
java.io.IOException: Can not read data for version 6. Supported versions: 1,2
at org.jboss.remoting.transport.socket.ServerThread.versionedRead(ServerThread.java:394)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:446)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:527)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:261)
16:16:06,021 ERROR [SocketClientInvoker] Got marshalling exception, exiting
java.io.EOFException
at java.io.DataInputStream.readByte(DataInputStream.java:243)
at org.jboss.serial.io.JBossObjectInputStream.readByte(JBossObjectInputStream.java:227)
at org.jboss.jms.server.remoting.JMSWireFormat.read(JMSWireFormat.java:411)
at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:279)
at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
at org.jboss.remoting.Client.invoke(Client.java:525)
at org.jboss.remoting.Client.invoke(Client.java:488)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.invoke(ClientConnectionFactoryDelegate.java:199)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$getClientAOPConfig_8697532701842707646.invokeNext()Ljava.lang.Object;(ClientC
onnectionFactoryDelegate$getClientAOPConfig_8697532701842707646.java:???)
at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.getClientAOPConfig()[B(ClientConnectionFactoryDelegate.java:???)
at org.jboss.jms.client.JBossConnectionFactory.ensureAOPConfigLoaded(JBossConnectionFactory.java:233)
at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:196)
at org.jboss.jms.client.JBossConnectionFactory.createTopicConnection(JBossConnectionFactory.java:120)
at org.jboss.jms.client.JBossConnectionFactory.createTopicConnection(JBossConnectionFactory.java:115)
at com.huawei.oss.util.msg.MessageProxy.init(MessageProxy.java:161)
at com.huawei.oss.util.msg.MessageProxy.getInstance(MessageProxy.java:63)
at com.huawei.oss.util.cache.CacheManager.init(CacheManager.java:69)
at com.huawei.oss.util.cache.CacheManager.(CacheManager.java:60)
at com.huawei.oss.util.cache.CacheManager.getInstance(CacheManager.java:50)
at com.huawei.oss.util.task.BossTaskScheduler.(BossTaskScheduler.java:35)
at com.huawei.oss.util.task.BossTaskScheduler.getInstance(BossTaskScheduler.java:42)
at com.huawei.oss.util.task.BossTaskStartup.startupAllTask(BossTaskStartup.java:164)
at com.huawei.oss.util.task.BossTaskStartup.perform(BossTaskStartup.java:237)
at org.jboss.varia.scheduler.Scheduler$Listener.handleNotification(Scheduler.java:1235)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
at $Proxy10.handleNotification(Ljavax.management.Notification;Ljava.lang.Object;)V(Unknown Source)
at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:221)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987816#3987816
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987816
19Â years, 5Â months
[JBoss Seam] - Seam+JSF - File Download through HttpServletResponse problem
by reinhard.behrens
Hi,
I reference my external context as per http://www.jboss.org/index.html?module=bb&op=viewtopic&t=94163
but it does not function the way I thought.
If I create the PDF argument for my action function from a DataModelSelection, then the action should prompt the user to either download or view the test pdf1.pdf when clicked.
The file reading and output works fine, just not to the ServletOutputStream. It returns "Success" without any errors or Exceptions on my JBoss
console output.
Am I missing something? Does the function return value have something to do with it, pageflow etc... ?
Any help would be appreciated.
The code :@Stateful
| @Name("downloadpdf")
| @Scope(ScopeType.SESSION)
| public class DownloadPDFAction implements DownloadPDF{
|
| @PersistenceContext(type=PersistenceContextType.EXTENDED)
| private EntityManager em;
|
| @In(value="#{facesContext.externalContext}")
| private ExternalContext extCtx;
|
| @In(required=false)
| private PDF pdf;
|
| public String download(PDF pdf)
| {
| String filePath = null;
| String fileName = null;
| int read = 0;
| byte[] bytes = new byte[1000];
|
| HttpServletResponse response = (HttpServletResponse)extCtx.getResponse();
| response.setContentType("application/pdf");
| response.addHeader("Content-disposition", "attachment; filename=\"" + fileName +"\"");
|
| filePath = "C:\\";
| fileName = "pdf1.pdf";
|
| try
| {
| ServletOutputStream os = response.getOutputStream();
| File file = new File(filePath,fileName);
| FileInputStream fis = new FileInputStream(file);
|
| while((read = fis.read(bytes)) != -1)
| {
| os.write(bytes,0,read);
| }
|
| os.flush();
| os.close();
|
| System.out.println("\nSuccess\n");
| }
| catch(Exception e)
| {
| System.out.println("\nFailure : " + e.toString() + "\n");
| }
|
| return "main";
| }
|
| @Destroy @Remove
| public void destroy(){}
| }
|
The JSF : <h:dataTable value="#{pdfs}" var="d_map" rendered="#{pdfs.rowCount > 0}">
| <h:column>
| <s:link value="Document : #{d_map.name}" action="#{downloadpdf.download(d_map)}"/><img width="16" height="17" src="img/acrobat.jpg" />
| </h:column>
| </h:dataTable>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987811#3987811
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987811
19Â years, 5Â months
[JBoss Getting Started Documentation] - Redeploy the application resulting errors
by la_seenu
Hi,
When I redeploy my application some times I am getting either of these two errors...
The error occurred when I redeploy the project.
10:13:29,828 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBos
s_4_0_4_GA date=200605151000)] Started in 16s:110ms
10:13:44,593 INFO [TomcatDeployer] undeploy, ctxPath=/PMgt, warUrl=.../deploy/P
Mgt.ear/PMgtWeb.war/
10:13:44,609 INFO [EARDeployer] Undeploying J2EE application, destroy step: fil
e:/C:/Program Files/jboss-4.0.4.GA/server/default/deploy/PMgt.ear/
10:13:44,609 INFO [EARDeployer] Undeployed J2EE application: file:/C:/Program F
iles/jboss-4.0.4.GA/server/default/deploy/PMgt.ear/
10:13:44,609 INFO [EARDeployer] Init J2EE application: file:/C:/Program Files/j
boss-4.0.4.GA/server/default/deploy/PMgt.ear/
10:13:44,609 ERROR [MainDeployer] Could not initialise deployment: file:/C:/Prog
ram Files/jboss-4.0.4.GA/server/default/deploy/PMgt.ear/
org.jboss.deployment.DeploymentException: url file:/C:/Program Files/jboss-4.0.4
.GA/server/default/deploy/PMgt.ear/PMgtWeb.war could not be opened, does it exis
t?
at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:211)
at org.jboss.deployment.EARDeployer.init(EARDeployer.java:250)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:861)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
or.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
BeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy6.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:610)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
run(AbstractDeploymentScanner.java:225)
One more redeployment of the same is working properly without any errors
The error occurred when I redeploy the project again.
10:43:04,125 INFO [TomcatDeployer] undeploy, ctxPath=/PMgt, warUrl=.../deploy/P
Mgt.ear/PMgtWeb.war/
10:43:04,125 INFO [EARDeployer] Undeploying J2EE application, destroy step: fil
e:/C:/Program Files/jboss-4.0.4.GA/server/default/deploy/PMgt.ear/
10:43:04,125 INFO [EARDeployer] Undeployed J2EE application: file:/C:/Program F
iles/jboss-4.0.4.GA/server/default/deploy/PMgt.ear/
10:43:04,140 INFO [EARDeployer] Init J2EE application: file:/C:/Program Files/j
boss-4.0.4.GA/server/default/deploy/PMgt.ear/
10:43:04,218 INFO [TomcatDeployer] deploy, ctxPath=/PMgt, warUrl=.../deploy/PMg
t.ear/PMgtWeb.war/
10:43:04,390 INFO [EARDeployer] Started J2EE application: file:/C:/Program File
s/jboss-4.0.4.GA/server/default/deploy/PMgt.ear/
10:43:06,140 ERROR [STDERR] Exception in thread "AWT-EventQueue-0"
10:43:06,140 ERROR [STDERR] java.lang.NullPointerException
10:43:06,140 ERROR [STDERR] at sun.awt.Win32GraphicsEnvironment.displayChang
ed(Win32GraphicsEnvironment.java:109)
10:43:06,156 ERROR [STDERR] at sun.awt.windows.WToolkit$4.run(WToolkit.java:
698)
10:43:06,156 ERROR [STDERR] at java.awt.event.InvocationEvent.dispatch(Invoc
ationEvent.java:209)
10:43:06,156 ERROR [STDERR] at java.awt.EventQueue.dispatchEvent(EventQueue.
java:461)
10:43:06,156 ERROR [STDERR] at java.awt.EventDispatchThread.pumpOneEventForH
ierarchy(EventDispatchThread.java:242)
10:43:06,156 ERROR [STDERR] at java.awt.EventDispatchThread.pumpEventsForHie
rarchy(EventDispatchThread.java:163)
10:43:06,156 ERROR [STDERR] at java.awt.EventDispatchThread.pumpEvents(Event
DispatchThread.java:157)
10:43:06,156 ERROR [STDERR] at java.awt.EventDispatchThread.pumpEvents(Event
DispatchThread.java:149)
10:43:06,156 ERROR [STDERR] at java.awt.EventDispatchThread.run(EventDispatc
hThread.java:110)
One more redeployment of the same is working properly without any errors.
Can you please any body suggest me how to resolve it?.........
Thanks in advance.
Regards,
seenu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987807#3987807
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987807
19Â years, 5Â months