JMS on Remote Machine
i have a basic JMS application that runs fine
on my local machine. it also runs fine when
run locally on the server. however, when i try
to attach to the server from my local machine,
i have to add an 'env' block to my InitialContext:
Hashtable env = new Hashtable();
env.put
(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.Applicatio
nClientInitialContextFactory");
env.put(Context.PROVIDER_URL, "ormi://my.url.com:23791");
env.put(Context.SECURITY_PRINCIPAL, "uid");
env.put(Context.SECURITY_CREDENTIALS, "pwd");
i'm able to contact the remote machine, and authenticate,
but it is unable to find the JMS objects.
i can't use the (local) method call:
lookup("java:comp/env/jms/theTopicConnectionFactory")
because it throws a runtime exception:
java:comp/env namespace is only available from within a J2EE
component
if i use: lookup("jms/theTopicConnectionFactory")
i get a different runtime exception:
Error looking up objects: jms/theTopicConnectionFactory not found
again, this works just fine if i'm using a local server.
is this a JNDI issue, or something else?
after i've made a successful ormi connection,
how do i attach to a factory, and how do i
refer to a Topic (or Queue) on a remote server?
this is not documented well, and is driving me nuts.
thanks,
rich
Hi Rich,
Make sure that the connectionfactory topic names and locations are specified in the jms.xml file - also make sure you have given the host name and port name in the jms.xml your jms.xml should look like this. This should resolve the issue.
<jms-server port="9127" host="ipaddress">
<!-- Queue bindings, these queues will be bound to their respective JNDI path for
later retrieval -->
<queue name="Demo Queue" location="jms/demoQueue">
<description>A dummy queue</description>
</queue>
<!-- Topic bindings, these topic will be bound to their respective JNDI path for
later retrieval -->
<topic name="Demo Topic" location="jms/demoTopic">
<description>A dummy topic</description>
</topic>
<topic name="The Topic" location="jms/theTopic">
<description>A dummy topic</description>
</topic>
<topic-connection-factory name="The Topic Connection Factory" location="jms/theTopicConnectionFactory">
<description>A dummy topic connection factory</description>
</topic-connection-factory>
<topic-connection-factory name=" Topic Connection Factory" location="jms/TopicConnectionFactory">
<description>A dummy topic connection factory</description>
</topic-connection-factory>
<!-- path to the log-file where JMS-events/errors are stored -->
<log>
<file path="../log/jms.log" />
</log>
</jms-server>
Similar Messages
-
How to coonect to a JMS queue which is in a remote machine
I have made one simple CEP application which have following components:
1.JMS input adapter
2.input channel
3.processor
4.Output channel
5.local publisher
Code for Adapter configuration:
<?xml version="1.0" encoding="UTF-8"?>
<wlevs:config xmlns:wlevs="http://www.bea.com/ns/wlevs/config/application"
xmlns:jdbc="http://www.oracle.com/ns/ocep/config/jdbc">
<http-pub-sub-adapter>
<name>remotePublisher</name>
<server-url>http://172.18.21.103:9002/pubsub</server-url>
<channel>/channel1</channel>
<event-type>MarketEvent</event-type>
<user>wlevs</user>
<password>wlevs</password>
</http-pub-sub-adapter>
<http-pub-sub-adapter>
<name>localPublisher</name>
<server-context-path>/pubsub</server-context-path>
<channel>/channel2</channel>
</http-pub-sub-adapter>
<jms-adapter>
<name>Inputadapter</name>
<event-type>MarketEvent</event-type>
* <jndi-provider-url>t3://localhost:7001</jndi-provider-url>*
<connection-jndi-name>jms/ConnFact</connection-jndi-name>
<destination-jndi-name>eis.Queue-source</destination-jndi-name>
<user>weblogic</user>
<password>welcome1</password>
</jms-adapter>
</wlevs:config>
If I want to read JMS messgaes from a queue situated at remote machine.What changes I need to make to my JMS adapter config file?I have changed the <jndi-provider-url> entry to http://172.18.21.94:7001.Where 172.18.21.94 is the location of the remote server.But it is giving error like:
Anupam Dhank: <Error> <Deployment> <BEA-2045010> <The application context "pub-sub" could not be started: org.springframework.beans.FatalBeanException: Error in context lifecycle initialization; nested exception is java.lang.Exception: Error initializing JMS connection: javax.naming.ServiceUnavailableException [Root exception is java.net.UnknownHostException: Unknown protocol: 'HTTP']
javax.naming.ServiceUnavailableException [Root exception is java.net.UnknownHostException: Unknown protocol: 'HTTP']
at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:34)
Edited by: 856272 on May 23, 2011 3:52 AM -
Using remote machines for report generation
Since LabView does not have cross-platform openoffice support, I was looking at ways of generating reports from a LabView session (2010) running on a mac. The report generation VI contains a somewhat suggestive machine name input. Can one connect to a remote machine (which is windows XP and has microsoft word / excel installed) to generate reports from a mac running LabView ?
m-s wrote:
Since LabView does not have cross-platform openoffice support, I was looking at ways of generating reports from a LabView session (2010) running on a mac. The report generation VI contains a somewhat suggestive machine name input. Can one connect to a remote machine (which is windows XP and has microsoft word / excel installed) to generate reports from a mac running LabView ?
With some work I think is is do-able.
If the PC had an exe deployed and running that was served via VI Server the report could be run and generated on the PC when invoked from the Mac.
So in theory yes!
Edit:
VI server is not required if the exe on the PC listens at a TCP/IP port and supports a protocol to accept the report "job".
I'll watch to see (and in hopes of) a better solution form others.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
How to read file from remote machine
Hello,
Hi, i would like to know how to read text file from remote machine using java source code, any code ?
Thanks very much;
Best regards
KimOn the server, perform the following steps:
Parse the request and determine the file to serve
Open a FileInputStream to the appropriate file
Obtain a reference to the Servlet OutputStream
Pipe the bytes from the file to the output stream
Flush and close the streamYou might want to call HttpServletResponse.setContentType("application/octet") to indicate to the browser that a file download will be occurring. Do so before getting the reference to the Servlet's OutputStream.
- Saish -
Problem in sending buffered image to remote machine
iam able to capture ithe desktop screen as a buffered image by using buffered image class in java.awt.image.but iam bot able to send that buffered image to remote machine.it is only possible to send some part of that buffered image.but iam not able to transmit the whole buffere image of my desktop.can u help.
Hi,
For this topic you should have a look ( 2004-07-08 The Java Specialists' Newsletter [Issue 091] )
from Dr. Heinz Kabutz. Indeed, the newsletter is quite useful and sometimes also amazing.
I really enjoy reading it.
In this newsletter he is exactly doing what you wanted to know.
He uses an ObjectOutputStream, but compresses the screenshot beforehand as follows:
import com.sun.image.codec.jpeg.*;
Toolkit defaultToolkit = Toolkit.getDefaultToolkit();
Rectangle shotArea = new Rectangle(
defaultToolkit.getScreenSize());
ByteArrayOutputStream bout = new ByteArrayOutputStream();
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(bout);
encoder.encode(robot.createScreenCapture(shotArea));
return bout.toByteArray();Hope that helps -
Any suggestions?
However, I can use scp to copy files out from my iMac (10.6.8) .
I can ssh into the iMac OK.
I created a .profile in my iMac home directory with the single line "export TERM=xterm-color".
This makes a difference to how scp behaves when attempting to copy into the iMac, but it still fails.
Thanks in advance for any help. Peter R
Here is the scp debug output (on the remote machine that I'm copying a file from, to the iMac):
===
Executing: program /usr/bin/ssh host molika.ucsd.edu, user prowat, command scp -v -t Desktop/FromPelican/Outs201201.pdf
Sun_SSH_1.1.3, SSH protocols 1.5/2.0, OpenSSL 0x0090704f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to molika.ucsd.edu [137.110.243.133] port 22.
debug1: Connection established.
debug1: identity file /home/nona/.ssh/identity type -1
debug1: identity file /home/nona/.ssh/id_rsa type -1
debug1: identity file /home/nona/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_5.2
debug1: match: OpenSSH_5.2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-Sun_SSH_1.1.3
debug1: use_engine is 'yes'
debug1: pkcs11 engine initialized, now setting it as default for RSA, DSA, and symmetric ciphers
debug1: pkcs11 engine initialization complete
debug1: Failed to acquire GSS-API credentials for any mechanisms (No credentials were supplied, or the credentials were unavailable or inaccessible
Unknown code 0
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: Peer sent proposed langtags, ctos:
debug1: Peer sent proposed langtags, stoc:
debug1: We proposed langtags, ctos: i-default
debug1: We proposed langtags, stoc: i-default
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: dh_gen_key: priv key bits set: 124/256
debug1: bits set: 1007/2048
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'molika.ucsd.edu' is known and matches the RSA host key.
debug1: Found key in /home/nona/.ssh/known_hosts:1
debug1: bits set: 1043/2048
debug1: ssh_rsa_verify: signature correct
debug1: newkeys: mode 1
debug1: set_newkeys: setting new keys for 'out' mode
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: newkeys: mode 0
debug1: set_newkeys: setting new keys for 'in' mode
debug1: SSH2_MSG_NEWKEYS received
debug1: done: ssh_kex2.
debug1: send SSH2_MSG_SERVICE_REQUEST
debug1: got SSH2_MSG_SERVICE_ACCEPT
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/nona/.ssh/identity
debug1: Trying private key: /home/nona/.ssh/id_rsa
debug1: Trying private key: /home/nona/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
*** Password requested & supplied
debug1: Authentication succeeded (keyboard-interactive)
debug1: fd 5 setting O_NONBLOCK
debug1: fd 6 setting O_NONBLOCK
debug1: fd 7 setting O_NONBLOCK
debug1: channel 0: new [client-session]
debug1: send channel open 0
debug1: Entering interactive session.
debug1: ssh_session2_setup: id 0
debug1: channel request 0: env
debug1: Sending command: scp -v -t Desktop/FromPelican/Outs201201.pdf
debug1: channel request 0: exec
debug1: channel 0: open confirm rwindow 0 rmax 32768
~
debug1: channel 0: read<=0 rfd 5 len 0
debug1: channel 0: read failed
debug1: channel 0: close_read
debug1: channel 0: input open -> drain
debug1: channel 0: ibuf empty
debug1: channel 0: send eof
debug1: channel 0: input drain -> closed
debug1: channel 0: write failed
debug1: channel 0: close_write
debug1: channel 0: output open -> closed
debug1: channel 0: rcvd eof
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: rcvd close
debug1: channel 0: almost dead
debug1: channel 0: gc: notify user
debug1: channel 0: gc: user detached
debug1: channel 0: send close
debug1: channel 0: is dead
debug1: channel 0: garbage collecting
debug1: channel_free: channel 0: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
debug1: fd 2 clearing O_NONBLOCK
debug1: Transferred: stdin 0, stdout 0, stderr 0 bytes in 0.9 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0
debug1: Exit status 0On looking at the secure.log on the iMac with OSX10.6.8, I see these entries at each attempt to scp into the iMac:
Dec 29 11:06:20 molika sshd[7248]: in pam_sm_authenticate(): Failed to determine Kerberos principal name.
Dec 29 11:06:26 molika sshd[7246]: Accepted keyboard-interactive/pam for prowat from 137.110.243.132 port 35571 ssh2
Dec 29 11:06:26 molika com.apple.SecurityServer[26]: Session 0x236a14 created
Dec 29 11:06:26 molika com.apple.SecurityServer[26]: Session 0x236a14 attributes 0x20
Dec 29 11:06:27 molika com.apple.SecurityServer[26]: Session 0x236a14 dead
Dec 29 11:06:27 molika com.apple.SecurityServer[26]: Killing auth hosts
Dec 29 11:06:27 molika com.apple.SecurityServer[26]: Session 0x236a14 destroyed
I don't know what to make of this.
Peter R -
Creating a directory on a remote machine using a UNC path
Hi all,
Is it possible to create a directory on a remote machine using a UNC path such as \\Server\Share\Directory?
If so, how would i go about this? (Sorry for the newbie question, that's exactly what I am!)
Thanks,
RobThe tables on your pages are images. Not very convenient if the visitor wants to copy the information and use it.
Read this how to use tables :
http://www.wyodor.net/blog/archives/2010/01/entry_297.html
http://www.wyodor.net/blog/archives/2010/01/entry_298.html
Samples :
http://www.wyodor.net/mfi/Maaskant/Seabreeze.html
http://www.wyodor.net/mfi/Maaskant/Experiment.html
http://www.wyodor.net/mfi/roodhout/Prices.html
And here's a non-iWeb page with a sortable table :
http://www.wyodor.net/htmlegg/TallCard/TallAjax.html?pg=tablesorter
Or use a database on the server with MySQL and make tables with PHP :
http://www.google.com/search?q=create+html+table+with+data+from+mysql+database
Here's a very simple way to do it :
http://home.wyodor.net/w3school -
Not able to access database from a remote machine using SQL Server Management Studio
Hi,
I have a DB_BOX with SQL Server 2008 R2 installed. I can access the databases on the local machine using SQL Server Management Studio but it is not accessible from other machines, though the machines are in same domain.
I have remote enabled on SQL Server box, TCP enabled, firewall off. I checked with IP Address too, all SQL Server services are running.
The SQL Server log shows the message
The requested service has been stopped or disabled and is unavailable at this time. The connection has been closed.
I get the below message in SSMS from remote machine.
Details of error message are
===================================
Cannot connect to DB_BOX.
===================================
A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - The specified network name is no longer available.) (.Net SqlClient Data Provider)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=64&LinkId=20476
Server Name: DB_BOX
Error Number: 64
Severity: 20
State: 0
Program Location:
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
at System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParserStateObject.ReadNetworkPacket()
at System.Data.SqlClient.TdsParserStateObject.ReadBuffer()
at System.Data.SqlClient.TdsParserStateObject.ReadByte()
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)
at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()Sorry, missed the message from the errorlog in the original post. You shouldn't have included that big .Net dump that hid the important facts. :-)
My first Google attempt on that message (which I have never seen before) suggests that the TCP Enpoint is stopped, so try this:
ALTER ENDPOINT [TSQL Default TCP]
STATE=STARTED;
Erland Sommarskog, SQL Server MVP, [email protected]
This solves the problem. Thanks... -
When I try to connect to a remote machine using IPSecuritas, am getting the following error
When am trying to connect to remote machine using IPSecuritas, I am getting the following error and hence not able to establish connection. Imported the security policy and when I start IPSec, I get this error.
Info APP IKE daemon started
Info APP IPSec started
Error IKE Foreground mode.
Info IKE @(#)ipsec-tools CVS (http://ipsec-tools.sourceforge.net)
Info IKE @(#)This product linked OpenSSL 0.9.7l 28 Sep 2006 (http://www.openssl.org/)
Info IKE Reading configuration from "/Library/Application Support/Lobotomo Software/IPSecuritas/racoon.conf"
Info IKE Resize address pool from 0 to 255
Error IKE failed to bind to address 192.168.1.2[4500] (Address already in use).
Info APP IKE daemon terminated
Error IKE failed to bind to address 192.168.1.2[500] (Address already in use).
Error IKE no address could be bound.
Info APP IPSec terminated
Please help me in fixing this issue. Thanks in advance!!..
Thanks,
RVIs this music purchased back in DRM days? I don't actually have any iTunes music so I can't test with my iTunes 7.5, but I know that without iTunes 10 you cannot even connect to the store anymore. I wouldn't think that would require an active connection to the store all the time, otherwise how could you play music on a computer in the middle of nowhere? Did you do something to trigger iTunes suddenly wanting to connect and check on machine authorization?
-
My realm error while starting managed server on a remote machine
Tried to start the managed server on the remote from admin console...got the below error message
Node manager on the remote machine is up and running.Start request reaches the node manager but it fails to start the server because of below error.
<May 6, 2011 2:12:46 AM PDT> <Error> <Security> <BEA-090870> <The realm "myrealm" failed to be loaded: weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: javax.jdo.JDOFatalInternalException: Unexpected exception caught.
NestedThrowables:
java.lang.reflect.InvocationTargetException.
weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: javax.jdo.JDOFatalInternalException: Unexpected exception caught.
NestedThrowables:
java.lang.reflect.InvocationTargetException
at weblogic.security.service.CSSWLSDelegateImpl.initializeServiceEngine(CSSWLSDelegateImpl.java:342)
at weblogic.security.service.CSSWLSDelegateImpl.initialize(CSSWLSDelegateImpl.java:221)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.InitializeServiceEngine(CommonSecurityServiceManagerDelegateImpl.java:1783)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(CommonSecurityServiceManagerDelegateImpl.java:442)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadRealm(CommonSecurityServiceManagerDelegateImpl.java:840)
Truncated. see log file for complete stacktrace
Caused By: com.bea.common.engine.ServiceInitializationException: javax.jdo.JDOFatalInternalException: Unexpected exception caught.
NestedThrowables:
java.lang.reflect.InvocationTargetException
at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:365)
at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:315)
at com.bea.common.engine.internal.ServiceEngineImpl.lookupService(ServiceEngineImpl.java:257)
at com.bea.common.engine.internal.ServicesImpl.getService(ServicesImpl.java:72)
at weblogic.security.service.internal.WLSIdentityServiceImpl.initialize(WLSIdentityServiceImpl.java:47)
Truncated. see log file for complete stacktrace
Caused By: javax.jdo.JDOFatalInternalException: Unexpected exception caught.
NestedThrowables:
java.lang.reflect.InvocationTargetException
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:549)
at com.bea.common.security.storeservice.util.StoreServiceDelegate.initJDO(StoreServiceDelegate.java:149)
at com.bea.common.security.storeservice.util.StoreServiceDelegate.<init>(StoreServiceDelegate.java:99)
at com.bea.common.security.internal.service.StoreServiceImpl.init(StoreServiceImpl.java:76)
at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:363)
Truncated. see log file for complete stacktrace
Caused By: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:534)
Truncated. see log file for complete stacktrace
Caused By: <openjpa-1.1.1-SNAPSHOT-r422266:891341 fatal internal error> org.apache.openjpa.util.InternalException: There was an error when invoking the static getInstance method on the named factory class "org.apache.openjpa.abstractstore.AbstractStoreBrokerFactory". See the nested exception for details.
at org.apache.openjpa.kernel.Bootstrap.getBrokerFactory(Bootstrap.java:95)
at kodo.jdo.PersistenceManagerFactoryImpl.getPersistenceManagerFactory(PersistenceManagerFactoryImpl.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Truncated. see log file for complete stacktrace
Caused By: java.lang.OutOfMemoryError: allocLargeObjectOrArray: [Ljava/lang/Object;, size 782611408
at java.util.Arrays.copyOf(Arrays.java:2760)
at java.util.Arrays.copyOf(Arrays.java:2734)
at java.util.ArrayList.ensureCapacity(ArrayList.java:167)
at java.util.ArrayList.add(ArrayList.java:351)
at org.apache.openjpa.conf.CacheMarshallerImpl.setInputUrlFromResourceLocation(CacheMarshallerImpl.java:226)
Truncated. see log file for complete stacktrace
>
<May 6, 2011 2:12:46 AM PDT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<May 6, 2011 2:12:46 AM PDT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
There are 1 nested errors:
weblogic.security.service.SecurityServiceRuntimeException: [Security:090399]Security Services Unavailable
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:916)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1050)
at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:875)
at weblogic.security.SecurityService.start(SecurityService.java:141)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Any pointers would be very helpful.I think your problem is here: Caused By: java.lang.OutOfMemoryError: allocLargeObjectOrArray: [Ljava/lang/Object;, size 782611408
And is probably related to this: http://mail-archives.apache.org/mod_mbox/openjpa-dev/201006.mbox/%3C26423199.85161276545675046.JavaMail.jira@thor%3E
the comment in here is saying: Make the CacheMarshallerImpl a bit more tolerant to different configurations.
Could be the out of memory error you getting is related to your openjpa configuration, not sure here -
Running a J2EE client on a Remote machine
How do you run a J2EE client application on a remote machine?
and what about running on remote client .
the things i know is , ok leave i am pasting a client which is on different machine (i.e not on the machine on which the server is ) copy
1. the client jar file which is return when u deploy the beans .
* Remember to add jar path in the class path
2. client class / java file on the remote client
and then run the client
for eg . client code
change Properties 's prop accoding to u
import javax.ejb.*;
import javax.naming.*;
import java.rmi.*;
import javax.rmi.PortableRemoteObject;
import java.util.*;
public class TestClient {
public static void main(String[] args) {
try {
System.out.println("IDFactory");
Properties prop = new Properties();
/* prop.put("org.omg.CORBA.ORBInitialHost","192.168.10.5");
prop.put("org.omg.CORBA.ORBInitialPort","1050");
prop.put(Context.PROVIDER_URL, "iiop://192.168.10.5:1050");
prop.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming.CNCtxFactory");
InitialContext initial = new InitialContext(prop);
Object objref = initial.lookup("TimeReport/Data/TestHome");
TestHome home = (TestHome)PortableRemoteObject.narrow(objref,TestHome.class);
System.out.println("looking up IDFactory Session Bean");
Test TestRemote = home.create();
System.out.println("IDFactory Created ");
long roleID = TestRemote.getID("TR_ROLE","Role_ID");
System.out.println("RoleID is " + roleID);
TestRemote.remove();
} catch (Exception ex)
System.err.println("Caught an unexpected exception!" + ex.getMessage());
ex.printStackTrace();
if it works then let know on [email protected]
cheers
Deepak Sumani -
<p>Hi,</p><p>I'm trying to install SQL Server 2012 SP1 on the first node of a Windows Server 2012 R2 failover cluster.</p><p>The install hangs whilst displaying the "Please wait while Microsoft SQL Server 2012 Servce
Pack 1 Setup processes the current operation." message.</p><p>The detail.txt log file shows as follows:</p><p>(01) 2014-07-17 15:36:35 Slp: -- PidInfoProvider : Use cached PID<br />(01) 2014-07-17 15:36:35 Slp: -- PidInfoProvider
: NormalizePid is normalizing input pid<br />(01) 2014-07-17 15:36:35 Slp: -- PidInfoProvider : NormalizePid found a pid containing dashes, assuming pid is normalized, output pid<br />(01) 2014-07-17 15:36:35 Slp: -- PidInfoProvider : Use cached
PID<br />(01) 2014-07-17 15:36:35 Slp: Completed Action: FinalCalculateSettings, returned True<br />(01) 2014-07-17 15:36:35 Slp: Completed Action: ExecuteBootstrapAfterExtensionsLoaded, returned True<br />(01) 2014-07-17 15:36:35 Slp: ----------------------------------------------------------------------<br
/>(01) 2014-07-17 15:36:35 Slp: Running Action: RunRemoteDiscoveryAction<br />(01) 2014-07-17 15:36:36 Slp: Running discovery on local machine<br />(01) 2014-07-17 15:36:36 Slp: Discovery on local machine is complete<br />(01) 2014-07-17
15:36:36 Slp: Running discovery on remote machine: XXX-XXX-01</p><p>After about 4 hours and 10 minutes, the step seems to time out and move on, however it doesn't seem to have discovered what it needs to and the setup subsuently fails</p><p></p>Hi,
Sorry Information you provided did not helped can you post content of both summary file and details,txt file on shared location for analysis.
Can you download Service pack again and try once more
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
My TechNet Wiki Articles -
Creating Error log files using UTL_FILE package on a remote machine
Database Version: 10g Release2
OS Platform: Sun Solaris
I have been asked to log errors to OS files rather than tables. So, i wanted to use UTL_FILE package. But the client doesn't want to store these files on the same server where the database is running(as specified in UTL_FILE_DIR). Is there a way i could get these files created on a remote machine(client).I believe what others are suggesting is that your stored procedure continues to log to a table and a separate process be created that runs on the machine you want the file to be created on which reads the log table and writes to a log file.
If that is not an option, can you expose the directory on the remote machine you want to write the file to as a file share that can be mounted by the database server? If you can, you could write errors there using UTL_FILE. However, it would probably be a bad idea. If you're logging an error already, that implies that something has gone wrong. Making an error logging process dependent on a remote server being available and properly mounted with appropriate privileges at the instant the error occurs just creates more sources of failure that would prevent you from logging an error, which would prevent you from being able to debug the problem or even know it existed without a report from a user.
Justin -
Program to open file in remote machine
Hi,
i want to write a program in which i can access a file in another system.
But the catch here is that the other system is using password to login to the system.
How i can provide password through my Java Program to access to other machine
~AmanCan you just send me the code how to read file from Shared folder/drive through java program?
e.g ="\\mcno-pc180\shared\HelloWorld.txt". I am able to access file HelloWorld.txt from my machine which is placed in shared folder path "\\mcno-pc180\shared\".
Regards
SPulluri
Share the folder/drive which you want to access on the remote machine then your application can access it.
Try to use the user which has already rights of reading/writing to that machine then the security dialog will not appear. -
Start Lync 2010 client on remote machine
I have a couple of users who like to logout of their Lync 2010 client. They apparently think that they are being watched through this program. This is a bit of a hassle since we use this program to see if users are sitting at their desk.
I am trying to write a .bat file to automatically kill the communicator process and then restart the program on the remote machine. I am having nothing but success with killing the communicator process using pskill. When attempting to start the
client using psexec, however, it will not work.
It will start a new communicator.exe process on the remote computer just fine. It doesn't seem to actually start the program though. There is no icon in the taskbar showing the program is running and communication with the user does not work
as it still shows them offline.
On the local machine (the one I am running from), I just use a bat file that calls another .bat file on the remote machine. The .bat file on the remote machine kills all communicator.exe processes using pskill -t. It then attempts to start a
new communicator session using "start communicator /fromrunkey" This will start a new communicator.exe process on the remote computer without any problems. That's all it will do though.
Anybody have any suggestions on what I can do to make it actually launch the client on the remote computer? I have exhausted all options I can come up with. I would like to get this working so the users in question finally figure out that if
they logout of Lync it is going to just start back up on them. Hopefully after time they will catch on and stop logging out of the program.Have we tried giving the complete location of the communicator.exe
"start c:/.../communicator.exe /fromrunkey
Using the same script are you able to open Notepad.exe on the remote machine just for testing
for more info look at http://blogs.technet.com/b/rischwen/archive/2013/06/20/lync-2013-client-auto-start-registry-key.aspx
Please remember, if you see a post that helped you please click ;Vote As Helpful" and if it answered your question please click "Mark As Answer" Regards Edwin Anthony Joseph
Maybe you are looking for
-
Hide Particular Item Group from Selection Criteria of Sales Analysis Report
Hello Experts, Is this possible to Hide Particular Item Group from Selection Criteria of Sales Analysis Report? I have one Item Group as 'Special Items'. Now, when I open Item wise sales analysis report, I want to hide above mentioned group from sel
-
How do I transfer my contacts from an IPhone 4 to my new IPhone 5C
Just purchased an IPhone 5C (T-Mobile) and am trying to retrieve my contacts from my older IPhone 4 (ATT) Company owned......ICloud doesn't seem to work?
-
I cant find UAE region in my iphone 4s
i cant find UAE region in my i phone so can any one help me
-
Can't get tv show that I once used to get
I used to download Monk tv show and now I can't...where did it go? Now it says it is in another countries store. Did they move it?
-
Open SVG File, manage it and save it
Hi! i'm new using java and batik i've a svgFile.svg and i want to manage it, and later to save the changes in a newsvgFile.svg i open the svgFile.svg and i put it in a 'org.w3c.dom.Document docSVG' now i want to manage it, but i suppose it wont be a