Coping iso file and mounting problem
Hi
I am using Windows 8.1 Update Enterprise 64 bit and Windows ADK.
I noticed that, if I select the "Environment of the deployment tools and creations images" and I click on the "Run as Administrator" item of his Pop-Up menu and I mount on a iso image of windows 8.1 Update, when I run the command
robocopy <Drive_Letter>:\"<Windows_Files_Path>" /e
to copy all its files in a directory and the command
dism /Mount-Image /ImageFile:"<Windows_Files_Path>"\install.wim /Index:<Image_Index> /MountDir:"<Mount_Directory_Path>"
to mount an image volume, this error appears:
Error: 0xc1510111
Not have permission to mount and modify this image.
However, if I copy these files through the "file explorer" window, the mounting of this volume image is working properly. How come?
Thanks
Bye
Balubeto
I am unable to reproduce the issue above:
E:\>dism /mount-image /imagefile:e:\release\Captures.001\Win2008R2Sp1.wim /index:1 /mountdir:c:\mount
Deployment Image Servicing and Management tool
Version: 6.3.9600.17031
Mounting image
[==========================100.0%==========================]
The operation completed successfully.
E:\>robocopy e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT e:\mount\test zti*.log /njh /ndl
100% New File 226728 e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT\ZTIApplications.log
100% New File 1228 e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT\ZTIApplyGPOPack.log
100% New File 10283 e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT\ZTIAppVerify.log
100% New File 29169 e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT\ZTIBackup.log
100% New File 2101 e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT\ZTIBDE.log
100% New File 36103 e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT\ZTIConfigure.log
100% New File 34934 e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT\ZTIDiskpart.log
100% New File 1027 e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT\ZTIDomainJoin.log
100% New File 41428 e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT\ZTIDrivers.log
100% New File 93591 e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT\ZTIGather.log
100% New File 2619 e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT\ZTIGroups.log
100% New File 2898 e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT\ZTINextPhase.log
100% New File 3875 e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT\ZTIOSRole.log
100% New File 740 e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT\ZTIOSRolePS.log
100% New File 2350 e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT\ZTIPatches.log
100% New File 4180 e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT\ztiRunCommandHidden.log
100% New File 1215 e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT\ZTITatoo.log
100% New File 1855 e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT\ZTIValidate.log
100% New File 190933 e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT\ZTIWindowsUpdate.log
100% New File 1436 e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT\ZTIWinRE.log
100% New File 40631 e:\release\Captures.001\Create\WIN2008R2SP1\MININT-E5LVCNT\ZTIYellowBang.log
Total Copied Skipped Mismatch FAILED Extras
Dirs : 1 0 0 0 0 0
Files : 21 21 0 0 0 0
Bytes : 712.2 k 712.2 k 0 0 0 0
Times : 0:00:00 0:00:00 0:00:00 0:00:00
Speed : 5209457 Bytes/sec.
Speed : 298.087 MegaBytes/min.
Ended : Tuesday, September 23, 2014 11:13:46 AM
E:\>dism /unmount-wim /mountdir:c:\mount /commit
Deployment Image Servicing and Management tool
Version: 6.3.9600.17031
Image File : e:\release\Captures.001\Win2008R2Sp1.wim
Image Index : 1
Saving image
[==========================100.0%==========================]
Unmounting image
[==========================100.0%==========================]
The operation completed successfully.
Additionally I can see that the original question asked was copied from this post 2 years ago:
http://www.eightforums.com/installation-setup/54246-coping-iso-file-mounting-problem.html
is this really your problem?
Really, this is not a MDT related question. perhaps a general Windows Setup forum would be a better place to ask this question.
Keith Garner - Principal Consultant [owner] -
http://DeploymentLive.com
Similar Messages
-
Coping iso file and monting problem
Hi
I am using Windows 8.1 Update Enterprise 64 bit and Windows ADK.
I noticed that, if I select the "Environment of the deployment tools and creations images" and I click on the "Run as Administrator" item of his Pop-Up menu and I mount on a iso image of windows 8.1 Update, when I run the command
robocopy <Drive_Letter>:\"<Windows_Files_Path>" /e
to copy all its files in a directory and the command
dism /Mount-Image /ImageFile:"<Windows_Files_Path>"\install.wim /Index:<Image_Index> /MountDir:"<Mount_Directory_Path>"
to mount an image volume, this error appears:
Error: 0xc1510111
Not have permission to mount and modify this image.
However, if I copy these files through the "file explorer" window, the mounting of this volume image is working properly. How come?
Thanks
Bye
BalubetoHi,
Unlike normal copy commands, Robocopy is designed for reliable copy or mirroring while maintaining the permissions, attributes, owner information, timestamps and properties of the objects copied. In opinion, that's why you encounter this problem.
To fix this problem, can try to add /nocopy parameter for test.
Note:Copies no file information (useful with /purge).
You can refer to the link below for more details with Robocopy:
http://technet.microsoft.com/en-us/library/cc733145(WS.10).aspx
Roger Lu
TechNet Community Support -
Hi, since i put some mp4 video or DVD files on my external hard drives final cut prox won't recognize my hard drives, i move all the video files and the problem still exist. somebody have the solution
Did the back and forth between PC and Mac file systems screw up my files somehow?
Yes. Unfortunately the move has almost certainly caused the loss of the resource data that would have been (invisibly) attached to those files.
By adding a specific .mov extension after the fact you will have helped the Mac correctly identify the file type / asscoiations but also significantly you will have physically changed the filename eg from "clip" to "clip.mov". This means that when you come to reconnect the media in FCP , then FCP will be looking for files that no longer exist at the given path eg when specifically looking for our example clip called "clip" of course it won't find it.
Try this as a test... first remove the ".mov" extension from one or more of the clips, select those clips and press Cmd-Opt-I to open an Info window for the selection. You'll see an "Open with:" popup and in that popup you should choose QuickTime Player (if its a Unix Executable then it will initially list Terminal as the appropriate app, you have to choose Other... then in the open dialog choose Enable > All Applications and then navigate to and select the Quicktime Player app as the appropriate app). After you've done that restart FCP and see if you can now reconnect to those clips. -
Downloading dmg file and Mounting Failed ??
hi,
i might have messed up with the files on my ibook.
i somehow deleted previous users account and created mine As Admin. ..... however deleted user account is in deleted user folder as dmg file.
now when i log in my account as admin and download something > then Disk copier helper opens > then installation >> and finally Message comes .. Mounting Failed ( error 95 ).
this happened when i tried to download and install dmg file from internt
it also says that there is no file folder to handle this file
How can i fix mounting problem on my User Account as Admin.
thanksI'm on the same boat. I called Apple Support. They made me clean cache, create a new user, yada yada yada. Nothing helped. Last resort was to re-install OSX Snow 10.6.2
I did so, doing an ERASE then moving files/programs back from Time Machine. Right after OS was just installed, I was able to download anything. After I did an upgrade to the latest combo patch to 10.6.2 I was back in "no download land"
I have Google Chrome (no dice), FireFox (no dice)....
Help! I don't want to have to re-install everything again! -
Arch running Xfce here.
The other day I tried to mount an external hard drive by just plugging it in. It wouldn't work (obviously), so I Googled a solution and used it. Problem is, now I can't remember what I did, and I'm having problems. I think I may have messed with some conf files...
First, the floppy icon on my desktop won't go away unless I tweak a setting that would also stop external hard drives from appearing on the desktop (which I would like to keep).
Second, when I plug in my external hard drive, it no longer appears.
Third, HAL won't start.
I know that's not much to work with, but where can I start trying to figure out what went wrong and how to fix it?Ok, managed to reinstall HAL, but I still can't access my hard drive. I had a new error when trying to open the external hard drive by double-clicking the desktop icon: "org.freedesktop.hal.storage.mount-removable no <-- (action, result)." I managed to get rid of that error by following the advice here: http://bbs.archlinux.org/viewtopic.php? … 05#p506905 and here: http://bbs.archlinux.org/viewtopic.php? … 38#p585338. Now when I try to access the drive I get a permission denied error. Trying to change the permissions so that my user account can access the drive (with chmod or sudo thunar) results in the error "Operation not supported" for every single file on the drive. What am I missing?
/etc/dbus-1/system.d/hal.conf
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<!-- This configuration file specifies the required security policies
for the HAL to work. -->
<!-- Only root or user hal can own the HAL service -->
<policy user="hal">
<allow own="org.freedesktop.Hal"/>
</policy>
<policy user="root">
<allow own="org.freedesktop.Hal"/>
</policy>
<!-- Allow anyone to invoke methods on the Manager and Device interfaces -->
<policy context="default">
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.DBus.Introspectable"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.DBus.Properties" />
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Manager"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.CPUFreq"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.DockStation"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.KillSwitch"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.KeyboardBacklight"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.Leds"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.LightSensor"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.Storage"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.Storage.Removable"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.Volume"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.WakeOnLan"/>
</policy>
<policy group="power">
<allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
<allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
</policy>
<policy group="storage">
<allow send_interface="org.freedesktop.Hal.Device.Volume"/>
<allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
</policy>
</busconfig>
/etc/PolicyKit/PolicyKit.conf
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">
<!-- See the manual page PolicyKit.conf(5) for file format -->
<config version="0.1">
<match action="org.freedesktop.hal.storage.mount-removable">
<match user="root">
<return result="yes"/>
</match>
<match user="harris">
<return result="yes"/>
</match>
</match>
<match action="org.freedesktop.hal.storage.mount-fixed">
<match user="root">
<return result="yes"/>
</match>
<match user="harris">
<return result="yes"/>
</match>
</match>
</config>
/usr/share/PolicyKit/policy/org.freedesktop.hal.storage.policy
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
<!--
Policy definitions for HAL's drives/media mechanims.
Copyright (c) 2007 David Zeuthen <[email protected]>
HAL is licensed to you under your choice of the the Academic Free
License Version 2.1, or the GNU General Public License version 2. Some
individual source files may be under the GPL only. See COPYING for
details.
-->
<policyconfig>
<action id="org.freedesktop.hal.storage.mount-fixed">
<description>Mount file systems from internal drives.</description>
<message>System policy prevents mounting internal media</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep_always</allow_active>
</defaults>
</action>
<action id="org.freedesktop.hal.storage.mount-removable">
<description>Mount file systems from removable drives.</description>
<message>System policy prevents mounting removable media</message>
<defaults>
<allow_inactive>yes</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
<action id="org.freedesktop.hal.storage.unmount-others">
<description>Unmount file systems mounted by other users.</description>
<message>System policy prevents unmounting media mounted by other users</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep_always</allow_active>
</defaults>
</action>
<action id="org.freedesktop.hal.storage.eject">
<description>Eject removable media.</description>
<message>System policy prevents ejecting removable media</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
<action id="org.freedesktop.hal.storage.crypto-setup-fixed">
<description>Set up decryption for encrypted fixed storage devices.</description>
<message>System policy prevents accessing encrypted fixed media</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep_always</allow_active>
</defaults>
</action>
<action id="org.freedesktop.hal.storage.crypto-setup-removable">
<description>Set up decryption for encrypted removable storage devices.</description>
<message>System policy prevents accessing encrypted removable media</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
</policyconfig>
/etc/fstab
# /etc/fstab: static file system information
# <file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
/dev/fd0 /media/fl auto user,noauto 0 0
UUID=5dfdafa0-1268-4b5a-9901-0714929f8674 /boot ext2 defaults 0 1
UUID=cd8aac23-3f80-4320-afb6-3685c95ea357 / ext4 defaults 0 1
UUID=dc8c641e-82d5-405d-8240-a3382c0176cb swap swap defaults 0 0
UUID=f5546047-5431-4992-90bf-317251e4e8ad /home ext4 defaults 0 1 -
[solved] Shutdown and Mount problems
Hello Arch-community
I did a fresh webinstallation with xfce.
Everybody seems to be running fine, expect this rights problem with shutdown/reboot and mounting CDs and other partitions.
This is my ~/.xinitrc:
exec ck-launch-session dbus-launch startxfce4
The daemons look like this:
DAEMONS=(syslog-ng !network netfs crond dbus hal networkmanager)
My user is in the following groups:
lp wheel games network video audio storage scanner power
I also added the code from the HALs-wikipage to /etc/PolicyKit/PolicyKit.conf - However the folder didn´t even exist and I had to create that file.
And I can´t seem to find any other solutions =/
I hope you can help me...
Last edited by TheBigMole (2011-03-20 02:47:35)stqn wrote:Maybe you are using the /etc/inittab method for autologin?
No, I was using the ~/.bash_profile method. I tried commenting it out and starting xfce manually after login with the same problem.
However, while rereading the wikiarticle I decided to use slim, which solved my problems.
Thank you for yor help, everyone! -
File and FileInputStream problem
Hi all
I have downloaded from developpez.com a sample code to zip files. I modified it a bit to suit with my needs, and when I launched it, there was an exception. So I commented all the lines except for the first executable one; and when it succeeds then I uncomment the next executable line; and so on. When I arrived at the FileInputStream line , the exception raised. When I looked at the code, it seemed normal. So I want help how to solve it. Here is the code with the last executable line uncommented, and the exception stack :
// Copyright (c) 2001
package pack_zip;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import oracle.jdeveloper.layout.*;
import java.io.*;
import java.util.*;
import java.util.zip.*;
import java.text.*;
* A Swing-based top level window class.
* <P>
* @author a
public class fzip extends JFrame implements ActionListener{
JPanel jPanel1 = new JPanel();
XYLayout xYLayout1 = new XYLayout();
JTextField szdir = new JTextField();
JButton btn = new JButton();
JButton bzip = new JButton();
* Taille générique du tampon en lecture et écriture
static final int BUFFER = 2048;
* Constructs a new instance.
public fzip() {
super("Test zip");
try {
jbInit();
catch (Exception e) {
e.printStackTrace();
* Initializes the state of this instance.
private void jbInit() throws Exception {
this.getContentPane().setLayout(xYLayout1);
this.setSize(new Dimension(400, 300));
btn.setText("btn");
btn.setActionCommand("browse");
btn.setLabel("Browse ...");
btn.setFont(new Font("Dialog", 0, 14));
bzip.setText("bzip");
bzip.setActionCommand("zipper");
bzip.setLabel("Zipper");
bzip.setFont(new Font("Dialog", 0, 14));
btn.addActionListener(this);
bzip.addActionListener(this);
bzip.setEnabled(false);
this.getContentPane().add(jPanel1, new XYConstraints(0, 0, -1, -1));
this.getContentPane().add(szdir, new XYConstraints(23, 28, 252, 35));
this.getContentPane().add(btn, new XYConstraints(279, 28, 103, 38));
this.getContentPane().add(bzip, new XYConstraints(128, 71, 103, 38));
public void actionPerformed(ActionEvent e)
if(e.getActionCommand() == "browse")
FileDialog fd = new FileDialog(this);
fd.setVisible(true);
szdir.setText(fd.getDirectory());
bzip.setEnabled(true);
else
* Compression
try {
// création d'un flux d'écriture sur fichier
FileOutputStream dest = new FileOutputStream("Test_archive.zip");
// calcul du checksum : Adler32 (plus rapide) ou CRC32
CheckedOutputStream checksum = new CheckedOutputStream(dest, new Adler32());
// création d'un buffer d'écriture
BufferedOutputStream buff = new BufferedOutputStream(checksum);
// création d'un flux d'écriture Zip
ZipOutputStream out = new ZipOutputStream(buff);
// spécification de la méthode de compression
out.setMethod(ZipOutputStream.DEFLATED);
// spécifier la qualité de la compression 0..9
out.setLevel(Deflater.BEST_COMPRESSION);
// buffer temporaire des données à écriture dans le flux de sortie
byte data[] = new byte[BUFFER];
// extraction de la liste des fichiers du répertoire courant
File f = new File(szdir.getText());
String files[] = f.list();
// pour chacun des fichiers de la liste
for (int i=0; i<files.length; i++) {
// en afficher le nom
System.out.println("Adding: "+files);
// création d'un flux de lecture
FileInputStream fi = new FileInputStream(files[i]);
/* // création d'un tampon de lecture sur ce flux
BufferedInputStream buffi = new BufferedInputStream(fi, BUFFER);
// création d'en entrée Zip pour ce fichier
ZipEntry entry = new ZipEntry(files[i]);
// ajout de cette entrée dans le flux d'écriture de l'archive Zip
out.putNextEntry(entry);
// écriture du fichier par paquet de BUFFER octets
// dans le flux d'écriture
int count;
while((count = buffi.read(data, 0, BUFFER)) != -1) {
out.write(data, 0, count);
// Close the current entry
out.closeEntry();
// fermeture du flux de lecture
buffi.close();*/
/* // fermeture du flux d'écriture
out.close();
buff.close();
checksum.close();
dest.close();
System.out.println("checksum: " + checksum.getChecksum().getValue());*/
// traitement de toute exception
catch(Exception ex) {
ex.printStackTrace();
And here is the error stack :
"D:\jdev32\java1.2\jre\bin\javaw.exe" -mx50m -classpath "D:\jdev32\myclasses;D:\jdev32\lib\jdev-rt.zip;D:\jdev32\jdbc\lib\oracle8.1.7\classes12.zip;D:\jdev32\lib\connectionmanager.zip;D:\jdev32\lib\jbcl2.0.zip;D:\jdev32\lib\jgl3.1.0.jar;D:\jdev32\java1.2\jre\lib\rt.jar" pack_zip.czip
Adding: accueil188.cfm
java.io.FileNotFoundException: accueil188.cfm (Le fichier spécifié est introuvable.
void java.io.FileInputStream.open(java.lang.String)
void java.io.FileInputStream.<init>(java.lang.String)
void pack_zip.fzip.actionPerformed(java.awt.event.ActionEvent)
void javax.swing.AbstractButton.fireActionPerformed(java.awt.event.ActionEvent)
void javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(java.awt.event.ActionEvent)
void javax.swing.DefaultButtonModel.fireActionPerformed(java.awt.event.ActionEvent)
void javax.swing.DefaultButtonModel.setPressed(boolean)
void javax.swing.plaf.basic.BasicButtonListener.mouseReleased(java.awt.event.MouseEvent)
void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
void java.awt.Component.processEvent(java.awt.AWTEvent)
void java.awt.Container.processEvent(java.awt.AWTEvent)
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
boolean java.awt.EventDispatchThread.pumpOneEvent()
void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
void java.awt.EventDispatchThread.run()
Thank you very muchOne easy way to send a file through RMI is to read all bytes of a file to a byte array and send this array as a parameter of a remote method. But of course you may have problems with memory when you send large files. The receive is simillary.
Other way is to split the file and getting slices of the file, sending slices and re-assemble at destination. This assume that the file isn't changed through the full transfering is concluded.
I hope these could help you. -
Jar file and classpath problem
I0m writing a program that use the kunststoff.jar Look&Feel.
Now I would like to put all I'm writing into a jar file but I always have a NoClassFoundException when I try to start my application.
here is a MANIFEST:ME I'm using:
Manifest-Version: 1.0
Created-By: 1.4.2-beta (Sun Microsystems Inc.)
Main-Class: JListaR.JListaR
Class-Path: kunststoff.jar img\ .why this don't work?Unfortunately you can't embed jars within a jar and
expect them to be referencable for the classpath from
outside the main jar. The "Class-Path" attribute in
the manifest is used to refer to other jar files
outside of your jar file.
The usual approach to solve this problem is to unpack
the jar files you want to embed and then rejar
everything together in one big jar file again. This
isn't always a great approach though, I know I'm
looking for an alternative. So far my only alternative
is dynamic class loading using a classloader, however
this isn't great if you need to refer to several
hundreds or even thousands of classes.thank you very mach...now I understand because it dosen't work correctly! -
Reading file and parseInt - PROBLEM
Hi, I am trying read from .txt file but I have a problem when I use Integer.parseInt. Can you see what could be wrong in this source:
public String loadPlayerFromTxt() {
String result = "";
try{
FileInputStream fstream = new FileInputStream("Test.txt");
DataInputStream in = new DataInputStream(fstream);
BufferedReader br = new BufferedReader(new InputStreamReader(in));
int position = 0;
while ((br.readLine()) != null) {
Gamer gamer = new Gamer();
gamer.setName(br.readLine());
gamer.setRace(br.readLine());
gamer.setRole(br.readLine());
gamer.setLevel(Integer.parseInt(br.readLine()));
String [] array = new String [6];
String abilities = br.readLine();
String str = abilities.trim();
//System.out.println(abilities);
array = str.split(",");
gamer.setStrength(Integer.parseInt(array[0]));
gamer.setEndurance(Integer.parseInt(array[1]));
gamer.setDexterity(Integer.parseInt(array[2]));
gamer.setIntelligence(Integer.parseInt(array[3]));
gamer.setWisdom(Integer.parseInt(array[4]));
gamer.setCharisma(Integer.parseInt(array[5]));
this.gcollection.addGamer(gamer,position);
position++;
result = "succesful";
in.close();
catch (Exception e){//Catch exception if any
System.err.println("Error: " + e.getMessage());
e.printStackTrace();
e.getLocalizedMessage();
return result;
Error message is:
Error: For input string: "12, 15, 19, 9, 14, 7"
java.lang.NumberFormatException: For input string: "12, 15, 19, 9, 14, 7"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:456)
at java.lang.Integer.parseInt(Integer.java:497)
at ca5.GameControle.loadPlayerFromTxt(GameControle.java:56)
at ca5.GameControle.main(GameControle.java:112)Pavel.Prochy wrote:
Hi, I am trying read from .txt file but I have a problem when I use Integer.parseInt. Can you see what could be wrong in this source:
Error: For input string: "12, 15, 19, 9, 14, 7"
java.lang.NumberFormatException: For input string: "12, 15, 19, 9, 14, 7"The Integer.parseInt() method expects a String that contains only numbers. You are passing it the following string:
12, 15, 19, 9, 14, 7Which contains punctuation and whitespace (i.e. not just numbers). When the string you pass to Integer.parseInt() contains anything but numbers you get the "NumberFormatException" thrown. What you need to do is to do some pre-processing on the string you read from the file or (ideally) change the format of the file so that you have each of the numbers on their own line rather than having multiple numbers on the same line. If you HAVE to keep all the numbers on the same line then you will need to do the following (or something very similar to it):
public class Tester3 {
public static void main(String[] args) {
String input = "12, 15, 19, 9, 14, 7";
String[] strings = input.split(",");
for(String string : strings) {
int parameter = Integer.parseInt(string.trim());
System.out.println("parameter: "+parameter);
}Program output from above code:
parameter: 12
parameter: 15
parameter: 19
parameter: 9
parameter: 14
parameter: 7When you use the Integer.parseInt() call you should consider the possibility that your input will cause the call to fail. You can pre-process the input to ensure it will not fail, catch the NumberFormatException by wrapping the call to Integer.parseInt() in a try-catch block or create a method in your class that throws a NumberFormatException to its caller and let the caller handle the error
Edited by: amp88 on Nov 4, 2009 2:26 AM
Edited by: amp88 on Nov 4, 2009 2:27 AM -
Time capsule. recover files and mount drive
I have tried to recover files from a formated time capsule without success.
Problem is I cannot find the drive in disk utilities and can only assume that as a result I cannot find the drive through, File salvage, Stellar Pheonix and disk utilities.
I have added the drive to the desktop through the systempreferences/accounts/loginitems and now I have it on the desktop.
the drive is easily viewable and accessible through Finder although I cannot find or search for it in any disk utility tool.
Can anyone advise of a solution. How can I use these disk utilities and how can I launch this network drive in the mac disk utilities.I have tried to recover files from a formated time capsule without success.
Problem is I cannot find the drive in disk utilities and can only assume that as a result I cannot find the drive through, File salvage, Stellar Pheonix and disk utilities.
I have added the drive to the desktop through the systempreferences/accounts/loginitems and now I have it on the desktop.
the drive is easily viewable and accessible through Finder although I cannot find or search for it in any disk utility tool.
Can anyone advise of a solution. How can I use these disk utilities and how can I launch this network drive in the mac disk utilities. -
Accessing a file and memory problem
hi gurus;
here's the thing:
when i initializing a file like
File a = new File(xxx);
is the file save to memory yet? or it is just initializing only?
or when i accessing using randomaccessfile its just save to memory?
any good link that teach this kind of things..
any input will much appreciate
ThanksHere you are
http://java.sun.com/docs/books/tutorial/java/javaOO/objectcreation.html
This is a good basic tutorial. -
I pad 2 problems with ISO 7 and mail
I have updated my ipad 2 to ISO 7 and have problems with mail. When composing an email it keeps freezing and then crashes and puts me back to the home screen. Everything was fine before the update. Can anyone help with a solution or how I get rid of ISO 7 please before I throw it out of the window or buy a Microsoft product !!!
Restart your Mac. See if that makes a difference.
-
Hi!
I am currently running macOS 9.1. Recently I downloaded an .iso file, but the computer seems to think it is a HTML Document. is there any extensions etc. that I will need to download to get the computer to recognise it as an .iso file and then mount it?
Help would be greatly appreciated
ACWL
PS- Im not going to be able to access these forums very often, so could you e-mail it to me please? (aclockworklemon1 (at) gmail (dot) com) <Edited by Host>
Message was edited by: A ClockWork LemonHi, ACWL -
Welcome to Apple's Discussions.
I would suggest you first make a copy of the file, one to use to try opening it. This way you will still have the original in case something goes wrong (such as the software you try to use damaging the file in some way).
I would first try dropping the .iso file onto the icon for Stuffit Expander - with luck it will be opened and mounted. You may need to open Stuffit Expanders' Preferences and enable the option to mount disk images - to do that, double-click Stuffit Expander, open its Preferences (in the File menu), go to the item in the list "Disk Images", checkmark the item "Mount Disk Images". Once you have set it (or confirmed it is set to do that), quit Stuffit Expander before dropping the .iso file onto it.
Note - you may want to reset Stuffit Expander to not mount disk images once you are done trying it with the .iso file. Reason - it can interfere during the downloading of and/or normal mounting of .smi disk image files.
If using Stuffit Expander does not work, try dropping the .iso file onto Apple's Disk Copy utility. It's one of the standard utilities that comes with a normal OS 9 install. -
Recreate .vmx and vmdk discriptor file and merge snapshots
Hi all,
I am running ESXi 5.0 and I'm missing the vmx and descriptor file of a particular VM.
The machine is running fine untill I shut it down. After shutting down I will not be able to restart it before I have recreated the descriptor file and created a new .vmx.
The only files which are in the VM folder are:
-rw------- 1 root root 23152713728 Sep 19 22:43 TS1-000001-delta.vmdk
-rw------- 1 root root 0 Sep 19 22:14 TS1-b4014f27.vswp
-rw------- 1 root root 80530636800 Sep 19 22:38 TS1-flat.vmdk
-rw------- 1 root root 20166422528 Sep 19 22:14 TS1_1-000001-delta.vmdk
-rw------- 1 root root 107374182400 Sep 19 23:03 TS1_1-flat.vmdk
-rw------- 1 root root 0 Sep 19 22:09 vmx-TS1-3019984679-2.vswp
I was able to recreate the disk descriptor file and mount it to a new created VM with the same specs as the old one.
It will boot, the only problem is that the disk does not contain the last data of the snapshot. So it is pretty useless now.
So my question is: Which step do I have to follow (and at what moment) for merging the snapshot disk with it's parent?
I have a backup of the unmodified vmdk's and the snapshot files listed above.
I hope that someone can point me in the right direction.
Thanks in advance.
Used sources: Missing vmx and vmware.log file and VMware KB: Recreating a missing virtual machine disk descriptor fileHi, thank you for your quick reply.
For keeping the post short, I renamed the virtual disk names in this post.
Actually they are named like this:
Windows Server 2008R2 (HTH) TS1-000001-delta.vmdk
Windows Server 2008R2 (HTH) TS1-b4014f27.vswp
Windows Server 2008R2 (HTH) TS1-flat.vmdk
Windows Server 2008R2 (HTH) TS1_1-000001-delta.vmdk
Windows Server 2008R2 (HTH) TS1_1-flat.vmdk
vmx-Windows Server 2008R2 (HTH) TS1-3019984679-2.vswp
It also does not correspondents with the virtual machine name because we renamed it in a later stage (that is were the confusion started and we deleted the folder with the old name where the log files and vmx was still there.
Can I just rename your posted files to the above names and follow the procedure you described?
Thanks in advance.
PS. can I delete the .vswp files? -
Strange I can't figure this out. I downloaded an .iso file to burn to dvd. I'll call it "file.iso" How do I do it? Disk Utility dutifully reproduces the file and I get "file.iso" on the DVD. That's not what I want. I want it "expanded" or whatever, so it makes a working DVD, not a copy of the .iso file. I don't want a data disc, I want a payable DVD. It's not protected content or anything like that. The threads I saw don't seem to address it this way but are people trying to burn data to a dvd. Seems kinda strange I can't figure this out but I'm stumped. Any help will be appreciated.
Double click the iso file and it should mount in the Finder. Copy the contents to your hard drive and use Toast to burn the VIDEO-TS file to a DVD disk.
Maybe you are looking for
-
we want to bring the paid legacy invoices into SAP in such a way that the invoice is considered to be paid in SAP. Our payment program should not pick up these invoices for payment since they have already been paid in the legacy system. Is there any
-
Why does the iphone have such a small headphone jack!?
The headphone jack on the iphone is not wide enough for any of my non apple headphones to fit. in fact the official apple cable i have for the ipod video does not even fit... this does not make much sense to me. also, on a side note, not being able t
-
I get the belo warningmesage which is not consistent. I have 7 warnings realted to this kind of issue. WARNINGS: WARNINGS: BUSINESS MODEL Core: [39008] Logical dimension table Clients has a source Client Company(W_ORG_D) that does not join to any fac
-
I am begining into explore this technology. I believe Sybase accesses the RFCs in SAP using the standard connectors in Sybase. Can anyone confirm if there is any tool on the Sybase platform to monitor the transmissions between the platforms or will o
-
My screen has crap underneath that I cant get rid of? what to do?
ok undermy screen I have stuff under the surface...what should I do? does anyone else have a problem like this?