Main servlet controller which handle every dynamic request
Hello
first of all, I experiments on weblogic 6 sp1
I'd like to set in my webapplication a central servlet which will handle every
dynamic call(every servlet). But I would like that it does not handle the static
files (.gif, .pdf...)
I used the <servlet-mapping> facilities in my web.xml file with the following
value <url-pattern>/</url-pattern>, but in that case my servlet receive every
request.
In fact if my application context is "webapp", I would like to set a mecanism
which route the following URL to my servlet :
http://host:port/webapp
http://host:port/webapp/whatever
http://host:port/webapp/whatever?param1=value1
but not these one
http://host:port/webapp/file.gif
http://host:port/webapp/file.pdf
Thank you for your help
You do not remove exceptions. You fix the cause of the exception.
You said, it is caused by the Class#forName() call on the MySQL JDBC driver class? Is it a ClassNotFoundException? If so, then put the MySQL JDBC driver class in the classpath. It is available in the MySQL Connector/J JAR file which you can download from the manfacturer's website.
Similar Messages
-
Implementing session handling in servlet controller
how to implementing session handling in servlet controller.
instead of writing isNew() in every jsp page i wanted to write in my central controller ,where each request is passing through controller. can any body give me the solutioni tried it it is failed because first time the request is coming to the controller.it checks for new since of it is a first request it is forwarded to the login page.how to avoid or skip the condition checking when the request is first time.
-
Servlets handle multiple, concurrent requests
Hi, folks. Could someone give me a basic idea of how Servlets handle multiple, concurrent requests which are sent from user's web browser, or possibly, point me some useful web links, tutorials. Let me take a example to make sure that i have explained the question clearly: let's say there is a website that does air ticket booking service. Suppose there is a spare seat exists for a particular flight. There are two users logon to the website and they are both looking for this particular seat. So, once these user's HTML form requests are sent to server, how do i implement my servlet to handle these requests properly, in another words, make sure this seat is only allowed booked by a single user. thanks in advance.
This acturally raises me a another question which i
still have some uncertainties. In another assignment i
did last semester, that was we had multiple users
using our database and accessing, retirving and
updating database by using jdbc. And what i did was
let every user call a particular method within a
javabean for setting up database connection, then goes
for the specific that needs to be dealt with. So, what
i am wondering now is that can i possibly having a
different approach, like setting up only a single
connection(ie. a public Connection objec) which being
exist all the time so that all request can get
connection by calling this object's relevant method.
Hope i explained it clearly.
If I understand you correctly, then you would have to make the methods of this Connecting Object synchronized so that there was only ever one connection to the database at any one time.
If a database is transactional, that means it has attempted to deal with the problem of multiple connections and statements being executed at the same time on the same data. If you have one single Connecting Object then you don't have to worry about transactions, but you do need to make sure that there aren't multiple threads running, each trying to use your Connecting Object.
The synchronized keyword makes sure only one thread can use the synchronized method at any one time. -
Session replication at every http request
Hi everybody
I'm trying to use ZKoss Framework (www.zkoss.org) to develop a
web application and deploy it in a Clustered WebLogic Server.
The main issue I'm facing is that the "state" of the visual interface
is stored inside the http session, and so, when node that handle
the http request changes, the state is resetted and then the page changes,
even if there was no user intervention.
So I need to replicate the whole session at every http request,
to prevent strange behaviours when the request handler node's changes.
Do you know some settings that will force WebLogic Server to replicate the whole
session at every http request?
Thanks in advance.
bye.Hi Marco,
Yes, You are right But You NEED NOT to put setAttribute("key","value")...code in all your JSPs. because if the Attribute data of Session is changed then Automatically it will be replicated (only the Changed Data and not the Data which is unchanged). Even we need not to worry about replicating the Unchanged Data Again...And WebLogic will take care of ChangedData by itself. There is no other alternate solution available in weblogic to do this...Even no such similar Element available in Deployment descriptors as well.
Actual Link is Broken http://download-llnw.oracle.com/docs/cd/E13222_01/wls/docs90/cluster/failover.html
Any way i am copy-pasting few Lines from E-Docs (the actual link i am not able to find ..but may be u can open the cached page:
http://74.125.153.132/search?q=cache:bxTbqJEsQTsJ:download-llnw.oracle.com/docs/cd/E13222_01/wls/docs90/cluster/failover.html+setAttribute+Session+replication+weblogic&cd=6&hl=en&ct=clnk&gl=in
---------------------------If you are not able to open the link then please refer to the E-Docs copy-paste content below --------------------------
Programming Considerations for Clustered Servlets and JSPs
This section highlights key programming constraints and recommendations for servlets and JSPs that you will deploy in a clustered environment.
Session Data Must Be Serializable
To support in-memory replication of HTTP session states, all servlet and JSP session data must be serializable.
Note: Serialization is the process of converting a complex data structure, such as a parallel arrangement of data (in which a number of bits are transmitted at a time along parallel channels) into a serial form (in which one bit at a time is transmitted); a serial interface provides this conversion to enable data transmission.
Every field in an object must be serializable or transient in order for the object to be considered serializable. If the servlet or JSP uses a combination of serializable and non-serializable objects, WebLogic Server does not replicate the session state of the non-serializable objects.
Use setAttribute to Change Session State
In an HTTP servlet that implements javax.servlet.http.HttpSession, use HttpSession.setAttribute (which replaces the deprecated putValue) to change attributes in a session object. If you set attributes in a session object with setAttribute, the object and its attributes are replicated in a cluster using in-memory replication. If you use other set methods to change objects within a session, WebLogic Server does not replicate those changes. Every time a change is made to an object that is in the session, setAttribute() should be called to update that object across the cluster.
Likewise, use removeAttribute (which, in turn, replaces the deprecated removeValue) to remove an attribute from a session object.
Note: Use of the deprecated putValue and removeValue methods will also cause session attributes to be replicated.
Thanks
Jay SenSharma
Edited by: Jay SenSharma on Feb 11, 2010 10:24 PM
Edited by: Jay SenSharma on Feb 11, 2010 10:26 PM -
Need help: Unable to handle kernel paging request at virtual address; javac
Hi
we're working with apache tomcat under linux mandrake 10. (x86)
when our webapp get recompiled the server stop responding
(web server, telnet, etc... are down, but the server is pingable)
after a hard reboot , we get this message in var/log/messages :
Unable to handle kernel paging request at virtual address 02000064
kernel: printing eip:
kernel: c018e379
kernel: *pde = 00000000
kernel: Oops: 0000 [#1]
kernel: CPU: 1
kernel: EIP: 0060:[proc_pid_stat+137/928] Not tainted VLI
kernel: EIP: 0060:[<c018e379>] Not tainted VLI
kernel: EFLAGS: 00010286
kernel: EIP is at proc_pid_stat+0x89/0x3a0
kernel: eax: 00000000 ebx: 02000000 ecx: d85ac000 edx: 92960700
kernel: esi: d11ea6f0 edi: ded440a0 ebp: cf0ddf44 esp: cf0ddee4
kernel: ds: 007b es: 007b ss: 0068
kernel: Process javac (pid: 2415, threadinfo=cf0dc000 task=d11ea6f0)
kernel: Stack: c0143d5a c1259e78 00000000 c1259e78 c0343980 0000015b 00000000 cf0ddf40
attached ther is kernel messages, pci , dmesg.
Thanks
Massimo TRENTO
Apache Tomcat/4.1.30
j2sdk1.4.2_01
kernel 2.6.3-7mdksmp #1 SMP
--- DMESG ---
00100000 - 000000001f6f0000 (usable)
BIOS-e820: 000000001f6f0000 - 000000001f6fb000 (ACPI data)
BIOS-e820: 000000001f6fb000 - 000000001f700000 (ACPI NVS)
BIOS-e820: 000000001f700000 - 000000001f780000 (usable)
BIOS-e820: 000000001f780000 - 0000000020000000 (reserved)
BIOS-e820: 00000000fec00000 - 00000000fed00400 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fef00000 (reserved)
BIOS-e820: 00000000ffb80000 - 00000000ffc00000 (reserved)
BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
503MB LOWMEM available.
found SMP MP-table at 000f7920
hm, page 000f7000 reserved twice.
hm, page 000f8000 reserved twice.
hm, page 0009f000 reserved twice.
hm, page 000a0000 reserved twice.
On node 0 totalpages: 128896
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 124800 pages, LIFO batch:16
HighMem zone: 0 pages, LIFO batch:1
DMI present.
ACPI: RSDP (v000 PTLTD ) @ 0x000f7980
ACPI: RSDT (v001 PTLTD RSDT 0x00050000 LTP 0x00000000) @ 0x1f6f74ed
ACPI: FADT (v001 FSC D156x 0x00050000 0x000f4240) @ 0x1f6f751d
ACPI: MADT (v001 FSC APIC 0x00050000 CSF 0x00000000) @ 0x1f6faf76
ACPI: BOOT (v001 PTLTD $SBFTBL$ 0x00050000 LTP 0x00000001) @ 0x1f6fafd8
ACPI: DSDT (v001 FSC D156x 0x00050000 MSFT 0x0100000e) @ 0x00000000
ACPI: PM-Timer IO Port: 0xf008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 15:2 APIC version 20
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
Processor #1 15:2 APIC version 20
ACPI: LAPIC_NMI (acpi_id[0xff] high edge lint[0x1])
Using ACPI for processor (LAPIC) configuration information
Intel MultiProcessor Specification v1.1
Virtual Wire compatibility mode.
OEM ID: Product ID: APIC at: 0xFEE00000
I/O APIC #2 Version 32 at 0xFEC00000.
Enabling APIC mode: Flat. Using 1 I/O APICs
Processors: 2
Built 1 zonelists
Kernel command line: auto BOOT_IMAGE=linux-nonfb ro root=301 noapic devfs=mount acpi=ht resume=/dev/hda5
Initializing CPU#0
PID hash table entries: 2048 (order 11: 16384 bytes)
Detected 2793.223 MHz processor.
Using pmtmr for high-res timesource
Console: colour VGA+ 80x25
Memory: 504916k/515584k available (1920k kernel code, 9820k reserved, 892k data, 288k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 5537.79 BogoMIPS
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 225k freed
CPU: After generic identify, caps: bfebfbff 00000000 00000000 00000000
CPU: After vendor identify, caps: bfebfbff 00000000 00000000 00000000
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Physical Processor ID: 0
CPU: After all inits, caps: bfebfbff 00000000 00000000 00000080
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU#0: Intel P4/Xeon Extended MCE MSRs (12) available
CPU#0: Thermal monitoring enabled
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
CPU0: Intel(R) Pentium(R) 4 CPU 2.80GHz stepping 09
per-CPU timeslice cutoff: 1462.56 usecs.
task migration cache decay timeout: 2 msecs.
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Booting processor 1/1 eip 3000
Initializing CPU#1
masked ExtINT on CPU#1
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Calibrating delay loop... 5570.56 BogoMIPS
CPU: After generic identify, caps: bfebfbff 00000000 00000000 00000000
CPU: After vendor identify, caps: bfebfbff 00000000 00000000 00000000
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Physical Processor ID: 0
CPU: After all inits, caps: bfebfbff 00000000 00000000 00000080
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#1.
CPU#1: Intel P4/Xeon Extended MCE MSRs (12) available
CPU#1: Thermal monitoring enabled
CPU1: Intel(R) Pentium(R) 4 CPU 2.80GHz stepping 09
Total of 2 processors activated (11108.35 BogoMIPS).
cpu_sibling_map[0] = 1
cpu_sibling_map[1] = 0
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 2792.0645 MHz.
..... host bus clock speed is 199.0474 MHz.
checking TSC synchronization across 2 CPUs: passed.
Starting migration thread for cpu 0
Starting migration thread for cpu 1
Brought up 1 CPUs
NET: Registered protocol family 16
EISA bus registered
PCI: PCI BIOS revision 2.10 entry at 0xfd8cb, last bus=3
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20040211
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
PnPBIOS: Disabled
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Ignoring BAR0-3 of IDE controller 0000:00:1f.1
Transparent bridge - 0000:00:1e.0
PCI: Discovered primary peer bus 01 [IRQ]
PCI: Using IRQ router PIIX/ICH [8086/24d0] at 0000:00:1f.0
PCI: IRQ 0 for device 0000:00:1f.1 doesn't match PIRQ mask - try pci=usepirqmask
PCI: Found IRQ 10 for device 0000:00:1f.1
PCI: Sharing IRQ 10 with 0000:00:1d.2
PCI: Sharing IRQ 10 with 0000:00:1f.2
PCI: Sharing IRQ 10 with 0000:02:01.0
SBF: Simple Boot Flag extension found and enabled.
SBF: Setting boot flags 0x1
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
apm: disabled - APM is not SMP safe.
Starting balanced_irq
ikconfig 0.7 with /proc/config*
VFS: Disk quotas dquot_6.5.1
devfs: 2004-01-31 Richard Gooch ([email protected])
devfs: boot_options: 0x1
Initializing Cryptographic API
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
pty: 1024 Unix98 ptys configured
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing enabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 32000K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ICH5: IDE controller at PCI slot 0000:00:1f.1
PCI: Found IRQ 10 for device 0000:00:1f.1
PCI: Sharing IRQ 10 with 0000:00:1d.2
PCI: Sharing IRQ 10 with 0000:00:1f.2
PCI: Sharing IRQ 10 with 0000:02:01.0
ICH5: chipset revision 2
ICH5: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x3000-0x3007, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0x3008-0x300f, BIOS settings: hdc:DMA, hdd:pio
hda: WDC WD800LB-07DNA2, ATA DISK drive
Using anticipatory io scheduler
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: LITE-ON COMBO LTC-48161H, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
ICH5-SATA: IDE controller at PCI slot 0000:00:1f.2
PCI: Found IRQ 10 for device 0000:00:1f.2
PCI: Sharing IRQ 10 with 0000:00:1d.2
PCI: Sharing IRQ 10 with 0000:00:1f.1
PCI: Sharing IRQ 10 with 0000:02:01.0
ICH5-SATA: chipset revision 2
ICH5-SATA: 100% native mode on irq 10
ide2: BM-DMA at 0x3010-0x3017, BIOS settings: hde:pio, hdf:pio
ide3: BM-DMA at 0x3018-0x301f, BIOS settings: hdg:pio, hdh:pio
hda: max request size: 1024KiB
hda: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=16383/255/63, UDMA(100)
/dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 >
mice: PS/2 mouse device common for all mice
serio: i8042 AUX port at 0x60,0x64 irq 12
input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
serio: i8042 KBD port at 0x60,0x64 irq 1
input: AT Translated Set 2 keyboard on isa0060/serio0
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
EISA: Probing bus 0 at eisa0
NET: Registered protocol family 2
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 32768)
NET: Registered protocol family 1
BIOS EDD facility v0.13 2004-Mar-09, 1 devices found
Please report your BIOS at http://linux.dell.com/edd/results.html
PM: Reading pmdisk image.
PM: Resume from disk failed.
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
SCSI subsystem initialized
libata version 1.00 loaded.
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting. Commit interval 5 seconds
EXT3-fs: hda1: orphan cleanup on readonly fs
ext3_orphan_cleanup: deleting unreferenced inode 1038473
ext3_orphan_cleanup: deleting unreferenced inode 1038472
ext3_orphan_cleanup: deleting unreferenced inode 1038471
ext3_orphan_cleanup: deleting unreferenced inode 1038470
ext3_orphan_cleanup: deleting unreferenced inode 1038469
ext3_orphan_cleanup: deleting unreferenced inode 1038467
ext3_orphan_cleanup: deleting unreferenced inode 1038466
ext3_orphan_cleanup: deleting unreferenced inode 1038464
ext3_orphan_cleanup: deleting unreferenced inode 1038463
ext3_orphan_cleanup: deleting unreferenced inode 1038462
ext3_orphan_cleanup: deleting unreferenced inode 1038461
ext3_orphan_cleanup: deleting unreferenced inode 1038460
ext3_orphan_cleanup: deleting unreferenced inode 1038459
ext3_orphan_cleanup: deleting unreferenced inode 1038458
ext3_orphan_cleanup: deleting unreferenced inode 1038457
ext3_orphan_cleanup: deleting unreferenced inode 1038456
ext3_orphan_cleanup: deleting unreferenced inode 1038455
ext3_orphan_cleanup: deleting unreferenced inode 1038454
ext3_orphan_cleanup: deleting unreferenced inode 973782
EXT3-fs: hda1: 19 orphan inodes deleted
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
Mounted devfs on /dev
Freeing unused kernel memory: 288k freed
Real Time Clock Driver v1.12
drivers/usb/core/usb.c: registered new driver usbfs
drivers/usb/core/usb.c: registered new driver hub
drivers/usb/host/uhci-hcd.c: USB Universal Host Controller Interface driver v2.1
PCI: Found IRQ 9 for device 0000:00:1d.0
PCI: Sharing IRQ 9 with 0000:00:02.0
PCI: Sharing IRQ 9 with 0000:00:1d.3
uhci_hcd 0000:00:1d.0: UHCI Host Controller
PCI: Setting latency timer of device 0000:00:1d.0 to 64
uhci_hcd 0000:00:1d.0: irq 9, io base 00001400
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
PCI: Found IRQ 11 for device 0000:00:1d.1
uhci_hcd 0000:00:1d.1: UHCI Host Controller
PCI: Setting latency timer of device 0000:00:1d.1 to 64
uhci_hcd 0000:00:1d.1: irq 11, io base 00001800
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
PCI: Found IRQ 10 for device 0000:00:1d.2
PCI: Sharing IRQ 10 with 0000:00:1f.1
PCI: Sharing IRQ 10 with 0000:00:1f.2
PCI: Sharing IRQ 10 with 0000:02:01.0
uhci_hcd 0000:00:1d.2: UHCI Host Controller
PCI: Setting latency timer of device 0000:00:1d.2 to 64
uhci_hcd 0000:00:1d.2: irq 10, io base 00001c00
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
PCI: Found IRQ 9 for device 0000:00:1d.3
PCI: Sharing IRQ 9 with 0000:00:02.0
PCI: Sharing IRQ 9 with 0000:00:1d.0
uhci_hcd 0000:00:1d.3: UHCI Host Controller
PCI: Setting latency timer of device 0000:00:1d.3 to 64
uhci_hcd 0000:00:1d.3: irq 9, io base 00002000
uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 4
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
PCI: Found IRQ 9 for device 0000:00:1d.7
ehci_hcd 0000:00:1d.7: EHCI Host Controller
PCI: Setting latency timer of device 0000:00:1d.7 to 64
ehci_hcd 0000:00:1d.7: irq 9, pci mem e0004000
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 5
PCI: cache line size of 128 is not supported by device 0000:00:1d.7
ehci_hcd 0000:00:1d.7: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 8 ports detected
EXT3 FS on hda1, internal journal
Adding 522072k swap on /dev/hda5. Priority:-1 extents:1
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected an Intel 865 Chipset.
agpgart: Maximum main memory to use for agp memory: 431M
agpgart: Detected 8060K stolen memory.
agpgart: AGP aperture is 128M @ 0xf0000000
Supermount version 2.0.4 for kernel 2.6
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda6, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Intel(R) PRO/1000 Network Driver - version 5.2.30.1-k2
Copyright (c) 1999-2004 Intel Corporation.
PCI: Found IRQ 10 for device 0000:02:01.0
PCI: Sharing IRQ 10 with 0000:00:1d.2
PCI: Sharing IRQ 10 with 0000:00:1f.1
PCI: Sharing IRQ 10 with 0000:00:1f.2
PCI: Setting latency timer of device 0000:02:01.0 to 64
eth0: Intel(R) PRO/1000 Network Connection
inserting floppy driver for 2.6.3-7mdksmp
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
hdc: ATAPI 48X DVD-ROM CD-R/RW CD-MRW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
ide-floppy driver 0.99.newide
drivers/usb/core/usb.c: registered new driver hiddev
drivers/usb/core/usb.c: registered new driver hid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
NET: Registered protocol family 17
e1000: eth0 NIC Link is Up 100 Mbps Half Duplex
PCI: Found IRQ 5 for device 0000:00:1f.5
PCI: Sharing IRQ 5 with 0000:00:1f.3
PCI: Setting latency timer of device 0000:00:1f.5 to 64
intel8x0_measure_ac97_clock: measured 49851 usecs
intel8x0: clocking to 48000
NET: Registered protocol family 10
Disabled Privacy Extensions on device c037da00(lo)
IPv6 over IPv4 tunneling driver
Installing knfsd (copyright (C) 1996 [email protected]).
atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
eth0: no IPv6 routers present
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
printk: 24045 messages suppressed.
Neighbour table overflow.
printk: 24276 messages suppressed.
Neighbour table overflow.
printk: 16555 messages suppressed.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
printk: 24221 messages suppressed.
Neighbour table overflow.
printk: 24272 messages suppressed.
Neighbour table overflow.
printk: 15931 messages suppressed.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
Neighbour table overflow.
printk: 24289 messages suppressed.
Neighbour table overflow.
printk: 21235 messages suppressed.
Neighbour table overflow.
---- LSPCI ---
00:00.0 Host bridge: Intel Corp. 82865G/PE/P Processor to I/O Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corp. 82865G Integrated Graphics Device (rev 02)
00:03.0 PCI bridge: Intel Corp. 82865G/PE/P Processor to PCI to CSA Bridge (rev 02)
00:1d.0 USB Controller: Intel Corp. 82801EB USB (rev 02)
00:1d.1 USB Controller: Intel Corp. 82801EB USB (rev 02)
00:1d.2 USB Controller: Intel Corp. 82801EB USB (rev 02)
00:1d.3 USB Controller: Intel Corp. 82801EB USB (rev 02)
00:1d.7 USB Controller: Intel Corp. 82801EB USB2 (rev 02)
00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corp. 82801EB LPC Interface Controller (rev 02)
00:1f.1 IDE interface: Intel Corp. 82801EB Ultra ATA Storage Controller (rev 02)
00:1f.2 IDE interface: Intel Corp. 82801EB Ultra ATA Storage Controller (rev 02)
00:1f.3 SMBus: Intel Corp. 82801EB SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corp. 82801EB AC'97 Audio Controller (rev 02)
02:01.0 Ethernet controller: Intel Corp.: Unknown device 1019
-- LSMOD --
Module Size Used by
nfsd 175840 8
exportfs 7552 1 nfsd
md5 4864 1
ipv6 251392 29
snd-seq-oss 33568 0
snd-seq-midi-event 8704 1 snd-seq-oss
snd-seq 55696 4 snd-seq-oss,snd-seq-midi-event
snd-pcm-oss 53316 0
snd-mixer-oss 19008 1 snd-pcm-oss
snd-intel8x0 34440 0
snd-ac97-codec 59588 1 snd-intel8x0
snd-pcm 97440 2 snd-pcm-oss,snd-intel8x0
snd-timer 26660 2 snd-seq,snd-pcm
gameport 5664 1 snd-intel8x0
snd-page-alloc 12996 2 snd-intel8x0,snd-pcm
snd-mpu401-uart 8320 1 snd-intel8x0
snd-rawmidi 25248 1 snd-mpu401-uart
snd-seq-device 9032 3 snd-seq-oss,snd-seq,snd-rawmidi
snd 55492 12 snd-seq-oss,snd-seq-midi-event,snd-seq,snd-pcm-oss,snd-mixer-oss,snd-intel8x0,snd-ac97-codec,snd-pcm,snd-timer,snd-mpu401-uart,snd-rawmidi,snd-seq-device
soundcore 10560 1 snd
af_packet 22632 0
hid 55360 0
raw 8640 1
ide-floppy 19776 0
ide-tape 36752 0
ide-cd 41764 0
cdrom 38272 1 ide-cd
floppy 61620 0
e1000 83460 0
supermount 39856 1
intel-agp 18364 1
agpgart 32460 2 intel-agp
ehci-hcd 25572 0
uhci-hcd 31856 0
usbcore 103228 5 hid,ehci-hcd,uhci-hcd
rtc 13640 0
ext3 114216 2
jbd 61976 1 ext3
sd_mod 17696 0
ata_piix 8836 0
libata 40256 1 ata_piix,[permanent]
scsi_mod 117104 2 sd_mod,libata
----- /var/log/kernel/warnings -------
Oct 5 10:16:47 nsilaslin02 kernel: printing eip:
Oct 5 10:16:47 nsilaslin02 kernel: c018e379
Oct 5 10:16:47 nsilaslin02 kernel: Oops: 0000 [#1]
Oct 5 10:16:47 nsilaslin02 kernel: CPU: 1
Oct 5 10:16:47 nsilaslin02 kernel: EIP: 0060:[proc_pid_stat+137/928] Not tainted VLI
Oct 5 10:16:47 nsilaslin02 kernel: EIP: 0060:[<c018e379>] Not tainted VLI
Oct 5 10:16:47 nsilaslin02 kernel: EFLAGS: 00010286
Oct 5 10:16:47 nsilaslin02 kernel: EIP is at proc_pid_stat+0x89/0x3a0
Oct 5 10:16:47 nsilaslin02 kernel: eax: 00000000 ebx: 02000000 ecx: d85ac000 edx: 92960700
Oct 5 10:16:47 nsilaslin02 kernel: esi: d11ea6f0 edi: ded440a0 ebp: cf0ddf44 esp: cf0ddee4
Oct 5 10:16:47 nsilaslin02 kernel: ds: 007b es: 007b ss: 0068
Oct 5 10:16:47 nsilaslin02 kernel: Process javac (pid: 2415, threadinfo=cf0dc000 task=d11ea6f0)
Oct 5 10:16:47 nsilaslin02 kernel: Stack: c0143d5a c1259e78 00000000 c1259e78 c0343980 0000015b 00000000 cf0ddf40
Oct 5 10:16:47 nsilaslin02 kernel: 52143e93 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Oct 5 10:16:47 nsilaslin02 kernel: 00000000 00000000 000000d0 00001000 000000d0 d11ea6f0 00000400 de64f060
Oct 5 10:16:47 nsilaslin02 kernel: Call Trace:
Oct 5 10:16:47 nsilaslin02 kernel: [buffered_rmqueue+234/400] buffered_rmqueue+0xea/0x190
Oct 5 10:16:47 nsilaslin02 kernel: [<c0143d5a>] buffered_rmqueue+0xea/0x190
Oct 5 10:16:47 nsilaslin02 kernel: [proc_info_read+75/320] proc_info_read+0x4b/0x140
Oct 5 10:16:47 nsilaslin02 kernel: [<c018b60b>] proc_info_read+0x4b/0x140
Oct 5 10:16:47 nsilaslin02 kernel: [vfs_read+142/224] vfs_read+0x8e/0xe0
Oct 5 10:16:47 nsilaslin02 kernel: [<c015bf2e>] vfs_read+0x8e/0xe0
Oct 5 10:16:47 nsilaslin02 kernel: [sys_read+46/80] sys_read+0x2e/0x50
Oct 5 10:16:47 nsilaslin02 kernel: [<c015c14e>] sys_read+0x2e/0x50
Oct 5 10:16:47 nsilaslin02 kernel: [sysenter_past_esp+82/121] sysenter_past_esp+0x52/0x79
Oct 5 10:16:47 nsilaslin02 kernel: [<c010b1b9>] sysenter_past_esp+0x52/0x79
Oct 5 10:16:47 nsilaslin02 kernel:
Oct 5 10:16:47 nsilaslin02 kernel: Code: 00 00 8b 7e 68 85 ff 74 09 57 e8 b3 5f f9 ff 59 89 c7 8b 8e 24 03 00 00 85 c9 74 38 8b 81 98 00 00 00 89 45 c8 8b 59 04 8b 51 08 <0f> bf 43 64 0f bf 5b 66 c1 e0 14 09 d8 01 d0 89 c1 c1 e9 14 0f
Oct 5 10:30:32 nsilaslin02 kernel: Linux version 2.6.3-7mdksmp ([email protected]) (gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)) #1 SMP Wed Mar 17 14:24:28 CET 2004
Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 0000000000100000 - 000000001f6f0000 (usable)
Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 000000001f6f0000 - 000000001f6fb000 (ACPI data)
Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 000000001f6fb000 - 000000001f700000 (ACPI NVS)
Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 000000001f700000 - 000000001f780000 (usable)
Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 000000001f780000 - 0000000020000000 (reserved)
Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 00000000fec00000 - 00000000fed00400 (reserved)
Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 00000000fee00000 - 00000000fef00000 (reserved)
Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 00000000ffb80000 - 00000000ffc00000 (reserved)
Oct 5 10:30:32 nsilaslin02 kernel: BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
Oct 5 10:30:32 nsilaslin02 kernel: hm, page 000f7000 reserved twice.
Oct 5 10:30:32 nsilaslin02 kernel: hm, page 000f8000 reserved twice.
Oct 5 10:30:32 nsilaslin02 kernel: hm, page 0009f000 reserved twice.
Oct 5 10:30:32 nsilaslin02 kernel: hm, page 000a0000 reserved twice.
Oct 5 10:30:32 nsilaslin02 kernel: On node 0 totalpages: 128896
Oct 5 10:30:32 nsilaslin02 kernel: DMA zone: 4096 pages, LIFO batch:1
Oct 5 10:30:32 nsilaslin02 kernel: Normal zone: 124800 pages, LIFO batch:16
Oct 5 10:30:32 nsilaslin02 kernel: HighMem zone: 0 pages, LIFO batch:1
Oct 5 10:30:33 nsilaslin02 kernel: Processor #0 15:2 APIC version 20
Oct 5 10:30:33 nsilaslin02 kernel: Processor #1 15:2 APIC version 20
Oct 5 10:30:33 nsilaslin02 kernel: Enabling APIC mode: Flat. Using 1 I/O APICs
Oct 5 10:30:33 nsilaslin02 kernel: Built 1 zonelists
Oct 5 10:30:33 nsilaslin02 kernel: Kernel command line: auto BOOT_IMAGE=linux-nonfb ro root=301 noapic devfs=mount acpi=ht resume=/dev/hda5
Oct 5 10:30:33 nsilaslin02 kernel: PID hash table entries: 2048 (order 11: 16384 bytes)
Oct 5 10:30:33 nsilaslin02 kernel: Detected 2793.223 MHz processor.
Oct 5 10:30:33 nsilaslin02 kernel: Console: colour VGA+ 80x25
Oct 5 10:30:33 nsilaslin02 kernel: Checking if this processor honours the WP bit even in supervisor mode... Ok.
Oct 5 10:30:33 nsilaslin02 kernel: Calibrating delay loop... 5537.79 BogoMIPS
Oct 5 10:30:33 nsilaslin02 kernel: Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Oct 5 10:30:33 nsilaslin02 kernel: Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Oct 5 10:30:33 nsilaslin02 kernel: POSIX conformance testing by UNIFIX
Oct 5 10:30:33 nsilaslin02 kernel: CPU0: Intel(R) Pentium(R) 4 CPU 2.80GHz stepping 09
Oct 5 10:30:33 nsilaslin02 kernel: per-CPU timeslice cutoff: 1462.56 usecs.
Oct 5 10:30:33 nsilaslin02 kernel: task migration cache decay timeout: 2 msecs.
Oct 5 10:30:33 nsilaslin02 kernel: enabled ExtINT on CPU#0
Oct 5 10:30:33 nsilaslin02 kernel: ESR value before enabling vector: 00000000
Oct 5 10:30:33 nsilaslin02 kernel: ESR value after enabling vector: 00000000
Oct 5 10:30:33 nsilaslin02 kernel: Booting processor 1/1 eip 3000
Oct 5 10:30:33 nsilaslin02 kernel: masked ExtINT on CPU#1
Oct 5 10:30:33 nsilaslin02 kernel: ESR value before enabling vector: 00000000
Oct 5 10:30:33 nsilaslin02 kernel: ESR value after enabling vector: 00000000
Oct 5 10:30:33 nsilaslin02 kernel: Calibrating delay loop... 5570.56 BogoMIPS
Oct 5 10:30:33 nsilaslin02 kernel: CPU1: Intel(R) Pentium(R) 4 CPU 2.80GHz stepping 09
Oct 5 10:30:33 nsilaslin02 kernel: cpu_sibling_map[0] = 1
Oct 5 10:30:33 nsilaslin02 kernel: cpu_sibling_map[1] = 0
Oct 5 10:30:33 nsilaslin02 kernel: Using local APIC timer interrupts.
Oct 5 10:30:33 nsilaslin02 kernel: calibrating APIC timer ...
Oct 5 10:30:33 nsilaslin02 kernel: ..... CPU clock speed is 2792.0645 MHz.
Oct 5 10:30:33 nsilaslin02 kernel: ..... host bus clock speed is 199.0474 MHz.
Oct 5 10:30:33 nsilaslin02 kernel: checking TSC synchronization across 2 CPUs: passed.
Oct 5 10:30:33 nsilaslin02 kernel: Starting migration thread for cpu 0
Oct 5 10:30:33 nsilaslin02 kernel: Starting migration thread for cpu 1
Oct 5 10:30:33 nsilaslin02 kernel: Brought up 1 CPUs
Oct 5 10:30:33 nsilaslin02 kernel: PCI: Probing PCI hardware
Oct 5 10:30:33 nsilaslin02 kernel: PCI: Probing PCI hardware (bus 00)
Oct 5 10:30:33 nsilaslin02 kernel: Transparent bridge - 0000:00:1e.0
Oct 5 10:30:33 nsilaslin02 kernel: PCI: IRQ 0 for device 0000:00:1f.1 doesn't match PIRQ mask - try pci=usepirqmask
Oct 5 10:30:33 nsilaslin02 kernel: pty: 1024 Unix98 ptys configured
Oct 5 10:30:33 nsilaslin02 kernel: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Oct 5 10:30:33 nsilaslin02 kernel: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
Oct 5 10:30:33 nsilaslin02 kernel: RAMDISK driver initialized: 16 RAM disks of 32000K size 1024 blocksize
Oct 5 10:30:33 nsilaslin02 kernel: hda: WDC WD800LB-07DNA2, ATA DISK drive
Oct 5 10:30:33 nsilaslin02 kernel: Using anticipatory io scheduler
Oct 5 10:30:33 nsilaslin02 kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Oct 5 10:30:33 nsilaslin02 kernel: hdc: LITE-ON COMBO LTC-48161H, ATAPI CD/DVD-ROM drive
Oct 5 10:30:33 nsilaslin02 kernel: ide1 at 0x170-0x177,0x376 on irq 15
Oct 5 10:30:33 nsilaslin02 kernel: hda: max request size: 1024KiB
Oct 5 10:30:33 nsilaslin02 kernel: VFS: Mounted root (ext2 filesystem).
Oct 5 10:30:33 nsilaslin02 kernel: PCI: cache line size of 128 is not supported by device 0000:00:1d.7
Oct 5 10:30:33 nsilaslin02 kernel: hdc: ATAPI 48X DVD-ROM CD-R/RW CD-MRW drive, 2048kB Cache, UDMA(33)
Oct 5 10:30:33 nsilaslin02 kernel: ide-floppy driver 0.99.newide
Oct 5 10:30:39 nsilaslin02 kernel: atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
Oct 5 10:30:39 nsilaslin02 kernel: atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
Oct 5 10:30:39 nsilaslin02 kernel: atkbd.c: Unknown key released (translated set 2, code 0x7a on isa0060/serio0).
Oct 5 10:30:39 nsilaslin02 kernel: atkbd.c: This is an XFree86 bug. It shouldn't access hardware directly.
Oct 5 10:30:50 nsilaslin02 kernel: Neighbour table overflow.
Oct 5 10:30:50 nsilaslin02 last message repeated 9 times
Oct 5 10:30:55 nsilaslin02 kernel: printk: 24045 messages suppressed.
Oct 5 10:30:55 nsilaslin02 kernel: Neighbour table overflow.
Oct 5 10:31:00 nsilaslin02 kernel: printk: 24276 messages suppressed.
Oct 5 10:31:00 nsilaslin02 kernel: Neighbour table overflow.
Oct 5 10:36:06 nsilaslin02 kernel: printk: 16555 messages suppressed.
Oct 5 10:36:06 nsilaslin02 kernel: Neighbour table overflow.
Oct 5 10:36:06 nsilaslin02 last message repeated 9 times
Oct 5 10:36:11 nsilaslin02 kernel: printk: 24221 messages suppressed.
Oct 5 10:36:11 nsilaslin02 kernel: Neighbour table overflow.
Oct 5 10:36:16 nsilaslin02 kernel: printk: 24272 messages suppressed.
Oct 5 10:36:16 nsilaslin02 kernel: Neighbour table overflow.
Oct 5 10:46:22 nsilaslin02 kernel: printk: 15931 messages suppressed.
Oct 5 10:46:22 nsilaslin02 kernel: Neighbour table overflow.
Oct 5 10:46:22 nsilaslin02 last message repeated 9 times
Oct 5 10:46:27 nsilaslin02 kernel: printk: 24289 messages suppressed.
Oct 5 10:46:27 nsilaslin02 kernel: Neighbour table overflow.
Oct 5 10:46:32 nsilaslin02 kernel: printk: 21235 messages suppressed.
Oct 5 10:46:32 nsilaslin02 kernel: Neighbour table overflow.Java programs are run by a virtual machine which is running in userland. They don't "mess" with the kernel.
OTOH, each userland program interacts with the kernel through system calls, signals, pageing activity, ...
My guess is that it's either broken hardware, or a fault in the linux kernel.
Is the crash reproducible? Does ist always crash with the same error message, at the same "eip" location?
If the crashes are sporadic and non deterministic, with different error messages each time, then I'd say it's
a hardware problem. Otherwise, it could be a linux kernel software problem. -
How to print out the exception caught in the servlet controller to JSP?
May I know how to print the Exception caught and the stacktrace thing? What i try to do this in the databaseErrata.jsp code was not given me any answer. Instead, causing a number of errors.
Below are my servlet controller code and databaseErrata.jsp code.
----$CATALINA_HOME/webapps/mvct/WEB-INF/classes/Action.java----
import java.io.*;
import java.sql.*;
import java.text.*;
import javax.naming.*;
import javax.servlet.*;
import javax.servlet.http.*;
import foo.*;
public class Action extends HttpServlet
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
response.setContentType("text/html");
PrintWriter out = response.getWriter();
// find real web resource
String forward = request.getServletPath();
//'forward' is a string variable consist of url
if(forward.endsWith(".do"))
forward = forward.substring(1, forward.length()
-3) + ".jsp";
else
throw new ServletException(
"Action servlet called with illegal path: " +
forward); //display the defined error msg and error
url within the 'forward'
out.println("forward after forward.substring() = " +
forward + "</br>");
// build and validate view page attributes
HttpSession session = request.getSession();
try
byEmployeeId convert =
(byEmployeeId)session.getAttribute("convert");
if(convert == null)
session.setAttribute("convert", convert = new
byEmployeeId());
convert.start("11145");
catch(NamingException ex)
request.setAttribute("exception", ex);
forward = "databaseError.jsp";
catch(SQLException ex)
request.setAttribute("exception", ex);
forward = "databaseErrata.jsp";
catch(IllegalArgumentException ex)
request.setAttribute("message", "<FONT COLOR='red'>"+ex.getMessage()+"</font>");
// forward request
RequestDispatcher rd =
request.getRequestDispatcher(forward);
rd.forward(request,response);
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
doGet(request, response);
}----$CATALINA_HOME/webapps/mvct/databaseErrata.jsp----
<% String message = (String)request.getAttribute("message"); %>
<HTML>
<HEAD>
<TITLE>databaseErrata.jsp Page</TITLE>
</HEAD>
<BODY>
<% if (message != null) { %>
Message = <%= message %>
<H1>databaseErrata.jsp Page</H1>
</BODY>
</HTML>You're missing a closing curly bracket in the JSP page.
Also, this will only print the exception message. I would recommend passing on the whole Exception object.
ie request.setAttribute("theException", ex);
That way you have the exception object to print the stacktrace from.
However, you are doing this manually. The container can handle this stuff for you if you so wish.
Check the documentation on error pages. You are able to set up an error page in the web.xml, that all exceptions/errors get directed to.
something like:
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/errorPages/debugError.jsp</location>
</error-page>
You then write the JSP page something like this
<%@ page language="java" %>
<%@ page isErrorPage="true" %>
<%@ page import="java.util.*, java.io.*" %>
<h1>Programming error <BR> FOR DEBUGGING PURPOSES ONLY</h1>
<p>This page is only for debugging purposes. Should not be deployed to live environment.</p>
<p>Details of the error are as follows:</p>
<table border = 1 width=200>
<tr><td valign=top><strong>Error :</strong></td><td><%=exception.getMessage()%></td></tr>
<tr><td valign=top width='80%'><strong>Trace :</strong></td><td><pre><% exception.printStackTrace(new PrintWriter(out));%></pre></td></tr>
</table>
<br>Cheers,
evnafets -
I need probably to reorder Parent-Child relationships,
I have now
- ViewBean
---MenuItemsTiledView.class
---OrderCacheTiledView.class
---Button.class (append)
I will try to have
- ViewBean
---MenuItemsTiledView.class
------OrderCacheTiledView.class
---------Button.class (append)
And I will have to change:
<jato:tiledView name="MenuItems"
<jato:tiledView name="OrderCache"
<go method="post" href="<%=response.encodeURL
("../member/MenuItems") %>">
<postfield name="MenuItems.append" value=""/>
<postfield name="MenuItems.menuItemId"
value="<jato:getDisplayFieldValue
name='MenuItemId'/>" />
</go>
I think it is strict rule to have the same parent-child relationships in
JSP like as in classes
May I have more freedom like as with <jato:text name="...">, where name
could be relative (to parent, to container), absolute?
Fuad
-----Original Message-----
From: Fuad Efendi [mailto:<a href="/group/SunONE-JATO/post?protectID=230075113150035198105038066208231165163158211254234113172006048205015246">fuad.efendi@s...</a>]
Sent: Friday, May 17, 2002 12:02 PM
Subject: [SunONE-JATO] handle...Request() - in different TiledView?
Hello,
I use ViewBean, and two child TiledViews (WML sample).
<jato:tiledView name="TiledView1"
type="mobiledb.member.MenuItemsTiledView">
<go method="post" href="<%=
response.encodeURL("../member/MenuItems") %>">
<postfield name="MenuItems.append" value=""/>
<postfield name="MenuItems.menuItemId"
value="<jato:getDisplayFieldValue name='MenuItemId'/>" />
</go>
I think, "handleAppendRequest()" will work within TiledView1 (I didn't
try yet, I have this handler in ViewBean).
But, logically, better place for it is TiledView2 which contains cached
appended records...
I can have handler in ViewBean redirecting into TiledView2 of course,
What is the best way?
Thanks,
Fuad
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
[Non-text portions of this message have been removed]Sorry for mistake with index,
<postfield name="MyJspPage.MyTiledView[2].Append" value=""/>
-----Original Message-----
From: Fuad Efendi [mailto:<a href="/group/SunONE-JATO/post?protectID=230075113150035198105038066208231165163158211254234113172006048205015246">fuad.efendi@s...</a>]
Sent: Saturday, May 18, 2002 12:42 PM
Subject: RE: [SunONE-JATO] handle...Request() - in different TiledView?
OK, I solved it (for WML),
If I use "virtual buttons" on JSP page (within <jato:tiledView.../>
tag), and this buttons are child of MyTiledView class (which is child of
MyViewBean), I can use
<postfield name="MyJspPage.MyTiledView.Append[2]" value=""/>
for emulation of button.
I don't use MyViewBean.MyTiledView.Append[2]!
Next step: I have to understand what to do with index in
MyTiledView.handleAppendRequest... Code seems harder than putting Button
and Handler in main MyViewBean...
[Non-text portions of this message have been removed] -
Servlet controller unavailable
I am getting the error as follows in my web application.Can anybody tell me the reason.Thanks in advance
HTTP Status 503 - Servlet controller is currently unavailable
type Status report
message Servlet controller is currently unavailable
description The requested service (Servlet controller is currently unavailable) is not currently available.
Apache Tomcat/4.1.27Are you sure you have mentioned the servlet in the web.xml file.
This web.xml file lets Tomcat know which servlets exist and where to look for it.
So, you should have the following tags in the web.xml file of your web application.
<servlet>
<servlet-name>MopoController</servlet-name>
<servlet-class>org.gertcuppens.controller.MopoController</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MopoController</servlet-name>
<url-pattern>/MOPO</url-pattern>
</servlet-mapping> -
1. when use com.oreilly.servlet.MultipartRequest to handle the file upload, can I change the upload file name .
2. how com.oreilly.servlet.MultipartReques handle file upload? do it change to byte ?
what different? if I use the following method?
File uploadedFile = (File) mp.getFile("filename");
FileOutputStream fos = new FileOutputStream(filename);
byte[] uploadedFileBuf = new byte[(int) uploadedFile.length()];
fos.write(data);
fos.close();My questions are
1) when use oreilly package to do file upload , it looks like i line of code is enough to store the upload file in the
file direction.
MultipartRequest multi =
new MultipartRequest(request, dirName, 10*1024*1024); // 10MB
why some example still use FileOutputStream?
outs = new FileOutputStream(UPLOADDIR+fileName);
filePart.writeTo(outs);
outs.flush();
outs.close();
2) can I rename the file name when I use oreilly package? -
A new socket for every http-request?
Do I have to make a new socket for every http-request? The code below doesn't work because it is two requests in a row. The first GET works, but the second doesn't. I thought that the purpose of a socket is that you set it up once and then you should be able to do arbitrary communication between the two peers. Maybe that is just the case with sockets only but not if you use sockets to perform http.
Thank you for your answers! Nice greetings from Austria (not Australia)!
Stefan :)
package httptest;
import javax.net.ssl.*;
import java.io.*;
import java.net.*;
public class Conn2 {
private PrintWriter out;
private BufferedReader in;
private Socket socket;
public Conn2()
try {
socket = new Socket("www.google.at", 80);
out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())));
if (out.checkError())
System.out.println("SSLSocketClient: java.io.PrintWriter error");
in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
System.out.println("Connect erfolgreich.");
} catch (Exception e) {
System.err.println(e);
public void test()
String inputLine;
// 1. GET
out.println("GET / HTTP/1.0");
out.println();
out.flush();
try
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
catch(IOException e)
System.err.println(e);
// 2. GET
out.println("GET / HTTP/1.0");
out.println();
out.flush();
try
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
catch(IOException e)
System.err.println(e);
}Normally in the HTTP protocol, the server will close the connection after every request. So after you do the first GET, the server sends you the result and closes the connection. You have to open a new connection for the second GET.
You can set specific headers to keep the connection open, which makes things faster if you have to do multiple GET's quickly after another. Lookup the specification of the HTTP protocol on http://www.ietf.org/
Maybe it's easier to use a HTTP client library like Apache's HTTPClient: http://jakarta.apache.org/commons/httpclient/ so that you don't have to implement all the difficulties of the HTTP protocol yourself. -
Peer not authenticated exception on every SSL request
I'm using VeriSign-issued SSL certificates and WebLogic appears to be working fine with them. No browser issues, no server errors -- unless I enable SSL debugging. We were investigating an earlier issue (See: Extremely slow Apache 2.2-WebLogic 12c proxy behavior when using SSL) and we noticed that with every SSL request, we see the following error in the weblogic-server.log:
####<Nov 18, 2013 3:46:52 PM CST> <Debug> <SecuritySSL> <zlxv8131.vci.att.com> <CASWEBAdminServer> <ExecuteThread: '1' for queue: 'weblogic.socket.Muxer'> <<WLS Kernel>> <> <> <1384811212294> <BEA-000000> <Exception processing certificates: peer not authenticated
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:397)
at weblogic.servlet.provider.WlsSecurityProvider.getSSLAttributes(WlsSecurityProvider.java:203)
at weblogic.servlet.internal.VirtualConnection.initSSLAttributes(VirtualConnection.java:163)
at weblogic.servlet.internal.VirtualConnection.init(VirtualConnection.java:74)
at weblogic.servlet.internal.ServletRequestImpl.initFromRequestParser(ServletRequestImpl.java:300)
at weblogic.servlet.internal.HttpConnectionHandler.dispatch(HttpConnectionHandler.java:558)
We continue to see this for every HTTPS request -- every initial GET for the page, and all GETs for associated scripts, images, stylesheets, etc.
This is WebLogic 12.1.1.0 on Red Hat Enterprise Linux 6. I have the following startup options set:
-Dweblogic.StdoutDebugEnabled=true
-Dssl.debug=true
-Dweblogic.security.SSL.nojce=true
-Dweblogic.security.SSL.ignoreHostnameVerification=true
-Dweblogic.security.SSL.enforceConstraints=off
Is this actually a concern, given that we only see it when extended SSL debugging is enabled? When I Google (or search the Oracle forums) for this error, I find only my earlier posting, or folks dealing with self-signed certificates. Surely this is a more common issue. We are experiencing it on several different WebLogic installations on different servers. Exact same error on every SSL request, yet the page renders fine and there are no processing errors or delays -- just the debugging error above.
Any assistance would be much appreciated!
--samI using WebLogic 12.1.2 and having the same problem.
<Dec 5, 2013 3:13:01 PM SGT> <Debug> <SecuritySSL> <BEA-000000> <Exception processing certificates: peer not authenticated
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:397)
at weblogic.servlet.provider.WlsSecurityProvider.getSSLAttributes(WlsSecurityProvider.java:222)
at weblogic.servlet.internal.VirtualConnection.initSSLAttributes(VirtualConnection.java:165)
at weblogic.servlet.internal.VirtualConnection.init(VirtualConnection.java:75)
at weblogic.servlet.internal.ServletRequestImpl.initFromRequestParser(ServletRequestImpl.java:303)
at weblogic.servlet.internal.HttpConnectionHandler.dispatch(HttpConnectionHandler.java:570)
at weblogic.servlet.internal.MuxableSocketHTTP.dispatch(MuxableSocketHTTP.java:119)
at weblogic.socket.JSSEFilterImpl.dispatch(JSSEFilterImpl.java:216)
at weblogic.socket.MuxableSocketDiscriminator.dispatch(MuxableSocketDiscriminator.java:186)
at weblogic.socket.JSSEFilterImpl.dispatch(JSSEFilterImpl.java:216)
at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:996)
at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:928)
at weblogic.socket.NIOSocketMuxer.process(NIOSocketMuxer.java:507)
at weblogic.socket.NIOSocketMuxer.processSockets(NIOSocketMuxer.java:473
at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:30)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:
43)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:147)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:119)
>
The page renders fine but when I use t3s connection (for ssl) as following:
Context oContext ;
Hashtable <String,String> oHashtable = new Hashtable<String,String>();
oHashtable.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
oHashtable.put(Context.PROVIDER_URL, "t3s://localhost:7002");
oContext = new InitialContext(oHashtable);
I will get the following error:
<Dec 5, 2013 3:19:09 PM SGT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[Execute
Thread: '0' for queue: 'weblogic.socket.Muxer',5,Thread Group for Queue: 'weblogic.socket.Muxer']]weblogic.security.SSL.jsseadapter: SSLENGINE: Exception occurred during SSLEngine.unwrap(ByteBuffer,ByteBuffer[]).
javax.net.ssl.SSLException: Received fatal alert: certificate_unknown
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1619)
at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1587)
at sun.security.ssl.SSLEngineImpl.recvAlert(SSLEngineImpl.java:1756)
at sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:1060)
at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:884)
at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:758)
Please help on this. Thanks. -
Flash Media Player which handles bitrate switching for live streams?
Hello. I've got a very short timescale to find a solution for a way to display livestreams with bitrate switching. Does anyone
know of any opensource players which can do this effectively? Or do the inbuilt components in CS4 deal with this ok?Thanks,I have read that article. Based on that article the NetStreamInfo.maxBytesPerSecond is not an accurate measurement to base dynamic switching on. This seems to be the basis of the bitrate switching in both the longtail player, and the adobe examples that I have tried. That article suggests using the dropped frames property, in conjunciton with bufferlength to determine if switching is neccessary. Unfortunately I can't seem to find a player online which handles this successfully. That being said, I can't believe I'm the only person trying to implement dynamic bitrate switching for live streams so surely there are some players out there which can do this successfully? If anyone knows of any code available which does this successfully I would appreciate knowing where! The examples provided by Adobe https://www.adobe.com/cfusion/entitlement/index.cfm?e=fms35 unfortunately don't work either.
-
Which process/application is requesting 'elevated privileges'?
Every hour or so, I get a pop-up screen that asks for an administrator password and tells me:
"Elevated privileges are required in order to complete installation. Type an administrator's name and password to allow this.", see screenshot below.
The pop-up is not embedded in a full application, so I cannot see in the upper left corner which application is responsible. Needless to say, I would like to understand which application/process is requesting this before providing these details. Restarting my laptop does not resolve this issue. Removing all Login Items and restarting my laptop does not resolve it either. It keeps coming back.
How can I find out which process/application is responsible? How can I remove this issue?
Thank you for your help.Sharp one, thanks...!
I just upgraded Picasa (had not done that in a while) via Google Software Update and indeed as part of this process I was presented an identical screen to provide credentials.
I'll keep an extra look at these applications. If this problem keeps recurring I will try removing them. Hypothesis to explore that this popup only comes up if a specific Google application is not on the latest version. -
How to build a wsdl which can cater dynamically to number of attachments
We have a WebService client that calls a Webservice on the Server.
When the client calls the webservice , it passes the SOAP message(Header,Body & MIME attachments)and these attachments vary in number based on different business requirements.
We know how to build WSDL for server with static number of attachments,but no clue on how to build a wsdl which can cater dynamically to number of attachments comming from client request.
- thanks in advanceHello,
We may have multiple approaches here depending of :
- which version of the product you are using
- what are your clients in term of stack, and API they are willing to use
- which encoding did you use for your WS (swa, swaRef or dime)
So for my answer I am documenting how to do it on OracleAS 10gR3 (10.1.3), using swaRef approach.
The easiest way is to exchange array of binary data and describle that in the WSDL, so in my case the WSDL element that is used will look like that:
<element name="filesResponseElement">
<complexType>
<sequence>
<element name="result" type="ns1:swaRef" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
</element>
This will generate from the Java code an array of AttachmentPart[].
Regards
Tugdual Grall -
I installed all creative suite /cloud products on my main hard drive which has just failed. I can't open the apps on that drive. How can I deauthorize them when the drive is damaged beyond repair and unresponsive?
Kay5000 you are posting in a pubic forum.
As Ankit stated please try installing and activating Creative Cloud on your replacement computer/hard drive. If you have reached your maximum activation count then you will be prompted to deactivate all your activations. This will then allow you to activate on the replacement computer/hard drive.
For Creative Suite 6 I would recommend that you try installing as well. If you receive a message that you have exceeded your amount of allowable activations then please contact our support team directly. Our support team will be able to increase your activation count and allow you to install on the replacement computer/hard drive. You can contact our chat support at http://adobe.ly/yxj0t6 to make this request.
Maybe you are looking for
-
please help me in finding my iphone that has been lost, my hp weve already long gone in because in hypnosis but I've seen no reply email has apple replace my password and I can not track my iphone by using find my iphone. please the authorities in or
-
I think I accidentally went into fullscreen and cant figure out how to get out of it on Firefox for Android Tablet (Samsung Galaxy Tab 2 7.0)
-
Ap Store indicates that Pages 5.1 has been installed on my Mac Pro, but "About Pages" indicates the version is 4.3. How do I install current version?
-
Cannot sync apps because installed apps cannot be determined
Ever since I downloaded IOS 6.0.1, I cannot sync my apps. It comes up with the below message: "iTunes cannot sync apps to the iPhone because the apps installed on the iPhone could not be determined." Anyone know how to resolve this?
-
Cannot create new presets in AME CC 2014
Whenever I go into AME CC 2014 and try and create a new preset, this is what I see: Strange Adobe Media Encoder CC 2014 Bug - YouTube. Also, whenever I quit AME, even when it's running idle, just sitting there not doing anything, I always get the une