Creating socket connection error
My problem is when I have router in local host, my client works fine, but when I move router to an other computer, then creating topic connection gives me error like: error creating socket connection to 127.0.0.1:14001, message: Connection refused: no further information
(I use port 14001, in local host it works). Why does it dry to connect to localhost? If I put up router in localhost too, it starts sending messages to this one!?
Anyway maybe this problem might have something to do with changeing the router version (swiftmq1.0 to 2.1.2)?
Could anyone help me with this one, I'm in big hurry, router and client should work on monday :-(
Thank You!
Thanx 4 answer :) neville
I have the answer allready - just I had to add 1 row in routers properties file, like:
swiftlet.sys$jms.listeners.plainsocket.bindaddress=192.168.0.1
It was in the SwiftMQ documentation, but I was to lazy to read all of it. My fault.
But thanks again for trying to help! And I WILL read that jndi doc.
Similar Messages
-
Periodic socket connection errors
I am experiencing a periodic error when accessing a Servlet running under
weblogic 6 sp2 on Windows 2000. Usually the second time my servlet is
accessed I see the connection error and then periodically after that. Here
is the stack trace:
.lang.NullPointerException
at weblogic.socket.TunnelContext.getServlet(TunnelContext.java:24)
at
weblogic.servlet.internal.MuxableSocketHTTP.dispatch(MuxableSocketHTTP.java:
465)
at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:638)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
<Oct 1, 2001 9:38:01 PM EDT> <Error> <HTTP> <Connection failure
java.lang.NullPointerException
at weblogic.socket.TunnelContext.getServlet(TunnelContext.java:24)
at
weblogic.servlet.internal.MuxableSocketHTTP.dispatch(MuxableSocketHTTP.java:
465)
at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:638)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
I traced this in the debugger and found that the first error occurs before
my servlet is even invoked. The second error occurs after I try to read
from the ServletInputStream object. When the error occurs I must kill the
client request, which hangs, and then subsequent requests are fine.
I have not seen anything like this in these newsgroups. Does anyone have
any ideas as to why this is happening?
Thanks,
Mark
Hi, I'm facing same problem. Did you guys get a solution for this?
Thanks,
Tarkeshwar
"Mark Priest" <[email protected]> wrote:
>It sounds like we are both experiencing a similar problem on different
>platforms. Will someone from Bea please comment on this?
>
>Thanks,
>Mark
>
>"Alexis Berger" <[email protected]> wrote in message
>news:[email protected]...
>> Mark,
>>
>> I currently got the same problem.
>> my config is Weblogic 6.0 (no SP) under Linux.
>>
>> In fact, I got a Tomcat server (with an application - a servlet -)
>on my
>> LAN, which calls my application under my Weblogic server (a servlet
>calling
>> some EJBs...)
>> No problem at the first connection, then the second fails with this
>> exception :
>>
>> I don't know what happens between tomcat and weblogic but what I traced
>is
>> that :
>> 1) Tomcat creates a socket connection with Weblo
>> 2) Weblo listens to Tomcat for an InputStream
>> 3) Tomcat sends data via an OutputStream
>> 4) Weblo receives nothing !!!! <---- problem ? :)
>>
>> Here is my exception...
>>
>>
>> <Error> <Posix Performance Pack> <Uncaught
>> Throwable in processSockets
>> java.lang.NullPointerException
>> at weblogic.socket.TunnelContext.getServlet(TunnelContext.java:24)
>> at
>>
>weblogic.servlet.internal.MuxableSocketHTTP.dispatch(MuxableSocketHTTP.java:
>> 459)
>> at
>>
>weblogic.socket.PosixSocketMuxer.deliverGoodNews(PosixSocketMuxer.java:449)
>> at
>> weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:378)
>> at
>weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
>> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
>> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>> >
>>
>>
>>
>> "Mark Priest" <[email protected]> a écrit dans le message de
>news:
>> [email protected]...
>> > I am experiencing a periodic error when accessing a Servlet running
>under
>> > weblogic 6 sp2 on Windows 2000. Usually the second time my servlet
>is
>> > accessed I see the connection error and then periodically after that.
>> Here
>> > is the stack trace:
>> >
>> > .lang.NullPointerException
>> > at weblogic.socket.TunnelContext.getServlet(TunnelContext.java:24)
>> > at
>> >
>>
>weblogic.servlet.internal.MuxableSocketHTTP.dispatch(MuxableSocketHTTP.java:
>> > 465)
>> > at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:638)
>> > at
>> weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
>> > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
>> > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>> > >
>> > <Oct 1, 2001 9:38:01 PM EDT> <Error> <HTTP> <Connection failure
>> > java.lang.NullPointerException
>> > at weblogic.socket.TunnelContext.getServlet(TunnelContext.java:24)
>> > at
>> >
>>
>weblogic.servlet.internal.MuxableSocketHTTP.dispatch(MuxableSocketHTTP.java:
>> > 465)
>> > at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:638)
>> > at
>> weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
>> > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
>> > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>> >
>> > I traced this in the debugger and found that the first error occurs
>before
>> > my servlet is even invoked. The second error occurs after I try
>to read
>> > from the ServletInputStream object. When the error occurs I must
>kill
>the
>> > client request, which hangs, and then subsequent requests are fine.
>> >
>> > I have not seen anything like this in these newsgroups. Does anyone
>have
>> > any ideas as to why this is happening?
>> >
>> > Thanks,
>> > Mark
>> >
>> >
>> >
>> >
>> >
>>
>>
>
>
-
MDM_TECH 554_700 ABAP API giving socket connection error
Hi,
I have recently installed the MDM_TECH 554_700 on a 64Bit R/3 system and configured the ABAP API thru customization for a 32Bit MDM Server. Currently I am facing a problem with 'NiRaw2ConnectError: Connection refused' error and when I checked the detailed log it shows that "ERROR => mdeKernelError, NiRawToConnectError: The attempt to establish a socket connection caused an error (rc=-10) [mdm_mdeClien 265]". I have checked the necessary kernel files ( dw_mdm.dll) to make the socket connection between the MDM system, the OSS note 965209 & 950245 and not able to trace the problem. Is it possible to make the connection between 64Bit R/3 and 32Bit MDM server? Help on this issue is highly appreciated.
Regards,
VeluAlejandro,
The MDM ABAP API & MDM Server Versions are same. Both of them are in SP04. Here is the details on the versions:
MDM ABAP API - MDM SP04 provider, Server build 5.5.32.48 - 5.5.32.x
MDM Server 5.5 - SP04 ( 5.5.32.65)
Regards,
Velu -
Hi,
I m facing some strange issues in a java file. The requirement is something like, i need to process some business operation , connect to a third party vendor and they need to process some operation in 10 secs and they reverted back with the result. The whole process should complete in 15 secs.
So for the first time while connection to the third party it is working fine, but for the second time it fails and showing connection failed in the UI. When i retires it is successfully connects. i checked the log file, there it is throwing exceptions some of the time. Please find the piece of code below. From the third party there is no issues from them , all the operations sucessfully done from their side..
try {
// open socket connection
socket = openSocketConnection(host, port, connectTimeOut, responseTimeout);
if(socket.isConnected()){
// some steps of business processing.....
// write request
// read response
// set pipeline
// set error status
catch(SocketTimeoutException ste){}
catch (UnknownHostException uhe) {}
catch (SocketException soe) {}
catch (Exception e) { }
finally {
try {
if (socket != null)socket.close();
} catch (Exception e) { }
// method for connecting the server....
openSocketConnection(String host, int port, int connectTimeOut, int responseTimeout) throws SocketTimeoutException, ServiceException,IOException {
Socket socket = null;
socket = new Socket();
socket.bind(null);
socket.connect(new InetSocketAddress(host,port),connectTimeOut);
if (socket.isConnected()) {
socket.setSoTimeout(responseTimeout);
} else {
throw new ServiceException("Error opening socket connection to Third party Vendor.");<------- mostly in second time throwing exception, but when retires working fine...
return socket;
Can anyone please help me out for this.Remove the isConnected() test and associated code: it's contributing nothing here. If the socket itself throws an exception then you have a problem. At the moment all you have is a self-inflicted wound.
You can also remove the bind(null) call. -
NullPointerException in Nokia when creating socket connection
I need a socket connection, The following code works well in simulators.
But in my nokia it throws a NullPointerException,
st.setText("Trying To Connect");
try{
client = (StreamConnection)Connector.open("socket://example.com:6040",Connector.READ_WRITE,true);
st.setText("Connection Estableshed");
is = client.openInputStream();
rt = new ReaderThread(this,is);
rt.start();
os = client.openOutputStream();
wp = new WriterProgram(os);
}catch(IOException ex){
st.setText(st.getText()+ex.getMessage());
I can see "Trying to connect".
But I never see "Connection Established".
NullPointerException thrown says nokia.Hi,
If all the users belong to the same role (like all users are Publishers or Writers), then, you can send a single connection key for all the users. But, if users belong to different roles, then, you will have to create connection keys for each role and then send it to the users.
Hope this helps. -
Flex mobile socket connection error
ReferenceError: Error #1069: Property shareable not found on flash.utils.ByteArray and there is no default value.
any one who knows this problem, wating for helpRemove the isConnected() test and associated code: it's contributing nothing here. If the socket itself throws an exception then you have a problem. At the moment all you have is a self-inflicted wound.
You can also remove the bind(null) call. -
IFS-64004:Error in creating socket.WAS Error 11004
Hi!
I need to know which the solution for this error.
I hope that you can send me the answer as soon as possible.
Thanks.
nullWhat were you doing when you got the error?
-
Java Socket Connection Time out
Goal*
I want to check host/port availability of computers in our network (~100 computers) .. Just check if host is alive and if it has port 445 opened. I want to do this somehow in parallel, so the code execution is as quick as possible.
My implementation*
I do this by creating socket connection to the host. Something like this:
Socket s = null;
try {
s = new Socket();
InetSocketAddress socketAddress = new InetSocketAddress(ipAddress, 445);
s.connect(socketAddress, 3000);
if (s.isConnected()) {
// do something
} catch (ConnectException ex) {
//exception thrown
} catch (IOException ex1) {
//exception thrown
} finally {
try {
// close socket
s.close();
} catch (IOException ex) {
Logger.getLogger(ComputerModel.class.getName()).log(Level.SEVERE, null, ex);
}This code is executed in a loop, where a separate thread is created for every iteration = ~100 separate threads.
Problem:*
1.
It seems to me, that first ~10-15 connections are created ok, but then my code reaches 'IOException' catch block for every subsequent itteration and ex.getMessage() returns "connection time out" (I try to use different timeout values in the 2nd parameter. Values from 3000 up to 20000).
Is it valid to create 100 separate threads in a loop? Can't I make my NIC to bussy with this ??? What is the maximum ammount of threads, I can create? I did not use threads before, so I have no idea, if max values are near to 10, 100, 1000, or 10000 ..
2.
After my code is executed, I enter 'netstat -an' command in my command line and I get bunch of connections, which report status of SYN_SENT for several connections.
TCP 10.20.11.140:4557 10.30.11.119:445 SYN_SENT
TCP 10.20.11.140:4558 10.30.11.176:445 SYN_SENT
TCP 10.20.11.140:4559 10.30.11.100:445 SYN_SENT
TCP 10.20.11.140:4560 10.30.11.142:445 SYN_SENT
TCP 10.20.11.140:4561 10.30.11.171:445 SYN_SENT
TCP 10.20.11.140:4562 10.30.11.143:445 SYN_SENT
TCP 10.20.11.140:4563 10.30.12.12:445 SYN_SENT
TCP 10.20.11.140:4564 10.30.12.11:445 SYN_SENT
TCP 10.20.11.140:4565 10.30.12.21:445 SYN_SENT
TCP 10.20.11.140:4566 10.30.11.150:445 SYN_SENT
I also feel, that my computer network response (e.g. firefox browsing) is a bit slower ..
How shall I handle this problem properly?
Thx in advance,
Jurajkajbj wrote:
tschodt wrote:
kajbj wrote:
The documentation for netstat explains what SYN_SENT is, but
I don't know why you have them.The app has asked the TCP stack to transmit SYN
the TCP stack is now waiting for SYN-ACK.
If there is no host at that IP address or a host that drops connections (SYN packets) for TCP port 445
there will never be a SYN-ACK.
After a few minutes the TCP stack will time out the connection attempt.Yes, I was rather commenting on why his hosts aren't answering. I thought that his case was that all of them should answer :)Akkurat. I was answering more for clarification.
Someone who does not know your posting history could easily assume you meant
it was a mystery why netstat was showing SYN_SENT.
And I figured it would not harm to hint that one possible reason would be that those machines are powered off (no host). -
Socket read error: connection reset by peer
Hi.
Has anybody experienced the error message �Socket read error: connection reset by peer�
Please see below for detailed information.
Appreciate your help
Regards
RT
Enviroment specification
Server: HP/UX 11.00 64-bit, Oracle RDBMS 8.1.6.0.0 64-bit
2 firewalls between client and db.
Client:
Win 2000,
SP3,
Oracle Client 8.1.7.0.0 ,JDBC OCI (thin JDBC driver,class12.zip)
JDK 1.3
JRUN3.0
The TCP protocol is being used in the communication
Error messages
Web Users receive: Socket read error: connection reset by peer
Trace files on the sever: Read unexpected EOF ERROR on 18.
Explanation: The error in the server sqlnet trace file, suggests that a client connection has terminated abnormally, i.e. client machine powered off, a cable removed or a network connection aborted without warning. No user has complained of such a problem and there is no client trace with an error.
The problem
The users of the java web application, experiencing an exception almost once or twice a day.
The JRUN web-server reports broken connections to the db and client are receiving "connection reset by peer".
At the moment when the errors occurs the users just have to wait a while(2-10 min) and then they can use the web application again.(no action is taken)
This problem can not be reproduced. The problem happens only occasionally when the network is under heavy load and new DB connection is being created.
The application
The java web-application uses a customized connection pooling against the database. This pool is shared among all the users of the website. whenever a user process needs to fetch data from the database, a free connection from this pool is allocated. The application is testing if the connection is valid before making a transaction (select '1' from dual). When the error occurs a ORA-3113 end-of-file on communication channel is returned to the application.
The path between the client and db involves at least two firewalls. The firewalls are opened for sql*net traffic. The network group can tell that enquiries from the app.server is not getting feedback from the db. They have not however, identified if the enquiries are reaching the db-srever, or if they are stopped earlier in the network.
Around 1000 users, are using other applications which uses dedicated sqlnet connections against the db and they have not experienced any problems.
Issues considered
Connection pooling
It is a customized connection pooling, developed by Lindorff developers.
I have read through the source code for the connection pooling and it does the job as it should, and in case of bad connection, it tries to create a new connection.
The log file shows that the call to the method DriverManager.getConnection() hangs until the server goes down, which is probably because of the fact that the method DriverManager.setLoginTimeout(), does not take effect and timeout value is Zero. ( According to oracle , Oracle JDBC does not support login timeouts and calling the static DriverManager.setLoginTimeout() method will have no effect).
Firewall
One thing to consider is when the firewall may decide to shut down the socket due to long inactivity of a connection. This will cause problems to JDBC Connection Pool because the pool is not aware of this disconnection at the TCP/IP level; until someone checks out the connection from the pool and tries to use it. The user will get a Socket read error: connection reset by peer.
Jrun timeout paramter is less than the firewall�s timeout so the firewall will not close a connection before Jrun does.
Number of processes the DB can handle
Processes parameter is 1300, , they have not experienced the Oracle error msg �max # of processes reached�.
Port redirection through a firewall:
Since the firewall has a sql net proxy Port redirection through a firewall is not a problem. Problems with port redirection only appear at connect time, but in this situation the connections fail long after the connection is established.
The network group
The network people who investigaged the problem at Lindorff report that there are a significant amount of "dropped packages" between the database server and the jdbc client (web-application) 24 hrs. The reason for this is "unknown established TCP packet" which means that the firewall does not consider these packages to be part of an already established session. The network group believes this happen because one of the hosts send a RESET or FIN signal which the firewall have noticed but are not received by the other host.
It seems like the firewall are dropping packages bacause of "Unknown
established TCP packet" from both the JDBC client and the TNSLISTENER on the database server. The dropped packages are SQL*Net v2 traffic so clearly Oracle products are involvedPresumably something is working.
Thus the problem is not with your code. At least not the database part that you have control over.
That error occurs when the other side closes the socket. Presumably you are catching lost connection exceptions and trying to restore it. -
Persistent socket connection - socket write error
I'm connecting to a server using sockets. My application acts like a client, sending requests, and also like a server, listenning for notifications. I was using a client socket for the first task (send a message when required) and a server socket for the second (permanently listen for incoming messages). This needs to be some kind of persistent connection.
It happens now I'm required to send and receive using the same port. The only way I found to do this is to have a single socket (client) bound to a certain port. It connects to the server and one thread keeps listenning for incoming messages (by reading the input stream) while another process is launched whenever I need to send a message (by writing to the socket's output stream). The socket is created only once (when the application starts) and its output/input streams reused whenever needed.
This works well for a while. However, when I try to send a message after some idle time (lets say 20 minutes) strange things happen. The first attempt to send a message returns success (although nothing is actually received by the server). The second attempt returns java.net.SocketException: Software caused connection abort: socket write error. I don't understand this behaviour. Can there be a timeout? I only write to the socket after testing if it's connected.. So why is this failing? Also, any other ideas on how to send and receive using the same port? A different and better approach maybe..
Thanks in advanceSocket.isConnected just tells you whether you have personally called Socket.connect() or new Socket(host, port,...). It doesn't tell you anything about the state of the connection.
You should certainly issue periodic application 'pings' at suitable intervals, and many application protocols do this. For example, Java RMI reuses connections that are less than 15 seconds old but only if they pass a ping test.
In general however you can't insist on a persistent connection over TCP/IP, especially if you have this kind of hardware in the circuit. What you can do is recognize when the connection has been lost and form a new one. The network is going to fail somewhere some time and your program has to be robust against that. -
Connection reset by peer: socket write error
Anybody can help me?
I run vdbench to test our NAS server, but it always failed with "
Slave localhost-0 aborting: Error writing file Y:\dir11\vdb.1_2.dir\vdb.2_2.dir\vdb.3_1.dir\vdb.4_1.dir\vdb.5_2.dir\vdb.6_2.dir\vdb.7_1.dir\vdb.8_2.dir\vdb.9_2.dir\vdb.10_1.dir\vdb_f0001.file
Error: Windows System Error code: 64: ", how to solve this fail ?
conf file:
fsd=fsd,anchor=Y:\dir,count=(11,15),depth=10,width=2,files=1,size=(10k,20,100k,20,160k,20,8m,20,10m,10,1g,5,2g,5)
fwd=fwd1,fsd=(fsd11,fsd12,fsd13,fsd14,fsd15),rdpct=85,xfersize=(10k,22,100k,22,160k,22,8m,22,10m,12),fileio=random,fileselect=random,threads=5
rd=rd1,fwd=fwd1,operations=read,fwdrate=max,format=yes,elapsed=10,interval=1
logfile.html:
14:22:49.510 Vdbench distribution: vdbench50401
14:22:49.510
14:22:49.526 input argument scanned: '-fcifs'
14:22:49.526 java.vendor Sun Microsystems Inc.
14:22:49.526 java.home C:\Program Files\Java\jre6
14:22:49.526 java.vm.specification.version 1.0
14:22:49.526 java.vm.version 16.3-b01
14:22:49.526 java.vm.vendor Sun Microsystems Inc.
14:22:49.526 java.specification.version 1.6
14:22:49.526 java.class.version 50.0
14:22:49.526 user.name zcuser1002
14:22:49.526 user.dir C:\Users\zcuser1002\Desktop\Y-vdbench-1021
14:22:49.526 java.class.path C:\Users\zcuser1002\Desktop\Y-vdbench-1021\;C:\Users\zcuser1002\Desktop\Y-vdbench-1021\classes;C:\Users\zcuser1002\Desktop\Y-vdbench-1021\vdbench.jar
14:22:49.526 os.name Windows Server 2008 R2
14:22:49.526 os.arch amd64
14:22:49.526 os.version 6.1
14:22:49.526 sun.arch.data.model 64
14:22:49.557 'fsd=fsd,count=(start,count)' added fsd11 Y:\dir11
15:08:57.031 2704 0.0 0.00 0.9 4.42 0.0 0.0 0.00 0.0 0.00 0.00 0.00 0.00 0 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00
15:08:58.030 2705 343.0 386.6 8.5 4.36 0.0 0.0 0.00 343.0 386.6 0.00 42.22 42.22 129071 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00
15:08:59.031 2706 15.0 983.4 0.0 3.41 0.0 0.0 0.00 15.0 983.4 0.00 1.85 1.85 129160 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00
15:09:51.406 localhost-0: anchor=Y:\dir15: Created 420 of 1024 files (41.02%)
15:10:02.202 2707 12143 31.35 8.0 6.25 0.0 0.0 0.00 12143 31.35 0.00 1513 1513.9 130736 0.0 0.00 0.0 0.00 65.0 59795 65.0 202.8 67.0 44969 0.0 0.00 0.0 0.00 0.0 0.00
15:10:02.234 2708 0.0 0.00 8.6 8.40 0.0 0.0 0.00 0.0 0.00 0.00 0.00 0.00 0 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00
15:10:02.249 2709 0.0 0.00 43.7 37.5 0.0 0.0 0.00 0.0 0.00 0.00 0.00 0.00 0 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 27.0 4268 0.0 0.00 0.0 0.00 0.0 0.00
15:10:02.265 2710 0.0 0.00 0.0 0.00 0.0 0.0 0.00 0.0 0.00 0.00 0.00 0.00 0 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00
15:10:02.296 2711 0.0 0.00 100.0 81.2 0.0 0.0 0.00 0.0 0.00 0.00 0.00 0.00 0 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00
15:10:02.312 2712 0.0 0.00 0.0 0.00 0.0 0.0 0.00 0.0 0.00 0.00 0.00 0.00 0 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00
15:10:02.312 localhost-0: 15:10:02.218 op: write lun: Y:\dir11\vdb.1_2.dir\vdb.2_2.dir\vdb.3_1.dir\vdb.4_1.dir\vdb.5_2.dir\vdb.6_2.dir\vdb.7_1.dir\vdb.8_2.dir\vdb.9_2.dir\vdb.10_1.dir\vdb_f0001.file lba: 1484652544 0x587E0000 xfer: 131072 errno: Windows System Error code: 64: ??¡§????????????
15:10:02.327 localhost-0: 15:10:02.234 op: write lun: Y:\dir14\vdb.1_2.dir\vdb.2_2.dir\vdb.3_1.dir\vdb.4_1.dir\vdb.5_2.dir\vdb.6_2.dir\vdb.7_1.dir\vdb.8_2.dir\vdb.9_2.dir\vdb.10_1.dir\vdb_f0001.file lba: 1971847168 0x75880000 xfer: 131072 errno: Windows System Error code: 64: ??¡§????????????
15:10:02.343 2713 0.0 0.00 100.0 74.9 0.0 0.0 0.00 0.0 0.00 0.00 0.00 0.00 0 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00 0.0 0.00
15:10:02.343
15:10:02.343 **********************************************************
15:10:02.343 Slave localhost-0 aborting: Error writing file Y:\dir11\vdb.1_2.dir\vdb.2_2.dir\vdb.3_1.dir\vdb.4_1.dir\vdb.5_2.dir\vdb.6_2.dir\vdb.7_1.dir\vdb.8_2.dir\vdb.9_2.dir\vdb.10_1.dir\vdb_f0001.file
Error: Windows System Error code: 64: ??¡§????????????
lba: 1484652544
xfersize: 131072
blocks_done: 11327
bytes_done: 1484652544
open_for_read: false
15:10:02.343 **********************************************************
15:10:02.343
15:10:18.013 Exception from slave: localhost-0
15:10:18.013
15:10:18.013 common.failure():
java.net.SocketException: Connection reset by peer: socket write error
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source)
at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(Unknown Source)
at java.io.ObjectOutputStream.reset(Unknown Source)
at Vdb.SlaveSocket.putMessage(SlaveSocket.java:277)
at Vdb.CollectSlaveStats.<init>(CollectSlaveStats.java:121)
at Vdb.Reporter.run(Reporter.java:183)
localhost-0.stdout.html:
stdout/stderr for slave=localhost-0
14:22:50.072 14:22:50.072 SlaveJvm execution parameter: '-m localhost'
14:22:50.072 14:22:50.072 SlaveJvm execution parameter: '-n localhost-10-141104-14.22.49.432'
14:22:50.072 14:22:50.072 SlaveJvm execution parameter: '-l localhost-0'
14:22:50.072 14:22:50.072 SlaveJvm execution parameter: '-p 5570'
14:22:50.072 14:22:50.072 SlaveJvm positional parameter: 'SlaveJvm'
14:22:50.118 14:22:50.118 successfully connected to master localhost
14:22:50.118 14:22:50.118 Connection to localhost using port 5570 successful
14:22:50.571 14:22:50.571 execute(): ls -l Y:\dir11
14:22:50.618 14:22:50.618 execute(): ls -l Y:\dir12
14:22:50.633 14:22:50.633 execute(): ls -l Y:\dir13
14:22:50.664 14:22:50.664 execute(): ls -l Y:\dir14
14:22:50.680 14:22:50.680 execute(): ls -l Y:\dir15
14:22:50.711 14:22:50.711 Configuration interpretation took 0.45 seconds
Link to Run Definitions: <A HREF="#_225912260">format_for_rd1 For loops: None</A>
<A HREF="#_156265924">rd1 For loops: None</A>
14:22:50.852 14:22:50.852 Beginning of run setup
14:22:50.852 14:22:50.852 **********************
14:22:50.852
14:22:50.852
14:22:51.538 14:22:51.538 Completed the creation of the directory list for Y:\dir11: 2046 directories.
14:22:56.811 14:22:56.811 Memory total Java heap: 77.438 MB; Free: 32.782 MB; Used: 44.655 MB;
14:22:56.874 14:22:56.874 checkMemory()
14:22:56.874 14:22:56.874 Memory total Java heap: 77.438 MB; Free: 52.364 MB; Used: 25.074 MB;
14:23:03.426 14:23:03.426 Generated 1024 file names; total anchor size: 130.841g
14:23:03.426 14:23:03.426 Writing control file for anchor=Y:\dir11 at start of run.
14:23:03.457 14:23:03.441 Completed control file for anchor=Y:\dir11 at start of run. dirs: 2046/2046 files: 1024/88 sizes: 130.841g/8.721g/0/0.0
14:23:03.457 14:23:03.441 During anchor creation for anchor=Y:\dir11 there were 2046 directories and 88 files
14:23:03.551 14:23:03.551 Completed the creation of the directory list for Y:\dir12: 2046 directories.
14:23:08.902 14:23:08.902 Memory total Java heap: 77.438 MB; Free: 24.149 MB; Used: 53.288 MB;
14:23:08.964 14:23:08.964 checkMemory()
14:23:08.964 14:23:08.964 Memory total Java heap: 77.438 MB; Free: 50.640 MB; Used: 26.798 MB;
14:23:15.579 14:23:15.579 Generated 1024 file names; total anchor size: 130.841g
14:23:15.579 14:23:15.579 Writing control file for anchor=Y:\dir12 at start of run.
14:23:15.594 14:23:15.594 Completed control file for anchor=Y:\dir12 at start of run. dirs: 2046/2046 files: 1024/74 sizes: 130.841g/7.092g/0/0.0
14:23:15.594 14:23:15.594 During anchor creation for anchor=Y:\dir12 there were 2046 directories and 74 files
14:23:15.688 14:23:15.688 Completed the creation of the directory list for Y:\dir13: 2046 directories.
14:23:21.210 14:23:21.210 Memory total Java heap: 74.688 MB; Free: 19.725 MB; Used: 54.963 MB;
14:23:21.273 14:23:21.273 checkMemory()
14:23:21.273 14:23:21.273 Memory total Java heap: 76.562 MB; Free: 48.176 MB; Used: 28.386 MB;
14:23:28.168 14:23:28.168 Generated 1024 file names; total anchor size: 130.841g
14:23:28.168 14:23:28.168 Writing control file for anchor=Y:\dir13 at start of run.
14:23:28.184 14:23:28.184 Completed control file for anchor=Y:\dir13 at start of run. dirs: 2046/2046 files: 1024/84 sizes: 130.841g/8.886g/0/0.0
14:23:28.184 14:23:28.184 During anchor creation for anchor=Y:\dir13 there were 2046 directories and 84 files
14:23:28.262 14:23:28.262 Completed the creation of the directory list for Y:\dir14: 2046 directories.
14:23:33.785 14:23:33.785 Memory total Java heap: 74.250 MB; Free: 17.213 MB; Used: 57.037 MB;
14:23:33.863 14:23:33.863 checkMemory()
14:23:33.863 14:23:33.863 Memory total Java heap: 72.812 MB; Free: 42.829 MB; Used: 29.983 MB;
14:23:40.976 14:23:40.976 Generated 1024 file names; total anchor size: 130.841g
14:23:40.976 14:23:40.976 Writing control file for anchor=Y:\dir14 at start of run.
14:23:40.976 14:23:40.976 Completed control file for anchor=Y:\dir14 at start of run. dirs: 2046/2046 files: 1024/87 sizes: 130.841g/8.778g/0/0.0
14:23:40.976 14:23:40.976 During anchor creation for anchor=Y:\dir14 there were 2046 directories and 87 files
14:23:41.054 14:23:41.054 Completed the creation of the directory list for Y:\dir15: 2046 directories.
14:23:46.296 14:23:46.296 Memory total Java heap: 74.062 MB; Free: 42.390 MB; Used: 31.672 MB;
14:23:46.374 14:23:46.374 checkMemory()
14:23:46.374 14:23:46.374 Memory total Java heap: 101.000 MB; Free: 68.809 MB; Used: 32.191 MB;
14:23:52.958 14:23:52.958 Generated 1024 file names; total anchor size: 130.841g
14:23:52.958 14:23:52.958 Writing control file for anchor=Y:\dir15 at start of run.
14:23:52.989 14:23:52.973 Completed control file for anchor=Y:\dir15 at start of run. dirs: 2046/2046 files: 1024/96 sizes: 130.841g/8.995g/0/0.0
14:23:52.989 14:23:52.973 During anchor creation for anchor=Y:\dir15 there were 2046 directories and 96 files
14:23:52.989 14:23:52.973 Skew for fwd=format,fsd=fsd11,operation=read: 20.0
14:23:52.989 14:23:52.973 Skew for fwd=format,fsd=fsd12,operation=read: 20.0
14:23:52.989 14:23:52.973 Skew for fwd=format,fsd=fsd13,operation=read: 20.0
14:23:52.989 14:23:52.973 Skew for fwd=format,fsd=fsd14,operation=read: 20.0
14:23:52.989 14:23:52.973 Skew for fwd=format,fsd=fsd15,operation=read: 20.0
14:23:53.051 14:23:53.051 Started 8 threads for fwd=format,fsd=fsd11
14:23:53.114 14:23:53.114 Started 8 threads for fwd=format,fsd=fsd12
14:23:53.161 14:23:53.161 Started 8 threads for fwd=format,fsd=fsd13
14:23:53.207 14:23:53.207 Started 8 threads for fwd=format,fsd=fsd14
14:23:53.270 14:23:53.270 Started 8 threads for fwd=format,fsd=fsd15
14:23:53.270 14:23:53.270 Started 40 FwgThreads
14:23:53.270 14:23:53.270 Waiting for task synchronization
14:23:53.270 14:23:53.270 task_wait_start_complete() end
<a name="_225912260"></a><i><b>14:23:53.971 Starting RD=format_for_rd1</b></i>
14:23:54.002 14:23:54.002 task_run_all(): 41 tasks
14:23:54.051 14:23:54.051 Message to master: anchor=Y:\dir15 mkdir complete.
14:23:54.051 14:23:54.051 Message to master: anchor=Y:\dir11 mkdir complete.
14:23:54.051 14:23:54.051 Message to master: anchor=Y:\dir13 mkdir complete.
14:23:54.066 14:23:54.066 Message to master: anchor=Y:\dir14 mkdir complete.
14:23:54.066 14:23:54.066 Message to master: anchor=Y:\dir12 mkdir complete.
14:24:24.685 14:24:24.685 Message to master: anchor=Y:\dir14: Created 130 of 1024 files (12.70%)
14:24:56.311 14:24:56.311 Message to master: anchor=Y:\dir12: Created 130 of 1024 files (12.70%)
14:25:40.473 14:25:40.464 Message to master: anchor=Y:\dir13: Created 140 of 1024 files (13.67%)
14:32:52.125 14:32:52.125 Message to master: anchor=Y:\dir12: Created 140 of 1024 files (13.67%)
14:33:30.374 14:33:30.374 Message to master: anchor=Y:\dir12: Created 160 of 1024 files (15.63%)
14:34:33.842 14:34:33.842 Message to master: anchor=Y:\dir14: Created 170 of 1024 files (16.60%)
14:35:49.810 14:35:49.810 Message to master: anchor=Y:\dir14: Created 180 of 1024 files (17.58%)
14:36:34.451 14:36:34.451 Message to master: anchor=Y:\dir14: Created 190 of 1024 files (18.55%)
14:38:13.437 14:38:13.437 Message to master: anchor=Y:\dir14: Created 200 of 1024 files (19.53%)
14:39:01.966 14:39:01.966 Message to master: anchor=Y:\dir11: Created 210 of 1024 files (20.51%)
14:39:57.837 14:39:57.837 Message to master: anchor=Y:\dir15: Created 220 of 1024 files (21.48%)
14:41:51.763 14:41:51.763 Message to master: anchor=Y:\dir13: Created 220 of 1024 files (21.48%)
14:42:31.156 14:42:31.156 Message to master: anchor=Y:\dir14: Created 240 of 1024 files (23.44%)
14:45:32.607 14:45:32.607 Message to master: anchor=Y:\dir15: Created 260 of 1024 files (25.39%)
14:46:44.611 14:46:44.611 Message to master: anchor=Y:\dir11: Created 270 of 1024 files (26.37%)
14:47:53.707 14:47:53.707 Message to master: anchor=Y:\dir14: Created 280 of 1024 files (27.34%)
14:48:25.032 14:48:25.032 Message to master: anchor=Y:\dir12: Created 280 of 1024 files (27.34%)
14:48:56.946 14:48:56.946 Message to master: anchor=Y:\dir13: Created 290 of 1024 files (28.32%)
14:50:40.869 14:50:40.868 Message to master: anchor=Y:\dir11: Created 300 of 1024 files (29.30%)
14:51:22.062 14:51:22.062 Message to master: anchor=Y:\dir15: Created 330 of 1024 files (32.23%)
14:53:55.390 14:53:55.390 Message to master: anchor=Y:\dir14: Created 350 of 1024 files (34.18%)
14:56:20.897 14:56:20.897 Message to master: anchor=Y:\dir14: Created 360 of 1024 files (35.16%)
14:58:08.513 14:58:08.513 Message to master: anchor=Y:\dir11: Created 360 of 1024 files (35.16%)
14:59:34.933 14:59:34.933 Message to master: anchor=Y:\dir12: Created 360 of 1024 files (35.16%)
15:02:15.234 15:02:15.234 Message to master: anchor=Y:\dir13: Created 370 of 1024 files (36.13%)
15:02:48.482 15:02:48.482 Message to master: anchor=Y:\dir14: Created 380 of 1024 files (37.11%)
15:04:27.359 15:04:27.359 Message to master: anchor=Y:\dir13: Created 380 of 1024 files (37.11%)
15:05:57.406 15:05:57.406 Message to master: anchor=Y:\dir15: Created 390 of 1024 files (38.09%)
15:07:18.982 15:07:18.982 Message to master: anchor=Y:\dir11: Created 390 of 1024 files (38.09%)
15:08:15.419 15:08:15.419 Message to master: anchor=Y:\dir11: Created 410 of 1024 files (40.04%)
15:08:50.624 15:08:50.624 Message to master: anchor=Y:\dir13: Created 410 of 1024 files (40.04%)
15:09:51.406 15:09:51.406 Message to master: anchor=Y:\dir15: Created 420 of 1024 files (41.02%)
15:10:02.202 15:10:02.202 file_write error2: 64
15:10:02.202 15:10:02.202 file_write error2: 64
15:10:02.202 15:10:02.202 handle: 0000000000000B38
15:10:02.202 15:10:02.202 seek: 0000000075880000
15:10:02.202 15:10:02.202 handle: 0000000000000BC0
15:10:02.202 15:10:02.202 length: 0000000000020000
15:10:02.202 15:10:02.202 seek: 00000000587E0000
15:10:02.202 15:10:02.202 buffer: 0000000034430000
15:10:02.202 15:10:02.202 length: 0000000000020000
15:10:02.202 15:10:02.202 buffer: 000000002E3E0000
15:10:02.234 15:10:02.234
15:10:02.234 15:10:02.234 Error writing file Y:\dir11\vdb.1_2.dir\vdb.2_2.dir\vdb.3_1.dir\vdb.4_1.dir\vdb.5_2.dir\vdb.6_2.dir\vdb.7_1.dir\vdb.8_2.dir\vdb.9_2.dir\vdb.10_1.dir\vdb_f0001.file
15:10:02.234 15:10:02.234 Error: Windows System Error code: 64: ??¡§????????????
15:10:02.234 15:10:02.234 lba: 1484652544
15:10:02.234 15:10:02.234 xfersize: 131072
15:10:02.234 15:10:02.234 blocks_done: 11327
15:10:02.234 15:10:02.234 bytes_done: 1484652544
15:10:02.234 15:10:02.234 open_for_read: false
15:10:02.234 15:10:02.234
15:10:02.234 java.lang.RuntimeException: Error writing file Y:\dir11\vdb.1_2.dir\vdb.2_2.dir\vdb.3_1.dir\vdb.4_1.dir\vdb.5_2.dir\vdb.6_2.dir\vdb.7_1.dir\vdb.8_2.dir\vdb.9_2.dir\vdb.10_1.dir\vdb_f0001.file
15:10:02.234 Error: Windows System Error code: 64: ??¡§????????????
15:10:02.234 lba: 1484652544
15:10:02.234 xfersize: 131072
15:10:02.234 blocks_done: 11327
15:10:02.234 bytes_done: 1484652544
15:10:02.234 open_for_read: false
15:10:02.234 at Vdb.common.failure(common.java:308)
15:10:02.234 at Vdb.ActiveFile.writeError(ActiveFile.java:611)
15:10:02.234 at Vdb.ActiveFile.writeBlock(ActiveFile.java:458)
15:10:02.234 at Vdb.FwgThread.doSequentialWrite(FwgThread.java:327)
15:10:02.234 at Vdb.OpCreate.doOperation(OpCreate.java:51)
15:10:02.234 at Vdb.OpFormat.doOperation(OpFormat.java:91)
15:10:02.234 at Vdb.FwgThread.run(FwgThread.java:157)'Socket write error' is merely the master finding out that the slave aborted unexpectedly.
It it the '64' you have to worry about.
Windows system error code 64:
(It appears that the Vdbench translation from number to text may have some language issues and therefore can not properly print it).
ERROR_NETNAME_DELETED
64 (0x40)
The specified network name is no longer available. -
I have created a bundle for the class com.xxx.cq.wcm.foundation.profile.impl.TnailImages from the foundation file com.day.cq.wcm.foundation.profile.impl.ProfileImages.
Here are the changes I made ot this class
1. width and height for the default foundation class ProfileImages to have our own default width and height in TnailImages.
2. selectors changed to our own like
* @scr.property name="sling.servlet.selectors" values.0="adjust"
* values.1="adjust.small"
3. Variable changed to private static final String THUMBNAIL = "small";
4. Metatype annotation won't compile for CQ5.5 I changed this * @scr.component metatype="false"
to
* @Component(immediate = true)
This bundle compiled successfully and I see it in OSGi felix console, it is in start mode. Even then I did a restart of this bundle as well as whole CQ5.
When I call an image using the following tag
<img alt="" src="/content/dam/geometrixx/portraits/scott_reynolds.jpg.adjust.small.jpg">
there are no spases anywhere
the servlet ThumbNailImages is not being call, I see the following error in error.log
servletengine Unable to send back last chunk: Software caused connection abort: socket write error
this image is not being displayed in the page, firebug displays failed to load URL
Default img works fine
<img alt="" src="/content/dam/geometrixx/portraits/scott_reynolds.jpg.prof.thumbnail.jpg">
Class com.day.cq.wcm.foundation.profile.impl.ProfileImages is available in
/libs/foundation/src/impl/src/main/java/com/day/cq/wcm/foundation/profile/impl/ProfileImag es.java
Here are my annotations * @Component(immediate = true) * @scr.service * @scr.property name="sling.servlet.resourceTypes" value="nt:file" * @scr.property name="sling.servlet.extensions" values.0="res" * values.1="jpg" * values.2="png" * values.3="gif" * @scr.property name="sling.servlet.selectors" values.0="adjust" * values.1="adjust.small" */ It seems that this servlet is not being called, when I invoke http://xyz.com:4502/content/dam/geometrixx/portraits/scott_reynolds.jpg.adjust.small.jpg I am getting 404 Cannot serve request to /content/dam/geometrixx/portraits/scott_reynolds.jpg.adjust.small.jpg in org.apache.sling.servlets.get.DefaultGetServlet
3 (2013-05-20 11:02:40) TIMER_END{2,resolveServlet(JcrNodeResource, type=dam:Asset, superType=null, path=/content/dam/geometrixx/portraits/scott_reynolds.jpg)} Using servlet com.day.cq.dam.core.impl.servlet.BinaryProviderServlet 3 (2013-05-20 11:02:40) TIMER_END{2,ServletResolution} URI=/content/dam/geometrixx/portraits/scott_reynolds.jpg.adjust.small.jpg handled by Servlet=com.day.cq.dam.core.impl.servlet.BinaryProviderServlet
It seems that my Servlet TnailImages is not being called, it is always going to default servlet.Hi Akhter,
Seeme like in your servlet the value for resourceType set to nt:file. Change it to "sling/servlet/default" and verify.
Thanks,
Sham -
Unexpected Behavior error while creating a connection in IDT
Hi Everyone,
I have created a connection on top of a database using ODBC.
I could able to see the connection in IDT.
I have mentioned the user name and pw correctly and tried testing the connection and got the error "unexpected behavior"
PFA error.
what could be the reason? any idea?
Thanks.I find this 32-bit vs. 64-bit ODBC somewhat confusing. I know you aren't dealing with Crystal Reports, but this blog post does provide some clarity. It has a link to this Microsoft knowledge base article from which I quote...
A 64-bit version of the Microsoft Windows operating system includes the following versions of the
Microsoft Open Database Connectivity (ODBC) Data Source Administrator tool (Odbcad32.exe):
The 32-bit version of the Odbcad32.exe file is located in the %systemdrive%\Windows\SysWoW64 folder.
The 64-bit version of the Odbcad32.exe file is located in the %systemdrive%\Windows\System32 folder.
One other warning. In my experience I have found that you cannot run both the 32-bit and 64-bit ODBC admin tools at the same time. If you have one running and try and start the other one it will just bring up the one you already had running.
To make sure I know which instance I am in at any give time I have created a dummy data source that corresponds to the instance; 32-bit or 64-bit.
Let us know how it goes.
Noel -
Database Connection Error Cannot create PoolableConnectionFactory
Hello everyone,
Background:
I have a newly installed and configured Ubuntu server running Tomcat5.5 and Mysql 5.0. This server was created in an attempt to migrate from a Red Hat server in a similar configuration, running the exact same webapp. Most of the configuration/classpath differences between the two platforms have been ironed out.
The Problem:
When our webapp trys to connect to the database on localhost, an exception 'java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve)' is generated.
The server.xml configuration is below:
<Resource name="jdbc/EconDollarsDB"
auth="Container"
type="javax.sql.DataSource"
username="user"
password="pass"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/DBName?autoReconnect=true"
maxActive="20" maxIdle="5"
/>I can connect to the database just fine using the command line client and the same username/password combo. This configuration has been working fine for at least a year on the older server. The only similar problems I have found on the net (meaning the same exception is generated) involve applets and attempts to connect to different hosts. This case involves a webapp, connecting to localhost, using a configuration that is known to work! I am simply baffled.
The following stacktrace is generated:
javax.servlet.ServletException: Database Connection Error
Cannot create PoolableConnectionFactory (Server connection failure during transaction. Due to underlying exception: 'java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve)'.
** BEGIN NESTED EXCEPTION **
java.security.AccessControlException
MESSAGE: access denied (java.net.SocketPermission localhost resolve)
STACKTRACE:
java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1031)
at java.net.InetAddress.getAllByName0(InetAddress.java:1117)
at java.net.InetAddress.getAllByName0(InetAddress.java:1098)
at java.net.InetAddress.getAllByName(InetAddress.java:1061)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:137)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:276)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2769)
at com.mysql.jdbc.Connection.<init>(Connection.java:1531)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at edu.tamu.erl.database.dblibrary.plugin.TomcatConnectionFactory.getConnection(TomcatConnectionFactory.java:102)
at edu.tamu.erl.database.dblibrary.DBManager.getConnection(DBManager.java:70)
at edu.tamu.erl.database.dblibrary.DBManager.getDBDataAccessObjectList(DBManager.java:318)
at edu.tamu.erl.econdollars.middletire.SessionManager.getSessionStatus(SessionManager.java:157)
at edu.tamu.erl.econdollars.middletire.SessionManager.retallyDB(SessionManager.java:637)
at org.apache.jsp.admin.login_jsp._jspService(login_jsp.java:88)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
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:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:50)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
** END NESTED EXCEPTION **
Attempted reconnect 3 times. Giving up.)
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
org.apache.jasper.runtime.PageContextImpl.access$11(PageContextImpl.java:65)
org.apache.jasper.runtime.PageContextImpl$12.run(PageContextImpl.java:766)
java.security.AccessController.doPrivileged(Native Method)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:764)
org.apache.jsp.admin.login_jsp._jspService(login_jsp.java:242)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
edu.tamu.erl.database.dblibrary.DBLibraryBaseException: Database Connection Error
Cannot create PoolableConnectionFactory (Server connection failure during transaction. Due to underlying exception: 'java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve)'.
** BEGIN NESTED EXCEPTION **
java.security.AccessControlException
MESSAGE: access denied (java.net.SocketPermission localhost resolve)
STACKTRACE:
java.security.AccessControlException: access denied (java.net.SocketPermission localhost resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1031)
at java.net.InetAddress.getAllByName0(InetAddress.java:1117)
at java.net.InetAddress.getAllByName0(InetAddress.java:1098)
at java.net.InetAddress.getAllByName(InetAddress.java:1061)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:137)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:276)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2769)
at com.mysql.jdbc.Connection.<init>(Connection.java:1531)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at edu.tamu.erl.database.dblibrary.plugin.TomcatConnectionFactory.getConnection(TomcatConnectionFactory.java:102)
at edu.tamu.erl.database.dblibrary.DBManager.getConnection(DBManager.java:70)
at edu.tamu.erl.database.dblibrary.DBManager.getDBDataAccessObjectList(DBManager.java:318)
at edu.tamu.erl.econdollars.middletire.SessionManager.getSessionStatus(SessionManager.java:157)
at edu.tamu.erl.econdollars.middletire.SessionManager.retallyDB(SessionManager.java:637)
at org.apache.jsp.admin.login_jsp._jspService(login_jsp.java:88)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
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:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:50)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
** END NESTED EXCEPTION **
Attempted reconnect 3 times. Giving up.)
edu.tamu.erl.database.dblibrary.plugin.TomcatConnectionFactory.getConnection(TomcatConnectionFactory.java:105)
edu.tamu.erl.database.dblibrary.DBManager.getConnection(DBManager.java:70)
edu.tamu.erl.database.dblibrary.DBManager.getDBDataAccessObjectList(DBManager.java:318)
edu.tamu.erl.econdollars.middletire.SessionManager.getSessionStatus(SessionManager.java:157)
edu.tamu.erl.econdollars.middletire.SessionManager.retallyDB(SessionManager.java:637)
org.apache.jsp.admin.login_jsp._jspService(login_jsp.java:88)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)Any help would be greatly appreciated.Hi,
Its clearly saying the connect permission is missing with the current available policy.
you add the following permisson entry to the <installed JRE>\lib\security\java.policy file.
(e.g) C:\Program Files\Java\j2re1.4.2_08\lib\security\java.policy
permission java.security.AllPermission;
grant{
permission java.security.AllPermission;
If the application is running standalone then the code is allowed uncontrolled access but for webapplicatons running through browser, the security check is performed for the configured JRE.
Regards
Karthik
<[email protected]> -
How can i create a socket connection through an http proxy
i'm trying to make a socket connection send an email - i have code that works when you don't have to go through a proxy server but i can't make it pass the proxy server.
import java.net.*;
import java.io.*;
import java.util.*;
public class Mail
public String to_address = "[email protected]";
public String from_address = "[email protected]";
public String sendSub = "HeHeHe";
public String sendBody = "hehehe - it worked";
// This is created to allow data to be read in by the keyboard.
BufferedReader in = new BufferedReader(
new InputStreamReader(System.in));
private void Mail(String to_address, // recipient's addresses
String from_address, // sender's address
String sendSub, // subject
String sendBody) // Message
throws IOException, ProtocolException, UnknownHostException {
Socket socket; // creates a Socket named socket
PrintStream out; // stream to write to socket
String host = "imap.btopenworld.com"; // identification of the mail server host
// creates a new socket for connection to the mail server
// as well as two variables for the read and write streams
socket = new Socket(host, 25); // opens socket to host on port 25 (SMTP port)
out = new PrintStream(socket.getOutputStream());
// read the initial message
in.readLine();
// Dialog with the mail server
// send HELO to SMTP server HELO command is given by a connecting SMTP host
out.println( "HELO " + host );
out.flush() ;
in.readLine();
// Once we are connected to the mail server we start sending the email...
// send "from"
out.println( "MAIL FROM: " + from_address );
out.flush() ;
in.readLine();
// send "to"
out.println( "RCPT TO: " + to_address );
out.flush() ;
in.readLine();
// prepare the mailserver to receive the data
out.println( "DATA" );
out.flush() ;
in.readLine();
// Send actual email
out.println("From: " + from_address);
out.println("To: " + to_address);
out.println( "Subject: " + sendSub + "\n" );
out.flush() ;
out.println("");
out.println( sendBody ) ;
out.println(".") ; // standard to determine end-of-body
out.flush() ;
in.readLine();
//Quit and closes socket
out.println("QUIT");
out.flush();
in.close() ;
socket.close() ;
return ;
public static void main (String [] args) throws IOException
Mail themail = new Mail();
}i've tried that but it doesn't seem to do nething - this is how i implemented it...
import java.net.*;
import java.io.*;
import java.util.*;
public class Mail
public String to_address = "[email protected]";
public String from_address = "[email protected]";
public String sendSub = "HeHeHe";
public String sendBody = "hehehe - it worked";
// This is created to allow data to be read in by the keyboard.
BufferedReader in = new BufferedReader(
new InputStreamReader(System.in));
private void Mail(String to_address, // recipient's addresses
String from_address, // sender's address
String sendSub, // subject
String sendBody) // Message
throws IOException, ProtocolException, UnknownHostException {
Socket socket; // creates a Socket named socket
PrintStream out; // stream to write to socket
String host = "imap.btopenworld.com"; // identification of the mail server host
// creates a new socket for connection to the mail server
// as well as two variables for the read and write streams
socket = new Socket(host, 25); // opens socket to host on port 25 (SMTP port)
out = new PrintStream(socket.getOutputStream());
// read the initial message
in.readLine();
System.getProperties().put( "proxySet", "true" );
System.getProperties().put( "proxyHost", "144.124.16.28" );
System.getProperties().put( "proxyPort", "8080" );
// Dialog with the mail server
// send HELO to SMTP server HELO command is given by a connecting SMTP host
out.println( "HELO " + host );
out.flush() ;
in.readLine();
// Once we are connected to the mail server we start sending the email...
// send "from"
out.println( "MAIL FROM: " + from_address );
out.flush() ;
in.readLine();
// send "to"
out.println( "RCPT TO: " + to_address );
out.flush() ;
in.readLine();
// prepare the mailserver to receive the data
out.println( "DATA" );
out.flush() ;
in.readLine();
// Send actual email
out.println("From: " + from_address);
out.println("To: " + to_address);
out.println( "Subject: " + sendSub + "\n" );
out.flush() ;
out.println("");
out.println( sendBody ) ;
out.println(".") ; // standard to determine end-of-body
out.flush() ;
in.readLine();
//Quit and closes socket
out.println("QUIT");
out.flush();
in.close() ;
socket.close() ;
return ;
public static void main (String [] args) throws IOException
Mail themail = new Mail();
}
Maybe you are looking for
-
HT204266 How do I install the app store and get my camera back in my ipod?
How do I install the app store and get my camera back in my ipod?
-
Hi! I recently bought a macbook and the airport extreme base station so I could have a wireless connection in my home. I have hooked it up to my PC and it has a solid green light on it, yet I can do nothing else with it. It just reads "an error occur
-
Used Adobe Indesign/Illustrator
HI , im trying to purchase a used bona fide adobe Indesign and illustrator , can someone point me in the right direction. sorry if this is in the wrong section, Pablo317
-
Loss of sound and picture sticking
i have been having a problem with the sound on my samsung tv for the past three months. customer ser vice is of no help...when i can get somebody that actually speaks and understands english, they just tell me to unplug things....wait ten seconds...
-
Generate xml-rpc request using xsd
Hi All, I have one xsd file . I want to generate xml-rpc request file using this xsd file. If any body have any tools for that , can you please share this name with me. It's great help for me... Thank You, Pattanaik