Format of APDU using RMI
hello
I wanted to know the format of a APDU which is intended to invok a method (by using RMI) on applet supporting RMI.
For example if I installed the applet "Myapplet" (it supports RMI) on the card and I wants to invok the method " boolean toto(short s=5, byte[]={03, 10} )"on this applet which is the format and the data which I must put in the APDU.
Thank you
Hello, I have the same problem. I want to install a RMI applet using JCOP 3.0 (Eclipse) and It gives me an error compiling the applet: no such clazz Ljavacard/framework/service/CardRemoteObject; But I have added this library to the build path (javacardframework.jar) and CardRemoteObject.class is in javacardframework.jar!! So, why is this error?
How can I install my RMI Applet? Have I got to add more libraries? Have you solved this problem?
Thank you.
Similar Messages
-
Can I manage APDU by myself if i use RMI model?
Javacard - RMI , Can I manage APDU command by myself?
First , there are 3 model of "Communicating with a Java Card Applet (Accessing the Smart Card)"
1. The Message-Passing Model
2. The Java Card RMI (JCRMI)
3. The Security and Trust Services API (SATSA)
This is my thinking/understanding
I have seen that no manage APDU in RMIDemo. It look like programmer no need to manage APDU by themselves. RMI will manage it.
(package com.sun.javacard.samples.RMIDemo; - > demo from java_card_kit-2_2_1)
but another way -> "The Message-Passing Model" in JavaPurse ,wallet demo. all of these can manage APDU directly.
Well, I want to know , Can I manage APDU by myself if i use RMI model?Javacard - RMI , Can I manage APDU command by myself?
First , there are 3 model of "Communicating with a
Java Card Applet (Accessing the Smart Card)"
1. The Message-Passing Model
2. The Java Card RMI (JCRMI)
3. The Security and Trust Services API (SATSA) The last one is AFAIK not a separate model. SATSA uses APDU or JC-RMI to communicate with a java- / smartcard.
This is my thinking/understanding
I have seen that no manage APDU in RMIDemo. It look
like programmer no need to manage APDU by themselves.
RMI will manage it.
(package com.sun.javacard.samples.RMIDemo; - > demo
from java_card_kit-2_2_1)
but another way -> "The Message-Passing Model" in
JavaPurse ,wallet demo. all of these can manage APDU
directly.
Well, I want to know , Can I manage APDU by myself if
i use RMI model?Yes you can.
If you look into the PurseApplet.java you will notice in the process() method, that all APDUs your applet receives have to be passed to the RMI Service manually: disp.process(APDU);
What you do with the APDU before passing it to the dispatcher (or after it) is up to you. You only have to make sure that you do not use the same INS value for your custom commands.
By default the RMIService uses RmiService.DEFAULT_RMI_INVOKE_INSTRUCTION = 0x38 as INS value.
Jan -
Should I use RMI for this??
Hi:
I am a complete newbie on RMI, I want to know whether the following task should be achieved by using RMI. Basically, I have a java application sitting on a server machine (unix machine), and I want to be able to call that application from another client machine using the command line prompt (client machine is WIN2000). I was told to open a TCP port to do this. Umm, basically, does this task involve RMI at all?
Please give me some general direction on this problem, thanx a lot.You could perform the communication as mentioned, having a process open a server socket on the server machine and wait for information to be sent from a client. You will end up defining the format and protocols used in the communications over the socket, but if sufficiently simple, this approach would work fine.
If you want to send more complex data or commands, or invoke methods on the server from the client, RMI is a good avenue to explore. It requires some infrastructure, however: you must be running an RMIRegistry process on the server, you must properly put your stubs and interfaces somewhere they can be dynamically downloaded (or packaged up with the client), and you must work through various RMI Security issues.
These things are not hard to pick up, however, and the RMI path in the Java Tutorial is a good place to start learning about such things. -
Problem transferring video using RMI
Hi frnds...I have a code which transfers images using rmi.....this code works fine.....but if i give a .avi file instead of a .jpeg the file gets transferred to the other machine but it gets corrupt...the size is also the same.....do i have to encode the video ??
please help me solve the problem..
thanks..
Nikhere is the code....
import java.io.*;
import javax.media.*;
import javax.media.control.*;
import javax.media.datasink.*;
import javax.media.format.*;
import javax.media.protocol.*;
import java.rmi.*;
import java.sql.*;
public class TestQuickCamPro
private static boolean debugDeviceList = false;
private static String defaultVideoDeviceName = "vfw:Microsoft WDM Image Capture (Win32):0";
private static String defaultAudioDeviceName = "DirectSoundCapture";
private static String defaultVideoFormatString = " ";
private static String defaultAudioFormatString = "linear, 16000.0 hz, 8-bit, mono, unsigned";
private static CaptureDeviceInfo captureVideoDevice = null;
private static CaptureDeviceInfo captureAudioDevice = null;
private static VideoFormat captureVideoFormat = null;
private static AudioFormat captureAudioFormat = null;
public static void main(String args[])
debugDeviceList = false;
new TestQuickCamPro();
public TestQuickCamPro(){
Stdout.log("get list of all media devices ...");
java.util.Vector deviceListVector = CaptureDeviceManager.getDeviceList(null);
if (deviceListVector == null)
Stdout.log("... error: media device list vector is null, program aborted");
System.exit(0);
if (deviceListVector.size() == 0)
Stdout.log("... error: media device list vector size is 0, program aborted");
System.exit(0);
for (int x = 0; x < deviceListVector.size(); x++)
// display device name
CaptureDeviceInfo deviceInfo = (CaptureDeviceInfo) deviceListVector.elementAt(x);
String deviceInfoText = deviceInfo.getName();
if (debugDeviceList)
Stdout.log("device " + x + ": " + deviceInfoText);
// display device formats
Format deviceFormat[] = deviceInfo.getFormats();
for (int y = 0; y < deviceFormat.length; y++)
// serach for default video device
if (captureVideoDevice == null)
if (deviceFormat[y] instanceof VideoFormat)
if (deviceInfo.getName().indexOf(defaultVideoDeviceName) >= 0)
captureVideoDevice = deviceInfo;
Stdout.log(">>> capture video device = " + deviceInfo.getName());
// search for default video format
if (captureVideoDevice == deviceInfo)
if (captureVideoFormat == null)
if (DeviceInfo.formatToString(deviceFormat[y]).indexOf(defaultVideoFormatString) >= 0)
captureVideoFormat = (VideoFormat) deviceFormat[y];
Stdout.log(">>> capture video format = " + DeviceInfo.formatToString(deviceFormat[y]));
// serach for default audio device
if (captureAudioDevice == null)
if (deviceFormat[y] instanceof AudioFormat)
if (deviceInfo.getName().indexOf(defaultAudioDeviceName) >= 0)
captureAudioDevice = deviceInfo;
Stdout.log(">>> capture audio device = " + deviceInfo.getName());
// search for default audio format
if (captureAudioDevice == deviceInfo)
if (captureAudioFormat == null)
if (DeviceInfo.formatToString(deviceFormat[y]).indexOf(defaultAudioFormatString) >= 0)
captureAudioFormat = (AudioFormat) deviceFormat[y];
Stdout.log(">>> capture audio format = " + DeviceInfo.formatToString(deviceFormat[y]));
if (debugDeviceList)
Stdout.log(" - format: " + DeviceInfo.formatToString(deviceFormat[y]));
Stdout.log("... list completed.");
// if args[x] = "-dd" terminate now
if (debugDeviceList)
System.exit(0);
// setup video data source
MediaLocator videoMediaLocator = captureVideoDevice.getLocator();
DataSource videoDataSource = null;
try
videoDataSource = javax.media.Manager.createDataSource(videoMediaLocator);
catch (IOException ie) { Stdout.logAndAbortException(ie); }
catch (NoDataSourceException nse) { Stdout.logAndAbortException(nse); }
if (! DeviceInfo.setFormat(videoDataSource, captureVideoFormat))
Stdout.log("Error: unable to set video format - program aborted");
System.exit(0);
// setup audio data source
MediaLocator audioMediaLocator = captureAudioDevice.getLocator();
DataSource audioDataSource = null;
try
audioDataSource = javax.media.Manager.createDataSource(audioMediaLocator);
catch (IOException ie) { Stdout.logAndAbortException(ie); }
catch (NoDataSourceException nse) { Stdout.logAndAbortException(nse); }
if (! DeviceInfo.setFormat(audioDataSource, captureAudioFormat))
Stdout.log("Error: unable to set audio format - program aborted");
System.exit(0);
// merge the two data sources
DataSource mixedDataSource = null;
try
DataSource dArray[] = new DataSource[2];
dArray[0] = videoDataSource;
dArray[1] = audioDataSource;
mixedDataSource = javax.media.Manager.createMergingDataSource(dArray);
catch (IncompatibleSourceException ise) { Stdout.logAndAbortException(ise); }
// create a new processor
// setup output file format ->> msvideo
FileTypeDescriptor outputType = new FileTypeDescriptor(FileTypeDescriptor.MSVIDEO);
// setup output video and audio data format
Format outputFormat[] = new Format[2];
outputFormat[0] = new VideoFormat(VideoFormat.INDEO50);
outputFormat[1] = new AudioFormat(AudioFormat.GSM_MS /* LINEAR */);
// create processor
ProcessorModel processorModel = new ProcessorModel(mixedDataSource, outputFormat, outputType);
Processor processor = null;
try
processor = Manager.createRealizedProcessor(processorModel);
catch (IOException e) { Stdout.logAndAbortException(e); }
catch (NoProcessorException e) { Stdout.logAndAbortException(e); }
catch (CannotRealizeException e) { Stdout.logAndAbortException(e); }
// get the output of the processor
DataSource source = processor.getDataOutput();
// create a File protocol MediaLocator with the location
// of the file to which bits are to be written
MediaLocator dest = new MediaLocator("file:testcam.avi");
// create a datasink to do the file
DataSink dataSink = null;
MyDataSinkListener dataSinkListener = null;
try
dataSink = Manager.createDataSink(source, dest);
dataSinkListener = new MyDataSinkListener();
dataSink.addDataSinkListener(dataSinkListener);
dataSink.open();
catch (IOException e) { Stdout.logAndAbortException(e); }
catch (NoDataSinkException e) { Stdout.logAndAbortException(e); }
catch (SecurityException e) { Stdout.logAndAbortException(e); }
// now start the datasink and processor
try
dataSink.start();
catch (IOException e) { Stdout.logAndAbortException(e); }
processor.start();
Stdout.log("starting capturing ...");
try { Thread.currentThread().sleep(5000); } catch (InterruptedException ie) {} // capture for 10 seconds
Stdout.log("... capturing done");
// stop and close the processor when done capturing...
// close the datasink when EndOfStream event is received...
processor.stop();
processor.close();
dataSinkListener.waitEndOfStream(10);
dataSink.close();
Stdout.log("[all done]"); -
Is there any problems in IE if using RMI.?
Hello buddies,
this is my 3rd attempt to get answer. before it i tried 2 times but didn't get answered.
actually i m making a chat application. in that there is a canvas on which we can draw something and send it to all users. i make an applet and from within the applet i m calling a frame. all this awt components like canvas and buttons etc. displays in the frame. applet is just a platform do call the frame. i m using RMI to do the chat. i tried to run it first in appletviewer and it works fine. but when i tried to run in IE from <applet> tag no frame is displays. i am trying to solve it from last 20 days but still unsolved. here is the code if anybody wishes to try it.
// clinet frame...
import java.rmi.*;
import java.rmi.server.*;
import canvas.Drawer;
import java.awt.*;
import java.applet.*;
import java.applet.Applet;
import java.awt.event.*;
import java.util.*;
import ru.zhuk.graphics.*;
/*<applet code="ChatClient" width=600 height=300>
</applet>
public class ChatClient extends Frame implements IChatClient,ActionListener,MouseListener,MouseMotionListener
// GLOBAL VARIABLES USED IN THE PROGRAMME...
boolean flag=false;
int n;
String str="";
String Coord=null;
IChatService service=null;
FrameApplet fa=null;
TextField servername,serverport,username;
Button connect,disconnect;
TextField message;
Button send,sendText;
TextArea fromserver;
int i=0,j=0;
int x[] = new int[1000];
int y[] = new int[1000];
Drawer canvas;
boolean connected=false;
String title,user="";
// Class Members //
public ChatClient()
public ChatClient(String str)
super(str);
setBounds(50,20,600,450);
setLayout(new FlowLayout(FlowLayout.CENTER,45,10));
title=str;
setStatus();
// Create controls //
add(new Label("Chat Server Name : "));
servername=new TextField(20);
add(servername);
servername.setText("localhost");
add(new Label("Chat Server Port : "));
serverport=new TextField(20);
add(serverport);
serverport.setText("900");
add(new Label("Your User Name : "));
username=new TextField(20);
add(username);
username.setText("Umesh");
connect=new Button("Connect");
connect.addActionListener(this);
add(connect);
disconnect=new Button("Disconnect");
disconnect.addActionListener(this);
add(disconnect);
message=new TextField(30);
add(message);
sendText=new Button("Send Text");
sendText.addActionListener(this);
add(sendText);
fromserver=new TextArea(10,50);
add(fromserver);
fromserver.setEditable(false);
canvas = new Drawer();
canvas.setSize(250,250);
canvas.setBackground(Color.cyan);
add(canvas);
canvas.addMouseListener(this);
canvas.addMouseMotionListener(this);
send=new Button("Send");
send.addActionListener(this);
add(send);
try
UnicastRemoteObject.exportObject(this);
catch(Exception e)
setVisible(true);
for(j=0;j<1000;j++)
x[j]=0;
y[j]=0;
Coord = new String();
Coord = "";
// fa=new FrameApplet();
public void mousePressed(MouseEvent me){}
public void mouseReleased(MouseEvent me)
Coord = Coord + "r";
public void mouseClicked(MouseEvent me){}
public void mouseEntered(MouseEvent me){}
public void mouseExited(MouseEvent me){}
public void mouseDragged(MouseEvent me)
if (Coord == "")
Coord = me.getX() + "," + me.getY();
else
Coord = Coord + " " + me.getX() + "," + me.getY();
public void mouseMoved(MouseEvent me){}
// RMI connection //
private void connect()
try
service = (IChatService)Naming.lookup("rmi://pcname/ChatService");
service.addClient(this);
connected=true;
setStatus();
user=username.getText();
Coord = "";
catch(Exception e)
fromserver.append("Error Connecting ...\n" + e);
System.out.println(e);
connected=false;
setStatus();
service=null;
private void disconnect()
try
if(service==null)
return;
service.removeClient(this);
service=null;
catch(Exception e)
fromserver.append("Error Connecting ...\n");
finally
connected=false;
setStatus();
private void setStatus()
if(connected)
setTitle(title+" : Connected");
else
setTitle(title+" : Not Connected");
// IChatClient methods //
public String getName()
return user;
public void sendMessage(String msg)
fromserver.append(msg+"\n");
public void SendCanvasObject(String str)
this.str = str;
fromserver.append(str + "\n");
Graphics g = canvas.getGraphics();
paint(g);
// Actionlistener //
public void actionPerformed(ActionEvent e)
if(e.getSource()==connect)
connect();
if(connected)
servername.setEnabled(false);
serverport.setEnabled(false);
username.setEnabled(false);
connect.setEnabled(false);
Coord = "";
else
if(e.getSource()==disconnect)
disconnect();
servername.setEnabled(true);
serverport.setEnabled(true);
username.setEnabled(true);
connect.setEnabled(true);
else
if(e.getSource()==send)
flag = true;
if(service==null)
return;
try
fromserver.append("Sending an image...\n");
service.SendCanvasObject(this,Coord);
i=0;
for(j=0;j<1000;j++)
x[j]=0;
y[j]=0;
Coord = "";
fromserver.append("\n" + "Image Sent...");
catch(RemoteException re)
fromserver.append("Error Sending Message ...\n" + re);
catch(Exception ee)
fromserver.append("Error Sending Message ...\n" + ee);
else
if(e.getSource()==sendText)
if(service==null)
return;
try
service.sendMessage(this,message.getText());
message.setText("");
catch(RemoteException exp)
fromserver.append("Remote Error Sending Message ...\n" + exp);
catch(Exception ee)
fromserver.append("Error Sending Message ...\n" + ee);
public void paint(Graphics g)
if(flag==true)
i=0;
StringTokenizer stoken = new StringTokenizer(str,"r");
String strin = "";
while(stoken.hasMoreTokens())
strin = stoken.nextToken();
fromserver.append("\n" + strin + "\n");
StringTokenizer stoken1 = new StringTokenizer(strin," ");
String strin1 = "";
j=0;
while(stoken1.hasMoreTokens())
strin1 = stoken1.nextToken();
fromserver.append("\n" + strin1 + "\n");
x[j]=Integer.parseInt(strin1.substring(0,strin1.indexOf(",")));
y[j]=Integer.parseInt(strin1.substring(strin1.indexOf(",")+1,strin1.length()));
j++;
for(int k=0;k<j-1;k++)
g.drawLine(x[k],y[k],x[k+1],y[k+1]);
i++;
import java.rmi.*;
import java.rmi.server.*;
import canvas.Drawer;
import java.util.*;
import ru.zhuk.graphics.*;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
public class FrameApplet extends Applet implements ActionListener
ChatClient f;
public void init()
Button b = new Button("Start Chat");
b.addActionListener(this);
add(b);
public void actionPerformed(ActionEvent ae)
f=new ChatClient("Chat");
f.show();
f.setSize(400,400);
here is html file which i calls from IE
<html>
<title>Micky Chat</title>
<body>
<br>
<br>
<center>
<applet code="FrameApplet.class" width=200 height=200>
</applet>
</center>
</body>
</html>
and at last a shocking thing is it is runs in Netscape displaying frames but not calling paint method.
pls. help me
thanks a lot
umeshHi Umesh!
Sorry that I cannot be too concrete about that since it has to be centuries ago when I fell over this problem.
As far as I can remember, the JDK provided by MS has no RMI built-in. These was probably one of the main reasons why Sun sued Microsoft concering its handling of Java.
Afterwards MS released a path for its Java Runtime that included RMI support, but AFAIK they never included it in the standard package. So much luck when searching for the ZIP! (-;
A little bit of googling might help, e.g.:
http://groups.google.com/groups?hl=de&lr=&ie=UTF-8&oe=UTF-8&threadm=37f8ddf6.4532124%40news.online.no&rnum=17&prev=/groups%3Fq%3Dmicrosoft%2Bjvm%2Brmi%2Bsupport%26start%3D10%26hl%3Dde%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3D37f8ddf6.4532124%2540news.online.no%26rnum%3D17
cheers,
kdi -
Anyone know which render format I should use, my film will be used on a video wall (12 screens) and I need super quality. My footage format is 1080p HD resolution 1920x1080. I will be running the project from a mac with a direct line to video wall. Thanks in advance.
I do some VJ-type work, involving playback of QuickTime files from the computer to projections, and I get good results using ProRes 422. That's convenient, because ProRes 422 is such a great editing codec, too.
Traditionally, VJs use PhotoJPEG codec, which also works well, but it's a bad editing codec. So you would have to export an edited master, then convert.
If you want it to look as good as possible, definitely schedule some time to test the footage on the wall. You may want to change the color correction of your footage to match the projectors. And if you feed the video wall some flat gray, you can see if any of the projectors need to be adjusted.
I'm not sure what application you're using for playback, but QuickTime Player 7 works well. It has an option to play fullscreen on an external monitor (View > Present Movie…). -
What are the limitations of using RMI over http with EJB?
We have a requirement for an intranet application where the majority of the clients
(Swing clients) will be able to connect directly using either T3 or IIOP. However,
there are a number of clients that will need to traverse a firewall.
We could use SOAP, but I dont want to lose the value that RMI gives us (clustering,
security, statefullness support etc). I am thinking of using RMI over http - which
Weblogic supports.
I have been trying to find some documentation on the topic - but havent succeded
so far. What I would like to understand is: What limitations I would have using
RMI over http. Do I lose anything (apart from performance) using http?
Regards,
NickYou will have to enable tunneling on the server side and I have not heard of any
complaints of using it.
Shiva.
Nick Minutello wrote:
In fact, we are not using applets - and its not an internet application. We are
using Java Webstart and Swing on our intranet (the problem of the size of the
weblogic.jar is a pain - but well known)
The question for me is; Apart from performance, are there any limitations to using
RMI over http?
Can we also use JMS over http?
-Nick
Shiva Paranandi <[email protected]> wrote:
"Old wine new bottle".
The biggest problem with the approach of Applets like
stuff connecting to weblogic is the size of the classes that need to
be supplied to the
users. The applets/swing would need a lot of weblogic classes which you
need to
supply as jar file. This file can be in the order of MBs depending on
the
weblogic version. we had a similar kind of problem and migrated the applets
to use
servlets instead of directly invoking ejbs or jms topics etc. Having
the applets
connect
to servlets you would still benefit from the features of clustering etc.
and added to
that
you would reduce the number of remote calls.
Shiva.
Nick Minutello wrote:
We have a requirement for an intranet application where the majorityof the clients
(Swing clients) will be able to connect directly using either T3 orIIOP. However,
there are a number of clients that will need to traverse a firewall.
We could use SOAP, but I dont want to lose the value that RMI givesus (clustering,
security, statefullness support etc). I am thinking of using RMI overhttp - which
Weblogic supports.
I have been trying to find some documentation on the topic - but haventsucceded
so far. What I would like to understand is: What limitations I wouldhave using
RMI over http. Do I lose anything (apart from performance) using http?
Regards,
Nick -
What format i should use for my external hard drive that can be used interchangeably between mac and pc?
Usually Fat32/MS-DOS as mentioned, but that has several limitatiuns, like 4GB filesize limit.
One option is MacDrive for you PCs... allows them to Read/Write HFS+...
http://www.mediafour.com/products/macdrive/
More options...
NTFS-3G Stable Read/Write Driver...
http://www.ntfs-3g.org/
MacFUSE: Full Read-Write NTFS for Mac OS X, Among Others...
http://www.osnews.com/story/16930 -
I want to format my hard drive so i can have files bigger than 4GB what format should I use?
I have a new hard drive that I want to format so it will work with both mac and PC (windows) but I have files that are bigger than 4GB, what format should I use?
It needs to work with both PC and mac because I need to go between two computers etcIf both of these computers are connect to the same router, both are in your home or place of work (Both are in the same location), it is very easy to Network them so you don't have to use DropBox or the external drive to share files between them.
MickAUS2012 wrote:
yea thanks for that, i have drop box so i use that for some of my smaller files. Im just new to the mac so this is all a learning experince thanks for all your help everyone! -
What format do I use to post on youtube so that IPhone and Androids can play it?
adobe premiere pro cs6: What format do I use to post on youtube so that IPhone and Androids can play it?
how do I fix it so it will play
I tryed
h.264 youtube hd 720,
h.264 andriod phone
here is the youtube video play's fine on pc but will not play on Andriod or Iphone at all
Jillian Jensen My Dedication Video - YouTube
if someone can tell me what setting I need to do or what I need to do so it will play
I have tryed to 10 diffrent ones and none seam to workIt could very well be due to copyrighted content.
“Videos are not available on this platform” error message - YouTube Help -
What format do I use for internal drive?
I want to install a new internal harddrive into my Macbook. What format should I use for it?
Mac OS Extended (Journaled)
Mac OS Extended
Mac OS Extended (Case-sensitive, Journaled)
Mac OS Extended (Case-sensitive)
MS-DOS (FAT)
ExFAT
I know MS-DOS(FAT) is what I should use for external to work on mac and windows. Can't remember which to use for the internal. I have an Intel-based Mac.
Thanks for your help.I use SuperDuper for cloning my OSX volumes and it does not change the size of the destination partition to the size of the source partition.
So, you can make the destination partitions size to your liking and the cloning will not change it afterwards.
Keep in mind that SuperDuper or Carbon Copy Cloner cannot clone a BootCamp Windows partition to a new harddisk, only OSX partitions.
But Parallels doesn't need to have a Windows partitions but is mostly just two files plus the Parallels app on your OSX partition.
And therefor it would be cloned with the rest of the OSX.
Stefan -
Hey Guys,
I need an advice from you experts regarding the different formats to be used to format my New 4 Tb ministack from OWC. I have a Mid 2010 Intel macbook pro with 500gb hard disk using Mountain lion and two external hard disk from Samsung and Iomega 1Tb each. I want to format this ministack into 4 partitions each of 1Tb each.
1) 1 Tb for time machine to back up my macbook pro.
2) 1 Tb of Free space to be used to store extra data using both windows and mac os.
3) 1 Tb for Samsung back up
4) 1 Tb for my Iomega back up
I know that for 1st option i need to format the partition (volume) to Mac os extended (journalled). I need help for others.For the 1 Tb free space, can i use NTFS so that i can use it on my wifes windows laptop and use a third a party application like tuxera NTFS for use on my macbook which i am already using to use my samsung and Iomega Ext HDD.
Also What format is required for these two 1 Tb volumes dedicated for external hard disk backups and how can i back up my external hard disks to these formatted volumes. Do i need to format them to Mac os extended (journalled) as well as i shall be using macbook pro to back up these hard disks.
Which would be the best software to back up these Ext hdd,can i use time machine? or CCC ?
Your help help shall be gretaly appreciated.
Thanks in advance.Get Disk Warrior that will repair the problems without requiring that you reformat the drive - $99.00 on a bootable CD. Will not work on a FAT formatted drive.
You will need to use Drag and Drop to save your files by copying them from the bad drive to a good one.
To reprep the drive:
Drive Preparation
1. Open Disk Utility in your Utilities folder.
2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed.
4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
5. Set the format type to Mac OS Extended (Journaled.) Click on the Security button, check the button for Zero Data and click on OK to return to the Erase window.
6. Click on the Erase button. The format process can take up to several hours depending upon the drive size. -
How to Insert date in 'DD/MM/YYYY' format in oracle using stored procedure?
Hi
How to Insert date in 'DD/MM/YYYY' format in oracle using stored procedure?
This is my Input data.
11/25/2007.
By using below query, it is inserted into database.
sql>Insert into tblname values(to_date('11/25/2007','MM/DD/YYYY'));
But using stored procedure, the same query is not running.
It shows error like
ORA-01843: not a valid month ORA-06512: at line 1
Procedure:
create or replace procedure Date_Test(datejoin in DATE) is
begin
insert into datetest values(to_date(datejoin,'MM/DD/YYYY'));
end Date_Test;
I had used 'nls_date_language = american' also.
Prcodeure is created but not worked in jsp. The same error is thrown.
Pls provide a solutionThis might help you....
SQL> Create Table DateTest(col1 Date);
Table created.
Elapsed: 00:00:00.00
SQL> create or replace procedure Date_Test(datejoin in DATE) is
2 begin
3 insert into datetest values(to_date(datejoin,'MM/DD/YYYY'));
4 end ;
5 /
Procedure created.
Elapsed: 00:00:00.00
SQL> exec Date_Test('11/25/2007');
BEGIN Date_Test('11/25/2007'); END;
ERROR at line 1:
ORA-01843: not a valid month
ORA-06512: at line 1
Elapsed: 00:00:00.00
SQL> exec Date_Test(To_Date('11/25/2007','mm/dd/yyyy'));
BEGIN Date_Test(To_Date('11/25/2007','mm/dd/yyyy')); END;
ERROR at line 1:
ORA-01843: not a valid month
ORA-06512: at "CTBATCH.DATE_TEST", line 3
ORA-06512: at line 1
Elapsed: 00:00:00.00
SQL> create or replace procedure Date_Test(datejoin in DATE) is
2 begin
3 insert into datetest values(datejoin);
4 end ;
5 /
Procedure created.
Elapsed: 00:00:00.00
SQL> exec Date_Test(To_Date('11/25/2007','mm/dd/yyyy'));
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00
SQL> Select * from DateTest;
COL1
25-NOV-07
Elapsed: 00:00:00.00
SQL> create or replace procedure Date_Test(datejoin in VarChar2) is
2 begin
3 insert into datetest values(to_date(datejoin,'mm/dd/yyyy'));
4 end ;
5 /
Procedure created.
Elapsed: 00:00:00.00
SQL> exec Date_Test('11/25/2007');
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00
SQL> select * from DateTest;
COL1
25-NOV-07
25-NOV-07
Elapsed: 00:00:00.00
SQL> -
Dates Format in Promts using Session Variables
Hi Experts,
I have an issue in controlling date format in prompts using session variable which I am using to set default value.
By default date format is timestamp E.g '2010-12-19 12:00:00 AM'.
As per requriement(s) I customized the date format in Reports as 19-Dec-2010 and I saved it as "System Wide Default for <Date Column Name> "
So, I got desired format in Reports and Date Prompts.
Now, I need to set a default value in Date Prompt. So, in RPD I created a Session Variable which returned me date in
DD-MON-YYYY format. Using follwing SQL :
SELECT REPLACE(CONVERT(VARCHAR(11), Getdate (), 106), ' ', '-') AS [DD-Mon-YYYY]
But in reports takes this value as string and not Datetime. So i got an error message.
A datetime value was expected (received "19-Dec-2010").
If i do not use above SQL to CONVERT date then default date in prompt get displayed as timestamp format and give me desired results but Formatting looks very odd in prompt
Is this a way so I can persist the [DD-Mon-YYYY] Formatting for default value which comes using variable and still run the report.
Above problem also exist vice versa that is if i SET that session variable and pass the datetime value to server. But there i guess I can use ToDate or some Casting in RPD column expression to handle that. Tell me if i am right ?
Thanks
SaurabhThat almost works. I had to adjust the syntax to the following...and then there are other issues doing this.
select cust_no, name,'@{session.currentUser}' from customersMy write-back SQL is this:
UPDATE customers SET NAME='@{c1}',LAST_EDITED_BY='@{c2}' WHERE CUST_NO=@{c0}But I don't want to display the cust_no column to the user. So I hide it in the UI. But if I do that I get the below error during write-back. Apparently sometimes when you hide a column on a direct query (numeric maybe?) the value doesn't transfer over to the write-back. If that's the case, this won't work for me. Hmm...
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43093] An error occurred while processing the EXECUTE PHYSICAL statement. [nQSError: 17001] Oracle Error code: 936, message: ORA-00936: missing expression at OCI call OCIStmtExecute: UPDATE customers SET NAME='Wyatt Donnely',LAST_EDITED_BY='Administrator' WHERE CUST_NO= . [nQSError: 17011] SQL statement execution failed. (HY000)
SQL Issued: EXECUTE PHYSICAL CONNECTION POOL dev1 UPDATE customers SET NAME='Wyatt Donnely',LAST_EDITED_BY='Administrator' WHERE CUST_NO= -
Hi, I read for several hours now, but I can't find a hint what problem I'm experiencing. Perhaps someone has an idea?
I have a small java application (jdk1.3.1_08) which starts a RMIRegistry, binds an object name. It then starts another java application in another jvm using Runtime.exec(...).
Everything fine until here. The second application starts and works fine.
BUT: Now I close app2 and start it again from app1. Basically everything works also this time. But there is a delay at startup from app2 which I cannot explain. App2 hangs for 10 secondes up to 70 seconds, between two debug outputs!!!
Every little hint is appreciated!!
Torsten.I think the hanging of app2 is not depending on what it actually does. But I try to explain some more, you're right:
App1 is kind of a starter environment, a launch center for several applications. One of these applications is my app2. The reason for using rmi and the second jvm is that I now can use a System.exit(0) in app2 without killing the launch center (app1). When I start app2 standalone from command line without rmi, then it starts without the strange system hang.
What does app2 do?
App2 has a starting time of about 30 seconds (standalone) where several things are initialized. In detail, it is a Swing application using the oracle framework JClient for data binding of Swing components and the oracle framework BC4J for mapping to an oracle database. The system hang when started in the second jvm occurs in the startup process, but not at a specific point in the programm. This means: on PC1 it hangs everytime between the same two debug outputs, on PC2 (a bit faster) it hangs later in the code. Thats the reason why I think, there could be a rmi problem.
What I did not mention yet: The launch center (app1) builds a kind of transfer object which is passed via rmi to app2 in the second jvm.
Does this help to solve my problem? I really run out of ideas what to do...
Maybe you are looking for
-
Can't load iTunes and Apps in my iPhone after upgrading to OS5.
So, I updated my iPhone late last night to the new IOS5. It downloaded everything and went through all the permutations my iPhone went through with each OS upgrade. But after the update and sync were complete, I no longer have any Apps on the phone
-
Remove test run from Load Test Manager in Visual Studio Online Load Testing
I have been using the Visual Studio Online Azure load testing for a while now, and I have a number of test runs that I would like to remove. I am not referring to my local Load Test Results Store (on-premise SQL DB), as I can remove test runs no pro
-
Hello, Iu2019m having a problem with the Balance Carryforward. The values of the items I put in u201CItems to be Carried Forwardu201D are not being carryforward. For example: Iu2019ve defined as original item (8899000089) and as debit and credit Item
-
How can I automatically send sms?
I've installed Nokia Text Message Editor and it works. But I would make an application that can send messages automatically, or by command (Maybe MS-DOS). Do anyone have experience with it? Thank Keesonlyne Message Edited by keesonlyne on 17-Nov-2008
-
ICloud has stopped working continuously get the message windows 8.1 operating system
iCloud has stopped working continuously get the message windows 8.1 operating system