Class Loader Time in VisualGC 3.0-Display
Hello,
I�m monitoring my application with visualgc 3.0 under jdk1.5_09.
I�m wondering why the Class Loader Time-Panel always shows activity even the amount of loaded classes remains nearly constant.
What is shown is this panel??? Does the classloader check if a certain class is allready loaded and is this activity also shown in the panel? Or does it show only activity if a new class is really loaded?
Please help me understanding this tool.
Thank you very much!!
Greeting
Gregor
hello dear
Where is the jboss.jar mentioned?The error is due to unavialibility of the class.
So please
1.set jboss.jar,it is avialable at %Jboss_HOME%/server/defult/lib/jboss.jar.
2. make sure that ur bean jar file on the client class path
hope it will slove ur problem
regards
sachin
Similar Messages
-
Hello,
From the vm spec, it is not clear when should the Exception class should be loaded.
After compiling the following, I just removed XException.class.
In case there is no exception thrown by f(), no java.lang.NoClassDefFoundError should thrown. But java 1.4.2_04 does throw:
Exception in thread "main" java.lang.NoClassDefFoundError: XException
-------------------x cut here x--------------------------------------------
class XException extends java.io.IOException {}
public class A {
static void f () throws XException{
if ((int)Math.random() == 1) {
System.out.println ("I'm throwing!");
throw new XException(); }}
public static void main (String args[]) {
try { f (); } catch (XException e) {}}
-------------------x cut here x--------------------------------------------Why is it that verification process of method requires
the exception class mentioned in the exceptions
classes should be loaded? I couldn't find any
reference related to exception tables in the
verification procedures.
I know that current implementation of SUN does load
the exception class. But the question is:
Is it strictly required behavior for the conformance
to the JVM spec?
The specification is sometimes to obscure in the sense
that the class loading time is not explicitly
specified except the class should be initialized
before its first active use and loading and resolving
should be happened before the initialization.Like I said I was not able to find any thing in the spec that said that it should happen that way.
On the other hand I couldn't find anything that said it shouldn't either.
Nor did I find anything in the Java Spec Report either for or against. -
Long loading time if no internet connection available (VS 2005 Redist)
Hallo forum members!
I've been searching for a solution for my problem for a while - without success. It isn't really a critical issue, but quite annoying anyways.
Here's the problem i'm dealing with: I've developed an .NET application using Visual Studio 2005 and the included Crystal Report classes. When deploying my module everything works as expected, offering a decent performance when loading the Crystal Report assemblies provided by the redistributable package - if an internet connection is available. If the system doesn't offer such a connection (e.g. not properly configured proxy settings) the module takes a huge amount of time to be loaded. An examination (using ProcMon) leaded to the conclusion that the Crystal Report assemblies try to retrieve the system connection settings from the registry in order to establish a connection to the internet. This is done only once when loading for the first time.
Has anyone experienced the same problem? What is this connection used for? Is there a way to suppress this behaviour on systems without a valid internet connection in order to avoid this annoying long loading time?
Thanks on advance for your help.
Greetings,
L.F.Nothing like a good vacation. And I got your christmas present early :). While you were away we (actually one other customer) figured it out. I have written a note re. the resolution that was supposed to be published yesterday, but it's still not out there, so here it is as I submitted it:
Symptom
When a report is loaded is takes between 150 - 180 seconds to display
This is only reproducible on computers with no internet connection
There are no error messages and the report comes up eventually
Reproducing the Issue
Create a Windows application with the following function calls:
new Report()
report.SetDataSource(dataSet)
The function SetDataSource takes 2 plus minutes to execute
Cause
On SetDataSource() an attempt is made to connect to crl.verisign.com
SetDataSource() uses the framework and as per the Microsoft Knowledge Base specified under "Resolution", it is actually the framework that is attempting the connection
Resolution
Solution is described in this Microsoft Knowlege Base:
http://support.microsoft.com/kb/936707
The following Microsoft article also discusses the issue:
http://msdn.microsoft.com/en-us/library/bb629393.aspx
An alternative workaround to the above is as follows:
Open IE and go to the Tools menu and select Internet Options...
Go to the Advanced tab
Find the Security heading
Under the Security heading find "Check for publisher's certificate revocation"
Uncheck this option
Keywords
long time load crl.verisign.com certificate revoked internet
The note will be published here:
https://www.sdn.sap.com/irj/sdn/businessobjects-notes
and the number will be 1270414
Ludek -
Apparent EJB Class Loader Issue
I am having a problem loading narrowing an EJB. It appears to be a class loader
problem. I am getting a ClassCastException with the following message: Cannot
narrow remote object to com.dte.ejb.facade.AccessoryServiceHome.
Here is my code that looks up the EJB (I've ommitted the 'catch' clauses):
EJBHome ejbHome = (EJBHome) cache.get(homeClass);
try {
Object temp = ctx.lookup("ejb/" + homeClass.getName());
if (ejbHome == null) {
ejbHome = (EJBHome) PortableRemoteObject.narrow(temp, homeClass);
cache.put(homeClass, ejbHome);
Here is the output of some debugging information from the above method. Here I've
displayed the class.getName and the class.getClassLoader for the Class object
passed to this method and the remote object being cast by the narrow method:
homeClass : com.dte.ejb.facade.AccessoryServiceHome
homeClass : weblogic.utils.classloaders.ChangeAwareClassLoader@29164c finder:
weblogic.utils.classloaders.MultiClassFinder@300ec4
From Lookup: com.dte.ejb.facade.AccessoryServiceBean_krx5el_HomeImpl
From Lookup: weblogic.utils.classloaders.GenericClassLoader@1ea02f finder: weblogic.utils.classloaders.MultiClassFinder@6fca08
As you can see, the Class passed into this method has been loaded with the ChangeAwareClassLoader
but the HomeImpl class was loaded with the GenericClassLoader. I think that is
the problem (please correct me if I am wrong).
The application in question is an .ear with 2 .war modules and a ejb.jar file.
It was my understanding that all classes needed by any module in a .ear were all
loaded with the same class loader. Is this true? If so, then why am I having this
problem?
Thank you in advance for your help.I just want to add few comments hoping the iPlanet engineer will be able to help me.
I mange to get one deployment of a war file with the client weblogic EJB to work; only if I add the Installation Directory path of the war file plus “web-inf/classes” to the classpath of the JVM configuration.
This tells me that the class loader looks for the JVM classpath to load the EJB home class at run time. I think; if I can make iPlanet class loader to look for the application classpath instead of the JVM my problem will go away.
Thank you in advance,
Nad -
How can i reduce applet loading time?
I have recently begun converting a gui application to an applet. The problem i have is the loading time of the applet which can be several minutes.
The gui has a progress bar which tracks the loading of the classes, images and sounds etc, once this is up and running the loading time is fairly short, however it takes forever for the gui to actually begin to display.
The code for the classes is only about 150K altogether, there seems to a period of long modem inactivity once the applet is initialized before the gui is displayed.
How can i reduce the time it takes for the applet to initialize before the gui is displayed, otherwise users will thing nothing is happening and not bother loading it.
the applet is currently at http://www.winnieinternet.com/games/startrade2095/applet/startrade2095.htm
if you need a demo of the problem, although the applet is still work in progress.
Many thanks in advance for any help
W.Coleman
www.winnieinternet.comSome suggestions could be:
1. Bundle all classes and resource files in a jar file.
2. Try to preload the heavier files (e.g. sound files) in a background thread, instead of init() method. See an example for this in Sun's Java tutorial, under the trail 'Sound'. -
Setting components values in the ADF page load time
Hi,
We are trying to set the components labels dynamically, so each time the page is loaded we are loading the related labels from the database, instead of using the default database column names driven labels.
We get the labels text okay from the database in the afterPhase method, but we do not have access to the output text UI items then, so a call scuh as this getOutputText1() will return null.
We have also tried to use value binding for the output text, e.g. value=#{backing_untitled2.verbiage}, where verbiage attribute was set in the afterPhase method. The method is called okay and sets the attribute, but for some reason the attribute is then set back and displayed as null.
The same code is executed okay in a command button.
Any idea why is that failing, or how to populate these labels dynamically in the page load time better than the above?
Thanks in advance
Mohamed ElmallahHi,
I think you should re-think your strategy and not read the labels from the database all the time. Instead, read it into a class that extends HashMap one time and put it into the session. Then reference the bean #{sessionScope.beanname['label'], which will call the HashMap's getter method. Use the "label" name to find the label for the particular key
If you r application becomes big, you may want to think of handling the session bean size through leaning it under specific conditions
Frank -
Long Load Times on Graphic Intensive Games
I'm experiencing some absurdly long load times (1-3 hours) with many games (SPORE, Portal, X:3, etc...) that I believe may be related to how graphically intensive they are. Older games with lower graphics quality (WoW, Civ 4, etc...) load up fine.
When I load any newer game the icon appears in the tray and the computer does nothing else for at least an hour, whereupon the program loads and begins playing immediately--often without any further delays or issues.
I also use Boot Camp to run Windows Vista (Ultimate 32) and experience no delays when running SPORE on Windows.
Below are my specs:
Hardware:
Hardware Overview:
Model Name: iMac
Model Identifier: iMac5,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2.33 GHz
Number Of Processors: 1
Total Number Of Cores: 2
L2 Cache: 4 MB
Memory: 2 GB
Bus Speed: 667 MHz
Boot ROM Version: IM51.0090.B09
SMC Version: 1.9f4
Serial Number: QP7121Q** <Edited by Moderator>
Network:
Bluetooth:
Type: PPP (PPPSerial)
Hardware: Modem
BSD Device Name: Bluetooth-Modem
Has IP Assigned: No
IPv4:
Configuration Method: PPP
IPv6:
Configuration Method: Automatic
Proxies:
Proxy Configuration Method: Manual
Exclude Simple Hostnames: 0
FTP Passive Mode: Yes
Auto Discovery Enabled: No
Built-in Ethernet:
Type: Ethernet
Hardware: Ethernet
BSD Device Name: en0
Has IP Assigned: No
IPv4:
Configuration Method: DHCP
IPv6:
Configuration Method: Automatic
Proxies:
FTP Proxy Enabled: No
FTP Passive Mode: Yes
Gopher Proxy Enabled: No
HTTP Proxy Enabled: No
HTTPS Proxy Enabled: No
RTSP Proxy Enabled: No
SOCKS Proxy Enabled: No
Ethernet:
MAC Address: 00:17:f2:d4:e8:98
Media Options:
Media Subtype: Auto Select
Built-in FireWire:
Type: FireWire
Hardware: FireWire
BSD Device Name: fw0
Has IP Assigned: No
IPv4:
Configuration Method: DHCP
IPv6:
Configuration Method: Automatic
Proxies:
Proxy Configuration Method: Manual
Exclude Simple Hostnames: 0
FTP Passive Mode: Yes
Auto Discovery Enabled: No
Ethernet:
MAC Address: 00:19:e3:ff:fe:81:ea:7a
Media Options: Full Duplex
Media Subtype: Auto Select
Software:
System Software Overview:
System Version: Mac OS X 10.5.3 (9D34)
Kernel Version: Darwin 9.3.0
Boot Volume: MacintoshHD
Boot Mode: Normal
Computer Name: emeldi
User Name: Mike (mike)
Time since boot: 1 day9:05
ATA:
ATA Bus:
MATSHITADVD-R UJ-85J:
Capacity: 423.4 MB
Model: MATSHITADVD-R UJ-85J
Revision: FCQ5
Serial Number:
Removable Media: Yes
Detachable Drive: No
BSD Name: disk1
Protocol: ATAPI
Unit Number: 0
Socket Type: Internal
Low Power Polling: Yes
Mac OS 9 Drivers: No
Partition Map Type: Unknown
S.M.A.R.T. status: Not Supported
Volumes:
SPORE:
Capacity: 368.7 MB
Media Type: CD-ROM
Writable: No
File System: ISO Rockridge
BSD Name: disk1s0
Mount Point: /Volumes/SPORE
Volumes:
disk1s0:
Capacity: 368.7 MB
Media Type: CD-ROM
Writable: No
File System: ISO Rockridge
Audio (Built In):
Intel High Definition Audio:
Device ID: 0x83847680
Audio ID: 23
Available Devices:
Headphone:
Connection: Combo
Microphone:
Connection: Internal
Speaker:
Connection: Internal
Line In:
Connection: Combo
S/P-DIF Out:
Connection: Combo
S/P-DIF In:
Connection: Combo
Bluetooth:
Apple Bluetooth Software Version: 2.1.0f17
Hardware Settings:
emeldi:
Address: 00-17-f2-be-d3-95
Manufacturer: Cambridge Silicon Radio
Firmware Version: 3.1965 (3.1965)
Bluetooth Power: On
Discoverable: No
Requires Authentication: No
Services:
Bluetooth File Transfer:
Folder other devices can browse: ~/Public
Requires Authentication: Yes
State: Enabled
Bluetooth File Exchange:
Folder for accepted items: ~/Documents
Requires Authentication: No
When other items are accepted: Ask
When PIM items are accepted: Ask
When receiving items: Prompt for each file
State: Enabled
Devices (Paired, Favorites, etc):
JabraBT125:
Name: JabraBT125
Address: 00-1a-45-81-c4-f6
Type: Headset
Services: Headset, Hands-Free unit
Paired: Yes
Favorite: Yes
Connected: No
Manufacturer: Cambridge Silicon Radio ($3, $978)
Incoming Serial Ports:
Serial Port 1:
Name: Bluetooth-PDA-Sync
RFCOMM Channel: 3
Requires Authentication: No
Outgoing Serial Ports:
Serial Port 1:
Address:
Name: Bluetooth-Modem
RFCOMM Channel: 0
Requires Authentication: No
Diagnostics:
Power On Self-Test:
Last Run: 6/22/08 3:50 AM
Result: Passed
Disc Burning:
MATSHITA DVD-R UJ-85J:
Firmware Revision: FCQ5
Interconnect: ATAPI
Burn Support: Yes (Apple Shipping Drive)
Cache: 2048 KB
Reads DVD: Yes
CD-Write: -R, -RW
DVD-Write: -R, -RW, +R, +R DL, +RW
Write Strategies: CD-TAO, CD-SAO, DVD-DAO
Media:
Type: CD-ROM
Blank: No
Erasable: No
Overwritable: No
Appendable: No
FireWire:
FireWire Bus:
Maximum Speed: Up to 400 Mb/sec
Graphics/Displays:
ATI Radeon X1600:
Chipset Model: ATY,RadeonX1600
Type: Display
Bus: PCIe
PCIe Lane Width: x16
VRAM (Total): 256 MB
Vendor: ATI (0x1002)
Device ID: 0x71c5
Revision ID: 0x0000
ROM Revision: 113-xxxxxx-139
EFI Driver Version: 01.00.139
Displays:
iMac:
Display Type: LCD
Resolution: 1680 x 1050
Depth: 32-bit Color
Built-In: Yes
Core Image: Hardware Accelerated
Main Display: Yes
Mirror: Off
Online: Yes
Quartz Extreme: Supported
Display Connector:
Status: No display connected
Memory:
BANK 0/DIMM0:
Size: 1 GB
Type: DDR2 SDRAM
Speed: 667 MHz
Status: OK
Manufacturer: 0x2CFFFFFFFFFFFFFF
Part Number: 0x3136485446313238363448592D3636374433
Serial Number: 0xDB086DDD
BANK 1/DIMM1:
Size: 1 GB
Type: DDR2 SDRAM
Speed: 667 MHz
Status: OK
Manufacturer: 0x2CFFFFFFFFFFFFFF
Part Number: 0x3136485446313238363448592D3636374433
Serial Number: 0xDB086DDC
Power:
System Power Settings:
AC Power:
System Sleep Timer (Minutes): 0
Disk Sleep Timer (Minutes): 0
Display Sleep Timer (Minutes): 15
Sleep On Power Button: Yes
Automatic Restart On Power Loss: Yes
Wake On LAN: Yes
Display Sleep Uses Dim: No
Hardware Configuration:
UPS Installed: No
Printers:
Lexmark All In One:
Status: Idle
Print Server: Local
Driver Version: 1.1.3
Default: Yes
URI: usb://Lexmark/Lexmark%20All%20In%20One?location=1d120000
PPD: Lexmark All In One
PPD File Version: 1.0
PostScript Version: (3011.104) 0
Lexmark All In One-1:
Status: Idle
Print Server: Local
Driver Version: 1.1.3
Default: No
URI: usb://Lexmark/Lexmark%20All%20In%20One?location=3d120000
PPD: Lexmark All In One
PPD File Version: 1.0
PostScript Version: (3011.104) 0
Serial-ATA:
Intel ICH7-M AHCI:
Vendor: Intel
Product: ICH7-M AHCI
Speed: 1.5 Gigabit
Description: AHCI Version 1.10 Supported
WDC WD2500JS-40TGB0:
Capacity: 232.89 GB
Model: WDC WD2500JS-40TGB0
Revision: 20.06C04
Serial Number: WD-WCANY2508218
Native Command Queuing: Yes
Queue Depth: 32
Removable Media: No
Detachable Drive: No
BSD Name: disk0
Mac OS 9 Drivers: No
Partition Map Type: GPT (GUID Partition Table)
S.M.A.R.T. status: Verified
Volumes:
MacintoshHD:
Capacity: 232.57 GB
Available: 11.26 GB
Writable: Yes
File System: Journaled HFS+
BSD Name: disk0s2
Mount Point: /
Volumes:
disk0s2:
Capacity: 232.57 GB
Available: 11.26 GB
Writable: Yes
File System: Journaled HFS+
USB:
USB High-Speed Bus:
Host Controller Location: Built In USB
Host Controller Driver: AppleUSBEHCI
PCI Device ID: 0x27cc
PCI Revision ID: 0x0002
PCI Vendor ID: 0x8086
Bus Number: 0xfd
Built-in iSight:
Version: 1.84
Bus Power (mA): 500
Speed: Up to 480 Mb/sec
Manufacturer: Micron
Product ID: 0x8501
Vendor ID: 0x05ac (Apple Computer, Inc.)
USB Bus:
Host Controller Location: Built In USB
Host Controller Driver: AppleUSBUHCI
PCI Device ID: 0x27c9
PCI Revision ID: 0x0002
PCI Vendor ID: 0x8086
Bus Number: 0x3d
USB Hub:
Version: 1.00
Bus Power (mA): 500
Speed: Up to 12 Mb/sec
Manufacturer: OEM
Product ID: 0x0061
Vendor ID: 0x043d
Lexmark All-in-One:
Version: 1.00
Bus Power (mA): 500
Speed: Up to 12 Mb/sec
Manufacturer: Lexmark
Product ID: 0x0069
Vendor ID: 0x043d
All-in-One:
Version: 1.00
Bus Power (mA): 500
Speed: Up to 12 Mb/sec
Manufacturer: Lexmark
Product ID: 0x0060
Vendor ID: 0x043d
USB Bus:
Host Controller Location: Built In USB
Host Controller Driver: AppleUSBUHCI
PCI Device ID: 0x27ca
PCI Revision ID: 0x0002
PCI Vendor ID: 0x8086
Bus Number: 0x5d
USB Multimedia Keyboard:
Version: 1.00
Bus Power (mA): 500
Speed: Up to 12 Mb/sec
Manufacturer: ALCOR
Product ID: 0x9462
Serial Number: Au9462
Vendor ID: 0x058f
USB RECEIVER:
Version: 25.10
Bus Power (mA): 100
Speed: Up to 1.5 Mb/sec
Manufacturer: Logitech
Product ID: 0xc50e
Vendor ID: 0x046d
USB Multimedia Keyboard:
Version: 1.22
Bus Power (mA): 250
Speed: Up to 12 Mb/sec
Manufacturer: ALCOR
Product ID: 0x9410
Serial Number: Au9462
Vendor ID: 0x058f
USB Bus:
Host Controller Location: Built In USB
Host Controller Driver: AppleUSBUHCI
PCI Device ID: 0x27c8
PCI Revision ID: 0x0002
PCI Vendor ID: 0x8086
Bus Number: 0x1d
USB Bus:
Host Controller Location: Built In USB
Host Controller Driver: AppleUSBUHCI
PCI Device ID: 0x27cb
PCI Revision ID: 0x0002
PCI Vendor ID: 0x8086
Bus Number: 0x7d
Bluetooth USB Host Controller:
Version: 19.65
Bus Power (mA): 500
Speed: Up to 12 Mb/sec
Manufacturer: Apple, Inc.
Product ID: 0x8206
Vendor ID: 0x05ac (Apple Computer, Inc.)
IR Receiver:
Version: 1.10
Bus Power (mA): 500
Speed: Up to 12 Mb/sec
Manufacturer: Apple Computer, Inc.
Product ID: 0x8240
Vendor ID: 0x05ac (Apple Computer, Inc.)
AirPort Card:
AirPort Card Information:
Wireless Card Type: AirPort Extreme (0x14E4, 0x87)
Wireless Card Locale: USA
Wireless Card Firmware Version: Broadcom BCM43xx 1.0 (4.170.46.7)
Current Wireless Network: ACTIONTEC
Wireless Channel: 9
Firewall:
Firewall Settings:
Mode: Limit incoming connections to specific services and applications
Services:
File Sharing (AFP): Allow all connections
Printer Sharing: Allow all connections
Applications:
com.apple.iChat: Allow all connections
com.apple.ODSAgent: Allow all connections
com.aspyr.empireatwar: Block all connections
com.RealNetworks.RealPlayer: Allow all connections
Locations:
Automatic:
Active Location: Yes
Services:
Bluetooth:
Type: PPP
IPv4:
Configuration Method: PPP
IPv6:
Configuration Method: Automatic
Proxies:
Proxy Configuration Method: 2
Exclude Simple Hostnames: No
FTP Passive Mode: Yes
Auto Discovery Enabled: No
PPP:
ACSP Enabled: No
Display Terminal Window: No
Redial Count: 1
Redial Enabled: Yes
Redial Interval: 5
Use Terminal Script: No
Dial On Demand: No
Disconnect On Fast User Switch: Yes
Disconnect On Idle: Yes
Disconnect On Idle Time: 600
Disconnect On Logout: Yes
Disconnect On Sleep: Yes
Idle Reminder: No
Idle Reminder Time: 1800
IPCP Compression VJ: Yes
LCP Echo Enabled: No
LCP Echo Failure: 4
LCP Echo Interval: 10
Log File: /var/log/ppp.log
Verbose Logging: No
Built-in Ethernet:
Type: Ethernet
BSD Device Name: en0
Hardware (MAC) Address: 00:17:f2:d4:e8:98
IPv4:
Configuration Method: DHCP
IPv6:
Configuration Method: Automatic
AppleTalk:
Configuration Method: Node
Proxies:
FTP Proxy Enabled: No
FTP Passive Mode: Yes
Gopher Proxy Enabled: No
HTTP Proxy Enabled: No
HTTPS Proxy Enabled: No
RTSP Proxy Enabled: No
SOCKS Proxy Enabled: No
Built-in FireWire:
Type: FireWire
BSD Device Name: fw0
Hardware (MAC) Address: 00:19:e3:ff:fe:81:ea:7a
IPv4:
Configuration Method: DHCP
IPv6:
Configuration Method: Automatic
AppleTalk:
Configuration Method: Node
Proxies:
Proxy Configuration Method: 2
Exclude Simple Hostnames: No
FTP Passive Mode: Yes
Auto Discovery Enabled: No
AirPort:
Type: IEEE80211
BSD Device Name: en1
Hardware (MAC) Address: 00:19:e3:df:5e:9b
IPv4:
Configuration Method: DHCP
IPv6:
Configuration Method: Automatic
AppleTalk:
Configuration Method: Node
Proxies:
Proxy Configuration Method: 2
Exclude Simple Hostnames: No
FTP Passive Mode: Yes
Auto Discovery Enabled: No
IEEE80211:
Allow Net Creation: Yes
Disconnect On Logout: No
InterferenceRobustness: 0
Join Mode: Automatic
JoinModeFallback: Prompt
MAC Address: 00:19:e3:df:5e:9b
PowerEnabled: 1
PreferredNetworks:
SecurityType: Open
SSID_STR: ACTIONTEC
Unique Network ID: F0FA7942-54E7-409B-A1CA-10B05F3B2EDE
SecurityType: WPA2 Personal
SSID_STR: D Pad
Unique Network ID: A391D57D-A4EC-4B2E-B741-0D6569BD77AB
Unique Password ID: 404D3742-17AA-4C24-A229-7E37725522EA
SecurityType: Open
SSID_STR: linksys
Unique Network ID: FD2A5229-348A-4E90-B4E2-48E4DE62C394
SecurityType: Open
SSID_STR: M and M
Unique Network ID: D980D42A-E76C-4A68-920D-AAC9537C26C9
SecurityType: Open
SSID_STR: default
Unique Network ID: 5A2D9117-3263-46B9-952D-A4463BA5F377
SecurityType: Open
SSID_STR: Sweet Lou's **** Shack
Unique Network ID: FA247542-1EF4-41B6-A242-688E75C85B57
RememberRecentNetworks: 1
Ethernet Adaptor (en2):
Type: Ethernet
BSD Device Name: en2
Hardware (MAC) Address: 00:01:23:45:67:89
IPv4:
Configuration Method: DHCP
IPv6:
Configuration Method: Automatic
AppleTalk:
Configuration Method: Node
Proxies:
Exceptions List: *.local, 169.254/16
FTP Passive Mode: Yes
Ethernet Adaptor (en3):
Type: Ethernet
BSD Device Name: en3
Hardware (MAC) Address: 00:10:32:54:76:98
IPv4:
Configuration Method: DHCP
IPv6:
Configuration Method: Automatic
AppleTalk:
Configuration Method: Node
Proxies:
Exceptions List: *.local, 169.254/16
FTP Passive Mode: Yes
Volumes:
net:
Type: autofs
Mount Point: /net
Mounted From: map -hosts
Automounted: Yes
home:
Type: autofs
Mount Point: /home
Mounted From: map auto_home
Automounted: Yes
Universal Access:
Universal Access Information:
Cursor Magnification: Off
Display: Black on White
Flash Screen: Off
Mouse Keys: Off
Slow Keys: Off
Sticky Keys: Off
VoiceOver: Off
Zoom: OffThat's old info for the HDD space--I've purchased an external, so my main drive stays plenty free, now.
-
Performance issues with class loader on Windows server
We are observing some performance issues in our application. We are Using weblogic 11g with Java6 on a windows 2003 server
The thread dumps indicate many threads are waiting in queue for the native file methods:
"[ACTIVE] ExecuteThread: '106' for queue: 'weblogic.kernel.Default (self-tuning)'" RUNNABLE
java.io.WinNTFileSystem.getBooleanAttributes(Native Method)
java.io.File.exists(Unknown Source)
weblogic.utils.classloaders.ClasspathClassFinder.getFileSource(ClasspathClassFinder.java:398)
weblogic.utils.classloaders.ClasspathClassFinder.getSourcesInternal(ClasspathClassFinder.java:347)
weblogic.utils.classloaders.ClasspathClassFinder.getSource(ClasspathClassFinder.java:316)
weblogic.application.io.ManifestFinder.getSource(ManifestFinder.java:75)
weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:67)
weblogic.application.utils.CompositeWebAppFinder.getSource(CompositeWebAppFinder.java:71)
weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:67)
weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:67)
weblogic.utils.classloaders.CodeGenClassFinder.getSource(CodeGenClassFinder.java:33)
weblogic.utils.classloaders.GenericClassLoader.findResource(GenericClassLoader.java:210)
weblogic.utils.classloaders.GenericClassLoader.getResourceInternal(GenericClassLoader.java:160)
weblogic.utils.classloaders.GenericClassLoader.getResource(GenericClassLoader.java:182)
java.lang.ClassLoader.getResourceAsStream(Unknown Source)
javax.xml.parsers.SecuritySupport$4.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
javax.xml.parsers.SecuritySupport.getResourceAsStream(Unknown Source)
javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source)
javax.xml.parsers.FactoryFinder.find(Unknown Source)
javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
org.ajax4jsf.context.ResponseWriterContentHandler.<init>(ResponseWriterContentHandler.java:48)
org.ajax4jsf.context.ViewResources$HeadResponseWriter.<init>(ViewResources.java:259)
org.ajax4jsf.context.ViewResources.processHeadResources(ViewResources.java:445)
org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:193)
org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
On googling this seems to be an issue with java file handling on windows servers and I couldn't find a solution yet. Any recommendation or pointer is appreciatedHi shubhu,
I just analyzed your partial Thread Dump data, the problem is that the ajax4jsf framework ResponseWriterContentHandler triggers internally a new instance of the DocumentBuilderFactory; every time; triggering heavy IO contention because of Class loader / JAR file search operations.
Too many of these IO operations under heavy load will create excessive contention and severe performance degradation; regardless of the OS you are running your JVM on.
Please review the link below and see if this is related to your problem.. This is a known issue in JBOSS JIRA when using RichFaces / ajaxJSF.
https://issues.jboss.org/browse/JBPAPP-6166
Regards,
P-H
http://javaeesupportpatterns.blogspot.com/ -
How can I get a dynamic list of Classes Loaded
I assume this may need to use some sort of reflection. Does
anyone have code or ideas where I can:
a) I can get a list of all Classes loaded and their
properties. This would probably be all instances of Class
b) A list of all
global instance variables. (This may not even be possible. I
know it can be done in other languages)
I assume this may need to use some sort of reflection.
Thank youAdobe Newsbot hopes that the following resources helps you.
NewsBot is experimental and any feedback (reply to this post) on
its utility will be appreciated:
mx.controls.List (Flex 3):
If the data is incorrect, you can call the preventDefault()
method to stop Flex from passing the new data back to the list
control and from closing the
Link:
http://livedocs.adobe.com/flex/3/langref/mx/controls/List.html
Displaying icons in a Flex List control at Flex Examples:
http://blog.flexexamples.com/2007/08/17/displaying-icons-in-a-flex-list-control/
--> <mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
Link:
http://blog.flexexamples.com/2007/08/17/displaying-icons-in-a-flex-list-control/
Populate the list -- Flex 2.01:
You populate a list-based form control with the
<mx:dataProvider> child tag. The <mx:dataProvider> tag
lets you specify list items in several ways.
Link:
http://livedocs.adobe.com/flex/201/html/tutorial_controls_019_4.html
Smooth Scroll for Horizontal List - Flex India Community |
Google:
I have created image gallery with Horizontal List[Flex 2.0].
Just as below ref site. My Problem is i need a smooth scroll for
Horizontal List. where images
Link:
http://groups.google.com/group/flex_india/browse_thread/thread/a12441143b98d32c?hide_quote s=no
Creating a List control -- Flex 2.01:
The following example code adds a handler for a change event
to the List control. Flex broadcasts a mx.ListEvent.CHANGE event
when the value of the control
Link:
http://livedocs.adobe.com/flex/201/html/dpcontrols_062_03.html
Disclaimer: This response is generated automatically by the
Adobe NewsBot based on Adobe
Community
Engine. -
How to write a class loader to solve the class confliction in rt.jar?
Hello guys:
The weblogic.jar has the javax.management.*, it is conflict with rt.jar's
I want to use JMX 1.0 to communicate with weblogic 8.1. The client should be run in the Java 1.5
It throw
java.io.InvalidClassException: javax.management.ObjectName; local class incompatible:
stream classdesc serialVersionUID = -5467795090068647408, local class serialVersionUID = 1081892073854801359
java.io.InvalidClassException: javax.management.ObjectName; local class incompatible:
stream classdesc serialVersionUID = -5467795090068647408, local class serialVersionUID = 1081892073854801359I know the reason is java 1.5 has JMX 1.2 in it.
So how can I program a class loader to load the weblogic.jar classes in? I have tried a lot of code, but failed.
Is there any sample here?
I want to use the JMX 1.0 in weblogic.jar at jdk1.5 run time
Thanks a lot,
QiangHello guys:
The weblogic.jar has the javax.management.*, it is conflict with rt.jar's
I want to use JMX 1.0 to communicate with weblogic 8.1. The client should be run in the Java 1.5
It throw
java.io.InvalidClassException: javax.management.ObjectName; local class incompatible:
stream classdesc serialVersionUID = -5467795090068647408, local class serialVersionUID = 1081892073854801359
java.io.InvalidClassException: javax.management.ObjectName; local class incompatible:
stream classdesc serialVersionUID = -5467795090068647408, local class serialVersionUID = 1081892073854801359I know the reason is java 1.5 has JMX 1.2 in it.
So how can I program a class loader to load the weblogic.jar classes in? I have tried a lot of code, but failed.
Is there any sample here?
I want to use the JMX 1.0 in weblogic.jar at jdk1.5 run time
Thanks a lot,
Qiang -
Dinamyc class loading and jar files
I'm new to java. I would like to load some plugins in my application (it's going to be packaged as a jar at the end). I managed to find some dinamyc class loading examples but they search for the classes to load in a directory.
This is the code:
public static void main(String[] args) {
File pluginDirectory = new File("src/pluginsreloaded/plugins");
if (!pluginDirectory.exists()) { // the plugin directory does not exist
System.out.println("The plugins directory does not exist!");
return;
FilenameFilter filter = new FilenameFilter() {
public boolean accept(File dir, String name) {
return name.endsWith(".class");
String[] pluginFiles = pluginDirectory.list(filter);
for (int i = 0; i < pluginFiles.length; i++) {
if (pluginFiles.indexOf("$") == -1) {
System.out.println("Loading: " + pluginFiles[i].substring(0, pluginFiles[i].length() - 6));
IPlugin plugin = pm.loadPlugin(pluginFiles[i].substring(0, pluginFiles[i].length() - 6));
System.out.println(plugin.description());
protected static IPlugin loadPlugin(String name) {
// Query the plugin list for the plugin
PluginFactory _plugin = (PluginFactory) pluginList.get(name);
if (_plugin == null) { // the plugin is not loaded
try {
Class.forName("pluginsReloaded.plugins." + name);
// The plugin makes an entry in the plugin list
// when loaded
_plugin = (PluginFactory) pluginList.get(name);
if (_plugin == null) {
return null;
} catch (ClassNotFoundException e) {
System.out.println("Plugin " + name + " not found!");
return _plugin.create();
}IPlugin is an interface. I am using netbeans 5.0. The error I get is this:
Exception in thread "main" java.lang.NoClassDefFoundError: pluginsReloaded/plugins/plugin1 (wrong name: pluginsreloaded/plugins/plugin1)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at pluginsreloaded.PluginManager.loadPlugin(PluginManager.java:30)
at pluginsreloaded.Main.main(Main.java:44)
Java Result: 1As far as I can see it can't find the class. My question is how can I load the class/where can I find it?
Thanks.You can use the java.util.jar.JarFile class to enumerate the contents of a jar. It's not good practice to search for plugins in this way though. A plugin may well involve serveral classes, which don't all have to be internal. Furthermore its wise to avoid any comitment about the mechaism by which class files are to be fetched. You might want to do it remotely, some time, or load them from a database.
What seesms to be the standard approach is to put a list of plugin classes into the jar as a text file.
Plugins for a given purpose usually implement some specified interface, or extend some abstract class to which their objects can be cast once loaded (without this they aren't really much use).
Say your plugins implment org.myorg.WidgetFactory then you put a list of them, one fully qualified name to a line, in a file or jar entry called META-INF/services/org.myorg.WidgetFactory. You framework picks up all such files from the classpath using ClassLoader.getResources() and loads all the classes whose names if finds, hence you can add new sets of plugins just by adding a new jar or class directory to the class path. -
Adobe Edge Animate JavaScript Coding issues/page load time speeds
To let you have an idea of my skill set I have a background in animation and design and have been taking classes in web development. My question is about how to create an interactive website that loads various animation depending on the user's choice and current place within the Adobe Edge Animate timeline. The website I developed for a client @ www.goshowpro.com works but loads slower than I want and doesn't format properly on my client's Macbook (I believe he needs to update his browsers but that is something else.)
So as you can see from looking at my website I used a multitude of HTML files to create my vision of an interactive website based off of a theatrical stage. I know this is not an ideal method. I would prefer to have it all on one page but I am having trouble with my javascript coding. I was wondering if there would be away to expedite my current site's load time and if not if you could look at my NEW coding. (This IS NOT the current coding on the site.)
if = "hstop" "chomstop" "shomstop" "phomstop"
{sym.play("hporstart")};
else = "hconstop" "sconstop" "pconstop"
{sym.play("cporstart")};
else = "hserstop" "cserstop" "pserstop"
{sym.play("sporstart")};
It looks crappy but I'm trying to learn so don't laugh too much. Thanks again.
MichaelHi, Marlene-
We currently bundle jQuery 1.7.1 with the Animate runtime. In order to call fadeOut() on the element newSquare, you would do the following:
sym.$("newSquare").fadeOut();
OR
sym.getSymbol("newSquare").getSymbolElement().fadeOut();
Hope that helps!
-Elaine -
Dynamic Class Loading in an EJB Container
Hello,
We have a need to load classes from a nonstandard place with in an ejb container, ie a database or secure store. In order to do so we have created a custom class loader. Two issues have come up we have not been able to solve, and perhaps some one knows the answer to.
Issue 1.
Given the following code:
public static void main(String args[])
MyClassLoader loader = new MyClassLoader("lic.dat");
System.out.println("Loading class ..." + "TestObject");
Object o = Class.forName("TestObject",true,loader).newInstance();
System.out.println("Object:" + o.toString());
TestObject tstObj = (TestObject) o;
tstObj.doIt();
What happens when executed is as follows. Class.forName calls our loader and does load the class as we hoped, it returns it as well, and the o.toString() properly executes just fine. The cast of the object to the actual TestObject fails with a class not found exception. We know why this happens but don't know what to do about it. It happens because the class that contains main was loaded by the system class loader (the primordial class loader as its sometimes called), That class loader does not know about TestObject, so when we cast even though the class is "loaded" in memory the class we are in has no knowledge of it, and uses its class loader to attempt to find it, which fails.
> So the question is how do you let the main class know to use our class loader instead of
the system class loader dispite the fact is was loaded by the system class loader.
Issue 2:
To make matters worse we want to do this with in an EJB container. So it now begs the question how do you inform an EJB container to use a specific class loader for some classes?
Mike...Holy crap! We are in a similar situation. In creating a plugin engine that dynamically loads classes we use a new class loader for each plugin. The purpose is so that we can easily unload and/or reload a class at runtime. This is a feature supposedly done by J2EE app servers for hot-deploy.
So our plugins are packaged as JAR files. If you put any class in the CLASSPATH, the JVM class loader (or the class loader of the class that is loading the plugin(s)), will load the class. The JavaDoc API states that the parent classloader is first used to see if it can find the class. Even if you create a new URLClassLoader with NULL for parent, it will always use the JVM class loader as its parent. So, ideally, in our couse, plugins will be at web sites, network drives, or outside of the classpath of the application and JVM.
This feature has two benefits. First, at runtime, new updates of plugins can be loaded without having to restart the app. We are even handling versions and dependencies. Second, during development, especially of large apps that have a long startup time, being able to reload only one plugin as opposed to the annoying startup time of Java apps is great! Speeds up development greatly.
So, our problem sounds just like yours. Apparently, the Client, which creates an instance of the plugin engine, tries to access a plugin (after the engine loades it via a new classloader instance for each plugin). Apparently, it says NoDefClassFound, because as you say, the client classloader has no idea about the plugin class loaded by another classloader.
My co-developer came up with one solution, which I really dont like, but seems to be the only way. The client MUST have the class (java .class file) in its classpath in order to work with the class loaded by another class loader. Much like how in an EJB container, the web server calling to EJB MUST contain the Home and Remote interface .class files in its classpath, the same thing needs to be done here. For us, this means if a plugin depends on 5 others, it must contain ALL of the .class files of those plugins it depends on, so that the classloader instance that loads the plugin, can also see those classes and work with them.
Have you got any other ideas? I really dislike that this has to be done in this manner. It seems to me that the JVM should be able to allow various class loaders to work with one another in such a way that if a client loaded by one classloader has an import statement in it to use a class, the JVM should be able to fetch the .class out of the other classloader and share it, or something!
This seems to me that there really is no way to actually properly unload and then reload a class so that the JVM will discard and free up the previous class completely, while using the new class.
I would be interested in discussing this topic further. Maybe some others will join in and help out on this topic. I am surprised there isn't a top-level forum topic about things like class loaders, JVM, etc. I wish there was a way to add one! -
Dynamic Class Loading and Stubs
How Dynamic Class Loading is used on Java RMI, since stubs are generated on clients using Reflection API?
I was reading Dynamic code downloading using JavaTM RMI (http://java.sun.com/javase/6/docs/technotes/guides/rmi/codebase.html), it seems to be out of date.
For example, "The client requests the class definition from the codebase. The codebase the client uses is the URL that was annotated to the stub instance when the stub class was loaded by the registry. Back in step 1, the annotated stub for the exported object was then registered with the Java RMI registry bound to a name.""Enhancements in J2SETM 5.0
Dynamic Generation of Stub Classes
This release adds support for the dynamic generation of stub classes at runtime, obviating the need to use the Java(tm) Remote Method Invocation (Java RMI) stub compiler, rmic, to pregenerate stub classes for remote objects. *Note that rmic must still be used to pregenerate stub classes for remote objects that need to support clients running on _earlier versions_.*
When an application exports a remote object (using the constructors or static exportObject methods(1) of the classes java.rmi.server.UnicastRemoteObject or java.rmi.activation.Activatable) and a pregenerated stub class for the remote object's class cannot be loaded, the remote object's stub will be a java.lang.reflect.Proxy instance (whose class is dynamically generated) with a java.rmi.server.RemoteObjectInvocationHandler as its invocation handler.
An existing application can be deployed to use dynamically generated stub classes unconditionally (that is, whether or not pregenerated stub classes exist) by setting the system property java.rmi.server.ignoreStubClasses to "true". If this property is set to "true", pregenerated stub classes are never used.
Notes:
* If a remote object has pre-5.0 clients, that remote object should use a stub class pregenerated with rmic or the client will get an ClassNotFoundException deserializing the remote object's stub. Pre-5.0 clients will not be able to load an instance of a dynamically generated stub class, because such a class contains an instance of RemoteObjectInvocationHandler, which was not available prior to this release.
* Prior to the J2SE 5.0 release, exporting a remote object would throw a java.rmi.StubNotFoundException if the pregenerated stub class for the remote object's class could not be loaded. With the added support for dynamically generated stub classes, exporting a remote object that has no pregenerated stub class will silently succeed instead. A user deploying a server application to support pre-5.0 clients must still make sure to pregenerate stub classes for the server's remote object classes, even though missing stub classes are no longer reported at export time. Such errors will instead be reported to a pre-5.0 client when it deserializes a dynamically generated stub class.
(1) The static method UnicastRemoteObject.exportObject(Remote) is declared to return java.rmi.server.RemoteStub and therefore cannot be used to export a remote object to use a dynamically generated stub class for its stub. An instance of a dynamically generated stub class is a java.lang.reflect.Proxy instance which is not assignable to RemoteStub."
http://java.sun.com/j2se/1.5.0/docs/guide/rmi/relnotes.html -
Dynamic Class Loading with interface
Hello
I would appreciate any help on the following problem.
I need to load all classes in a particular directory and its subdirectories (top directory is known but not in the classpath) which implement a predefined interface. At the moment I am using a lot of reflection to accomplish this and believe it can be avoided somehow using the fact that I know these classes have to implement a predefined interface.
At the moment, I am searching through the directory and subdirectory, loading all names of classes into a vector using a custom URLClassloader, and then load all classes in the vector into modulecontainers to populate a defaultmutabletree which is displayed on the gui.
I'm sure that knowing the interface means there's a more straightforward way.
Thanks in advance.Finally i've found out myself, i've read some postings in this forum and put them all together, so that my webstart-application finally works the way i want...
That was the topic:
Downloading a jar-file and starting a class from this jar-file within a webstart application (dynamic class loading).
I'll post my final solution for this problem, may be it would be useful in future for anyone else.
//grant all permissions on the clientside
Policy.setPolicy( new Policy() {
public PermissionCollection getPermissions(CodeSource codesource) {
Permissions perms = new Permissions();
perms.add(new AllPermission());
return(perms);
public void refresh(){
//get the current classloader
ClassLoader cl = MyLoadedClass.class.getClassLoader();
//create a new url-classloader while using the current classloader
URL[] urls = new URL[1];
File f = new File(new String(jarName));
urls[0] = f.toURL();
URLClassLoader ul = new URLClassLoader(urls, cl);
//load a class from jarfile
Class c = ul.loadClass(new String(className));
//get an object from loaded class
Object o = c.newInstance();
/* Are we using a class we specifically know about? */
if (o instanceof KnownInterface){
// Yep, lets call a method we know about. */
KnownInterface client = (KnownInterface) o;
client.doAnything();
Maybe you are looking for
-
I'm just looking for away to allow my wife and I to see our contacts, emails, and calendars on the macbook pro. We have a single itunes account, with two different iphones. How do we do this? Right now the computer only shows my wifes information. Th
-
Adobe Exchange panel doesn't appear in Dreamweaver CC
I've joined CC and I'm using Dreamweaver, I've also tried to download and install Adobe Exchange panel without success - I can see it in extension manager but the panel doesn't appear in Dreamweaver. I'm beginning to regret ever signing up for CC as
-
Regarding the file name checking
Hi , I m using the below program which will upload the XL sheet , here i want to validate the file name which i m selecting from the destop. the file name should be named as "Suresh.XLS", where and how i can do validation for checking the file n
-
How to sum hours which is varchar2 data type in oracle
Hi My table is like this emp_ngtshthrs (empno number(10),nightshifthrs varchar2(20)); now I want sum employee nightshifthrs how to do sum of hrs, this is my hours data 01:00,05:00,08:00,10:00,07:00 and 09:00 I want sum the varchar2 type of hours how
-
HT204088 I cannot find my redeem code
I have $ 14 credit for music purchase. I cannot redeem it. Because I don't have the redeem code or download number.