Extra bytes at the end of class file listeners/SessionListener ?

wen i am running my JSP pages i am getting this error...
can anybody explain this error, Y it is comming...
SEVERE: Error configuring application listener of class listeners.SessionListener
java.lang.ClassFormatError: Extra bytes at the end of class file listeners/SessionListener
     at java.lang.ClassLoader.defineClass1(Native Method)
     at java.lang.ClassLoader.defineClass(Unknown Source)
     at java.security.SecureClassLoader.defineClass(Unknown Source)
     at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812)
     at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
     at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3677)
     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4183)
     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
     at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
     at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
     at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
     at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1112)
     at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
     at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
     at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
     at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
     at org.apache.catalina.core.StandardService.start(StandardService.java:450)
     at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
     at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jun 24, 2008 10:58:29 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)

The class files are broken. Recompile them. If you're uploading them, doublecheck if the FTP program used doesn't do mad things with binary files.

Similar Messages

  • Extra bytes at the end of class file error

    I have created an applet.
    it worked fine when i ran it with appletviewer.
    it ran fine when i opened it with a browser (when it still was on my computer and not on the net).
    now, when i uploaded all the files, when try to open the page where my applet should be, the applet doesn't start and the console writes:
    java.lang.ClassFormatError: Extra bytes at the end of class file ImageHolderNotifier
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    i tried rebuilding the project and uploading all the .class files from scratch... still, no change :-/
    i have compiled it using eclipse 3.1.0, JDK1.5.0_02.
    my JRE is 1.5.0_02
    i've tried running it both with Internet Explorer and FireFox...

    Works locally but not after uploading.
    Must be uploaded wrong then (ftp ascii??) or it's the web server.

  • BUG: Extra characters at the end of attachment file names

    I received complaints that my attachments didn't open on the PC's of the recipients. After I saw the messages I noticed there were extra characters at the end of their file names. That's why they wouldn't open. When I looked into my sent mail folder it was there as well. The addition took place when I sent the mail, while composing everything looked fine. It took me a while to realize the pattern. There was one extra for every non-ASCII character in the file name.
    Apparently Mail.app is using two different libraries. The other one counts the non-ASCII characters as two while the other doesn't. I don't know whether Finder still uses MacRoman or Unicode, but this seems to relate to double-byte characters.
    The short term solution is to use only ASCII for file names, but that's not what OS X is all about.

    The class files are broken. Recompile them. If you're uploading them, doublecheck if the FTP program used doesn't do mad things with binary files.

  • Windows 7 SP1 PRO SMB2 Client Behaviour Quirk - Last SMB2 Query_Info request in compounded requests, contains 1 extra byte in the end after file_id

    Hi,
    From the specification, SMB2 Query Info is defined as -Query_Info {
        uint16_t structure_size;
        uint8_t info_type;
        uint8_t file_info_class;
        uint32_t output_buf_len;
        uint16_t input_buffer_off;
        uint16_t res;
        uint32_t input_buf_len;
        uint32_t additional_information;
        uint32_t flags;
        uint8_t file_id[16];
    I am looking at smb traffic between 2 Windows 7 Pro machines and I see that for SMB Query_Info Request records, for some compounded requests, the last Query_Info request has an extra byte after the 16 byte file_id.  This is only for SMB2 Query_Info
    requests.
    On checking Query_Info requests that are single(not compounded), I don't see this extra byte.
    I have attached images below from wireshark for both with and without this extra byte, from the same flow.
    Can we consider this a quirk of the windows client issuing Query_Info Compounded requests?
    Image1 - http://postimg.org/image/th8fubvuz <- As you can see, this is a comounded series of requests and the last requset which is a query_info request *HAS* an extra byte after the file_id.
    Image2 - http://postimg.org/image/kkp4adxe7/ <- As you can, this is a compounded series of requests and the last request which is a query_info request, DOES *NOT* HAVE an extra byte after the file_id unlike Image1
    Image3- http://postimg.org/image/5w7061vrr/ <- As you can see, this is a single Query_Info request, and we don't have the extra byte here after the file_id.

    We worked with cressnet and resolved these questions offline. Here is a summary of resolution.
    Regarding the comments on compounded messages with QueryInfo,
    this is not specific to QueryInfo.
    The receiver’s transport layer delivers the message to the SMB2 layer (server/redirector). The SMB2 PDU starts with its header. The PDU is casted and interpreted based on the SMB2 command. What matters is the message’s structure
    itself.
    The transport’s (e.g. Nbtss or SMBoverTCP) indicates the length of its payload. Each SMB2 message has a structure which may include some variable length fields. Padding is one element that may complement the message for alignment
    purpose. Any extra byte (s) that is not part of the SMB2 message fields would be irrelevant and ignored.
    Regarding the comments on ErrorData,
    the CHANGE_NOTIFY response packets look valid as documented in the [MS-SMB2] specification. In this particular case, even if the error is not a success code (i.e. STATUS_NOTIFY_ENUM_DIR), the response is an empty CHANGE_NOTIFY
    Response, rather than a standard ERROR Response.
    The exception cases that are not considered error messages are listed in [MS-SMB2] section 3.3.4.4. When in doubt, please consult the server processing of the specific SMB2 command.
    [MS-SMB2] 3.3.4.4 Sending an Error Response
    https://msdn.microsoft.com/en-us/library/cc246722.aspx
    When the server is responding with a failure to any command sent by the client, the response message MUST be constructed as described here. An error code other than one of the following indicates a failure:
    •         STATUS_MORE_PROCESSING_REQUIRED in an SMB2 SESSION_SETUP Response specified in section 2.2.6.
    •         STATUS_BUFFER_OVERFLOW in an SMB2 QUERY_INFO Response specified in section 2.2.38.
    •         STATUS_BUFFER_OVERFLOW in a FSCTL_PIPE_TRANSCEIVE, FSCTL_PIPE_PEEK or FSCTL_DFS_GET_REFERRALS Response specified in section 2.2.32.<190>
    •         STATUS_BUFFER_OVERFLOW in an SMB2 READ Response on a named pipe specified in section 2.2.20.
    •         STATUS_INVALID_PARAMETER in an FSCTL_SRV_COPYCHUNK or FSCTL_SRV_COPYCHUNK_WRITE response, when returning an SRV_COPYCHUNK_RESPONSE as described in section 3.3.5.15.6.2.
    •         STATUS_NOTIFY_ENUM_DIR in an SMB2 CHANGE_NOTIFY Response specified in section 2.2.36.
    [MS-SMB2] 3.3.5.19 Receiving an SMB2 CHANGE_NOTIFY Request
    https://msdn.microsoft.com/en-us/library/cc246747.aspx
    Change notification processing in the object store MUST be handled as specified in section 3.3.1.3. It is also outlined in [MS-CIFS] section 3.3.5.59.4.
    If the server is unable to copy the results into the buffer of the SMB2 CHANGE_NOTIFY Response, then the server MUST construct the response as described below, with an OutputBufferLength of zero, and set the Status in the SMB2
    header to STATUS_NOTIFY_ENUM_DIR.
    Thanks,
    Edgar

  • [Solved] Openbox's rc.xml error "Extra content at the end of document"

    I have a rather silly problem with Openbox.
    I'm not a programming genius so, for me, dealing with XML is a pain but I usually manage to get OB's menus and other docs to work. Ive been banging my head into a wall of xml trying to add my own entry to OpenBox's rc.xml file.  All I want to add is an Xfce terminal centred on my Twinview desktop.  I've done it in the past but right now I can't get the rc.xml file to work.  Whenever I re-configure OpenBox I get the following message spit out at me:
    Extra content at the end of document on line ###
    So far, this is what I've attempted to get this to work:
    - I have tried recopying a new rc.xml from /etc/xdg/openbox to my home directory's ~/.config/openbox.  I was assuming I'd botched it entirely and started over from the beginning.
    - I have cut/copy/pasted the commented paragraph, above my entry, with the same co-ordinates and with the "force position" set to "yes."
    -I've googled this error but I only found one or two semi-relevant hits (from this forum no less!)  Unfortunately I did not find a fix to the issue or a reason as to why this error crops up
    I know that it's probably something that is easily missed but I honestly can't see it.  I'm hoping someone on the forum will have run across this issue before and had it fixed.  Below is a copy of my current rc.xml.
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Do not edit this file, it will be overwritten on install.
    Copy the file to $HOME/.config/openbox/ instead. -->
    <openbox_config xmlns="http://openbox.org/3.4/rc">
    <resistance>
    <strength>10</strength>
    <screen_edge_strength>20</screen_edge_strength>
    </resistance>
    <focus>
    <focusNew>yes</focusNew>
    <!-- always try to focus new windows when they appear. other rules do
    apply -->
    <followMouse>no</followMouse>
    <!-- move focus to a window when you move the mouse into it -->
    <focusLast>yes</focusLast>
    <!-- focus the last used window when changing desktops, instead of the one
    under the mouse pointer. when followMouse is enabled -->
    <underMouse>no</underMouse>
    <!-- move focus under the mouse, even when the mouse is not moving -->
    <focusDelay>200</focusDelay>
    <!-- when followMouse is enabled, the mouse must be inside the window for
    this many milliseconds (1000 = 1 sec) before moving focus to it -->
    <raiseOnFocus>no</raiseOnFocus>
    <!-- when followMouse is enabled, and a window is given focus by moving the
    mouse into it, also raise the window -->
    </focus>
    <placement>
    <policy>Smart</policy>
    <!-- 'Smart' or 'UnderMouse' -->
    <center>yes</center>
    <!-- whether to place windows in the center of the free area found or
    the top left corner -->
    <monitor>Active</monitor>
    <!-- with Smart placement on a multi-monitor system, try to place new windows
    on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
    the active window is -->
    <primaryMonitor>1</primaryMonitor>
    <!-- The monitor where Openbox should place popup dialogs such as the
    focus cycling popup, or the desktop switch popup. It can be an index
    from 1, specifying a particular monitor. Or it can be one of the
    following: 'Mouse' - where the mouse is, or
    'Active' - where the active window is -->
    </placement>
    <theme>
    <name>Clearlooks</name>
    <titleLayout>NLIMC</titleLayout>
    <!--
    available characters are NDSLIMC, each can occur at most once.
    N: window icon
    L: window label (AKA title).
    I: iconify
    M: maximize
    C: close
    S: shade (roll up/down)
    D: omnipresent (on all desktops).
    -->
    <keepBorder>yes</keepBorder>
    <animateIconify>yes</animateIconify>
    <font place="ActiveWindow">
    <name>sans</name>
    <size>8</size>
    <!-- font size in points -->
    <weight>bold</weight>
    <!-- 'bold' or 'normal' -->
    <slant>normal</slant>
    <!-- 'italic' or 'normal' -->
    </font>
    <font place="InactiveWindow">
    <name>sans</name>
    <size>8</size>
    <!-- font size in points -->
    <weight>bold</weight>
    <!-- 'bold' or 'normal' -->
    <slant>normal</slant>
    <!-- 'italic' or 'normal' -->
    </font>
    <font place="MenuHeader">
    <name>sans</name>
    <size>9</size>
    <!-- font size in points -->
    <weight>normal</weight>
    <!-- 'bold' or 'normal' -->
    <slant>normal</slant>
    <!-- 'italic' or 'normal' -->
    </font>
    <font place="MenuItem">
    <name>sans</name>
    <size>9</size>
    <!-- font size in points -->
    <weight>normal</weight>
    <!-- 'bold' or 'normal' -->
    <slant>normal</slant>
    <!-- 'italic' or 'normal' -->
    </font>
    <font place="OnScreenDisplay">
    <name>sans</name>
    <size>9</size>
    <!-- font size in points -->
    <weight>bold</weight>
    <!-- 'bold' or 'normal' -->
    <slant>normal</slant>
    <!-- 'italic' or 'normal' -->
    </font>
    </theme>
    <desktops>
    <!-- this stuff is only used at startup, pagers allow you to change them
    during a session
    these are default values to use when other ones are not already set
    by other applications, or saved in your session
    use obconf if you want to change these without having to log out
    and back in -->
    <number>4</number>
    <firstdesk>1</firstdesk>
    <names>
    <!-- set names up here if you want to, like this:
    <name>desktop 1</name>
    <name>desktop 2</name>
    -->
    </names>
    <popupTime>875</popupTime>
    <!-- The number of milliseconds to show the popup for when switching
    desktops. Set this to 0 to disable the popup. -->
    </desktops>
    <resize>
    <drawContents>yes</drawContents>
    <popupShow>Nonpixel</popupShow>
    <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
    <popupPosition>Center</popupPosition>
    <!-- 'Center', 'Top', or 'Fixed' -->
    <popupFixedPosition>
    <!-- these are used if popupPosition is set to 'Fixed' -->
    <x>10</x>
    <!-- positive number for distance from left edge, negative number for
    distance from right edge, or 'Center' -->
    <y>10</y>
    <!-- positive number for distance from top edge, negative number for
    distance from bottom edge, or 'Center' -->
    </popupFixedPosition>
    </resize>
    <!-- You can reserve a portion of your screen where windows will not cover when
    they are maximized, or when they are initially placed.
    Many programs reserve space automatically, but you can use this in other
    cases. -->
    <margins>
    <top>0</top>
    <bottom>0</bottom>
    <left>0</left>
    <right>0</right>
    </margins>
    <dock>
    <position>TopLeft</position>
    <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
    <floatingX>0</floatingX>
    <floatingY>0</floatingY>
    <noStrut>no</noStrut>
    <stacking>Above</stacking>
    <!-- 'Above', 'Normal', or 'Below' -->
    <direction>Vertical</direction>
    <!-- 'Vertical' or 'Horizontal' -->
    <autoHide>no</autoHide>
    <hideDelay>300</hideDelay>
    <!-- in milliseconds (1000 = 1 second) -->
    <showDelay>300</showDelay>
    <!-- in milliseconds (1000 = 1 second) -->
    <moveButton>Middle</moveButton>
    <!-- 'Left', 'Middle', 'Right' -->
    </dock>
    <keyboard>
    <chainQuitKey>C-g</chainQuitKey>
    <!-- Keybindings for desktop switching -->
    <keybind key="C-A-Left">
    <action name="DesktopLeft">
    <dialog>no</dialog>
    <wrap>no</wrap>
    </action>
    </keybind>
    <keybind key="C-A-Right">
    <action name="DesktopRight">
    <dialog>no</dialog>
    <wrap>no</wrap>
    </action>
    </keybind>
    <keybind key="C-A-Up">
    <action name="DesktopUp">
    <dialog>no</dialog>
    <wrap>no</wrap>
    </action>
    </keybind>
    <keybind key="C-A-Down">
    <action name="DesktopDown">
    <dialog>no</dialog>
    <wrap>no</wrap>
    </action>
    </keybind>
    <keybind key="S-A-Left">
    <action name="SendToDesktopLeft">
    <dialog>no</dialog>
    <wrap>no</wrap>
    </action>
    </keybind>
    <keybind key="S-A-Right">
    <action name="SendToDesktopRight">
    <dialog>no</dialog>
    <wrap>no</wrap>
    </action>
    </keybind>
    <keybind key="S-A-Up">
    <action name="SendToDesktopUp">
    <dialog>no</dialog>
    <wrap>no</wrap>
    </action>
    </keybind>
    <keybind key="S-A-Down">
    <action name="SendToDesktopDown">
    <dialog>no</dialog>
    <wrap>no</wrap>
    </action>
    </keybind>
    <keybind key="W-F1">
    <action name="Desktop">
    <desktop>1</desktop>
    </action>
    </keybind>
    <keybind key="W-F2">
    <action name="Desktop">
    <desktop>2</desktop>
    </action>
    </keybind>
    <keybind key="W-F3">
    <action name="Desktop">
    <desktop>3</desktop>
    </action>
    </keybind>
    <keybind key="W-F4">
    <action name="Desktop">
    <desktop>4</desktop>
    </action>
    </keybind>
    <keybind key="W-d">
    <action name="ToggleShowDesktop"/>
    </keybind>
    <!-- Keybindings for windows -->
    <keybind key="A-F4">
    <action name="Close"/>
    </keybind>
    <keybind key="A-Escape">
    <action name="Lower"/>
    <action name="FocusToBottom"/>
    <action name="Unfocus"/>
    </keybind>
    <keybind key="A-space">
    <action name="ShowMenu">
    <menu>client-menu</menu>
    </action>
    </keybind>
    <!-- Keybindings for window switching -->
    <keybind key="A-Tab">
    <action name="NextWindow"/>
    </keybind>
    <keybind key="A-S-Tab">
    <action name="PreviousWindow"/>
    </keybind>
    <keybind key="C-A-Tab">
    <action name="NextWindow">
    <panels>yes</panels>
    <desktop>yes</desktop>
    </action>
    </keybind>
    <!-- Keybindings for running applications -->
    <keybind key="W-e">
    <action name="Execute">
    <startupnotify>
    <enabled>true</enabled>
    <name>Konqueror</name>
    </startupnotify>
    <command>kfmclient openProfile filemanagement</command>
    </action>
    </keybind>
    </keyboard>
    <mouse>
    <dragThreshold>8</dragThreshold>
    <!-- number of pixels the mouse must move before a drag begins -->
    <doubleClickTime>200</doubleClickTime>
    <!-- in milliseconds (1000 = 1 second) -->
    <screenEdgeWarpTime>400</screenEdgeWarpTime>
    <!-- Time before changing desktops when the pointer touches the edge of the
    screen while moving a window, in milliseconds (1000 = 1 second).
    Set this to 0 to disable warping -->
    <context name="Frame">
    <mousebind button="A-Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="A-Left" action="Click">
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="A-Left" action="Drag">
    <action name="Move"/>
    </mousebind>
    <mousebind button="A-Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="A-Right" action="Drag">
    <action name="Resize"/>
    </mousebind>
    <mousebind button="A-Middle" action="Press">
    <action name="Lower"/>
    <action name="FocusToBottom"/>
    <action name="Unfocus"/>
    </mousebind>
    <mousebind button="A-Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="A-Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    <mousebind button="C-A-Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="C-A-Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    <mousebind button="A-S-Up" action="Click">
    <action name="SendToDesktopPrevious"/>
    </mousebind>
    <mousebind button="A-S-Down" action="Click">
    <action name="SendToDesktopNext"/>
    </mousebind>
    </context>
    <context name="Titlebar">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Move"/>
    </mousebind>
    <mousebind button="Left" action="DoubleClick">
    <action name="ToggleMaximizeFull"/>
    </mousebind>
    <mousebind button="Middle" action="Press">
    <action name="Lower"/>
    <action name="FocusToBottom"/>
    <action name="Unfocus"/>
    </mousebind>
    <mousebind button="Up" action="Click">
    <action name="Shade"/>
    <action name="FocusToBottom"/>
    <action name="Unfocus"/>
    <action name="Lower"/>
    </mousebind>
    <mousebind button="Down" action="Click">
    <action name="Unshade"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="ShowMenu">
    <menu>client-menu</menu>
    </action>
    </mousebind>
    </context>
    <context name="Top">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize">
    <edge>top</edge>
    </action>
    </mousebind>
    </context>
    <context name="Left">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize">
    <edge>left</edge>
    </action>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="ShowMenu">
    <menu>client-menu</menu>
    </action>
    </mousebind>
    </context>
    <context name="Right">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize">
    <edge>right</edge>
    </action>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="ShowMenu">
    <menu>client-menu</menu>
    </action>
    </mousebind>
    </context>
    <context name="Bottom">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize">
    <edge>bottom</edge>
    </action>
    </mousebind>
    <mousebind button="Middle" action="Press">
    <action name="Lower"/>
    <action name="FocusToBottom"/>
    <action name="Unfocus"/>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="ShowMenu">
    <menu>client-menu</menu>
    </action>
    </mousebind>
    </context>
    <context name="BLCorner">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize"/>
    </mousebind>
    </context>
    <context name="BRCorner">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize"/>
    </mousebind>
    </context>
    <context name="TLCorner">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize"/>
    </mousebind>
    </context>
    <context name="TRCorner">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Left" action="Drag">
    <action name="Resize"/>
    </mousebind>
    </context>
    <context name="Client">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Middle" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    </context>
    <context name="Icon">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    <action name="ShowMenu">
    <menu>client-menu</menu>
    </action>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="ShowMenu">
    <menu>client-menu</menu>
    </action>
    </mousebind>
    </context>
    <context name="AllDesktops">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Left" action="Click">
    <action name="ToggleOmnipresent"/>
    </mousebind>
    </context>
    <context name="Shade">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Click">
    <action name="ToggleShade"/>
    </mousebind>
    </context>
    <context name="Iconify">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Left" action="Click">
    <action name="Iconify"/>
    </mousebind>
    </context>
    <context name="Maximize">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Middle" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Left" action="Click">
    <action name="ToggleMaximizeFull"/>
    </mousebind>
    <mousebind button="Middle" action="Click">
    <action name="ToggleMaximizeVert"/>
    </mousebind>
    <mousebind button="Right" action="Click">
    <action name="ToggleMaximizeHorz"/>
    </mousebind>
    </context>
    <context name="Close">
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    <action name="Unshade"/>
    </mousebind>
    <mousebind button="Left" action="Click">
    <action name="Close"/>
    </mousebind>
    </context>
    <context name="Desktop">
    <mousebind button="Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    <mousebind button="A-Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="A-Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    <mousebind button="C-A-Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="C-A-Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    <mousebind button="Left" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="Focus"/>
    <action name="Raise"/>
    </mousebind>
    </context>
    <context name="Root">
    <!-- Menus -->
    <mousebind button="Middle" action="Press">
    <action name="ShowMenu">
    <menu>client-list-combined-menu</menu>
    </action>
    </mousebind>
    <mousebind button="Right" action="Press">
    <action name="ShowMenu">
    <menu>root-menu</menu>
    </action>
    </mousebind>
    </context>
    <context name="MoveResize">
    <mousebind button="Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    <mousebind button="A-Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="A-Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    </context>
    </mouse>
    <menu><!-- You can specify more than one menu file in here and they are all loaded,
    just don't make menu ids clash or, well, it'll be kind of pointless --><!-- default menu file (or custom one in $HOME/.config/openbox/) --><file>menu.xml</file><hideDelay>200</hideDelay><!-- if a press-release lasts longer than this setting (in milliseconds), the
    menu is hidden again --><middle>no</middle><!-- center submenus vertically about the parent entry --><submenuShowDelay>100</submenuShowDelay><!-- time to delay before showing a submenu after hovering over the parent
    entry.
    if this is a negative value, then the delay is infinite and the
    submenu will not be shown until it is clicked on --><submenuHideDelay>400</submenuHideDelay><!-- time to delay before hiding a submenu when selecting another
    entry in parent menu -->
    if this is a negative value, then the delay is infinite and the
    submenu will not be hidden until a different submenu is opened --&gt;
    <applicationIcons>yes</applicationIcons>
    <!-- controls if icons appear in the client-list-(combined-)menu -->
    <manageDesktops>yes</manageDesktops>
    <!-- show the manage desktops section in the client-list-(combined-)menu -->
    </menu>
    <applications><!--
    # this is an example with comments through out. use these to make your
    # own rules, but without the comments of course.
    <application name="the window's _OB_APP_NAME property (see obxprop)"
    class="the window's _OB_APP_CLASS property (see obxprop)"
    role="the window's _OB_APP_ROLE property (see obxprop)"
    type="the window's _OB_APP_TYPE property (see obxprob)..
    (if unspecified, then it is 'dialog' for child windows)">
    # you may set only one of name/class/role/type, or you may use more than one
    # together to restrict your matches.
    # the name, class, and role use simple wildcard matching such as those
    # used by a shell. you can use * to match any characters and ? to match
    # any single character.
    # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
    # or desktop
    # when multiple rules match a window, they will all be applied, in the
    # order that they appear in this list
    # each rule element can be left out or set to 'default' to specify to not
    # change that attribute of the window
    <decor>yes</decor>
    # enable or disable window decorations
    <shade>no</shade>
    # make the window shaded when it appears, or not
    <position force="no">
    # the position is only used if both an x and y coordinate are provided
    # (and not set to 'default')
    # when force is "yes", then the window will be placed here even if it
    # says you want it placed elsewhere. this is to override buggy
    # applications who refuse to behave
    <x>center</x>
    # a number like 50, or 'center' to center on screen. use a negative number
    # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
    # right edge (or bottom).
    <y>200</y>
    <monitor>1</monitor>
    # specifies the monitor in a xinerama setup.
    # 1 is the first head, or 'mouse' for wherever the mouse is
    </position>
    <focus>yes</focus>
    # if the window should try be given focus when it appears. if this is set
    # to yes it doesn't guarantee the window will be given focus. some
    # restrictions may apply, but Openbox will try to
    <desktop>1</desktop>
    # 1 is the first desktop, 'all' for all desktops
    <layer>normal</layer>
    # 'above', 'normal', or 'below'
    <iconic>no</iconic>
    # make the window iconified when it appears, or not
    <skip_pager>no</skip_pager>
    # asks to not be shown in pagers
    <skip_taskbar>no</skip_taskbar>
    # asks to not be shown in taskbars. window cycling actions will also
    # skip past such windows
    <fullscreen>yes</fullscreen>
    # make the window in fullscreen mode when it appears
    <maximized>true</maximized>
    # 'Horizontal', 'Vertical' or boolean (yes/no)
    </application>
    # end of the example
    -->
    <!-- begin custom entries -->
    <Terminal="Terminal">
    <position force="yes">
    <x>center</x>
    <y>200</y>
    </position>
    <decor>no</decor>
    <focus>no</focus>
    <desktop>all</desktop>
    <layer>below</layer>
    <skip_pager>yes</skip_pager>
    <skip_taskbar>yes</skip_taskbar>
    </Terminal>
    </applications>
    </openbox_config>
    Thanks in advance to anyone who responds.
    Last edited by MoonSwan (2011-07-26 06:22:37)

    MoonSwan wrote:I've never heard of a validating editor but I was recently wondering what exists that could help me.  Aside from emacs, what should I search for to find one of these validating editors?
    You can use whatever tool you prefer - for someone already using emacs, emacs is a natural choice. Simple, easy to use online tools exist e.g. http://schneegans.de/sv/
    Just upload the file in question ('Validate by file upload' option) and click 'Validate':
    The '=' character cannot be included in a name. (723:10)
    <Terminal="Terminal">
    ^
    Googling 'xml validation' should give you some more tools / services if this one is not good enough.

  • Most efficient way to write 4 bytes at the start of any file.

    Quick question: I want to write 4 bytes at the start of a file without overriding the current bytes in the file. E.g. push bytes 0-4 along... Is my only option writing the bytes into a new file then writing the rest of the file after? RAF is so close but overrides :(.
    Thanks Mel

    I revised the code to use a max of 8MB buffers for both the nio and stdio copies...
    Looks like NIO is a pretty clear winner... but your milage may vary, lots... you'd need to test this 100's of times, and normalize, to get any "real" metrics... and I for one couldn't be bothered... it's one of those things that's "fast enough"... 7 seconds to copy a 250 MB file to/from the same physical disk is pretty-effin-awesome really, isn't it? ... looks like Vista must be one of those O/S's (mentioned in the API doco) which can channel from a-to-b without going through the VM.
    ... and BTW, it took the program which produced this file 11,416 millis to write it (from an int-array (i.e. all in memory)).
    revised code
    package forums;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.nio.channels.FileChannel;
    class NioBenchmark1
      private static final double NANOS = Math.pow(10,9);
      private static final int BUFF_SIZE = 8 * 1024 * 1024; // 8
      interface Copier {
        public void copy(File source, File dest) throws IOException;
      static class NioCopier implements Copier {
        public void copy(File source, File dest) throws IOException {
          FileChannel in = null;
          FileChannel out = null;
          try {
            in = (new FileInputStream(source)).getChannel();
            out = (new FileOutputStream(dest)).getChannel();
            final int buff_size = Math.min((int)source.length(),BUFF_SIZE);
            long n = -1;
            int pos = 0;
            while ( (n=in.transferTo(pos, buff_size, out)) == buff_size ) {
              pos += n;
          } finally {
            if(in != null) in.close();
            if(out != null) out.close();
      static class NioCopier2 implements Copier {
        public void copy(File source, File dest) throws IOException {
          if ( !dest.exists() ) {
            dest.createNewFile();
          FileChannel in = null;
          FileChannel out = null;
          try {
            in = new FileInputStream(source).getChannel();
            out = new FileOutputStream(dest).getChannel();
            final int buff_size = Math.min((int)in.size(),BUFF_SIZE);
            long n = -1;
            int pos = 0;
            while ( (n=out.transferFrom(in, 0, buff_size)) == buff_size ) {
              pos += n;
          } finally {
            if(in != null) in.close();
            if(out != null) out.close();
      static class IoCopier implements Copier {
        private byte[] buffer = new byte[BUFF_SIZE];
        public void copy(File source, File dest) throws IOException {
          InputStream in = null;
          FileOutputStream out = null;
          try {
            in = new FileInputStream(source);
            out = new FileOutputStream(dest);
            int count = -1;
            while ( (count=in.read(buffer)) != -1) {
              out.write(buffer, 0, count);
          } finally {
            if(in != null) in.close();
            if(out != null) out.close();
      public static void main(String[] arg) {
        final String filename = "SieveOfEratosthenesTest.txt";
        //final String filename = "PrimeTester_SieveOfPrometheuzz.txt";
        final File src = new File(filename);
        System.out.println("copying "+filename+" "+src.length()+" bytes");
        final File dest = new File(filename+".bak");
        try {
          time(new IoCopier(), src, dest);
          time(new NioCopier(), src, dest);
          time(new NioCopier2(), src, dest);
        } catch (Exception e) {
          e.printStackTrace();
      private static void time(Copier copier, File src, File dest) throws IOException {
        System.gc();
        try{Thread.sleep(1);}catch(InterruptedException e){}
        dest.delete();
        long start = System.nanoTime();
        copier.copy(src, dest);
        long stop = System.nanoTime();
        System.out.println(copier.getClass().getName()+" took "+((stop-start)/NANOS)+" seconds");
    output
    C:\Java\home\src\forums>"C:\Program Files\Java\jdk1.6.0_12\bin\java.exe" -Xms512m -Xmx1536m -enableassertions -cp C:\Java\home\classes forums.NioBenchmark1
    copying SieveOfEratosthenesTest.txt 259678795 bytes
    forums.NioBenchmark1$IoCopier took 14.333866455 seconds
    forums.NioBenchmark1$NioCopier took 7.712665715 seconds
    forums.NioBenchmark1$NioCopier2 took 6.206867074 seconds
    Press any key to continue . . .Having said that... The NIO has lost a fair bit of it's charm... testing transferTo's return value and maintaining your own position in the file is "cumbsome" (IMHO)... I'm not even certain that mine is completely correct (?n+=pos or n+=pos+1?).... hmmm..
    Cheers. Keiths.

  • Parsing Error: Unexpected $ at the end of PHP file

    I have been programming in PHP for about 6 months now and this is a first for me.
    I have created a FTP upload PHP file and I keep getting this parsing error no matter what I do !?
    Parse error:  parse error, unexpected $ in ................................./html/upload_video.php on line 183
    The only thing I have on line 183 is ?>  The end of my PHP file.  I've spent 2 hours trying to get rid of this problem.
    HELP !    Any help would be greatly appreciated !

    You are right and very sarcastic at the same time.  My bad....however, I figured out the problem, I did not close out my mysql connection and I had an extra if "}" at the end of my code.

  • How to write to the end of a file

    i am tryign to write to the end of a file using bufferwriter and bufferreadear. I am trying to the read the file until i reach the end and then write in the end. I have some code but i dont know how to read until the end of the file.
    File file = new  File ("Product.txt");
              FileReader reader = new FileReader (file);
              BufferedReader readBuff = new BufferedReader (reader);
              FileWriter write = new FileWriter(file);
              BufferedWriter writeBuff = new BufferedWriter(write);
              String line = readBuff.readLine();     
    // i know i need to put a while loop somewhere around here

    I want to write to the end of the file, what do you mean when you say "then write() until you've written that many bytes, which will overwrite the bytes already in the file."
              File file = new  File ("Products.txt");
              FileReader reader = new FileReader (file);
              BufferedReader readBuff = new BufferedReader (reader);
              FileWriter write = new FileWriter(file);
              BufferedWriter writeBuff = new BufferedWriter(write);
              String line = readBuff.readLine();
              long fileSize = file.length();
              readBuff.close();
              writeBuff.close();
              } catch (IOException e){
                   System.out.println ("Error -- " + e.toString());
         }

  • How to rtrim the extra comma at the end

    Dear Gurus,
    I am trying to trim the extra comma at the end of the sentence but I am not able to trim it at all this is for cursor loop in formula column trigger. Is RTRIM a rightful command to use here! Any Suggestions.
    for c1 in (select crv.x crc
    from x table
    where crv.x = xyz)
    loop
    if     p_count >= 1 then
         v_descr := v_descr||C1.CRC||', ' ;
    end if;
    end loop;
    return rtrim(v_descr,',');
    RESULT IS = ' 010, 002, 115, '

    Dear,
    Instead of using rtrim function, you can get the desired result by adding a code line and placing the comma at the start as below:
    (the added code lines are in bold)
    if p_count >= 1 then
    if v_descr = '' then
    v_descr := C1.CRC;
    else
    v_descr := v_descr||', '||C1.CRC;
    end if;
    end if;
    end loop;

  • Extra line at the end of file when transferred from XI to FTP.

    Hi All,
    Need help regarding the below query.
    I have an inbound structure with the below format
    MT_RAVE_L                     1..1 (is the main node)
          Logistic Info                 1..Unbounded (this is the structure under the main node)
                   LOGSOPTUN      1..1 (this is below Logistic Info field)
          File_Name                   1..1 ( This is also below main node with the same level of Logistic   Info structure)
    (Tried to insert a pic of the mapping but was unsuccesful)
    We are trying to move a file from XI to FTP. the file is being created in FTP succesfully but an extra blank line is being inserted at the end of the file.
    After lot of investigation we could trace the it is because of the File_Name field data is being not moved to inbound file.( Here we are using the File_Name field data for creating a file name in FTP. i.e., the File_Name is the File name under which our data is being stored in FTP and that is the reason we are not using File_Name in Content Conversion)
    Can you please suggest ways so that the empty line is not created.
    Thanks in advance
    LRK.

    Hello,
    Have you set the property in  File adapter lastFieldOptional.
    Thanks and Regards
    Hemant

  • Extra characters at the end of each servlet response

    I am attempting to develop a servlet that sits between a server and a browser, and simply martials arguments to send to the server, and then forwards responses to the web browser. When working with Weblogic 5.1 sp 11, things worked fine, except that an extra new line was added to the end of each response. I am now testing against Weblogic 7.0, and instead of a new line the characters "null" (not including the quotes) are added. I have tried to experiment to see if anything I have written or control is causing these characters to be sent to the client, but as far as I can tell there is nothing there. The I write my final character, close the ouput stream, and the client recieves bytes I did not send. Has anyone else experienced this? Anyone have ideas on how to fix this problem. Thanks for any input,
              Nathan
              

    Yes! There are advantages with jar files.
    The jar tool combines multiple files into a single JAR archive file. jar is a general-purpose archiving and compression tool, based on ZIP and the ZLIB compression format. However, jar was designed mainly to facilitate the packaging of java applets or applications into a single archive. When the components of an applet or application (.class files, images and sounds) are combined into a single archive, they may be downloaded by a java agent (like a browser) in a single HTTP transaction, rather than requiring a new connection for each piece. This dramatically improves download times. jar also compresses files and so further improves download time. In addition, it allows individual entries in a file to be signed by the applet author so that their origin can be authenticated. The syntax for the jar tool is almost identical to the syntax for the tar command. A jar archive can be use as a class path entry, whether it is compressed or not.
    If u require more help on jar file, you can go to the Java Tutorial available on java.sun.com

  • Finding the end of a file.

    How do I find the end of a stream (in this case, a file) using BufferedReader.readLine()?

    <code>
    public class SectorParser1 {
        // Declare variables that will be used
        Scanner sectorScannerIn;        // This is used in the setFileLocation method
        String sectorLocation;          // This is the abs location of the sector
        String currentIn;
        BufferedReader myParser;        // This is the top-level parser that reads
                                        // through the sct file.
        Scanner mySectorScanner;        // This is the second-level parser that
                                        // reads through the sct file.
        BufferedReader myReader;
        // Define constructors for SectorParser1
        public SectorParser1() {
        }   // CLOSE THE SectorParser1() CONSTRUCTOR
        SectorParser1(String sectorLocation) {
            this.sectorLocation = sectorLocation;
        }   // CLOSE THE SectorParser1(String sectorLocation) CONSTRUCTOR
        // Define methods for SectorParser1
        public void setFileLocation() {
            System.out.print("Please enter the exact path to your sector file: ");
            sectorScannerIn = new Scanner(System.in);
            sectorLocation = sectorScannerIn.next();
        }   // CLOSE THE setFileLocation() METHOD
        public String getFileLocation() {
            return sectorLocation;
        }   // CLOSE THE getFileLocation() METHOD
        public int beginParsing() throws IOException {
            myReader = new BufferedReader(new FileReader(sectorLocation));
            boolean cond = true;
            int counter = 0;
            try{ while(cond) {
                currentIn = myReader.readLine();
                if(currentIn.equals("null")){
                    break;
                }else if(currentIn.startsWith(";")) { // Lines in the file that's
                    continue;                         // being read that start with
                } {                                   // a ';' are comments, and
                    counter++;                        // need to be ignored.
                System.out.println(currentIn);
            } } catch (NullPointerException e) {
                System.err.println("Caught NullPointerException.");
            myReader.close();
            return counter;
    }       // CLOSE THE SectorParsing1 CLASS </code>

  • Problem in Packages while compailing the code "bad class file"

    Hi,
    I wrote the code for encrypt the password in .java file and i used package also
    i'm importing that package and i'm compiling the .java file it throws the error like this.
    regi1.java:23: cannot access EncryptPassword
    bad class file: .\EncryptPassword.java
    file does not contain class EncryptPassword
    Please remove or make sure it appears in the correct subdirectory of the claspath
    EncryptPassword enc = new EncryptPassword();
                            ^
    1 error
    EncryptPassword.java
    package encrypt;
    import java.io.UnsupportedEncodingException;
    import java.security.MessageDigest;
    import java.security.NoSuchAlgorithmException;
    import sun.misc.BASE64Decoder;
    import sun.misc.BASE64Encoder;
    import sun.misc.CharacterEncoder;
    public class EncryptPassword  
         public EncryptPassword() { }
         public EncryptPassword instance;
         public String getEncrypt(String plaintext) throws Exception
         MessageDigest md = null;
         try
         md = MessageDigest.getInstance("SHA"); //step 2
         catch(NoSuchAlgorithmException e)
         throw new Exception(e.getMessage());
         try
         md.update(plaintext.getBytes("UTF-8")); //step 3
         catch(UnsupportedEncodingException e)
         throw new Exception(e.getMessage());
         byte raw[] = md.digest(); //step 4
         String hash = (new BASE64Encoder()).encode(raw); //step 5
         return hash; //step 6
         public EncryptPassword getInstance() //step 1
         if(instance == null)
         return new EncryptPassword();
         else
         return instance;
    }regi1.java
    import encrypt.*;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class regi1 extends HttpServlet
         public regi1(){     }
          public void service(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
            throws ServletException, IOException
            java.io.PrintWriter printwriter = httpservletresponse.getWriter();
            HttpSession httpsession = httpservletrequest.getSession(true);
            httpservletresponse.setContentType("text/html");
            try
            {     EncryptPassword enc = new EncryptPassword();
                   String Email = httpservletrequest.getParameter("email");
                   String Password = httpservletrequest.getParameter("password");
    *--- some code for database connection---*
    String insQry1 =  "INSERT INTO register (Email, Pass);
    pStmt.setString(1,Email);
    pStmt.setString(2,enc.getEncrypt(Password));     
              catch( Exception exception)
                   exception.printStackTrace();           
                   System.out.println(exception);
              httpservletrequest.getRequestDispatcher("./FileSubmit.jsp").forward(httpservletrequest,httpservletresponse);
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Multipost: http://forum.java.sun.com/thread.jspa?threadID=5225097&tstart=0
    Please continue the thread there and don't multipost!
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Is it possible to get the Source from the Compiled Java Class File?

    Hello All,
    I wrote a java file which uses Java Swing to crea a GUI.I have also compiled the jave file.
    The problem now is that i've made many changes and compiled it many times.Now suddenly due to some problem,the contents of tha Java file have been deleted and it shows 0 bytes.
    Is there any way to recover my Java source file from the Class file?I would be thankful to anyone who can help me out on this.
    Thanks in Advance,
    Regards,
    Vijayakannan

    Yes and no, you can reverse engineer it to an extent, it wont look exactly like your original source though, it'll be full of commented out bytecode bits etc. As its your own code though you've got the best chance of deciphering it. Go to somewhere like www.tucows.com to download the software for doing it.
    ARB

  • How to find the main java class file

    I need to write a Java program which MUST know one of these:
    1) the full path to the main java class (the class with "main" method)
    or
    2) access to the main class as byte array.
    If i know (1) then I have no problems reading the main class into byte array, but the main target is still (2).
    Another option is if the main file is in JAR, which again leads to problems, because I cannot access the file in normal way, but I still need access to the exact byte stream.
    Any help is highly appreciated! Thanks!
    <<< Ivan Davidov >>>

    You could try somthing like this in your main-method:
    InputStream is = getClass().getResourceAsStream(<"myModifiedPackageName/MyClass.class">);I don't know if this works though.
    Have a look at the API doc for this method.
    -Puce

Maybe you are looking for

  • Remote App 3.0 - Album Artist

    iTunes itself (on the Mac and Windows) as well as most if not all iPods and iPads have the ability to browse the music library using Album Artist rather than just plain Artist. It's a setting in the preferences menu. The Remote App 2.* was the sole i

  • How to Order more than One Book

    Hello Apple Team I have built 3 different books in Iphoto. I have not ordered any of them yet because I was under the impression that ordering all 3 at one time would make me eligible for free shipping. However, I cannot figure out how to place an or

  • My terrible experience of joining BT

    I thought I would share with the forum my terrible experience of joining BT.  Below is a copy of the email I have sent Warren Buckley, Managing Director of BT Customer Service.  What was your experience of joing like?  Better than mine I hope. Dear W

  • "Who ran me" - how to determine the name of the dbms_scheduler job that ran me

    Hi Community I can see plenty of examples out on the interweb which shows how you can use dbms_utility.format_call_stack to find the hierarchy of procs, functions and packages that got me to a particular point in my code. For example, if proc (proced

  • Check Number not being generated

    We do not have SAP Check printing functionality activated right now. So the checks will be handwritten. When i created the Payment Method for check, I assigned RFFOEDI1 in the payment medium program. I also created the check lot for that House bank a