Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

java.io.IOException: HTTPS hostname wrong

843811Apr 22 2005 — edited Jun 28 2005
Hello

I was trying to open a connection to secure URL and post content to it.

I got the following exception:

java.io.IOException: HTTPS hostname wrong: should be <165.112.121.195>
at sun.net.www.protocol.https.HttpsClient.b(DashoA12275)

Its apparantly because the connection is
com.sun.net.ssl.internal.www.protocol.https.DelegateHttpsURLConnection
not
sun.net.ssl.www.protocol.DelegateHttpsURLConnection

I tried setting the system property
System.setProperty("java.protocol.handler.pkgs","sun.net.www.protocol");
to force JVM to use the newer Delegate.
Its still doent work. I use JDK 1.4.2_05. I deploy my application in OC4J 9.0.4

Interesting thing is, I use this code in two different applications, it works in
one and doen't work in one. Both containers use same JDK. Both are OC4J
containers.

Any thoughts? I would appreciate.

thanks
Raghavan

Comments

814120
Windows it is installed only in hvm a mode. After install windows it is possible to install pvm drivers.
user8585227
Thank you karakuts. I installed Windows in a hvm mode and then installed pvm drivers. When I tried to boot this VM into a PV domain I got this:

Error: HVM guest support is unavailable: is VT/AMD-V supported by your CPU and enabled in your BIOS?

Then I changed the line in vm.cfg "builder = 'hvm'" to "builder = 'pvm'" and now I get:

Error: Acquire running lock failed: 256

What I'm doing wrong?

Thanks again.
814120
Windows doesn't work in a mode pvm, but works in pv as drivers. It is not necessary to change anything after setting of drivers.
Avi Miller-Oracle
user8585227 wrote:
Error: HVM guest support is unavailable: is VT/AMD-V supported by your CPU and enabled in your BIOS?
As mentioned, Windows is not supported in PV mode and your hardware either doesn't support HVM or it has not been enabled. You need to check the BIOS on your server to ensure that Processor Virtualization is enabled. You can check the Console screen of Oracle VM to see if it detects HVM support as well.

If there is no VT/AMD-V support on your server, you will not be able to run Windows as a guest.
user8585227
Let me explain...

There are two Pools: One ( A ) that can execute guests in HVM and the other ( B ) that only can execute guests in PVM. I have moved some Linux VM from A to B without problems (well, I had some problems but I solved it easily). But by now is imposible to do the same with Windows VM.

I created the Windows VM in the A pool as HVM and installed the PV drivers. Atfer doing it the VM config file content is:

acpi = 1
apic = 1
bootloader = '/usr/bin/pygrub'
builder = 'hvm'
device_model = '/usr/lib/xen/bin/qemu-dm'
disk = ['file:/var/ovs/mount/501740958A2C4EFC9482E5F3A1E6F282/running_pool/Chronos2/System.img,hda,w',
+',hdc:cdrom,r',+
+]+
kernel = '/usr/lib/xen/boot/hvmloader'
keymap = 'es'
memory = '2048'
name = 'Chronos2'
on_crash = 'restart'
on_reboot = 'restart'
pae = 1
serial = 'pty'
timer_mode = '0'
usbdevice = 'tablet'
uuid = '20bb90fb-a8e1-4dfb-a1d1-450e669dd9eb'
vcpus = 2
vif = ['bridge=xenbr0,mac=00:16:3E:**:**:**,type=netfront']
vif_other_config = []
vnc = 1
vncconsole = 1
vnclisten = '0.0.0.0'
vncpasswd = '******'
vncunused = 1

If I try to run it in A the VM runs as HVM. If I change builder = 'hvm' to builder = 'pvm' and try to run in A I get:

Error: Boot loader didn't return any data!

If I try to run it in B (moving the VM previously and changing the disk location in the config file) I get :

Error: HVM guest support is unavailable: is VT/AMD-V supported by your CPU and enabled in your BIOS?

And if I try to run it in B changing builder = 'hvm' to builder = 'pvm' then I get:

Error: Acquire running lock failed: 256

Well, and now I don't know what else can I do.

Have anybody installed a Windows VM as PV (using PV drivers) in Oracle VM successfully?

Thank you.
Avi Miller-Oracle
Answer
user8585227 wrote:
There are two Pools: One ( A ) that can execute guests in HVM and the other ( B ) that only can execute guests in PVM. I have moved some Linux VM from A to B without problems (well, I had some problems but I solved it easily). But by now is imposible to do the same with Windows VM.
Correct. You cannot run Windows without HVM support. It is impossible. Even installing the PV drivers for Windows doesn't solve this issue: it merely replaces the emulated disk controller and network interface with the paravirtualized versions (blockfront and netfront). The operating system itself still runs in HVM mode, though. Thus, you will not be able to run any Windows guests in Pool B.

Pure paravirtualization (PV) mode is only available for Linux guests as it requires a modified paravirtualization-aware (i.e. the xenU) kernel. This is not available for Windows. What is available for Windows are PV drivers that improve the performance of network and disk I/O operations.
Marked as Answer by user8585227 · Sep 27 2020
814120
Also full pvm suport netbsd & freebsd8.x
user8585227
Ahhhhhhhhhh!!! Ok, now I understand. I thought that PV drivers were created to run Windows VM as PVM.

Thank you again. :)
1 - 8
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 26 2005
Added on Apr 22 2005
4 comments
5,565 views