"printf: write error: Broken Pipe" on upgrading archlinux-keyring

Is this anything to worry about?  The upgrade seems to have otherwise succeeded.
(1/3) upgrading archlinux-keyring [#####################################] 100%
==> Appending keys from archlinux.gpg...
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0 valid: 1 signed: 5 trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1 valid: 5 signed: 62 trust: 0-, 0q, 0n, 5m, 0f, 0u
gpg: depth: 2 valid: 62 signed: 5 trust: 62-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2016-01-22
==> Locally signing trusted keys in keyring...
-> Locally signing key 0E8B644079F599DFC1DDC3973348882F6AC6A4C2...
-> Locally signing key 684148BB25B49E986A4944C55184252D824B18E8...
-> Locally signing key 44D4A033AC140143927397D47EFD567D4C7EA887...
-> Locally signing key 27FFC4769E19F096D41D9265A04F9397CDFD6BB0...
-> Locally signing key AB19265E5D7D20687D303246BA1DFB64FFF979E7...
usr/bin/pacman-key: line 609: printf: write error: Broken pipe
==> Importing owner trust values...
==> Disabling revoked keys in keyring...
-> Disabling key F5A361A3A13554B85E57DDDAAF7EF7873CFD4BB6...
-> Disabling key 7FA647CD89891DEDC060287BB9113D1ED21E1A55...
-> Disabling key D4DE5ABDE2A7287644EAC7E36D1A9E70E19DAA50...
-> Disabling key BC1FBE4D2826A0B51E47ED62E2539214C6C11350...
-> Disabling key 9515D8A8EAB88E49BB65EDBCE6B456CAF15447D5...
-> Disabling key 4A8B17E20B88ACA61860009B5CED81B7C2E5C0D2...
-> Disabling key 63F395DE2D6398BBE458F281F2DBB4931985A992...
-> Disabling key 0B20CA1931F5DA3A70D0F8D2EA6836E1AB441196...
-> Disabling key 8F76BEEA0289F9E1D3E229C05F946DED983D4366...
-> Disabling key 66BD74A036D522F51DD70A3C7F2A16726521E06D...
-> Disabling key 81D7F8241DB38BC759C80FCE3A726C6170E80477...
-> Disabling key E7210A59715F6940CF9A4E36A001876699AD6E84...
==> Updating trust database...
gpg: next trustdb check due at 2016-01-22
Last edited by weirddan455 (2015-02-14 05:58:08)

Hi, according to line 609 of pacman-key
/urs/bin/pacman-key wrote:608 # we cannot use --yes here as gpg would still ask for confirmation if a key has more than one uid
609 printf 'y\ny\n' | LANG=C "${GPG_PACMAN[@]}" --command-fd 0 --quiet --batch --lsign-key "${key_id}" 2>/dev/null
it seems that gpg has died when it tried to sign locally the key FFF979E7. If a key is not locally signed you could have problems when installing packages signed with that key.
Does it work if you run the following command?
pacman-key --populate archlinux

Similar Messages

  • Usr/bin/pacman-key: line 615: printf: write error: Broken pipe

    I've got some instances of same error from pacman which I think is abnormal when I tried to upgrade pacman-keyring via "pacman -Syu".
    usr/bin/pacman-key: line 615: printf: write error: Broken pipe
    What action should I take for the errors to maintain my system?
    Searching the web and this forum won't answer my question...
    The quotation of pacman.log of the upgrade sesson which evoked pacman-keyring upgrading is below:
    [2013-04-20 22:04] [PACMAN] Running 'pacman -Syu'
    [2013-04-20 22:04] [PACMAN] synchronizing package lists
    [2013-04-20 22:04] [PACMAN] starting full system upgrade
    [2013-04-20 22:05] [ALPM-SCRIPTLET] ==> Appending keys from archlinux.gpg...
    [2013-04-20 22:05] [ALPM-SCRIPTLET] gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
    [2013-04-20 22:05] [ALPM-SCRIPTLET] gpg: depth: 0 valid: 1 signed: 5 trust: 0-, 0q, 0n, 0m, 0f, 1u
    [2013-04-20 22:05] [ALPM-SCRIPTLET] gpg: depth: 1 valid: 5 signed: 64 trust: 0-, 0q, 0n, 5m, 0f, 0u
    [2013-04-20 22:05] [ALPM-SCRIPTLET] gpg: depth: 2 valid: 64 signed: 1 trust: 64-, 0q, 0n, 0m, 0f, 0u
    [2013-04-20 22:05] [ALPM-SCRIPTLET] gpg: next trustdb check due at 2014-01-22
    [2013-04-20 22:05] [ALPM-SCRIPTLET] ==> Locally signing trusted keys in keyring...
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> Locally signing key 0E8B644079F599DFC1DDC3973348882F6AC6A4C2...
    [2013-04-20 22:05] [ALPM-SCRIPTLET] usr/bin/pacman-key: line 615: printf: write error: Broken pipe
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> Locally signing key 684148BB25B49E986A4944C55184252D824B18E8...
    [2013-04-20 22:05] [ALPM-SCRIPTLET] usr/bin/pacman-key: line 615: printf: write error: Broken pipe
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> Locally signing key 44D4A033AC140143927397D47EFD567D4C7EA887...
    [2013-04-20 22:05] [ALPM-SCRIPTLET] usr/bin/pacman-key: line 615: printf: write error: Broken pipe
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> Locally signing key 27FFC4769E19F096D41D9265A04F9397CDFD6BB0...
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> Locally signing key AB19265E5D7D20687D303246BA1DFB64FFF979E7...
    [2013-04-20 22:05] [ALPM-SCRIPTLET] usr/bin/pacman-key: line 615: printf: write error: Broken pipe
    [2013-04-20 22:05] [ALPM-SCRIPTLET] ==> Importing owner trust values...
    [2013-04-20 22:05] [ALPM-SCRIPTLET] ==> Updating trust database...
    [2013-04-20 22:05] [ALPM-SCRIPTLET] gpg: next trustdb check due at 2014-01-22
    [2013-04-20 22:05] [PACMAN] upgraded archlinux-keyring (20130224-1 -> 20130406-1)
    [2013-04-20 22:05] [PACMAN] upgraded bash-completion (2.0-3 -> 2.1-1)
    [2013-04-20 22:05] [ALPM-SCRIPTLET] Generating locales...
    [2013-04-20 22:05] [ALPM-SCRIPTLET] en_US.UTF-8... done
    [2013-04-20 22:05] [ALPM-SCRIPTLET] ja_JP.UTF-8... done
    [2013-04-20 22:05] [ALPM-SCRIPTLET] Generation complete.
    [2013-04-20 22:05] [PACMAN] upgraded glibc (2.17-4 -> 2.17-5)
    [2013-04-20 22:05] [PACMAN] upgraded binutils (2.23.2-1 -> 2.23.2-2)
    [2013-04-20 22:05] [PACMAN] upgraded m4 (1.4.16-2 -> 1.4.16-3)
    [2013-04-20 22:05] [PACMAN] upgraded bison (2.7-1 -> 2.7.1-1)
    [2013-04-20 22:05] [PACMAN] upgraded curl (7.29.0-2 -> 7.30.0-1)
    [2013-04-20 22:05] [PACMAN] upgraded expat (2.1.0-1 -> 2.1.0-2)
    [2013-04-20 22:05] [PACMAN] upgraded freeglut (2.8.0-2 -> 2.8.1-1)
    [2013-04-20 22:05] [PACMAN] upgraded gcc-libs (4.8.0-1 -> 4.8.0-2)
    [2013-04-20 22:05] [PACMAN] upgraded gcc (4.8.0-1 -> 4.8.0-2)
    [2013-04-20 22:05] [PACMAN] upgraded gpm (1.20.7-1 -> 1.20.7-2)
    [2013-04-20 22:05] [PACMAN] upgraded harfbuzz (0.9.14-1 -> 0.9.16-1)
    [2013-04-20 22:05] [PACMAN] upgraded isl (0.11.1-1 -> 0.11.2-1)
    [2013-04-20 22:05] [PACMAN] upgraded kmod (12-1 -> 13-1)
    [2013-04-20 22:05] [PACMAN] upgraded libldap (2.4.34-1 -> 2.4.35-1)
    [2013-04-20 22:05] [PACMAN] upgraded krb5 (1.11.1-1 -> 1.11.2-1)
    [2013-04-20 22:05] [PACMAN] upgraded lib32-glibc (2.17-4 -> 2.17-5)
    [2013-04-20 22:05] [PACMAN] upgraded lib32-gcc-libs (4.8.0-1 -> 4.8.0-2)
    [2013-04-20 22:05] [PACMAN] upgraded libcap (2.22-3 -> 2.22-4)
    [2013-04-20 22:05] [PACMAN] upgraded libpng (1.5.14-1 -> 1.5.15-1)
    [2013-04-20 22:05] [PACMAN] upgraded libtasn1 (3.2-1 -> 3.3-1)
    [2013-04-20 22:05] [ALPM-SCRIPTLET] >>> Updating module dependencies. Please wait ...
    [2013-04-20 22:05] [ALPM-SCRIPTLET] >>> Generating initial ramdisk, using mkinitcpio. Please wait...
    [2013-04-20 22:05] [ALPM-SCRIPTLET] ==> Building image from preset: 'default'
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    [2013-04-20 22:05] [ALPM-SCRIPTLET] ==> Starting build: 3.8.7-1-ARCH
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> Running build hook: [base]
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> Running build hook: [udev]
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> Running build hook: [autodetect]
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> Running build hook: [block]
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> Running build hook: [keymap]
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
    [2013-04-20 22:05] [ALPM-SCRIPTLET] ==> Generating module dependencies
    [2013-04-20 22:05] [ALPM-SCRIPTLET] ==> Creating cat initcpio image: /boot/initramfs-linux.img
    [2013-04-20 22:05] [ALPM-SCRIPTLET] ==> Image generation successful
    [2013-04-20 22:05] [ALPM-SCRIPTLET] ==> Building image from preset: 'fallback'
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    [2013-04-20 22:05] [ALPM-SCRIPTLET] ==> Starting build: 3.8.7-1-ARCH
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> Running build hook: [base]
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> Running build hook: [udev]
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> Running build hook: [block]
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> Running build hook: [keymap]
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
    [2013-04-20 22:05] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
    [2013-04-20 22:05] [ALPM-SCRIPTLET] ==> Generating module dependencies
    [2013-04-20 22:05] [ALPM-SCRIPTLET] ==> Creating cat initcpio image: /boot/initramfs-linux-fallback.img
    [2013-04-20 22:05] [ALPM-SCRIPTLET] ==> Image generation successful
    [2013-04-20 22:05] [PACMAN] upgraded linux (3.8.5-1 -> 3.8.7-1)
    [2013-04-20 22:05] [PACMAN] upgraded orc (0.4.16-1 -> 0.4.17-1)
    [2013-04-20 22:05] [PACMAN] upgraded perl (5.16.3-1 -> 5.16.3-2)
    [2013-04-20 22:05] [PACMAN] upgraded psmisc (22.19-1 -> 22.20-1)
    [2013-04-20 22:05] [PACMAN] upgraded sqlite (3.7.16.1-1 -> 3.7.16.2-1)
    [2013-04-20 22:05] [PACMAN] upgraded sudo (1.8.6.p7-2 -> 1.8.6.p8-1)
    [2013-04-20 22:05] [PACMAN] upgraded systemd (198-2 -> 201-2)
    [2013-04-20 22:05] [PACMAN] upgraded systemd-sysvcompat (198-2 -> 201-2)
    [2013-04-20 22:05] [PACMAN] upgraded tar (1.26-2 -> 1.26-3)
    [2013-04-20 22:05] [PACMAN] upgraded wayland (1.0.6-1 -> 1.1.0-1)
    Thanks in advance!

    I just encountered the same issue with the latest update. I never had something similar to this:
    :: Retrieving packages ...
    archlinux-keyring-20130525-2-any 367,2 KiB 1023K/s 00:00 [################################################################] 100%
    linux-3.9.5-1-x86_64 45,5 MiB 1015K/s 00:46 [################################################################] 100%
    linux-headers-3.9.5-1-x86_64 5,6 MiB 1117K/s 00:05 [################################################################] 100%
    gnome-bluetooth-3.8.1-2-x86_64 835,0 KiB 955K/s 00:01 [################################################################] 100%
    gnome-documents-3.8.3-1-x86_64 305,0 KiB 1034K/s 00:00 [################################################################] 100%
    vlc-2.0.7-2-x86_64 7,6 MiB 1162K/s 00:07 [################################################################] 100%
    (6/6) checking keys in keyring [################################################################] 100%
    (6/6) checking package integrity [################################################################] 100%
    (6/6) loading package files [################################################################] 100%
    (6/6) checking for file conflicts [################################################################] 100%
    (6/6) checking available disk space [################################################################] 100%
    (1/6) upgrading archlinux-keyring [################################################################] 100%
    ==> Appending keys from archlinux.gpg...
    ==> Locally signing trusted keys in keyring...
    -> Locally signing key 0E8B644079F599DFC1DDC3973348882F6AC6A4C2...
    usr/bin/pacman-key: line 615: printf: write error: Broken pipe
    -> Locally signing key 684148BB25B49E986A4944C55184252D824B18E8...
    -> Locally signing key 44D4A033AC140143927397D47EFD567D4C7EA887...
    -> Locally signing key 27FFC4769E19F096D41D9265A04F9397CDFD6BB0...
    -> Locally signing key AB19265E5D7D20687D303246BA1DFB64FFF979E7...
    ==> Importing owner trust values...

  • What is this error fatal: Write failed: Broken pipe in log of N7K

    <186>: 2015 Mar 24 08:29:27 HKT: %DAEMON-2-SYSTEM_MSG: fatal: Write failed: Broken pipe .Client is 75.121.220.251,length of packet causing error 84 84 - sshd[684]
    what is this error fatal: Write failed: Broken pipe in log of N7K
    i find many brute force guessing login,
    what can we do next?
    [7m--More--[27m
    iled for user root#02# from 222.186.30.115 - sshd[23714]
    [7m--More--[27m
    2015 Mar 24 07:17:25 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root#02##02# from 222.186.30.115 - sshd[23714]
    [7m--More--[27m
    2015 Mar 24 07:17:28 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root from 222.186.30.115 - sshd[23715]
    [7m--More--[27m
    2015 Mar 24 07:17:28 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root#02# from 222.186.30.115 - sshd[23715]
    [7m--More--[27m
    2015 Mar 24 07:17:28 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root#02##02# from 222.186.30.115 - sshd[23715]
    [7m--More--[27m
    2015 Mar 24 07:17:31 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root from 222.186.30.115 - sshd[23717]
    [7m--More--[27m
    2015 Mar 24 07:17:31 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root#02# from 222.186.30.115 - sshd[23717]
    [7m--More--[27m
    2015 Mar 24 07:17:31 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root#02##02# from 222.186.30.115 - sshd[23717]
    [7m--More--[27m
    2015 Mar 24 07:17:33 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root from 222.186.30.115 - sshd[23718]
    [7m--More--[27m
    2015 Mar 24 07:17:33 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root#02# from 222.186.30.115 - sshd[23718]
    [7m--More--[27m
    2015 Mar 24 07:17:34 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root#02##02# from 222.186.30.115 - sshd[23718]
    [7m--More--[27m
    2015 Mar 24 07:17:36 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root from 222.186.30.115 - sshd[23719]
    [7m--More--[27m
    2015 Mar 24 07:17:36 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa
    [7m--More--[27m
    iled for user root#02# from 222.186.30.115 - sshd[23719]
    [7m--More--[27m
    2015 Mar 24 07:17:36 xxxx %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication fa

    Restrict your vty line logins with an access-list to prevent Internet origin login attempts. 

  • Weblogic 8.1 SP6 with 10g SocketException: Write failed: Broken pipe

    Hi
    We have recently upgraded DB from 9.2.0 to 10.2.0 (DB installed on XP), Our application is deployed on WebLogic 8.1 SP6 (installed on Linux Enterprise 5.2), every thing worked fine but after upgrade, application server log throw following exception if i change connection pool to use url for 10g instead of 9i,
    Actions
    Updated thin client driver by following instructions from
    http://e-docs.bea.com/wls/docs81/jdbc/thirdparty.html#1110914 but it didnt work
    Any other suggestions
    java.net.SocketException: Write failed: Broken pipe
    at jrockit.net.SocketNativeIO.writeBytesPinned(I[BII)V(Native Method)
            at jrockit.net.SocketNativeIO.socketWrite(Ljava.io.FileDescriptor;[BII)V(Unknown Source)
            at java.net.SocketOutputStream.socketWrite0(Ljava.io.FileDescriptor;[BII)V(SocketOutputStream.java:???)
            at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
            at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
            at weblogic.servlet.internal.ChunkUtils.writeHeaderChunk(ChunkUtils.java:218)
            at weblogic.servlet.internal.ChunkUtils.writeChunkTransfer(ChunkUtils.java:259)
            at weblogic.servlet.internal.ChunkUtils.writeChunks(ChunkUtils.java:243)
            at weblogic.servlet.internal.ChunkOutput.flush(ChunkOutput.java:311)
            at weblogic.servlet.internal.ChunkOutput.checkForFlush(ChunkOutput.java:389)
            at weblogic.servlet.internal.ChunkOutput.print(ChunkOutput.java:271)
            at weblogic.servlet.internal.ChunkOutputWrapper.print(ChunkOutputWrapper.java:138)
            at weblogic.servlet.jsp.JspWriterImpl.print(JspWriterImpl.java:282)
            at jsp_servlet.__transferbetweenaccounts._writeText(__transferbetweenaccounts.java:172)
            at jsp_servlet.__transferbetweenaccounts._jspService(__transferbetweenaccounts.java:538)
            at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
            at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
            at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
            at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
            at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:646)
            at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:431)
            at com.bankframe.fe.statemachine.ext.connectors.servlet.JSPView.build(JSPView.java:114)
            at com.bankframe.fe.statemachine.ext.apps.View.build(View.java:64)
            at com.bankframe.fe.statemachine.base.RequestManager.manageRequest(RequestManager.java:364)
            at com.bankframe.fe.statemachine.ext.connectors.servlet.EntryServlet.delegateToRequestManager(EntryServlet.java:75)
            at com.bankframe.fe.statemachine.ext.connectors.servlet.EntryServlet.doPost(EntryServlet.java:105)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
            at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
            at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7047)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I can't guess this issue has to do with Database and its driver.
    Possible reason could be that the browser is closed when the site is rendering the response from the server.
    The error indicates the communication is broken.
    This particular servlet/jsp is trying to write something on the response stream for which the call started from the below line:
    at jsp_servlet.__transferbetweenaccounts._writeText(__transferbetweenaccounts.java:172)

  • Agentry: SSL Error - broken pipe

    Hi,
    We have a work manager 5.2 modified version running on our production environment and lately we are experiencing some weird errors when the users try to synchronize.
    Sometimes (maybe 50% of the attempts...) the synchronization process is stuck and the client doesn't show any error at all. It's just waiting while loading a complex table, replacing definitions or anything, but never finishing. Inspecting the server logs I've seen that the error that seems to cause this issue is the following:
    2014/04/10 14:22:57.203:       + ANGEL Connection=XXX.XX.XXX.XXX:XXXXX
    2014/04/10 14:22:57.203:         + ANGEL Vine=1848370469
    2014/04/10 14:22:57.203:           + User=XXXXX
    2014/04/10 14:22:57.203:             + Server=Agentry
    2014/04/10 14:22:57.203:               + Complex Table=ctmaterialstoragelocation
    2014/04/10 14:22:57.203:                 + User=XXXXX
    2014/04/10 14:22:57.203:                   + ANGEL Vine=1848370469
    2014/04/10 14:22:57.203:                     + ANGEL Connection=XXX.XX.XXX.XXX:XXXXX
    2014/04/10 14:22:57.203:                       + Data Chunk=0
    2014/04/10 14:22:57.203:                         SSL error: error:2007107C:BIO routines:BIO_write:broken pipe
    This time it happened while loading the complex table ctmaterialstoragelocation but it's just an example. It can happen in any other step.
    Do you think that this error is really related to SSL? I think it's not and my guess is that something is wrong with the network and the connection is broken but I don't know how to be sure about the root cause of the issue. Any clues that could help me?
    Thank you.
    Tags edited by: Michael Appleby

    Hi,
    I'm going to close this thread since I discovered that the issue is due to my company network problem.
    We haven't found the root cause, but after many attempts testing from my home wifi I don't face the problem, so it is not caused by the Agentry Server.

  • Inserting CLOBs 32k failed with error "Broken Pipe"

    Hi,
    We use WLS 8.1 SP2 and Oracle 8i and the oracle thin jdbc driver ojdbc14.jar shipped
    with WLS.
    Inserting a clob >32k an SQL exception is raised ("Broken Pipe") and the db connection
    is becoming stale. Then a restart of WLS is necessary.
    Perhaps the current driver doesn't work with 8i ??
    Any thoughts?
    Thanks in advance

    Thomas wrote:
    Joe Weinstein <[email protected]> wrote:
    Thomas wrote:
    Hi,
    We use WLS 8.1 SP2 and Oracle 8i and the oracle thin jdbc driver ojdbc14.jarshipped
    with WLS.
    Inserting a clob >32k an SQL exception is raised ("Broken Pipe") andthe db connection
    is becoming stale. Then a restart of WLS is necessary.
    Perhaps the current driver doesn't work with 8i ??
    Any thoughts?
    Thanks in advanceThe first thing to do is to try Oracle's latest version of the thin driver.
    Joe
    We switched to Oracle 9.2.0.4.0 and installed the latest thin driver ojdbc14.jar
    (for Oracle 9.2.0.3). But there is always the same problem.
    Ok. As a last step before contacting Oracle, would you run that code,
    changing it to get it's connection directly from the oracle driver?
    If the same problem occurs, we can file a TAR with Oracle.
    Joe
    This is the code:
    PreparedStatement ps = null;
    try {
    con.prepareStatement(DBConstants.CREATE_IMPORT_LOG_ERROR);
    ps.setLong(1, logId);
    ps.setLong(2, recNo);
    ps.setInt(3, errorType);
    if (rec == null) rec = "NULL RECORD";
    CharArrayReader cReader = new CharArrayReader(rec.toCharArray());
    ps.setCharacterStream(4, cReader, rec.length());
    ps.setInt(5, PDBConstants.IMPORT_LOG_ERROR_STATUS_OPEN);
    ps.setString(6, "A");
    ps.executeUpdate();
    Here is the stack trace:
    <Jul 15, 2004 3:30:25 PM MEST> <Info> <EJB> <BEA-010051> <EJB Exception occurred
    during invocation from home: [email protected]
    threw exception: javax.ejb.EJBException: nested exception is: java.sql.SQLException:
    No more data to read from socket
    javax.ejb.EJBException: nested exception is: java.sql.SQLException: No more data
    to read from socket
    java.sql.SQLException: No more data to read from socket
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1160)
    at oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:963)
    at oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:893)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:375)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1894)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1094)
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2132)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2015)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2877)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:608)
    at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:94)
    at com.bspartners.pdb.provider.ProviderDAO.logFailedRecord(ProviderDAO.java:254)
    at com.bspartners.pdb.provider.ProviderServiceBean.startImport(ProviderServiceBean.java:478)
    at com.bspartners.pdb.provider.ProviderService_ma1gog_EOImpl.startImport(ProviderService_ma1gog_EOImpl.java:46)
    at com.bspartners.pdb.provider.ProviderService_ma1gog_EOImpl_WLSkel.invoke(Unknown
    Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)

  • Ping timeouts at server and broken pipes at client

    I am experiencing unexpected broken pipe exceptions at the client side of a coherence server. These exceptions prevent our code to establish a connection to the cache server.
    Due to network restrictions, we are connecting client and server through Coherence*Extend.
    At the server side, the logs show the following message:
    DEBUG Coherence:3 - 2013-02-01 11:12:20.584/85.322 Oracle Coherence GE 3.7.1.5 <D6> (thread=Proxy:TcpProxyServicePof:TcpAcceptor, member=1): Closed: TcpConnection(Id=0x0000013C953D8F150AA202D9F632E5EAFD6BDDE1A713F026C65BC1E7CC1E5952, Open=false, Member(Id=0, Timestamp=2013-02-01 11:11:44.404, Address=127.0.0.1:0, MachineId=0, Location=site:,process:1612, Role=WeblogicServer), LocalAddress=10.162.2.217:28088, RemoteAddress=10.162.2.231:45202) due to:
    com.tangosol.net.messaging.ConnectionException: TcpConnection(Id=0x0000013C953D8F150AA202D9F632E5EAFD6BDDE1A713F026C65BC1E7CC1E5952, Open=true, Member(Id=0, Timestamp=2013-02-01 11:11:44.404, Address=127.0.0.1:0, MachineId=0, Location=site:,process:1612, Role=WeblogicServer), LocalAddress=10.162.2.217:28088, RemoteAddress=10.162.2.231:45202): did not receive a response to a ping within 500 millis
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.checkPingTimeout(Peer.CDB:12)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.Acceptor.checkPingTimeouts(Acceptor.CDB:7)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.onNotify(Peer.CDB:115)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
    at java.lang.Thread.run(Thread.java:662)
    And at the client side:
    ERROR (01/02/2013) 11:12:20 [threadsafe]Thread-15/AbstractComponentHandler Unable to create new instance 45067 ms
    com.tangosol.net.messaging.ConnectionException: TcpConnection(Id=0x0000013C953D8F150AA202D9F632E5EAFD6BDDE1A713F026C65BC1E7CC1E5952, Open=true, Member(Id=0, Timestamp=2013-02-01 11:11:44.404, Address=127.0.0.1:0, MachineId=0, Location=site:,process:1612, Role=WeblogicServer), LocalAddress=10.162.2.231:45202, RemoteAddress=10.162.2.217:28088)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.initiator.TcpInitiator$TcpConnection.send(TcpInitiator.CDB:35)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.send(Peer.CDB:29)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.post(Peer.CDB:23)
    at com.tangosol.coherence.component.net.extend.Channel.post(Channel.CDB:25)
    at com.tangosol.coherence.component.net.extend.Channel.request(Channel.CDB:18)
    at com.tangosol.coherence.component.net.extend.Channel.request(Channel.CDB:1)
    at com.tangosol.coherence.component.net.extend.RemoteNamedCache$BinaryCache.putAll(RemoteNamedCache.CDB:10)
    at com.tangosol.util.ConverterCollections$ConverterMap.putAll(ConverterCollections.java:1708)
    at com.tangosol.coherence.component.net.extend.RemoteNamedCache.putAll(RemoteNamedCache.CDB:1)
    at com.tangosol.coherence.component.util.SafeNamedCache.putAll(SafeNamedCache.CDB:1)
    at com.tangosol.net.cache.CachingMap.putAll(CachingMap.java:1023)
    Caused by: java.net.SocketException: Write failed: Broken pipe
    at jrockit.net.SocketNativeIO.writeBytesPinned(Native Method)
    at jrockit.net.SocketNativeIO.socketWrite(SocketNativeIO.java:46)
    at java.net.SocketOutputStream.socketWrite0(SocketOutputStream.java)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
    at java.io.BufferedOutputStream.write(BufferedOutputStream.java:104)
    at java.io.DataOutputStream.write(DataOutputStream.java:90)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.initiator.TcpInitiator$TcpConnection.send(TcpInitiator.CDB:27)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.send(Peer.CDB:29)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.post(Peer.CDB:23)
    at com.tangosol.coherence.component.net.extend.Channel.post(Channel.CDB:25)
    at com.tangosol.coherence.component.net.extend.Channel.request(Channel.CDB:18)
    at com.tangosol.coherence.component.net.extend.Channel.request(Channel.CDB:1)
    at com.tangosol.coherence.component.net.extend.RemoteNamedCache$BinaryCache.putAll(RemoteNamedCache.CDB:10)
    at com.tangosol.util.ConverterCollections$ConverterMap.putAll(ConverterCollections.java:1703)
    at com.tangosol.coherence.component.net.extend.RemoteNamedCache.putAll(RemoteNamedCache.CDB:1)
    at com.tangosol.coherence.component.util.SafeNamedCache.putAll(SafeNamedCache.CDB:1)
    at com.tangosol.net.cache.CachingMap.putAll(CachingMap.java:1023)
    I can ping the client machine from the server without a problem.
    Has anybody seen this before?
    Edited by: 982740 on Feb 1, 2013 2:29 AM

    Hi user,
    It seems from the log that when the proxy node accepts your client connection the client fails to respond to a ping request down the same pipe. Does this happen consistently? If so, no putAll would ever succeed.
    I have to admit I've never seen this behaviour before. I can't see how this would be a firewall port issue, as the connection has been established... the only things I can think of would be a) your weblogic client node is running way to hot and doesn't respond to the grids ping request in time, b) Some very aggressive network infrastructure is killing the connection just after its created, or c) aliens are interfering with your system.
    sorry I can't be of more help,
    Andy

  • Sftp fails on OS X Mavericks with broken pipe

    I'm (eventually) getting a broken pipe failure when attempting to connect an sftp session to a local Ubuntu Linux host. I can open an ssh session with no problems. I've tried with both password and public key authentication, and this doesn't seem to be the problem (see debug output below).
    From an Ubuntu VM running under Fusion on the same Mac I can connect without problems (see second listing below).
    Can anyone tell me what the problem is?
    Tail of the debug listing for the OS-X session follows:
    debug1: Host 'pptablet.local' is known and matches the RSA host key.
    debug1: Found key in /Users/ppanish/.ssh/known_hosts:1
    debug2: bits set: 515/1024
    debug1: ssh_rsa_verify: signature correct
    debug2: kex_derive_keys
    debug2: set_newkeys: mode 1
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: expecting SSH2_MSG_NEWKEYS
    debug2: set_newkeys: mode 0
    debug1: SSH2_MSG_NEWKEYS received
    debug1: Roaming not allowed by server
    debug1: SSH2_MSG_SERVICE_REQUEST sent
    debug2: service_accept: ssh-userauth
    debug1: SSH2_MSG_SERVICE_ACCEPT received
    debug2: key: /Users/ppanish/.ssh/id_rsa (0x7ff23a40bb10),
    debug2: key: /Users/ppanish/.ssh/id_dsa (0x0),
    debug1: Authentications that can continue: publickey,password
    debug1: Next authentication method: publickey
    debug1: Offering RSA public key: /Users/ppanish/.ssh/id_rsa
    debug2: we sent a publickey packet, wait for reply
    debug1: Server accepts key: pkalg ssh-rsa blen 279
    debug2: input_userauth_pk_ok: fp 6b:75:d3:ab:53:b1:da:fc:56:1c:30:50:30:27:d7:fc
    debug1: Authentication succeeded (publickey).
    Authenticated to pptablet.local ([fd1c:e6c9:ee1e::21c:7eff:fe05:8921]:22).
    debug2: fd 6 setting O_NONBLOCK
    debug1: channel 0: new [client-session]
    debug2: channel 0: send open
    debug1: Requesting [email protected]
    debug1: Entering interactive session.
    debug2: callback start
    debug2: fd 5 setting TCP_NODELAY
    debug2: client_session2_setup: id 0
    debug1: Sending environment.
    debug1: Sending env LANG = en_US.UTF-8
    debug2: channel 0: request env confirm 0
    debug1: Sending subsystem: sftp
    debug2: channel 0: request subsystem confirm 1
    debug2: callback done
    debug2: channel 0: open confirm rwindow 0 rmax 32768
    Write failed: Broken pipe
    Connection closed
    The following is the end of the debug listing for a successful session from the Ubuntu VM running on the Mac, starting where the OS X implementation fails. Am I correct in thinking that OS X is failing to respond to a negotiation of parameters indicated by the line with asterisks in this listing?:
    debug2: channel 0: open confirm rwindow 0 rmax 32768
    **debug2: channel 0: rcvd adjust 2097152**
    debug2: channel_input_status_confirm: type 99 id 0
    debug2: subsystem request accepted on channel 0
    debug2: Remote version: 3
    debug2: Server supports extension "[email protected]" revision 1
    debug2: Server supports extension "[email protected]" revision 2
    debug2: Server supports extension "[email protected]" revision 2
    debug2: Server supports extension "[email protected]" revision 1
    Connected to pptablet.local.

    I can't get HP Scan to work. From my investigations, HP failed to update /Library/Image Capture/Support/Hewlett-Packard/Frameworks/HPScanProfiles.framework/Versions/A/ HPScanProfiles to point to /Library/Printers/hp/Frameworks/HPDeviceModel.framework/Versions/4.0/HPDeviceMo del places, vice /HPDeviceModel.framework/Versions/3.0. I can launch HP Scan, but an error comes up, which basically says reinstall the HP software, not the HP Printer Drivers update. I'm still working on that step.
    Using the HP Photosmart C4600 Series app, the Printers & Scanners prefPane, or Image Capture, I can get the scanner to work and it saves without any issues.

  • PL/SQL Web Service: Broken Pipe

    We have successfully deployed PL/SQL Web Services on the Oracle Application Server 10g with about 6 containers. The web services are being consumed by a .NET application. All seems to be working well but we continually are having intermittent (every 2-3 days) "BROKEN PIPE" errors which is causing us to bounce the container constantly. This is not very effecient for a production environment. Does anybody have any ideas........? Here is what shows up in the log:
    javax.servlet.ServletException: Io exception: Broken pipe
    at swprodweb.__Ws_reservationImplSPWrapper.destroy(__Ws_reservationImplSPWrapper.java:605)
    at oracle.j2ee.ws.RpcWebService.destroy(RpcWebService.java:93)
    at com.evermind.server.http.ServletInstanceInfo.destroy(ServletInstanceInfo.java:127)
    at com.evermind.server.http.HttpApplication.destroyServlets(HttpApplication.java:5805)
    at com.evermind.server.http.HttpApplication.destroy(HttpApplication.java:5732)
    at com.evermind.server.http.HttpSite.destroy(HttpSite.java:881)
    at com.evermind.server.http.HttpServer.destroy(HttpServer.java:613)
    at com.evermind.server.ApplicationServer.destroy(ApplicationServer.java:2033)
    at com.evermind.server.ApplicationServerShutdownHandler.run(ApplicationServerShutdownHandler.java:39)
    at java.lang.Thread.run(Thread.java:534)
    So everytime I see this error I know that we have to bounce the container. Very Frustrating!!

    Hi,
    Although it's a long time since you posted your message, I nowadays working with this issue, that is, calling web services from Oracle database 10g through UTL_DBWS package. It turns out that almost 3 of 100 requests fail due to this error (broken pipe). Actually, the trace is:
    ERROR on line 1:
    ORA-29532: Java call finished due to an unresolved exception: HTTP
    transport error: javax.xml.soap.SOAPException:
    java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message
    send failed: send failed
    Broken pipe
    ORA-06512: en "SYS.UTL_DBWS", línea 403
    ORA-06512: en "SYS.UTL_DBWS", línea 400
    I'm looking for the cause of this error. Has anyone any idea about this?
    Thanks a lot.
    Luis Serrano.

  • The "alsa audio output error: cannot write: Broken pipe" problem

    [Solved]
    (No place for this word in the Subject field, so I put it here.)
    Hi Arch community!
    I noticed I have this problem and not sure when in started. Several months ago I bought and installed new videocard "GeForce GT 630". Right after installation I lost sound in the system. Having internal sound card (in mainboard) and SB Audigy2 (PCI), I searched for solution and found I had to disable "snd_hda_intel" module to restore sound to work through PCI sound card. Did it.
    echo "blacklist snd_hda_intel" >> /etc/modprobe.d/no-nvidia-sound.conf
    After that sound was working as it should. And I noticed recently that during playing of any sound file the sound interrupts. If run VLC from CLI I get "alsa audio output error: cannot write: Broken pipe" message. And my system hasn't been upgraded since I don't know when. I still ran Firefox 26. So googled again and found it's a bug in a kernel or somewhere else.
    ==========================================
    https://bugs.freedesktop.org/show_bug.cgi?id=69942 :
    2013-10-01 01:39:40 UTC
    I ran a system update last night, and this issue appears to have been corrected.
    ==========================================
    And so I thought upgrade would fix my problem since mainstream bug is fixed. After upgrade sound interrupts again, maybe even more often.
    Do you guys have this issue and does anyone have a solution?
    Last edited by Mr. Alex (2014-06-26 18:55:59)

    Not particularly wise to blacklist the module, since it probably is also used by the integrated sound card. With vid and pid you could just disable the nvidia card alone using parameter enable=0. Unless you do not mind having both disabled.
    Where do I need to input "enable=0"? When I was searching for solution to make my Creative card work with new nVidia card I installed, the only way I found was blacklisting the module.
    dmesg says:
    [ 20.448086] nvidia 0000:02:00.0: irq 42 for MSI/MSI-X
    [ 21.112331] NVRM: Your system is not currently configured to drive a VGA console
    [ 21.112340] NVRM: on the primary VGA device. The NVIDIA Linux graphics driver
    [ 21.112345] NVRM: requires the use of a text-mode VGA console. Use of other console
    [ 21.112349] NVRM: drivers including, but not limited to, vesafb, may result in
    [ 21.112352] NVRM: corruption and stability problems, and is not supported.
    Then:
    lsmod | grep 'snd'
    snd_ca0106 36242 0
    snd_ac97_codec 114896 1 snd_ca0106
    ac97_bus 1270 1 snd_ac97_codec
    snd_rawmidi 20278 1 snd_ca0106
    snd_seq_device 5244 1 snd_rawmidi
    snd_pcm 83207 2 snd_ac97_codec,snd_ca0106
    snd_timer 19294 1 snd_pcm
    snd 60780 6 snd_ac97_codec,snd_timer,snd_pcm,snd_rawmidi,snd_seq_device,snd_ca0106
    soundcore 5551 1 snd
    I guess my card is "snd_ca0106". If yes,
    # systool -v -m snd_ca0106
    Module = "snd_ca0106"
    Attributes:
    coresize = "36242"
    initsize = "0"
    initstate = "live"
    refcnt = "0"
    taint = ""
    uevent = <store method only>
    Parameters:
    enable = "Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y"
    id = "(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)"
    index = "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1"
    subsystem = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
    Sections:
    .bss = "0xffffffffa0814780"
    .data = "0xffffffffa0813300"
    .exit.text = "0xffffffffa0811a1e"
    .gnu.linkonce.this_module= "0xffffffffa0814500"
    .init.text = "0xffffffffa0817000"
    .note.gnu.build-id = "0xffffffffa0811a30"
    .rodata = "0xffffffffa0811a80"
    .rodata.str1.1 = "0xffffffffa08123dc"
    .rodata.str1.8 = "0xffffffffa0812130"
    .strtab = "0xffffffffa0818c10"
    .symtab = "0xffffffffa0817020"
    .text = "0xffffffffa080d000"
    __mcount_loc = "0xffffffffa0812f98"
    __param = "0xffffffffa0812f18"
    __verbose = "0xffffffffa0814460"
    Where would I look for "max_buffer_size" parameter?

  • Broken Pipe Error-unable to write to socket for second attempt

    Hello,
    I am opening socket connection wuth C-server program.
    I am able to write and read from socket for first time but when tried to write second time in the same sequence gives broken pipe error.
    As seen in the code initialize() methods works perfectly fine,
    Pipe broken error is encountered for processRequest() method for writeBytes(begnmsg+"\n") method.
    Please suggest solution asap.
    Following is the code
    import java.io.*;
    import java.net.*;
    public class PowerModelClient {
         Socket kkSocket = null;
    BufferedReader in = null;
         PrintWriter out = null;
         DataOutputStream os = null;
              char m_eomChar = '\n';
    public PowerModelClient(){
    try{
    //Opens socket connection with C-server program,
    openConnection();
    System.out.println("connected to server");
    //Sends data base information to C-server program and receives acknowledgement from it.
    String recv = initialize();
    System.out.println("Initialize successful"+recv);
         try{
    // Sleep for a short period of time
         Thread.sleep ( 10000 );
    catch (InterruptedException ie) {}
         System.out.println("Initialize successfu 22l");
    //Sends data base information to C-server program and receives acknowledgement from it.
    processRequest();
    //Closes socket connection
         closeConnection();
         System.out.println("Comesout to do QUIT ");
    catch(Exception e){
         System.out.println("Error in main::"+e.toString());
         public static void main(String[] args) throws IOException {
                             new PowerModelClient();
    Opens socket connection with C-server program,
    public void openConnection() throws IOException{
    try {
                        kkSocket = new Socket("server",port);               os = new DataOutputStream(kkSocket.getOutputStream());
         //out = new PrintWriter(kkSocket.getOutputStream(),true);
    in = new BufferedReader(((java.io.Reader)(new InputStreamReader(kkSocket.getInputStream()))));
         } catch (UnknownHostException e) {
              System.err.println("Don't know about host: server.");
                        System.exit(1);
                   } catch (IOException e) {
                        System.out.println("Couldn't get I/O for the connection to: server."+e.getMessage());
                        System.exit(1);
         Sends data base information to C-server program and receives acknowledgement from it.
         This makes the C program to connect with Database.
         The data send to socket should be tagged between @BEGMSG@\nand @ENDMSG@\n
         Similary data obtained from socket will be tagged between @BEGMSG@\n and @ENDMSG@\n
    public String initialize() throws IOException{
                   int ibyteread = 0;
              String fromServer = "";
              String beginmsg=padString("@BEGMSG@");
              String endmsg = padString("@ENDMSG@");
              String recv = "";
              if (kkSocket != null ) {
    try {
                        // Set the socket timeout for ten seconds
                   //     kkSocket.setSoTimeout(10000);
                                       //String data = padString("INIT\tabcd\tisderssddsdg\tdrtrs1\twetewte");                              os.writeBytes(beginmsg+m_eomChar);
                   in.read();
              os.flush();
              os.writeBytes(data+m_eomChar);
              in.read();
         os.flush();
         os.writeBytes(endmsg+m_eomChar);
         os.flush();
         recv = readResponse(in);
    } catch (UnknownHostException e) {
    System.err.println("Trying to connect to unknown host: " + e);
                                                 // Exception thrown when network timeout occurs
                             catch (InterruptedIOException iioe)
                             System.err.println ("Remote host timed out during read operation");
                             catch (IOException e) {
                             System.err.println("IOException: " + e);
                             catch (Exception e) {
                   System.err.println("Exception: " + e);
              return recv;
    Sends data after database connection is established to socket for entitlement processing
    and will receive acknowledgement from server.
    public void processRequest() throws IOException{
                   int ibyteread = 0;
                   String beginmsg=padString("@BEGMSG@");
                   String endmsg = padString("@ENDMSG@");
                   String fromServer = "";
              if (kkSocket != null ) {
                   System.out.println("processRequest");
    try {
                             kkSocket.setSendBufferSize(1024);
                             kkSocket.setSoTimeout (10000);
                                       kkSocket.setTcpNoDelay(true);
         os.writeBytes(beginmsg+m_eomChar);
         int i = in.read();
         System.out.println("Data read is :"+i);
         os.writeBytes(padString("PAEL\t1056209\t269732\t02/01/2003")+m_eomChar);
    in.read();
    System.out.println("Data read is :"+i);
    out.flush();
    System.out.println("Data read is :"+ibyteread);
    os.writeBytes(endmsg+m_eomChar);
    ibyteread = in.read();
    readResponse(in);
    System.out.println("-----end Processing:--------");
    } catch (UnknownHostException e) {
    System.err.println("Trying to connect to unknown host: " + e);
    // Exception thrown when network timeout occurs
    catch (InterruptedIOException iioe)
    System.err.println ("Remote host timed out during read operation");
    catch (Exception e) {
    System.err.println("Exception: " + e);
    The socket requires data to be of length 1024 character, so the renaining length is padded with empty string"\0"
    public String padString(String value){
              StringBuffer strBuff = new StringBuffer(value);
                   while(strBuff.toString().length() != 1023){
                   strBuff.append("\0");
              //System.out.println("the length is "+ strBuff.toString().length());
              return strBuff.toString();
    Close socket
    public void closeConnection() throws IOException{
         in.close();
         os.close();
         kkSocket.close();
    public String readResponse(BufferedReader in) {
    boolean flag = false;
              java.lang.StringBuffer stringbuffer = new      StringBuffer(1024);
    try {
    // for(char ac[] = new char[1]; in.read(ac, 0, 1) != -1;) {
    char ac[] = new char[1024];
    if (in.read(ac, 0, 1) != -1) {
    stringbuffer.append(ac[0]);
    for(; in.read(ac, 0, 1) != -1 && ac[0] != m_eomChar; stringbuffer.append(ac[0]));
    if(ac[0] == m_eomChar) {
    System.out.println("received '" + stringbuffer.toString() + "'");
    } else {
    System.out.println("Message received by client was not properly terminated and was ignored."+stringbuffer.toString());
    } else {
    System.out.println("WARN: no response?");
    } catch(java.io.IOException ioexception) {
    System.out.println("Error in client " + ioexception + "Killing client.");
              return stringbuffer.toString();

    if I were you I would put the lines
    kkSocket.setSendBufferSize(1024);
    kkSocket.setSoTimeout (10000);
    kkSocket.setTcpNoDelay(true);
    before connecting to the server, not after the initial message was sent.

  • Web Service Error: java.sql.SQLException: Io exception: Broken pipe

    Hi,
    I am using JDeveloper PL/SQL web service generator. After some time we start receiving the "java.sql.SQLException: Io exception: Broken pipe" exception when we invoke the web service. I've noticed that the error starts occuring once all the connections in the database have been closed.
    Here are the Data Source configurations I tried using:
    <data-source name="jdev-connection-SACS" class="com.evermind.sql.DriverManagerDataSource" location="jdbc/SACSCoreDS" xa-location="jdbc/xa/SACSXADS" ejb-location="jdbc/SACSDS" pooled-location="jdbc/MACSPooledDS" connection-driver="oracle.jdbc.driver.OracleDriver" username="xxx" password="xxxx" url="jdbc:oracle:thin:@test:1521:SACS" inactivity-timeout="30" connection-retry-interval="3" max-connections="5" min-connections="0" wait-timeout="20"/>
    AND I also tried:
    <data-source name="jdev-connection-SACS" class="com.evermind.sql.DriverManagerDataSource" location="jdbc/SACSCoreDS" xa-location="jdbc/xa/SACSXADS" ejb-location="jdbc/SACSDS" pooled-location="jdbc/SACSPooledDS" connection-driver="oracle.jdbc.driver.OracleDriver" username="xxxx" password="xxxx" url="jdbc:oracle:thin:@xxxx:1521:SACS" inactivity-timeout="30"/>
    That did not make any changes.
    I then changed ConnectionContext.KEEP_CONNECTION to ConnectionContext.CLOSE_CONNECTION in the <name>Base.sqlj:
    public void release() throws SQLException
    { if (__tx!=null && __onn!=null) __tx.close(ConnectionContext.CLOSE_CONNECTION);
    __onn = null; __tx = null;
    That did not help either. We are running these web services on the standalone OC4J and Oracle 8.1.7.2 database with the MTS installed on it.

    Hi,
    I don't use JDeveloper to develop stored procedure web services. However, I do use WebServicesAssembler.jar to generate stored procedure web services.
    I had the same problem as you did. After some research in this forum, I was informed that it's a bug in the web services generator itself. I was also informed that the newest version of WebServicesAssembler.jar is supposed to fix the problem.
    If you want, you can always write a batch job to restart the OC4J periodically. The command is
    dcmctl -ct oc4j -co home
    If I come across the posting containing the answer to your solution, I will forward it to you.
    Good luck
    Jack

  • AppServer or Web App error (9.0.4) and BROKEN PIPE

    Hi,
    I'm still using 9.0.4, and have started getting the following message in the base server.log of the Oracle Container.....
    07/12/16 21:18:33 Internal error in HttpServer
    java.lang.ArrayIndexOutOfBoundsException
    at java.lang.System.arraycopy(Native Method)
    at com.evermind.server.http.EvermindServletOutputStream.write(EvermindServletOutputStream.java:216)
    at com.evermind.server.http.EvermindServletOutputStream.write(EvermindServletOutputStream.java:151)
    at com.evermind.server.http.EvermindServletOutputStream.write(EvermindServletOutputStream.java:146)
    at com.evermind.server.http.EvermindHttpServletResponse.handleException(EvermindHttpServletResponse.java:1743)
    at com.evermind.server.http.EvermindHttpServletResponse.handleException(EvermindHttpServletResponse.java:1572)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:803)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    It's happening a lot, but I can't see any impact when using our web apps. Looking at my three most used web apps, I see the same error appearing at identical times in the individual log files, but they are all using different pages, so don't think they are 'causing' this prob.
    Does anyone think I have something wrong with the basic application server, or is this indeed an issue with a particular web application that's spreading it's error to other web apps? Example of the error in a web app below.....and what is a Broken Pipe error?
    Thanks in advance
    Iain
    07/12/16 21:18:33 web: Broken pipe
    07/12/16 21:18:33 web: Servlet error
    java.lang.ArrayIndexOutOfBoundsException
         at java.lang.System.arraycopy(Native Method)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindServletOutputStream.write(EvermindServletOutputStream.java:216)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindJSPWriter.writeOut(EvermindJSPWriter.java:456)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindJSPWriter.jspflush(EvermindJSPWriter.java:373)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindJSPWriter.write(EvermindJSPWriter.java:522)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.EvermindJSPWriter.write(EvermindJSPWriter.java:447)
         at observations.first_2d_observationsYR._jspService(_first_2d_observationsYR.java:174)

    Raju --
    Thanks for the intelligent posting on a difficult issue for you.
    I wasn't aware of anything specifically being introduced that prevented the bootclasspath technique from working** in the 904 release.
    For 904, the bootclasspath needs to be put in the start parameters tag of the java-options tag.
    <process-type id="home" module-id="OC4J" status="enabled">
    <module-data>
    <category id="start-parameters">
    <data id="java-options" ... -Xbootclasspath/a:/java/lib/xerces.jar"/>
    </category>
    </module-data>
    </process-type>
    You can also try copying the xerces.jar into the jre/lib/ext directory so it's loaded by the system classloader and see if that works**. This will put xerces at the extension level so
    **these workarounds are not supported and will put you in an unsupported situation if a problem occurs.
    The good news is that have taken steps to clearly enable the separation of container versus appplication class spaces in thenext production release (10.1.3) of OC4J. We will be providing a new classloading model which cleanly separates the two namespaces and allows applications to provide their own versions or distributions of class libraries with no collisions with the OC4J runtime libraries.
    I don't know of any easy ways to do what you need -- other than reworking the app to use JAXP so that the parser implementation used is pluggable as you kind of allude to. If it was possible, I'd do that rather than hard coding in the use of the Oracle XML parser.
    But just to reiterate, switching in xerces at the bootclasspath level is not a supported operation since it may have an effect on the OC4J runtime operation.
    cheers
    -steve-

  • Java.io.IOException: Broken pipe error in R12 oacore log

    All,
    Very frequently my R12 login page is going to blank screen at the same time oacore application log has below,
    20:02:27.606 html: Servlet error
    java.io.IOException: Broken pipe
    at sun.nio.ch.FileDispatcher.write0(Native Method)
    at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:41)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
    at sun.nio.ch.IOUtil.write(IOUtil.java:75)
    at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
    at java.nio.channels.Channels.write(Channels.java:71)
    at java.nio.channels.Channels.access$000(Channels.java:58)
    at java.nio.channels.Channels$1.write(Channels.java:145)
    at com.evermind.server.http.AJPOutputStream.endRequest(AJPOutputStream.java:117)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:317)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:735)
    Application - 12.1.3
    DB - 11.2.0.3
    OS - AIX 6.1
    Has anyone faced this before ? Any note-id/suggestions pls ?

    Hi;
    Very frequently my R12 login page is going to blank screen at the same time oacore application log has below,
    20:02:27.606 html: Servlet error
    java.io.IOException: Broken pipe
    at sun.nio.ch.FileDispatcher.write0(Native Method)Please review:
         How to resolve Broken Pipe errors in E-Business Suite R12 ? [ID 1480156.1]
    Regard
    Helios

  • Broken Pipe Error when using database link

    We are using WebLogic 6.1 sp2 / oracle database 8.1.6. / thin drivers.
    The connection works fine, unit I try to access a view that has a union and db links
    in it.
    We have used one or the other (view or a dblink) and it works, but when used together,
    we get broken pipe error.
    I haven't proven that this is the cause, I will try to setup a test, but I was wondering
    if this is a known issue or what ??
    thanks
    Rich

    You need to create the catalog views that support distributed SQL in your remote database (the database you connect to via db_link).
    To create these views, connect "/ as sysdba" and run:
    $ORACLE_HOME/rdbms/admin/catproc.sql
    which will in turn call several other scripts including: $ORACLE_HOME/rdbms/admin/catrpc.sql (which creates your missing view)
    It is best to run the whole catproc.sql script (and not just the catrpc script).
    You can run and rerun catproc.sql several times quite safely.
    Cheers

Maybe you are looking for

  • Essbase 7.x vs essbase 9.x

    Hi Folks, Can anyone tell me what are added advantage of essbase 9.x over 7.x and 11.x over 9.x ? .....urgernt plz.

  • AEBS and TC - wired connection, same wireless network

    I need some advice. I have AEBS and TC. Currently, the connection between them is "Extend wireless network". They are located on the opposite ends of my condo. I am doing some work on my unit and I have a chance to draw an ethernet cable between them

  • Can anyone explain to me how to print to a USB printer over the internet?

    I figured out hoW to print from my iPhone, now id like to print from anywhere from my iPhone but I cant figure this out... THANKS ! Message was edited by: nasmac

  • Zen Touch: Device to PC transfer er

    I recently formatted my harddri've and want to put all my music back on my PC before I upgrade my Zen Touch's firmware as to not lose all my music and have to go through the whole process again. BUT....when I select all of my songs in Media Source an

  • Safari print style sheet problem

    I've been working on a new site design and for the first time I'm trying to use a different style sheet for printing a page (via the link media="print" tag).  So far I've had success with this technique except when printing with Safari  The printed p