[HOWTO] ROOT 4.2.1 beta / CM 10.1 (4.2.2) on K860/860i [Rev2]

Old HOW-TO:
https://forums.lenovo.com/t5/Lenovo-Phones/HOWTO-CM-on-K860-860i-LePhone-update-11-03/td-p/1056045
It has been a great time so far seeing the community growing and Lenovo development going on strong on this platform, it gets better and better! Big thank you to everyone involved!
First part is for people wanting official ROM and root, second part is for people switching from official to latest CM 10.1
How to update to 4.2.1 gain root on official 4.2.1:
Master list of recoveries and roms on bbs.lephone.cc:
http://bbs.lephone.cc/thread-526181-1-1.html
Download official ROM version 701/702 from here:
702 k860  http://pan.baidu.com/share/link?shareid=2604313118&uk=3106797123
701 k860i http://pan.baidu.com/share/link?shareid=2606742729&uk=3106797123
OR alternative (different build tree)
0706 k860   http://pan.baidu.com/share/link?shareid=271861483&uk=3106797123
0710 k860i  http://pan.baidu.com/share/link?shareid=282401818&uk=3106797123
~
Download CWM recovery from here:
http://pan.baidu.com/share/link?shareid=1516797553&uk=3106797123
~
download superuser.zip from here:
download.clockworkmod.com/superuser/superuser.zip
~
Now that we have everything needed proceed to do following:
1. Create a folder named sdfuse in the root of the sdcard and place the szb image in it.
The other two files (recovery and superuser) place in the root of the sdcard.
Shut down the phone and switch it back on by pressing Vol_UP+power_btn.
(Protip: If you're regurarly flashing your roms from bootloader, place all of them in the same folder and just change the file extension for the ones you are not flashing at the moment, such as this *.szb1)
Phone will enter recovery/diagnostics mode. Here you use vol_up/down buttons to navigate and power_btn to execute.
You have to pick SD update here.
After making the selection, the phone will do the rest, it takes about three to five minutes.
2. Shut down the phone and switch it back on by pressing Vol_UP+power_btn.
You have to pick Recovery here.
Once in recovery, choose install zip from sdcard and select CWM_recovery.zip
Reboot
3. Shut down the phone and switch it back on by pressing Vol_UP+power_btn.
You have to pick Recovery here.
Once in recovery, choose install zip from sdcard and select superuser.zip
Reboot.
You're root#
CM 10.1 on K860/860i
This ROM is developed and mantained by Mr. Linkscue, master chef and ROM tools developer, really amazing guy, deserves attention.
Latest release is Release3 as of this writing, stable and complete enough for a daily driver, please post feedback to the main thread if you have any:
http://bbs.lephone.cc/thread-553805-1-1.html
Current known bugs:
1. Builtin superuser doesn't work (SuperSU is baked in for the time being)
2. Bluetooth not working
3. Wifi hotspot not working
~
Download CWM recovery from here:
http://pan.baidu.com/share/link?shareid=1516797553&uk=3106797123
Download link for R3:
http://pan.baidu.com/share/link?shareid=2534813596&uk=1175777033
~
1. Create a folder named sdfuse in the root of the sdcard and place the szb image in it.
The other two files (recovery and superuser) place in the root of the sdcard.
Shut down the phone and switch it back on by pressing Vol_UP+power_btn.
(Protip: If you're regurarly flashing your roms from bootloader, place all of them in the same folder and just change the file extension for the ones you are not flashing at the moment, such as this *.szb1)
Phone will enter recovery/diagnostics mode. Here you use vol_up/down buttons to navigate and power_btn to execute.
You have to pick SD update here.
After making the selection, the phone will do the rest, it takes about three to five minutes.
For recovery:
2. Shut down the phone and switch it back on by pressing Vol_UP+power_btn.
You have to pick Recovery here.
Once in recovery, choose install zip from sdcard and select CWM_recovery.zip
Reboot
Additional apps from Play store, to increase control over the device and beef up the security a bit:
1. ESET USSD control
2. Android Firewall
F-Droid https://f-droid.org/
1. ADAway
2. AFWall+
I may or may not answer questions here, the info provided here is *as is* for the sake of "increasing signal" and I am not responsible for any potential bricked devices.
Lenovo open source page with source for K860:
http://www.lenovomobile.com/opensource/index.html

Hey so finally have CM for K860 wow!
Cheers and regards,
• » νιנαソѕαяα∂нι ѕαмανє∂αм ™ « •
●๋•کáŕádhí'ک díáŕý ツ
I am a volunteer here. I don't work for Lenovo

Similar Messages

  • [HOWTO] CM on K860/860i LePhone (update 11/03)

    I just got myself a new K860i and this small write up is for anyone looking to install CM (or any other available ROM for that matter) and for me to keep all the pertaining info in one place.
    Also because what is already available on the net has high noise to signal ratio.
     To root the device, easiest method is to install ExynosAbuse, latest version as of this writing was 1.40.2.
     You can find it here:
    http://forum.xda-developers.com/showthread.php?p=35512626
    Download, install and run the app, root the device only!
    I have to highlight here to not use the app to patch the device, otherwise you will lock yourself out of camera on a non-rooted phone and there is no other way to recover but to reinstall the original ROM from sdcard!
    Another reason is that supposedly since Android version 4.1 this vulnerability has been patched, although it obviously still exists on Lenovo's remix.
    In case the original image is needed, following link provides links to OEM images:
    http://bbs.lephone.cc/thread-367569-1-1.html
    Item 15. is the latest one at the time of this writing. Installation method is the same as for the rooted phone mentioned below..
    For those interested in the details of the vulnerability and the exploit itself, you can read more about it here:
    http://forum.xda-developers.com/showthread.php?t=2048511
    On to the CM installation. Cooked unofficial CM ROM is done by Chinese smack-fu master zuncun, user on bbs.lephone.cc, Chinese xda for lenovo phones, so to say.
    Here is the link to his latest ROM v2.5 thread, at the time of this writing:
    http://bbs.lephone.cc/thread-517538-1-1.html
    Link for ROM:
    http://pan.baidu.com/share/link?shareid=254959&uk=3910139059
    known BUGS (hat tip to buddinggeek):
    *headphones not working, no sound/crackling noise
    *WiFi MAC changes on every reboot
    Create a folder named sdfuse in the root of the sdcard and place the szb image in it. Shut down the phone and switch it back on by pressing Vol_UP+power_btn.
    Phone will enter recovery/diagnostics mode. Here you use vol_up/down buttons to navigate and power_btn to execute.
    You have to pick SD update here.
    After making the selection, the phone will do the rest, it takes about three to five minutes.
    Upon rebooting you will be greeted with spanking new CM10 interface.
    You can additionally install Google Apps, found here: http://goo.im/gapps
    Downloaded zip file is to be copied to sdcard root folder and renamed to update.zip
    Reboot the phone by pressing power_btn and select Reboot>Recovery.
    Upon reboot you will be presented with recovery menu in chinese, I'm assuming here it's rebadged CWR but anyway. Select second entry from the top, go to the second entry that mentions ./update.zip and select it. The longest entry to confirm the action is near the bottom. Once its done, choose the first entry in the root menu to reboot back to the OS.
    Additional apps from Play store, to increase control over the device and beef up the security a bit:
    1. ESET USSD control
    2. DroidWall
    CWM based recovery in English v6.0.2.8, tested and working on my phone:
    http://bbs.lephone.cc/thread-524604-1-1.html
    Unfortunately you will need to register to see the link to the recovery image.
    Installation procedure is same like for the CM ROM installation ie SD update from ./sdfuse folder. Make sure that this is the only szb file in the folder.
    I may or may not answer questions here, the info provided here is *as is* for the sake of "increasing signal" and I am not responsible for any potential bricked devices.
    EDIT: Lenovo open source page with source for K860:
    http://www.lenovomobile.com/opensource/index.html
    EDIT2: added bug info provided by buddinggeek. Thanks!
    EDIT3: Added entry for CWM in english

    I used CM10 for sometime before restoring back to factory ICS. Headphones ain't working and so so is Wifi.. random mac addresses on every boot? Is everything running normal in your phone?
    Cheers and regards,
    • » νιנαソѕαяα∂нι ѕαмανє∂αм ™ « •
    ●๋•کáŕádhí'ک díáŕý ツ
    I am a volunteer here. I don't work for Lenovo

  • Square root of an interval using Newton's method

    Hello!
    I am trying to create a method that calculates the square root of an interval, and I am having trouble with both the actual calculation part, as well as the base case for the recursion. I implemented a simple counter for the recursion, but was not seeing any kind of pattern for the values. (I am pretty sure the "better" values should converge to 0).
    I was wondering if anybody wanted to take a swing at it and help me out. :)
    Here is the code for my program, followed by the code for Newton's method for calculating square roots of doubles. I am supposed to use it as a reference.
    I made the simple arithmetic methods with the help of http://en.wikipedia.org/wiki/Interval_arithmetic . They seem to work fine, so I am having issues with troubleshooting!
    Thanks!
    public class Interval {
         double x1;
         double x2;
         public Interval(double newx1, double newx2){
              x1 = newx1;
              x2 = newx2;
         public String toString(){
              return "[" + this.x1 + ", " + this.x2 + "]";
         //Add an interval to the current one.
         public Interval add(Interval j){
              double tempx1 = this.x1 + j.x1;
              double tempx2 = this.x2 + j.x2;
              Interval tempInterval = new Interval(tempx1, tempx2);
              return tempInterval;
         //Subtract an interval from the current one.
         public Interval sub(Interval j){
              double tempx1 = this.x1 - j.x2;
              double tempx2 = this.x2 - j.x1;
              Interval tempInterval = new Interval(tempx1, tempx2);
              return tempInterval;
         //Multiply an interval with the current one.
         public Interval mul(Interval j){
                   double minx1 = Math.min(this.x1*j.x1, this.x2*j.x2);
                   double minx2 = Math.min(this.x1*j.x2, this.x2*j.x1);
                   double maxx1 = Math.max(this.x1*j.x1, this.x2*j.x2);
                   double maxx2 = Math.max(this.x1*j.x2, this.x2*j.x1);
                   double tempx1 = Math.min(minx1, minx2);
                   double tempx2 = Math.max(maxx1, maxx2);
                   Interval tempInterval = new Interval(tempx1, tempx2);
                   return tempInterval;
         //Divide the current interval by a new one.
         public Interval div(Interval j){
                   double minx1 = Math.min(this.x1/j.x1, this.x2/j.x2);
                   double minx2 = Math.min(this.x1/j.x2, this.x2/j.x1);
                   double maxx1 = Math.max(this.x1/j.x1, this.x2/j.x2);
                   double maxx2 = Math.max(this.x1/j.x2, this.x2/j.x1);
                   double tempx1 = Math.min(minx1, minx2);
                   double tempx2 = Math.max(maxx1, maxx2);
                   Interval tempInterval = new Interval(tempx1, tempx2);
                   return tempInterval;
         static Interval step(Interval x, Interval y) {
              // Compute a "better" guess than x for the square root of y:
              // Code for doubles: Interval better = x - (x*x - y)/(2*x);
              Interval two = new Interval(2.0, 2.0);
              Interval better = x.sub( ( (x.mul(x)).sub(y) ).div(two.mul(x)) );
              // For doubles:
              if ( Math.abs(better.x2 - better.x1) < 0.001 ) { // base case
                   System.out.println(better.toString());
                   return better;
              else {
                   return step(better, y); // try to get even better...
         static Interval sqrt(Interval y) {
              return step(y, y); //: start guessing at the square root
         public static void main(String args[]){
              Interval i = new Interval(4.0, 8.0);
              Interval j = new Interval(4.0, 8.0);
              Interval addij = i.add(j);
              Interval subij = i.sub(j);
              Interval mulij = i.mul(j);
              Interval divij = i.div(j);
              Interval sqrtj = i.sqrt(j);
              System.out.println("Intervals:");
              System.out.println(i.toString());
              System.out.println(j.toString());
              System.out.println("Add: " + addij.toString());
              System.out.println("Sub: " + subij.toString());
              System.out.println("Mul: " + mulij.toString());
              System.out.println("Div: " + divij.toString());
              System.out.println("Sqrt: " + sqrtj.toString());
    }and newton's root finder for doubles:
    public class SquareRoot {
         static final double ALLOWED_ERROR = 0.001;
          * Newton's method for finding square roots.
         static double step(double x, double y) {
              // Compute a "better" guess than x for the square root of y:
              double better = x - (x*x - y)/(2*x);
              // Are we close enough?
              if ( Math.abs(x - better) < ALLOWED_ERROR ) { // => stop: base case
                   return better;
              else {
                   return step(better, y); // try to get even better...
         static double sqrt(double y) {
              return step(y, y); //: start guessing at the square root
         public static void main(String[] args) {
              System.out.println(Math.sqrt(1234));
              System.out.println(sqrt(1234));
              // NOTE: you may need to adjust the error bound for these two to agree
    }

    Nathron wrote:
    Here is the code for my program, followed by the code for Newton's method for calculating square roots of doubles. I am supposed to use it as a reference.The only thing I can see that looks suspicious is the call to step(better, y) in your reference code.
    Are you sure it shouldn't be step(y, better) or step(better, x))? Newton-Rhapson is supposed to be a progressive method, but as far as I can see the value of y can never change with the way you've got it. And if you've copied that to your new code, it might explain the problem.
    Winston

  • How to make site root-relative links work in DW and Server both?

    See details on buggy DW image link behavior, below. My question is:
    1) how to make site root-relative links work in DW and Server both? Or…
    2) how to reliably automate the change of several hundred legacy root-relative links of the form
    /images/image.jpg  to document-relative?
    That is, to
    ../images/image.jpg or
    ../../images/image.jpg or
    ../../../images/image.jpg etc…depending on where the directory is.
    The old format (/images/image.jpg ) used to work fine in my previous DW 8 configuration but appear grey in DW after “upgrading” to DW cs5.5 mac. (they look fine on the server, but it’s hard to edit image-heavy pages locally when they are all grey).
    I tried changing the files to how DW creates root relative links now:
    /public_html/images/image.jpg, which is a very easy, attractive root flow since there’s a one-to-one mapping. These look great in DW but are broken on the server!
    I looked at the “advanced” site setup, and it looked like it might be possible to nuke the /public_html/ part of my server info…but it also looked like there was the potential for doing damage changing these settings, which are automatically generated from our server connection settings, which seem to work.
    The “links relative to document/ site root” toggle…does that change how DW interprets existing links, or just change the default when you are adding a link?  I have made 80% of the file links document relative…before wondering if root-relative isn’t better?
    It sure seems less ambiguous for all those images if theres a way to make root relative work for DW design view, DW link check, and server.
    Summary of buggy behavior: (see test with images here)
    "old style" site root link
          /images/img_book/WScover120x150_NEW.jpg
          Design veiw in DW: broken (grey w/ broken icon)
          Link check in DW: "external link" (i.e., uncheckable, + file could appear orphaned)
          Browser: good
          Ease of switching: n/a (existing format)
    "new style" site root relative link
          /public_html/images/img_book/WScover120x150_NEW.jpg
          Design veiw in DW: good
          Link check in DW: good
          Browser: broken
          Ease of switching: easy
    Document relative link
          ../../images/img_book/WScover120x150_NEW.jpg
          Design veiw in DW: good
          Link check in DW: good
          Browser: good
          Ease of switching: hard (how to automate?)
    Absolute link
          http://www.oasisdesign.net/images/img_book/WScover120x150_NEW.jpg
          Design veiw in DW: broken (grey w/ broken icon)
          Link check in DW: external (i.e., uncheckable, + file could appear orphaned)
          Browser: good
          Ease of switching: n/a...not a real option
    Thanks!
    Similar discussion on "/"

    Hello again Jon!
    Thanks for jumping on this.
    All clear and understood about where publc_html is etc.
    No contemplation of nuking the actual public_html directory on the server, just the "/public_html" text string at the start of the DW-generated links.
    "/public_html" is automatically added to the front of the link in DW if I create the link with any of the GUI tools, if I have "site root relative" selected. And ""/public_html" ends up in the code, and gets uploaded that way to the server, where it (obviously) doesn't work.
    Doesn't sound like it is supposed to work this way. Also, what seems to be the usual root relative format (/images/image.jpg) shows as a broken link in the GUI and an external link in the DW link check. All this togther makes me thinkI have some obscure setting incorrect?
    The setting that caught my eye is manage sites/ site setup/ advance settings/ local info/ web url,  which is automatically set to http://www.oasisdesign.net/public_html/
    it gives an option to change it but it makes every effort to make this NOT look like something users should mess with:
    Having gone through the more careful thought process during this post, I'm ready to do the experiment of changing the remote server web URL (why is it wrong by default?)...think I'll eat dinner first so there's 45 min to avert disaster if anyone knows this to be a bad idea!
    Art
    PS--don't  have a local testing server...don't think this will solve the GUI broken link/ link shows as external problems.
    Is there an easy, automated way to change links sitewide from document to root relative?

  • Howto get RowCount of ResultSet

    Hello,
    is there an intelligent way of getting the rowcount of an resultset?
    For now I execute 2 SQLQueries, where the second is just executed to get the amount of rows in this selection, which is a lot of sumb overhead:
    ResultSet rs = db.getStatement().executeQuery("SELECT * FROM BOOKS WHERE LOWER(titel) like '%" + searchStr + "%' OR LOWER(autor) like '%" + searchStr + "%' OR LOWER(instrument) like '%" + searchStr + "%' ORDER BY " + orderTableName + ";");
                   ResultSet countSet = db.st2.executeQuery("SELECT COUNT(*) FROM BOOKS WHERE LOWER(titel) like '%" + searchStr + "%' OR LOWER(autor) like '%" + searchStr + "%' OR LOWER(instrument) like '%" + searchStr + "%';");
    Any ideas howto do this in a better way?
    Thank you in advance, lg Clemens

    [Standard pre-packaged copy&pasted rant follows]
    The really really best way to know the number of rows in a ResultSet: write your application so that you don't need to know it.
    To get the number of rows in a ResultSet, loop over the result set with while(res.next()). Read each row into an object. Add each object into e.g. a LinkedList. At the end, you will have the rows nicely converted to objects (which you usually should do anyway). And list.size() will give the number of objects.
    There are other ways to get the number of objects, but list.size() is the easy and reliable way. If you don't need the rows converted to objects ...why did you select them in the first place?
    Tricks with last()/getRow() sort of work. They read the entire result set into memory (in a memory-inefficient way: the storage that scrollable result sets take is almost certainly more than "real" objects). But you'll need to write the while(res.next()) loop anyway. No point in having the computer do the same thing twice. So last()/getRow() is inefficient and just plain extra silly work.
    Still thinking of using last()/getRow()? Bad idea. When you execute a select, the database server doesn't necessarily even know the number of rows you selected (the cursor "materializes" as it is being read). The server will hand rows to the JDBC driver, without being able to tell in advance how many there will be. So the only way getRow() can know how many rows there are is by reading in all of the rows. This consumes time and memory. And you STILL have to write the while(res.next()) loop, so the computer is doing the same work twice and you are writing extra code.
    "select count(*) from ..." is another way, but it has a few problems: (1) The query gets executed twice, so it is almost twice as slow. (2) The number of rows can change between the two queries. (3) You'll need to write the while(res.next()) loop anyway, so you'll be doing silly useless extra coding work.
    Best Practice: stop needing the number of rows.
    Second Best Practice: while(res.next()), create objects, put into a LinkedList, use list.size().
    Silly Extra Work And Slowness: last()/getRow() or select count(*).
    There may be situations where last()/lastRow() may be reasonable. You need to know how your database implements them and understand the performance implications. Don't even try if you can at all use the better ways.
    There is a related question: how do I page database results. That may require "select count(*)" or something, depending on how you want to do it. There is no really perfect universal solution for that question using plain SQL.

  • File Adapter - Content conversion parameters at Receiver

    Hi all,
    I'm trying to translate a XML message to a text line file.
    My XML message is this:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:Proveedor_100011 xmlns:ns1="http://sap.com/xi/webservices/buyordint">
    <config>
    <directory>c:/tmp</directory>
    <filename>dynamicFile3.txt</filename>
    </config>
    <root><string>Header;423423</string>
    <lines>
    <value>LINE;</value>
    </lines>
    </root>
    </ns1:Proveedor_100011>
    I only want to write to text file the "root" TAG content.
    I try different "Content conversion parameters" in the integration builder (configuration)
    For example:
    RecordSet Structure: root
    root.addHeaderLine   0
    root.fieldSeparator  ;
    root.endSeparator    ;
    but the better result is all XML content.
    Can someone tell me how to skip "Config" TAG and only write the "ROOT" one?
    I'll apreciate any help.
    Thanks in advance,
    Diego.

    Hi Sravya,
    I've tried again without better luck.
    I change the root element of my message from
    Proveedor_100011 to Proveedor100011. (removed underscore)
    I created the next message as in your weblog:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://sap.com/xi/webservices/buyordint" targetNamespace="http://sap.com/xi/webservices/buyordint">
    <xsd:element name="Proveedor100011" type="Proveedor100011" />
    <xsd:complexType name="Proveedor100011">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    54650790d48f11dab96c001438eb3b44
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:sequence>
    <xsd:element name="root">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    45f01f20d48e11dab854d06ec0a8004a
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="head" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    45f01f21d48e11da8f1dd06ec0a8004a
    </xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="rows" minOccurs="0" maxOccurs="unbounded">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    45f01f22d48e11da894ad06ec0a8004a
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="value" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    45f01f23d48e11dab889d06ec0a8004a
    </xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="filenode">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    45f01f24d48e11daab91d06ec0a8004a
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="filename" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    45f01f25d48e11da8becd06ec0a8004a
    </xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="filepath" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    45f01f26d48e11dac56cd06ec0a8004a
    </xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    <Proveedor100011>
    <root>
    <rows>
    <value></value>
    </rows>
    </root>
    <filenode>
    <filename></filename>
    <filepath></filepath>
    </filenode>
    </Proveedor100011>
    I've tried to set "Recordset Structure" in file adapter configuration to "root,filenode" and to "Proveedor110001, filenode" but no output is writed
    We are using XI version: SAPKB64015, which version did  you use in your weblog?
    Thanks and regards,
    Diego.

  • ADF:  Using Mercurial in JDeveloper

    Is there any way to use Mercurial version control to develop with JDeveloper?
    I mean JDeveloper 11g R1.

    There is no built in integration like we have for Subversion, CVS and other system.
    But you can build this integration in two ways.
    One is to take the simple command line interface approach with the external tools option in JDeveloper. See: http://www.oracle.com/technology/products/jdev/101/howtos/extools/subversion.html
    For better integration you can use the extension SDK - one of the samples there shows you how to write a software configuration management integration plug-in.
    See:
    http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/index.html
    and the last sample on this page: http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/samples.html

  • Backup issues (ufsdump/ufsrestore) under solaris 10

    Hello all,
    We are in the process of migrating to Solaris 10 from Solaris 8.
    On our Solaris 8 systems with 2 HDDs we have a script that does a full backup of one disk (slice by slice) on to another using ufsdump/ufsrestore + boot record. The idea is that if one disk becomes corrupt logically/physically we can boot off the backup disk and continue using the system.
    This worked fine under Solaris 8. We tried to do the same under Solaris 10 and noticed some unexpected behaviour when we tried to boot off the backup disk. Solaris 10 started "reconfiguring services" just like it does it when you install the OS fresh with the message:
    Loading smf(5) service descriptions: xx/117
    Somehow Solaris 10 "knew" that it was booted from a different device than last time.
    My question would be: how does Solaris 10 know this and could we "fool" it into thinking that it was always installed on a backup disk, so it doesn't reconfigure itself every time new backup is made (and used).

    "... The real question is "how can I be sure that except smf there is nothing else in the OS affected by HDD change" and that is what I meant..."
    The fact that you use ufsdump on mounted (I am guessing that you are doing so :-) file systems is risky!. Alternatively, you can create snapshots (fssnap(1M)) for the file systems that you are going to ufsdump on.
    If your main aim is to replicate and reduce down time in case of root disk failure, a better solution is make use of mirriong via Solaris Volume Manager (aka SDS or md(7D)). Mirror does not guard against human errors though, such as accidentally deletion of crucial files :-) (which a backup strategy can guard against).
    Hope this helps.
    Regards,
    S.T.Chang

  • Strange StreamCorruptedException while using ObjectInputStream

    I have a strange problem:
    I am producing a java client which communication behaviour should be identical to a java applet (running in a web browser). I have the source code for the applet and I experience no problems running the applet.
    However when writing a stand alone communication class the code works fine for smaller Objects that are serialised but larger objects will not work!
    I have tried several objects in order to test the bevaiour and there is nothing in my code that would explain why certain objects (large ones) should fail. Due to licensing I am unfortunately unable to provide you with the source code (sorry)
    My client uses raw socket communication (basically objectinputstream connected to the inputstream delivered by the socket (all web reply removed so that the OIS is opened where it should be)) compared to the inputstream retrieved form an URLConnection in the applet.
    In both cases the communication is over HTTPS.
    So my question is:
    Is there a fundamental difference (on the byte streams) received
    1) From an URLConnection provided by the browser envirionment to the applet
    2) Directly from a socket class.
    How else would you explain the difference?
    Many thanks
    /Chris

    Here is my guess. The browser VM has some subtle interractions with the browser. An SSL connection usually starts with the server sending a certificate and the client 'accepting it'. The acceptance or rejection is based on the root certificates configured in the client. The browser has such a 'database' of root certificates. I bet the browser VM is using the same database as the browser.
    When you run the application stand-alone, the database is somewhere in the JRE. Somehow the root certificate of your server certificate is not there.

  • StreamCorruptedException while using JWS

    Hello,
    I'm wanting to deploy the client of a client/server networked app in JWS, but for some reason I'm getting StreamCorruptedExceptions when I try to deserialize Objects contained in network messages. This doesn't happen when I run the app outside of JWS, so it appears to be some weird interaction with JMS. Here are all the details I can think of:
    The app is being distributed as one jar, including all libraries, by using the Fatjar plugin for Eclipse.
    I'm using Apache Tomcat v5.5.12 as the application server so that I can click a link in a browser to start the JWS app.
    I'm using ActiveMQ v4.0M3 as a JMS provider to handle passing messages across the network. (The same thing happens with ActiveMQ v3.2.1)
    This is the error print out:
    Caught: javax.jms.JMSException: Failed to build body from bytes. Reason: java.io.StreamCorruptedException
    javax.jms.JMSException: Failed to build body from bytes. Reason: java.io.StreamCorruptedException
         at org.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:34)
         at org.activemq.command.ActiveMQObjectMessage.getObject(ActiveMQObjectMessage.java:173)
         at com.shai.ogma.networking.JMSLink.onMessage(JMSLink.java:115)
         at org.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:703)
         at org.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:95)
         at org.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:148)
         at org.activemq.thread.SimpleTaskRunner.runTask(SimpleTaskRunner.java:129)
         at org.activemq.thread.SimpleTaskRunner.access$100(SimpleTaskRunner.java:44)
         at org.activemq.thread.SimpleTaskRunner$1.run(SimpleTaskRunner.java:62)
         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:643)
         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:668)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.StreamCorruptedException
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.readObject(Unknown Source)
         at java.util.HashMap.readObject(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
         at java.io.ObjectInputStream.readSerialData(Unknown Source)
         at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.readObject(Unknown Source)
         at java.util.HashMap.readObject(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
         at java.io.ObjectInputStream.readSerialData(Unknown Source)
         at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
         at java.io.ObjectInputStream.readSerialData(Unknown Source)
         at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.readObject(Unknown Source)
         at java.util.HashMap.readObject(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
         at java.io.ObjectInputStream.readSerialData(Unknown Source)
         at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.readObject(Unknown Source)
         at com.shai.ogma.messaging.OgmaMessage.readExternal(OgmaMessage.java:245)
         at java.io.ObjectInputStream.readExternalData(Unknown Source)
         at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
         at java.io.ObjectInputStream.readObject0(Unknown Source)
         at java.io.ObjectInputStream.readObject(Unknown Source)
         at org.activemq.command.ActiveMQObjectMessage.getObject(ActiveMQObjectMessage.java:167)
         ... 10 more
    Notes about the error message:
    The thing it is getting stuck on while trying to deserialize is one of my own classes with readObject() and writeObject() defined.
    It can serialize/deserialize without problems outside of JWS.
    All the classes I'm serializing are in synch between the server and the client. I.e. there shouldn't be any problems with serialversionUID caused by code being at different versions.
    The code at org.activemq.command.ActiveMQObjectMessage.getObject(ActiveMQObjectMessage.java:167) doesn't appear to be doing anything funny.
    Does anyone have any clues what might be causing this behavior and how to fix it?
    Thanks!

    Here is my guess. The browser VM has some subtle interractions with the browser. An SSL connection usually starts with the server sending a certificate and the client 'accepting it'. The acceptance or rejection is based on the root certificates configured in the client. The browser has such a 'database' of root certificates. I bet the browser VM is using the same database as the browser.
    When you run the application stand-alone, the database is somewhere in the JRE. Somehow the root certificate of your server certificate is not there.

  • Mesh parent

    I have few questions for mesh network:
    what exactly is a parent, child and neigbor in mesh network
    1.can a mesh access point act as parent or child to another mesh neighbor ?
    2. an electronic temperature gauge connects to root access point eventhough another mesh access point
       is near to it.Any reason why is it so and if we can forcibly make it connect to the nearer one
    3. should the gain be set manually on each access point or should it be left to default as it is seen in controller
    4. should the gain if set manually be set on both 802.11a & g
    5. What is the ideal snr for optimal connectivity.
    thanks in advance

    1-
    Parent: the root AP that other APs connect to as a child.
    Child: the AP that reaches controller through another AP (through the parent AP).
    Neighbor: an AP that the mesh AP can hear but it is not connected to it. So it can be heared but it is neighbor parent nor a child.
    This link must be read so you understand this:  http://www.cisco.com/en/US/docs/solutions/Enterprise/Mobility/emob41dg/ch8_MESH.html#wp1016044
    2- Root AP may have better signal. being closer does not necessarily mean you have better signal. The further AP may have higher power level than the closer one. Test power levels. also, try to make the guage disconnect and connect again and test.
    3- Gain is put in order to maintain power levels set by authority. leaving it blank may make the ap exceed the power threshold specified by the authorities. You need to specify the accurate gain under the antenna (for external antennas only).
    4- You need to set the gain under both b/g and a radios. each radio may have different transmit power and different antenna gains.
    5- There is no ideal value for SNR. It all depends on your requirements and your site. I would say 20+ SNR value is OK. But it may vary slightly depending on your area that you want to cover and clients that connect.
    HTH
    Amjad

  • What should be the Swap size....?

    Hi All,
    We are working on:
    EBS : R12.1.3
    OS :OEL 5.4
    RAM: 32 GB
    Current Swap : *34 GB*
    Above is my Environment, could some one suggest what should be my Server Swap partition size..?
    below is the output for the TOP command.
    top - 15:54:16 up 92 days,  9:12,  2 users,  load average: 0.01, 0.08, 0.08
    Tasks: 512 total,   1 running, 511 sleeping,   0 stopped,   0 zombie
    Cpu(s):  1.7%us,  0.4%sy,  0.0%ni, 97.8%id,  0.0%wa,  0.0%hi,  0.1%si,  0.0%st
    Mem:  32940908k total, 20679504k used, 12261404k free,   350320k buffers
    Swap: 34996216k total,    36972k used, 34959244k free, 16785144k cachedThanks
    Raghu

    You may find the following link intersting:
    http://www.cyberciti.biz/tips/linux-swap-space.html
    Recommendations for Redhat 5 (same applies to oracle linux):
    Systems with 4GB of ram or less require a minimum of 2GB of swap space
    Systems with 4GB to 16GB of ram require a minimum of 4GB of swap space
    Systems with 16GB to 64GB of ram require a minimum of 8GB of swap space
    Systems with 64GB to 256GB of ram require a minimum of 16GB of swap space
    In a worse case scenario you can also use a swap file instead of a swap partition.
    http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto
    Btw, the questions might better be placed in the Oracle Linux forum:
    Oracle Linux

  • Need to keep enlarging web pages; including home page. Used "NoSquint" It is working Great. Many Thanks

    All web sites needed to be continually enlarged. NoSquint 2.1.2 fixed it!

    PeterCote wrote:
    So I decided to only have the index.html in the root and created folders for the other pages to clean it up, and just dropped the pages in the folders.
    How did you move pages?
    Each page is linked to the other pages and when you move pages up and down the folder hierarchy (from folder to folder) all the link references in the page code changes.
    If you always move files using the Files panel in Dreamweaver then Dreamweaver will handle the link updating in all pages automatically and your pages will work OK.
    PeterCote wrote:
    Do I need to keep all my website pages in root directory?
    Way better to arrange your files and folders logically so they're organized. Makes maintenance much easier.
    Just ensure that you use the DW Files panel to move files and folders around at all times so the links are updated.

  • Navigate movieclip to movieclip

    i need help to this seemingly simple, yet frustrating issue i am having with AS3.
    issue
    i have multiple movieclips on a timeline and i need the first one to load, play through all frames, than i need flash to move to the next movieclip in the timeline [load, play, than stop and wait for user input].
    -     i am completely new to AS3, i have used AS2 for years.
    -     i am moving all production in our studio to AS3 [so no AS2 comments or recommendations]
    -     i have been able to do this in AS2, but i understand that AS3 does not use roots, levels, etc.
    -     i have tried the gotoAndPlay(); [but i am not setting it up correctly to navigate to root timeline to find the frame name that the next movieclip resides in.  in otherwords i can not get flash to go back to the root timeline]
    -     is it better in AS3 to find the movieclip or the frame it resides in?
    please help

    i tried the following to no avail
    -     this.home_m.gotoAndPlay("home");            [this one reported no errors, but stopped at the end of the first movieclip and did not move to the next movieclip in the root timeline]
    -     home_m(this.root).gotoAndStop("home");     [this one moved along the root timeline to the end and then started over, did not completely load the fist movieclip or the second movieclip in the root timeline]
    home_m = 2nd movieclip instance name / home = the frame label in the root timeline where movieclip home_m resides.
    -     i placed the actionscript in the actionscript layer in the first movie, in the last frame.
    -     i have a stop(); in the root timeline below each movie clip.  [usually i have the movieclips in the root timeline in 2 frames, so flash can enter the first frame, play the move and i have the stop(); in the second frame, in the actionscript layer]

  • Change main HD to bigger size

    How do i manage the boot system? please help me. Do i need to clean install or just can do by doing disk image.

    M Faza wrote:
    Hi brody..could you explain on the jumper thing, quite confused with that though..thank you
    If you are dealing with a G5 Power Mac, your internal drive interface is SATA.  The only jumper issue there might be if your drive is a Seagate or Western SATA-2 or SATA-3 drive, in which case you will need to have a jumper in place to make the drive recognize the SASA-1 interface.  (I bought a couple of 1TB Seagates a couple of years ago and they came jumpered for SATA-1 already, it turned out.)  Master/slave won't be an issue with the SATA drives.
    I note this morning that our local Fry's ad had 2TB Hitachis for $96 on special.  Mind boggling.  The last two of those I bought were $12 more, last fall, I guess, so maybe the price drop is slowing a little.
    Also, be advised that even if you put a 3TB into the unit, you will have to partition it using Apple Partition Map into at least two volumes and the boot volume will have to be smaller than about 2.2 TB for you to be able to boot the machine.
    Oh, and as an after thought, it would be better to use SuperDuper! or CCC to clone the drive, as Disk Utility restore may leave visible things on the root volume that are better left invisible (some Unix folders).  The free SuperSuper! will work just fine doing the basic clone operation.

Maybe you are looking for

  • How can I view my phone calendar for the previous year via my laptop?

    I have to extract appointments for tax purposes and as this is my first smart phone (Samsung Galazy S3), I have no clue if this is possible or where to look? I thought when my phone did its back up it backed up everything...now I'm guessing just my c

  • Can't get Nano 4g to work with 2 computers

    I am new to this, but have searched the forums for help already. I have set both computers to manually manage, and I have disabled automatic syncing. I am still getting the message that the iPod is linked to 2 computers, so I can't tansfer a movie to

  • Problems with gammut mapping

    Hi folks. My brother and I are trouble-shooting a colour management issue, but just don't get to the bottom of it. Any help would be greatly appreciated. It seems as if Windows has troubles setting the monitor profile, or at least communicating this

  • Bug? ORA-01008: not all variables bound when using DB LINK

    This SQL runs fine in SQL*Plus but returns ORA-01008 in Apex. If I replace the bind variable with a literal, it works fine in Apex. Using OracleXE 10.2.0.1.0, Apex 2.1.0.00.39 with ixc as (      select ic.table_name, ic.index_name, ic.column_name, ic

  • Cannot configure JAAS in weblogic server 10

    Hi, I am new to weblogic and at present am using weblogic server 10. Can anyone please specify the steps to configure my custom JAAS module in weblogic? Thanks Surya