Exception is thrown when using JEditorPane to display html
Hello,
I have this basic browser to display some pages from our intranet. Here's the code for it:
import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JEditorPane;
import javax.swing.JScrollPane;
import java.net.MalformedURLException;
import java.net.URL;
import java.io.IOException;
public class BrowserPanel extends JPanel {
private JEditorPane pane = null;
// Constructors
public BrowserPanel() {
pane = new JEditorPane();
pane.setEditable(false);
JScrollPane sp = new JScrollPane(pane);
sp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
setLayout(new BorderLayout());
add(sp, BorderLayout.CENTER);
// Methods
public void setContent(String str) {
StringBuffer sb = new StringBuffer(500);
sb.append("http://local.com/cgi-bin/search.pl?arg=");
sb.append(str);
try {
URL url = new URL(sb.toString());
pane.setPage(url);
} catch (MalformedURLException e) {
System.err.println("Malformed URL: " + e);
} catch (IOException e) {
System.err.println("IOException: " + e);
On some of the pages I get text all scrambled and the following exception comes up:
java.lang.ArrayIndexOutOfBoundsException
at javax.swing.text.html.TableView$RowView.layoutMajorAxis(TableView.java:1393)
at javax.swing.text.BoxView.layout(BoxView.java:580)
at javax.swing.text.BoxView.setSize(BoxView.java:265)
at javax.swing.text.BoxView.paint(BoxView.java:283)
at javax.swing.text.html.TableView$RowView.paint(TableView.java:1315)
at javax.swing.text.html.TableView.paint(TableView.java:740)
at javax.swing.text.BoxView.paintChild(BoxView.java:104)
at javax.swing.text.BoxView.paint(BoxView.java:294)
at javax.swing.text.html.BlockView.paint(BlockView.java:240)
at javax.swing.text.BoxView.paintChild(BoxView.java:104)
at javax.swing.text.BoxView.paint(BoxView.java:294)
at javax.swing.text.html.BlockView.paint(BlockView.java:240)
at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1170)
at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:523)
at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:657)
at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:636)
at javax.swing.JComponent.paintComponent(JComponent.java:395)
at javax.swing.JComponent.paint(JComponent.java:687)
at javax.swing.JComponent.paintChildren(JComponent.java:498)
at javax.swing.JComponent.paint(JComponent.java:696)
at javax.swing.JViewport.paint(JViewport.java:668)
at javax.swing.JComponent.paintWithBuffer(JComponent.java:3878)
at javax.swing.JComponent._paintImmediately(JComponent.java:3821)
at javax.swing.JComponent.paintImmediately(JComponent.java:3672)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:370)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:124)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
Many thanks for any clues on how to make it work.
cheers,
--JavanT
you should specify that this is an HTML veiwer explicitly, by writting something similar to this,
editor.setContentType("text/html");
kit = (HTMLEditorKit) editor.getEditorKit();
editor.setEditorKit(kit);
doc = (HTMLDocument) kit.createDefaultDocument();
editor.setDocument(doc);
Similar Messages
-
Use JEditorPane to display HTML and RTF ?
Hello,
Is it possible to use JEditorPane to open a HTML file and then save it as RTF?
And open a RTF file and save it as HTML ???
Ericbump...
has anyone a solution to this?
I have a form that allows users to add raw HTML code. Now I want to display the formatted version in a report but the tags show in the report instead...any suggestions?
regards
Paul P -
Trying to Install RMS application 13.2.2 and I get past the pre-installation checks and when I get to the Data Source details and enter the data source details with the check box checked to validate the schema/Test Data Source I get the following error:
Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver. Please check that the library path is set up properly or switch to the JDBC thin client oracle/jdbc/driver/T2CConnection.getLibraryVersioNumber()
Checks performed:
RMS Application code location and directory contents:
[oracle@test-rms-app application]$ pwd
/binary_files/STAGING_DIR/rms/application
[oracle@test-rms-app application]$ ls -ltr
total 144
-rw-r--r-- 1 oracle oinstall 272 Dec 7 2010 version.properties
-rw-r--r-- 1 oracle oinstall 405 Jan 16 2011 expected-object-counts.properties
-rw-r--r-- 1 oracle oinstall 892 May 13 2011 ant.install.properties.sample
-rw-r--r-- 1 oracle oinstall 64004 Jun 6 2011 build.xml
drwxr-xr-x 9 oracle oinstall 4096 Jun 16 2011 rms13
drwxr-xr-x 3 oracle oinstall 4096 Jun 16 2011 installer-resources
drwxr-xr-x 3 oracle oinstall 4096 Jun 16 2011 antinstall
drwxr-xr-x 2 oracle oinstall 4096 Jun 16 2011 ant-ext
drwxr-xr-x 5 oracle oinstall 4096 Jun 16 2011 ant
-rw-r--r-- 1 oracle oinstall 11324 Dec 18 09:18 antinstall-config.xml.ORIG
-rwxr-xr-x 1 oracle oinstall 4249 Dec 18 10:01 install.sh
drwxr-xr-x 4 oracle oinstall 4096 Dec 18 10:06 common
-rw-r--r-- 1 oracle oinstall 16244 Dec 19 10:37 antinstall-config.xml
-rw-r--r-- 1 oracle oinstall 689 Dec 19 10:37 ant.install.log
[oracle@test-rms-app application]$
Application installation:
[oracle@test-rms-app application]$ ./install.sh
THIS IS the driver directory
Verified $ORACLE_SID.
Verified SQL*Plus exists.
Verified write permissions.
Verified formsweb.cfg read permissions.
Verified Registry.dat read permissions.
Verified Java version 1.4.2.x or greater. Java version - 1.6.0
Verified Tk2Motif.rgb settings.
Verified frmcmp_batch.sh status.
WARNING: Oracle Enterprise Linux not detected. Some components may not install properly.
Verified $DISPLAY - 172.16.129.82:0.0.
This installer will ask for your "My Oracle Support" credentials.
Preparing installer. This may take a few moments.
Your internet connection type is: NONE
Integrating My Oracle Support into the product installer workflow...
[move] Moving 1 file to /binary_files/STAGING_DIR/rms/application
Installer preparation complete.
MW_HOME=/u01/app/oracle/Middleware/NewMiddleware1034
ORACLE_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/as_1
ORACLE_INSTANCE=/u01/app/oracle/Middleware/NewMiddleware1034/asinst_1
DOMAIN_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/user_projects/domains/rmsClassDomain
WLS_INSTANCE=WLS_FORMS
ORACLE_SID=rmsdbtst
JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
Launching installer...
To make sure I have connectivity from the app server to the database (on a database server) here are the steps followed:
[oracle@test-rms-app application]$ tnsping rmsdbtst
TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 19-DEC-2013 10:41:40
Copyright (c) 1997, 2008, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test-rms-db.vonmaur.vmc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = rmsdbtst)))
OK (0 msec)
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ sqlplus rms13@rmsdbtst
SQL*Plus: Release 11.1.0.7.0 - Production on Thu Dec 19 10:46:18 2013
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ ping test-rms-db
PING test-rms-db.vonmaur.vmc (192.168.1.140) 56(84) bytes of data.
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=1 ttl=64 time=0.599 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=2 ttl=64 time=0.168 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=3 ttl=64 time=0.132 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=4 ttl=64 time=0.158 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=5 ttl=64 time=0.135 ms
--- test-rms-db.vonmaur.vmc ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4001ms
rtt min/avg/max/mdev = 0.132/0.238/0.599/0.181 ms
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ uname -a
Linux test-rms-app.vonmaur.vmc 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ cat /etc/*-release
Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
[oracle@test-rms-app application]$
The database is created and all the batch file scripts have been successfully deployed. Now working on the application server. The Weblogic server is installed and 11g forms and reports are installed successfully.
Any help would be helpful.
Thanks,
Ram.Please check MOS Notes:
FAQ: RWMS 13.2 Installation and Configuration (Doc ID 1307639.1) -
Fail to use Jeditorpane to display a text with big5 encoding
Hi All,
I fail to use Jeditorpane to display a text with big5 encoding correctly.
It only show machine code.
I am using jre1.6.0_17. Yet it works well with earlier version of jre like jre 1.6.0_15, and jre 1.6.0_16
bcpscsinbcpscsin wrote:
..I can find it in javax.swing
FFS! It is JEditorPane, not Jeditorpane. Count the freaking upper case letters in both of those!
Convince yourself by following these two URLs
[http://java.sun.com/javase/6/docs/api/javax/swing/JEditorPane.html] -> produces a web page.
[http://java.sun.com/javase/6/docs/api/javax/swing/Jeditorpane.html] -> "Page Not Found"
My point is - do not type 'something like' the class name - get it right so we can be sure. Programming is a technical business and programmers need to be very accurate. It is even more important to be very accurate when asking for help on an forum. People have very little time to 'hold your hand' about the correct spelling and capitalisation of class names - or anything else for that matter.
You still have not answered my question about the bug database. -
HT201177 no audio when using a mini display port to HDMI cable to TV on my Macbook pro
no audio when using a mini display port to HDMI cable to TV on my Macbook pro. can only see the video
I keep saying this over and over, in the hope that people who do a search will find it. Apple cannot possibly test for or be reponsible for the bazillion combinations of adapter, cables, and TV's out there. The only monitors that are 100% guaranteed to work with the MacBook Pro are the Cinema Displays and Thunderbolt Displays, because, they're made by Apple. They're expensive, but they work perfectly.
My guess is that you bought a cheap MDP to HDMI cable, or have a defective one. From my reading of these boards over the past few months, cheap cables have a high failure rate. And the regular priced ones have only a slightly less of one. Try a new one. Make sure you do not damage the Thunderbolt port. -
Trouble with 3d window on ArchiCAD 16 when using Led Cinema Display 27" with GT 330M 256MB connected to my MacBook Pro 15" mid 2010, but runs fine on the attached display.
Trouble with 3d window on ArchiCAD 16 when using Led Cinema Display 27" with GT 330M 256MB connected to my MacBook Pro 15" mid 2010, but runs fine on the attached display.
-
Hi! My imac27 fusion drive late 2013 restarts randomly when using 30" Cinema Display.
32 GB Apple RAM, Mavericks 10.9.2
I'm using power outlets that eliminitates surge fluctuations.
What could cause this? What can i do? I', a bit desperate!Adapter: Apple Mini DisplayPort to Dual-Link DVI Adapter
I wonder what the "Fault CR2: 0xffffff80078ca4f0, Error code: 0x0000000000000000, Fault CPU: 0x0" is...
Panic log:
Anonymous UUID: 44957DF9-C5B4-5AE1-AD54-9C81A374FC95
Tue Mar 18 03:52:54 2014
panic(cpu 0 caller 0xffffff80052dbe2e): Kernel trap at 0xffffff800523404e, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0xffffff80078ca4f0, CR3: 0x000000004329d056, CR4: 0x00000000001606e0
RAX: 0xffffff838906d000, RBX: 0xffffff838905d000, RCX: 0xffffff80058ca4f8, RDX: 0x0000000000000000
RSP: 0xffffff8394cbbd60, RBP: 0xffffff8394cbbd90, RSI: 0x0000000034089b0e, RDI: 0xffffff80058874c8
R8: 0x0000000000000001, R9: 0xffffff8394cbbe90, R10: 0x0000000000000020, R11: 0x0000000000000206
R12: 0x0000000000000005, R13: 0x000006005279d2e6, R14: 0xffffff80491ceb20, R15: 0xffffff80078ca4e8
RFL: 0x0000000000010046, RIP: 0xffffff800523404e, CS: 0x0000000000000008, SS: 0x0000000000000010
Fault CR2: 0xffffff80078ca4f0, Error code: 0x0000000000000000, Fault CPU: 0x0
Backtrace (CPU 0), Frame : Return Address
0xffffff8394cbb9f0 : 0xffffff8005222fa9
0xffffff8394cbba70 : 0xffffff80052dbe2e
0xffffff8394cbbc40 : 0xffffff80052f3326
0xffffff8394cbbc60 : 0xffffff800523404e
0xffffff8394cbbd90 : 0xffffff8005233b17
0xffffff8394cbbdb0 : 0xffffff800524f18d
0xffffff8394cbbde0 : 0xffffff80052165da
0xffffff8394cbbe20 : 0xffffff80052163f4
0xffffff8394cbbe80 : 0xffffff8005213c1d
0xffffff8394cbbef0 : 0xffffff800521e043
0xffffff8394cbbf70 : 0xffffff80052c976d
0xffffff8394cbbfb0 : 0xffffff80052f3b46
BSD process name corresponding to current thread: Logic Pro X
Mac OS version:
13C64
Kernel version:
Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64
Kernel UUID: 9FEA8EDC-B629-3ED2-A1A3-6521A1885953
Kernel slide: 0x0000000005000000
Kernel text base: 0xffffff8005200000
System model name: iMac14,2 (Mac-27ADBB7B4CEE8E61)
System uptime in nanoseconds: 6598450610233
last loaded kext at 8144333788: com.apple.driver.AppleHWSensor 1.9.5d0 (addr 0xffffff7f874fb000, size 36864)
loaded kexts:
com.caiaq.driver.NIUSBHardwareDriver 2.6.0
com.apple.driver.AppleHWSensor 1.9.5d0
com.apple.filesystems.autofs 3.0
com.apple.driver.AppleRAID 4.0.6
com.apple.driver.AppleBluetoothMultitouch 80.14
com.apple.iokit.IOBluetoothSerialManager 4.2.3f10
com.apple.driver.AppleMikeyHIDDriver 124
com.apple.driver.AppleGraphicsDevicePolicy 3.4.35
com.apple.driver.AppleMikeyDriver 2.6.0f1
com.apple.driver.AudioAUUC 1.60
com.apple.driver.AGPM 100.14.15
com.apple.driver.ApplePlatformEnabler 2.0.9d1
com.apple.driver.X86PlatformShim 1.0.0
com.apple.driver.AppleHDAHardwareConfigDriver 2.6.0f1
com.apple.driver.AppleHDA 2.6.0f1
com.apple.driver.AppleUpstreamUserClient 3.5.13
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.GeForce 8.2.4
com.apple.iokit.IOBluetoothUSBDFU 4.2.3f10
com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0
com.apple.driver.AppleIntelHD5000Graphics 8.2.4
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AppleUSBDisplays 360.8.14
com.apple.driver.AppleMuxControl 3.4.35
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.2.3f10
com.apple.driver.AppleHWAccess 1
com.apple.driver.AppleSMCLMU 2.0.4d1
com.apple.driver.AppleBacklight 170.3.5
com.apple.driver.AppleMCCSControl 1.1.12
com.apple.nvidia.NVDAStartup 8.2.4
com.apple.driver.AppleIntelFramebufferAzul 8.2.4
com.apple.driver.AppleIntelMCEReporter 104
com.apple.driver.AppleLPC 1.7.0
com.apple.driver.AppleThunderboltIP 1.1.2
com.apple.iokit.SCSITaskUserClient 3.6.6
com.apple.driver.AppleUSBODD 3.4.1
com.apple.driver.CoreStorageFsck 380
com.apple.driver.AppleFileSystemDriver 3.0.1
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 35
com.apple.driver.AppleUSBHub 666.4.0
com.apple.driver.XsanFilter 404
com.apple.iokit.IOAHCIBlockStorage 2.5.1
com.apple.driver.AppleSDXC 1.5.2
com.apple.driver.AirPort.Brcm4360 831.21.63
com.apple.iokit.AppleBCM5701Ethernet 3.8.1b2
com.apple.driver.AppleUSBXHCI 670.4.0
com.apple.driver.AppleAHCIPort 3.0.0
com.apple.driver.AppleACPIButtons 2.0
com.apple.driver.AppleRTC 2.0
com.apple.driver.AppleHPET 1.8
com.apple.driver.AppleSMBIOS 2.1
com.apple.driver.AppleACPIEC 2.0
com.apple.driver.AppleAPIC 1.7
com.apple.nke.applicationfirewall 153
com.apple.security.quarantine 3
com.apple.kext.triggers 1.0
com.apple.driver.IOBluetoothHIDDriver 4.2.3f10
com.apple.driver.AppleMultitouchDriver 245.13
com.apple.iokit.IOSerialFamily 10.0.7
com.apple.driver.DspFuncLib 2.6.0f1
com.apple.vecLib.kext 1.0.0
com.apple.iokit.IOAcceleratorFamily 98.14
com.apple.nvidia.driver.NVDAGK100Hal 8.2.4
com.apple.nvidia.driver.NVDAResman 8.2.4
com.apple.iokit.IOBluetoothFamily 4.2.3f10
com.apple.driver.IOPlatformPluginLegacy 1.0.0
com.apple.iokit.IOSurface 91
com.apple.driver.AppleGraphicsControl 3.4.35
com.apple.iokit.IOBluetoothHostControllerUSBTransport 4.2.3f10
com.apple.driver.X86PlatformPlugin 1.0.0
com.apple.driver.AppleUSBAudio 2.9.5f4
com.apple.iokit.IOAudioFamily 1.9.5fc2
com.apple.kext.OSvKernDSPLib 1.14
com.apple.driver.AppleHDAController 2.6.0f1
com.apple.iokit.IOHDAFamily 2.6.0f1
com.apple.driver.AppleBacklightExpert 1.0.4
com.apple.iokit.IONDRVSupport 2.4.1
com.apple.driver.AppleSMBusController 1.0.11d1
com.apple.driver.AppleSMC 3.1.8
com.apple.driver.AppleSMBusPCI 1.0.12d1
com.apple.AppleGraphicsDeviceControl 3.4.35
com.apple.iokit.IOAcceleratorFamily2 98.14
com.apple.iokit.IOGraphicsFamily 2.4.1
com.apple.driver.IOPlatformPluginFamily 5.7.0d10
com.apple.driver.AppleThunderboltEDMSink 2.1.3
com.apple.driver.AppleUSBHIDKeyboard 170.15
com.apple.driver.AppleHIDKeyboard 170.15
com.apple.iokit.IOUSBHIDDriver 660.4.0
com.apple.driver.AppleUSBMergeNub 650.4.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.6.6
com.apple.iokit.IOBDStorageFamily 1.7
com.apple.iokit.IODVDStorageFamily 1.7.1
com.apple.iokit.IOCDStorageFamily 1.7.1
com.apple.iokit.IOUSBMassStorageClass 3.6.0
com.apple.iokit.IOSCSIArchitectureModelFamily 3.6.6
com.apple.driver.AppleUSBComposite 656.4.1
com.apple.driver.AppleThunderboltDPInAdapter 3.1.7
com.apple.driver.AppleThunderboltDPOutAdapter 3.1.7
com.apple.driver.AppleThunderboltDPAdapterFamily 3.1.7
com.apple.driver.AppleThunderboltPCIUpAdapter 1.4.5
com.apple.driver.AppleThunderboltPCIDownAdapter 1.4.5
com.apple.driver.CoreStorage 380
com.apple.iokit.IOUSBUserClient 660.4.2
com.apple.driver.AppleThunderboltNHI 2.0.1
com.apple.iokit.IOThunderboltFamily 3.2.7
com.apple.iokit.IO80211Family 630.35
com.apple.iokit.IOEthernetAVBController 1.0.3b4
com.apple.driver.mDNSOffloadUserClient 1.0.1b5
com.apple.iokit.IONetworkingFamily 3.2
com.apple.iokit.IOUSBFamily 675.4.0
com.apple.iokit.IOAHCIFamily 2.6.5
com.apple.driver.AppleEFINVRAM 2.0
com.apple.driver.AppleEFIRuntime 2.0
com.apple.iokit.IOHIDFamily 2.0.0
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 278.11
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 7
com.apple.driver.AppleKeyStore 2
com.apple.driver.DiskImages 371.1
com.apple.iokit.IOStorageFamily 1.9
com.apple.iokit.IOReportFamily 23
com.apple.driver.AppleFDEKeyStore 28.30
com.apple.driver.AppleACPIPlatform 2.0
com.apple.iokit.IOPCIFamily 2.9
com.apple.iokit.IOACPIFamily 1.4
com.apple.kec.corecrypto 1.0
com.apple.kec.pthread 1 -
When using Airplay, the display on my tv isn't being fully used (its not taking up the full widescreen tv display). How do I fix that issue?
Intermittent issues will point to a local network/wifi issue.
Reboot ATV and router, make sure both are up to date
Try ethernet
The home sharing connection will cut out if the iMac goes to sleep. -
I am using IFrame and displayed Html page
Hi Friends
I am using IFrame and displayed Html page in flex4
In this page open to Firefox But not IE please help me.
Thanks
V.ChandraSekharYou have deleted your page, but you have not deleted your page?
Which is it?
If you never saved it it is gone. If you saved it in Lion (OSX 10.7) with Pages 09 v4.1, there should be versions available when you mouse overv the document name at the top of the window.
Peter -
Exception thrown when using SDK 4.5.1 with debug flash player
My setup:
Windows 7
Flash Builder 4 Premium, Version 4.0 (build 272416), volume license
SDK 4.5.1
RIATest 4.3, RIATestAgent4.swc
I compiled our application using SDK 4.5.1 with these compiler setting:
-locale en_US -use-network=false -theme=Halo/halo.swc --keep-as3-metadata Test -define CONFIG::WITH_DEMS true -define CONFIG::LP_MODULE true -includes com.mycompany.automationDelegates.MyContainerAutomationImpl com.mycompany.automationDelegates.MyFirstComponentAutomationImpl com.mycompany.automationDelegates.MySecondComponentAutomationImpl com.mycompany.automationDelegates.MyThirdComponentAutomationImpl -include-libraries "C:\Program Files (x86)\RIATest 4\agent\RIATestAgent4.swc" "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\sdks\4.5.1\frameworks\libs\automation\automation.swc" "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\sdks\4.5.1\frameworks\libs\automation\automation_dmv.swc" "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\sdks\4.5.1\frameworks\libs\automation\automation_agent.swc"
When I run our application using the debug 10.2 Flash Player, the following exception is thrown:
ReferenceError: Error #1065: Variable Scroller is not defined.
at flash.system::ApplicationDomain/getDefinition()
at mx.automation.delegates.containers::ApplicationAutomationImpl/getAutomationChildren()[E:\ dev\4.5.1\frameworks\projects\automation\src\mx\automation\delegates\containers\Applicatio nAutomationImpl.as:266]
at mx.core::UIComponent/getAutomationChildren()[E:\dev\4.5.1\frameworks\projects\framework\s rc\mx\core\UIComponent.as:12919]
at mx.automation::AutomationManager/getAutomationChildrenArray()[C:\work\flex\dmv_automation \projects\automation_agent\src\mx\automation\AutomationManager.as:4895]
at com.riatest::CachedAutomationManager2/getAutomationChildrenArray()[C:\WORK\RIATest\Source \agent4\com\riatest\CachedAutomationManager2.as:46]
at mx.automation::AutomationManager/getChildrenRecursively()[C:\work\flex\dmv_automation\pro jects\automation_agent\src\mx\automation\AutomationManager.as:1252]
at mx.automation::AutomationManager/getChildren()[C:\work\flex\dmv_automation\projects\autom ation_agent\src\mx\automation\AutomationManager.as:1225]
at com.riatest::CachedAutomationManager/getChildren()[C:\WORK\RIATest\Source\agent4\com\riat est\CachedAutomationManager.as:55]
at com.riatest.toolbar::DisplayListTreeDataDescriptor/getChildren()[C:\WORK\RIATest\Source\a gent4\com\riatest\toolbar\DisplayListTreeDataDescriptor.as:74]
at com.riatest.toolbar::DisplayListTreeDataDescriptor/hasChildren()[C:\WORK\RIATest\Source\a gent4\com\riatest\toolbar\DisplayListTreeDataDescriptor.as:112]
at com.riatest.toolbar::DisplayListTreeDataDescriptor/isBranch()[C:\WORK\RIATest\Source\agen t4\com\riatest\toolbar\DisplayListTreeDataDescriptor.as:117]
at mx.controls::Tree/isBranch()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\Tree.as: 1552]
at mx.controls::Tree/initListData()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\Tree .as:2858]
at mx.controls::Tree/makeListData()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\Tree .as:1330]
at mx.controls::List/www.adobe.com/2006/flex/mx/internal::setupRendererFromData()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\List.as:1699]
at mx.controls::List/commitProperties()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\ List.as:896]
at mx.controls::Tree/commitProperties()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\ Tree.as:1191]
at mx.core::UIComponent/validateProperties()[E:\dev\4.5.1\frameworks\projects\framework\src\ mx\core\UIComponent.as:8209]
at mx.managers::LayoutManager/validateProperties()[E:\dev\4.5.1\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:597]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:783]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5.1\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1180]
I contacted the folks who make RIATest, and they did their best to debug the problem. Their conclusion is:
"The stack trace that you posted shows that ApplicationAutomationImpl/getAutomationChildren calls ApplicationDomain/getDefinition on line 266 and the call fails with an error. This most likely indicates a bug in ApplicationAutomationImpl."
This problem never occurred when we were compiling our code using SDK 3.4.1. What can I do to work around this and continue performing automated tests of our Flash applications?Try linking a Scroller into your app.
-
Exception is thrown when Memebr roles is used in XML JAZN
Hi,
I am trying to use the Member roles feature in the JAZN xml file. However, Once you run the application below exception is thrown.
08/08/31 00:33:18 oracle.security.jazn.JAZNObjectNotFoundException
08/08/31 00:33:18 at oracle.security.jazn.spi.xml.XMLRealmRole.init(XMLRealmRole.java:310)
08/08/31 00:33:18 at oracle.security.jazn.spi.xml.XMLRoleManager.init(XMLRoleManager.java:186)
08/08/31 00:33:18 at oracle.security.jazn.spi.xml.XMLRealm.init(XMLRealm.java:200)
08/08/31 00:33:18 at oracle.security.jazn.spi.xml.XMLRealmManager.init(XMLRealmManager.java:167)
08/08/31 00:33:18 at oracle.security.jazn.spi.xml.XMLJAZNProvider.parseDataFile(XMLJAZNProvider.java:403)
08/08/31 00:33:18 at oracle.security.jazn.spi.xml.XMLJAZNProvider.getRealmManager(XMLJAZNProvider.java:480)
08/08/31 00:33:18 at oracle.security.jazn.spi.GenericProvider.getRealmManager(GenericProvider.java:143)
08/08/31 00:33:18 at oracle.security.jazn.JAZNConfig.getRealmManager(JAZNConfig.java:1014)
08/08/31 00:33:18 at oracle.security.jazn.oc4j.JAZNUserManager.getUMType(JAZNUserManager.java:5156)
08/08/31 00:33:18 at oracle.security.jazn.oc4j.JAZNUserManager.getUM(JAZNUserManager.java:5208)
08/08/31 00:33:18 at oracle.security.jazn.oc4j.JAZNUserManager.<init>(JAZNUserManager.java:5245)
08/08/31 00:33:18 at com.evermind.server.deployment.UserManagerConfig$JAZN.construct(UserManagerConfig.java:629)
08/08/31 00:33:18 at com.evermind.server.deployment.UserManagerConfig.delegatee(UserManagerConfig.java:289)
08/08/31 00:33:18 at com.evermind.security.IndirectUserManager.getAdminUser(IndirectUserManager.java:126)
08/08/31 00:33:18 at com.evermind.security.IndirectUserManager.getAdminUser(IndirectUserManager.java:126)
08/08/31 00:33:18 at com.evermind.server.XMLApplicationServerConfig.setPassword(XMLApplicationServerConfig.java:3011)
08/08/31 00:33:18 at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:95)
08/08/31 00:33:18 at java.lang.Thread.run(Thread.java:595)
Can anybody help me solving this problem?!Younis2,
That was the important piece of information you needed to provide ;) I get the same exception if I try to do nested roles, but it doesn't prevent my application from starting - looks like it may be a bug - suggest you post a new thread with the word BUG in the title and give a really simple test case. I was able to reproduce quite simply by using tools->embedded oc4j preferences, and then editing the jazn configuration there to nest one role inside of another.
John -
NoSuchObjectException thrown when using exportObject
Hello,
while dealing with some jGuru-exercise (http://java.sun.com/developer/onlineTraining/rmi/exercises/DistributedGarbageCollector/index.html) I encountered some problems with UnicastRemoteObject.exportObject( obj, 0).
I modified the mentioned exercise so that the server-side remote implementation classes do not extend UnicastRemoteObject anymore. Instead, the remote reference stubs will now be created by calling UnicastRemoteObject.exportObject( obj, 0) and returned to the client.
The modified code:
class MessageObjectImpl
//extends UnicastRemoteObject
implements MessageObject, Serializable, Unreferenced
public MessageObject getMessageObject() throws RemoteException
MessageObject mo = new MessageObjectImpl();
//return mo;
return (MessageObject) UnicastRemoteObject.exportObject(mo, 0);
}Sometimes it works, sometimes it does not. In the latter case the following exception is thrown:
java.rmi.NoSuchObjectException: no such object in tableIt seems as if the Garbage Collector finalizes the object right before the client is able to call a method on the stub.
Can somebody help me out and tell, why it works when the remote implementation class extend UnicastRemoteObject and why it does not work when using UnicastRemoteObject.exportObject(mo, 0).
Thanks in advance!
MPSee http://java.sun.com/developer/onlineTraining/rmi/exercises/DistributedGarbageCollector/index.html.
The interface MessageObject implements Remote. The implementation class does not need to implement Serializable, but it is not wrong, because every UnicastRemoteObject has to be serializable. UnicastRemoteObject itself implements Serializable...
I bypassed the problem by returning the instance "mo" of MessgeObjectImpl instead of the result of exportObject. Now it does work.
Moreover if I would not have extended Remote, there would not be a NoSuchObjectException but an UnmarshallingException. -
Help: Jbo Exception non blocking when using table cell renderer?
Hi,
JClient 9.5.2.
When using Table Cell Renderer on an table cell attribute that is defined mandatory and activating the insert button, the (oracle.jbo.AttrValException) JBO-27014 exception is caught but it is not blocking and a new row is still inserted.
The JClient component demo, table attribute list, has the same behaviour.
You can add multiple rows even if not all required attributes have been documented.
Can a Swing specialist help me on this one?
Example of Table Cell Renderer:
public class TableBasicStatusRenderer extends DefaultTableCellRenderer
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
int row, int column)
JLabel lb = new JLabel((String) StaticData.getStatusName(value)); // retrieves label from Map
return lb;
Regards
FredericHi,
I found something interesting, it could be a WORKAROUND!
I noticed that in another detail panel with table layout the JBO exception was blocking and adding another row before completing the row was NOT possible.
In the create method of the entity object of the displayed View Object I iterate over the detail row iterator to retrieve a maximum value.
By the end of the method the pointer is positionned after the last row.
So I added to the detail panel that doesn't block following code:
In create method of detail Entity Object Impl (only one entity object involved for this View)
// Retrieve master EntityObjectImpl from association:
PostalTariffImpl postalTariffImpl = getPostalTariffAssoc();
// Retrieve detail default row iterator
RowIterator ri = postalTariffImpl.getPostalDetailGroupAssoc();
// Position pointer after last row
ri.last();
ri.next();
Question: Why does this solve the problem?
Regards
Frederic
PS Les mysteres de l'informatique! -
NullPointerException when using JEditorPane
I use a JEditorPane to show html in an applet, when I try to load the JEditorPane from an InputStream I get a NullPointerException.
Stacktrace:
Exception occurred during event dispatching:
java.lang.NullPointerException
at javax.swing.text.html.StyleSheet.getRule(StyleSheet.java:182)
at javax.swing.text.html.StyleSheet$ViewAttributeSet.<init>(StyleSheet.java:2767)
at javax.swing.text.html.StyleSheet.getViewAttributes(StyleSheet.java:285)
at javax.swing.text.html.BlockView.setPropertiesFromAttributes(BlockView.java:314)
at javax.swing.text.html.BlockView.setParent(BlockView.java:59)
at javax.swing.plaf.basic.BasicTextUI$RootView.setView(BasicTextUI.java:1061)
at javax.swing.plaf.basic.BasicTextUI.setView(BasicTextUI.java:480)
at javax.swing.plaf.basic.BasicTextUI.modelChanged(BasicTextUI.java:468)
at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.propertyChange(BasicTextUI.java:1518)
at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:153)
at javax.swing.JComponent.firePropertyChange(JComponent.java:3721)
at javax.swing.text.JTextComponent.setDocument(JTextComponent.java:660)
at javax.swing.text.JTextComponent.read(JTextComponent.java:1384)
at javax.swing.JEditorPane.read(JEditorPane.java:400)
The file I load just contains "<html><body>Test</body></html>", I am loading it using url.openStream();. The file is below the codebase and the url is correct.
Tell me if you need more information.The HTML you say you are trying to use is not technically well-formed. I think you need to include the <head> tag here. All CSS information must be located there, and I am assuming that the parser is looking for this info since it is dying in javax.swing.text.html.StyleSheet.
Mitch Goldstein
Author, Hardcore JFC (Cambridge Univ Press)
[email protected] -
I need to connect a computer monitor to my mac book pro, using a mini display port to VGA adaptor. But have experienced a drastic reduction in font size on my
Mac screen even before I have managed to check the result on the monitor screen. Please how do I compensate for this and restore my mac screen appearance?
Many Thanks Alangium in ukHi alangium,
Welcome to the Support Communities!
Resetting your computer's PRAM should restore your Macbook Pro's screen appearance.
OS X Mavericks: Reset your computer’s PRAM
http://support.apple.com/kb/ph14222
This article may provide some information about your Mini DisplayPort to AVI adapter. Have you tried to connect a different VGA monitor to your Macbook to see if you get the same results?
Apple Mini DisplayPort adapters: Frequently asked questions (FAQ)
http://support.apple.com/kb/HT3382
18. What is the maximum resolution available for use with the Apple Mini DisplayPort to VGA adapter?
The resolution available with the Apple Mini DisplayPort to VGA Adapter is 1920 x 1200. VGA displays that use higher refresh rates (such as 85 Hz) at resolutions of 1600 x 1200 or greater may not generate video properly until you lower the refresh rate.
Apple computers: Troubleshooting issues with video on internal or external displays
http://support.apple.com/kb/HT1573#5
How can I detect displays?
If the detect displays option is not available, hold down the Option key while you are in the Display pane.
How do I select additional resolutions on my display?
You can use the Display pane of System Preferences to specify how your display works. Not all options appear for all display models. By default the best resolution for your display will already be selected in System Preferences.
To select a different resolution, use the Scaled option. Some additional resolutions may be available when you hold the Option button.
I hope this information helps ....
- Judy
Maybe you are looking for
-
Today, I had to retire my Macbook 17" Pro because it would not do wireless internet anymore. It is now an expensive dust-gatherer in my storage closet. I had all my music and movies and tv shows on there, but I wasn't all that worried, the movies a
-
MC760 not recognized by Windows 7
Hello, I've seen posts concerning this but not for exactly my issue. I have an MC760 wireless modem and Windows 7 Pro does not recognize that I put it in the USB port. The modem works fine as my XP laptop see it fine. Any ideas? Thanks, bgg
-
Dear All, I want monthy report for HR module which includes persons name, personal number, in-oput timings, shift time , actual shift and the status for all month. If any body knows the report which is similer to this reprt then pls inform me. Tha
-
Home Networking Best Practice for Performance
Hi there first time poster. I have 3 wireless routers at home (Linksys WRT54G's) . I have WEP password setup for security and everything works great. My only question is, is there anything I can look for in the settings that may boost intranet and
-
Fusion drive + Bootcamp on mid 2012 MacBook Pro 15"
Dear all, I am in a sort of delimma now, as I am trying to set up a Fusion Drive with a Bootcamp partition on my 2012 MacBook Pro 15" with a Hitachi 750G HDD and a Crucial Micron M4 256G SSD. Here are the challenges I read up from other threads or pe