Error of the instantiation of SDS

Background: I tried to imitate the example of data Service 'contact' but can not get my destination to instantiate the server. I was able to get the sample contact but my customized version is dead in the water.

The error looks like this when I start the JRUN server:
At jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
[0] flex.messaging.config.ConfigurationException: unable to create service'flex.data. DataService' for 'data-service' due to the following error: error instantiating application extended instance of type 'samples.twa.TwaAssembler' destination 'person '...

(1) how can I find out why destination "person" could not be instantiated by the data Service?
(2) class files should be put in a file to archive? If so where should put the archive file so that the server will see it?
(3) I missed something else?

The process that I follow is mentioned below:

(1) in samples\WEB-INF\flex\data-management-services.xml, I added the following:

< destination id = "no" >
< Ref adapter = "java-dao" / >
-< properties >
samples.twa.TwaAssembler < source > < / source >
application of < scope > < / scope >
-< metadata >
< property identity = "personId" / >
< / metadata >
-< network >
< session-timeout > 20 < / session-timeout >
< paging enabled = "false" pageSize = "10" / >
< Butterfly-inbound policy frequency max = "ERROR" = "500" / >
< political Butterfly-outgoing = 'REPLACE' max-frequency = "500" / >
< / network >
-< Server >
-< method fill - >
< name > loadPersons < / name >
< / fill method >
-< method fill - >
< name > loadPersons < / name >
java.lang.String < params > < / params >
< / fill method >
-sync-method >
< name > syncPersons < / name >
< / sync-method >
< / Server >
< / properties >
< / destination >


2. I created TwaAssembler.class, Person.class, PersonDAO.class, DAOException.class, ConnectionHelper.class, ConcurrencyException.class and ValidationException.class and put them in the folder samples\WEB-INF\classes\samples\twa.

3. I have created a file Person.as and put in the samples\twa\samples\twa folder and I also put it in the samples\dataservice\twa\samples\twa folder.

4. I created a Flex twa.mxml file that defines the binding of an object grid to the data Service.
<? XML version = "1.0" encoding = "utf-8"? >
""-xmlns:mx = mx:Application ' http://www.adobe.com/2006/mxml ' creationComplete = "initApp (); ">
-< mx:Script >
-<! [CDATA]
Import mx.data.DataService;
Import mx.collections.ArrayCollection;
Import samples.twa.Person;

public var ds:DataService;
[Bindable]
public var people: ArrayCollection collection;
public var: person;
public function initApp (): void {}
people = new ArrayCollection();
DS = new DataService ("person");
CSI Fill (Persons);
}

[]] >
< / mx:Script >
-< mx:DataGrid id = "dg" dataProvider = "{people}" editable = "true" >
-< mx:columns >
< mx:DataGridColumn dataField = "PersonId" headerText = "Id" editable = "false" / > etc...

5. I created a database of "twa" hsqldb with a table of 'Person' for the java-dao query and place it in the folder samples\WEB-INF\db\twa.


I finally got my application from running. The problem was that I had been compiling Java as a General Application using NetBeans 5 classes. When I went to a Web Application project, classes were executable/callable by the thread of data Service.

Tags: Adobe LiveCycle

Similar Questions

  • ArgumentError: Error #2025: the supplied DisplayObject must be a child of the appellant

    I get this error and I think I understand, but I look at my code and the enemy doesn't seem to be on the stage. The error is on the last line of the Enemy.as. It cannot remove the enemy display object as it seems that the scene is not like a child.

    Main.As (instantiated enemy: enemy)

    Enemy.As (contains the problem code) it is basically saying that the scene is not the enemy of display object.

    I'll post the parts where the enemy is mentioned.

    Main.As

    private var enemy: enemy = new enemy (Stadium, Heroes);

    ...

    for (var i: int = 0; i < 5; i ++)

    {

    enemy = new enemy (Stadium, Heroes);

    Enemy.x = 100 + offsetEnemy;

    enemyVector [i] = enemy; populate the vector with enemies.

    addChild (enemy);

    enemy.cacheAsBitmap = true;

    }

    Enemy.As

    package

    {

    import flash.display.MovieClip;

    import flash.display.Stage;

    import flash.events.Event;

    import flash.display.Stage;

    SerializableAttribute public class enemy extends MovieClip

    {

    private var stageRef:Stage;

    private var vy:Number = 1; Speed y

    private var ay: Number =. 1; acceleration of y

    private var target: Hero;

    public void enemy (stageRef:Stage, target: Hero): void

    {

    this.stageRef = stageRef;

    This.target = target;

    x = Math.Random () * stageRef.stageWidth;

    y =-5;

    addEventListener (Event.ENTER_FRAME, loop, false, 0, true);

    }

    private void loop(e:Event): void

    {

    Vy += ay;

    y += vy;

    If (y > stageRef.stageHeight)

    removeSelf();

    }

    private void removeSelf(): void {}

    removeEventListener (Event.ENTER_FRAME, loop);

    If (stageRef.contains (this))

    stageRef.removeChild (this);

    }

    }

    }

    If I add the enemy in the main class, while I would like to remove the enemy in the main class.

    If you want the enemy to refer to the scene, and then use an ADDED_TO_STAGE event listener in the instantiation function and have sound handler to deal with anything whatsoever from the scene for this instance of treatment.

    Do not use the same name for different instances of variables.  You're not going anywhere the assignment of a variable to itself ("this" is the most often useless in AS3)...

    this.stageRef = stageRef;

    This.target = target;

  • CoreTelephony error in trace file as a file for coretelephony tracing operation has failed, perhaps you need more disk space. Details "error opening the file/tmp/ct.shutdown, err = operation not permitted

    I got this error:

    "CoreTelephony Trace file error
    A file for CoreTelephony tracing operation failed, you might run out of disk space. Details "error opening the file/tmp/ct.shutdown, err = operation not permitted"

    I tried to solve it by searching for CoreTelephony errors. Could not resolve yet.
    Software does not, especially of photoshop...

    Any ideas?

    Same thing here, iMac with OS X 10.11.6. All started a couple days ago. Have not found any valid solution online yet, I tried rebooting in recovery mode and check disk, but it seems that everything is ok with the drives and permissions.

  • Sync repeatedly presents the sync error, indicating the name/password of wrong account

    I get this error whenever I closed and reopened Firefox 38.0.1. I tried the solutions recommended in https://support.mozilla.org/en-US/questions/1063033, and they do not work. To enable synchronization, I must click on Preferences in the error (at the bottom of the window) and connect to synchronize manually. My FF is set up to always use the InPrivate browsing and do not save passwords. I use an automated password/login application called LastPass. However, the problem with the sync seems to have started in the last two weeks. The error repeats itself everytime I open a new window.

    Yes, it should work.

  • Time Machine - there was an error preparing the Time Machine backup drive (could not mount the drive)

    I have a new HD but cannot set up encryption with system preferences. After ten minutes, I get the following error message:

    "There was an error preparing the Time Machine backup disk (disc name) - could not mount drive"

    Apparently, I need to set up the HD in this way:

    • If you are using an external drive connected to your Mac, use disk utility to make sure that your backup disk is formatted in HFS + extended (journaled) and is the partition type GUID Partition Table (GPT)

    It is not an option for the HFS + and so I used; OS x EXTENDED (journaled). GUID is ok.

    Can someone let me know what I need to do.

    Thank you

    Formatting: GUID Partition Table, OS X Extended (journaled).    (it is HFS +)

    For TimeMachine at best to a partition only.

    Do it again if necessary, then disconnect, reconnect, Start Time Machine preferences and "select disk".

  • When I try to print anything in Firefox, email or the Internet, I get a message that says: error in the printer and nothing prints. Tried the stuff even printing from the Internet

    When I try to print anything in Firefox, email or the Internet, I get a message that says: error in the printer and nothing prints. Tried to print things even to Internet Explorer, it works fine.

    Hello bdoolen, please try to reset firefox and see if that can solve the problem...

  • I received a bound book, but there is an error on the cover. It can be corrected?

    I ordered and received a bound book. There is an error on the cover. How can this be repaired?

    Hello

    Contact Apple directly > http://www.apple.com/support/mac-apps/contact/

  • There was an error in the App Store. Please try again later. (20)

    After you have created a new Apple ID (my previous one makes use of an e-mail address that no longer exists) and change the password (for security), I tried to download an update from the App Store. First, I got the message: 'there was an error in the App Store. Please try again later. (20)". Now, I'm getting "update not available with this Apple ID - this update is not available for this Apple ID either because it was bought by another user or the item has been refunded or cancelled.»

    I deleted all cookies, caches, disconnected, connected again, power and turn it on again and waited.

    The problem persists.

    What should I do?

    Please log out of the App Store and reconnect. Try to update again. If there is no change, you can try to update an application that has been purchased (or free downloaded for free) using an another Apple ID check your purchase history to see if the app is included. If it isn't, you will have either to connect with the ID used to buy it, or remove it and buy it again - and Yes, you will have to pay again.

  • Sync has encountered an error during the synchronization. Unknow error

    I get the following error message: 'Sync has encountered an error during the synchronization. Unknown error. Synchronize automatically retrying this action. "In addition, currently, my favorites are useless: I lost all my favorites and I can't add any new.

    Problems with bookmarks and history does not properly can be caused by a corrupted database places.sqlite file.

    You can check for problems with the database places.sqlite file in the Firefox profile folder.

  • Trying to access the electronic books in the library of our audience. Downloaded the software, but I get an error saying: the current version of the security of MP's 2.5.0.0 and I need 2.

    Trying to access the electronic books in the library of our audience. Downloaded the software, (Overdrive Media Console) but I get an error saying: the current version of the security of MP's 2.5.0.0 and I need 2.5.0.1. How to do only what I can read ebooks? People have suggested using IE, but I prefer to much HELP Firefox!

    Try to update the media player while using Internet Explorer. Windows Updates site uses ActiveX to perform "duties. Firefox does not support ActiveX.

  • all the site went "not found HTTP 404 error. The requested resource is not found. "and the"Firefox cannot load Web sites but other programs can"page is not helping

    all the site went "not found HTTP 404 error. The requested resource is not found. "and the"Firefox cannot load Web sites but other programs can"page is not help somehow

    One possible cause is security software (firewall, antivirus) that prevents or limits Firefox or plugin-container process without informing you, possibly after the detection of changes (update) for the Firefox program.

    Delete all rules for Firefox and the plugin-container in the permissions list in the firewall and leave your firewall again ask permission to get full unlimited access to the internet for Firefox and the plugin-container and the update process.

    See:

    You can try to reset (power off / on) of the router.

  • "Detect an error in the course of the PININST_BBV".

    I'm still working on the resumption of this problem that AxshunJaxun has been able to help me to diagnose properly.

    I have since received support from HP recovery and bought a new HARD drive that needs to be an improvement on the part of the plant. And I spent part of yesterday and most of the work now on the process of recovery without success (several failed attempts).

    I get a message "failed to retrieve" Application Recovery Manager with the message of the specific details of:

    [2:37:49.82] ChkErrBB.CMD: detect an error in the PININST_BBV.
    [2:37:49.82] ChkErrBB.CMD: check c:\system.sav\logs\BurnBootWarn.log
    [2:37:49.82] ChkErrBB.CMD: or, visit c:\system.sav\logs\BurnBootMerge.log

    (The two. LOG files do not exist on the C: partition, which is here.)

    I followed the process (initially had to hit ESC instead of F2) developed by anthony82 and met no error on drive testing HARD and memory.

    According to this message , it's probably a problem with the HP recovery media. anyone else seen this kind of problem and that this is the case also determined?

    DarkSetz wrote:

    I'm still working on the resumption of this problem that AxshunJaxun has been able to help me to diagnose properly.

    I have since received support from HP recovery and bought a new HARD drive that needs to be an improvement on the part of the plant. And I spent part of yesterday and most of the work now on the process of recovery without success (several failed attempts).

    I get a message "failed to retrieve" Application Recovery Manager with the message of the specific details of:

    [2:37:49.82] ChkErrBB.CMD: detect an error in the PININST_BBV.
    [2:37:49.82] ChkErrBB.CMD: check c:\system.sav\logs\BurnBootWarn.log
    [2:37:49.82] ChkErrBB.CMD: or, visit c:\system.sav\logs\BurnBootMerge.log

    (The two. LOG files do not exist on the C: partition, which is here.)

    I followed the process (initially had to hit ESC instead of F2) developed by anthony82 and met no error on drive testing HARD and memory.

    According to this message , it's probably a problem with the HP recovery media. anyone else seen this kind of problem and that this is the case also determined?

    http://h30434.www3.HP.com/T5/notebook-recovery/dv4-ChkErrBB-cmd-detect-some-error-during-PININST-BBV/TD-p/1314599

    "Here's how fix you it. When you start your computer, press F10 which will lead you to the Manager of the BIOS. then press F9 to set the BIOS factory default save and exit, then perform a recovery.  Worked for me and it took me 3 weeks to understand lol. »

  • I lost the ability to upload files to a Web site. I transfer files from my computer to a web site and I get an error message "the connection was reset" and the file will not download. I try to transfer the photos and I get the same message.

    I have download a scanned receipt on a Web site and I get the error message "the connection was reset". I downloaded these reception for two years and last week, I had to use a different browser to complete this operation. I log onto the site and make the report, I have to do, but I can no longer download on this site.

    Safe mode does not work. However, when I downloaded Firefox laptop everything worked. Any suggestions as to where I should go now. Thanks Fire Fox works on other sites I work with. The download has started working. I think the problem was the website.

  • I get this error message 'The URL is not valid and cannot be loaded' when I try to go to Firefox home. I uninstalled the modules, uninstaleed and reinstalled a new fresh firefox which did not help

    I get the following error message 'The URL is not valid and cannot be loaded' when I try to go to firefox home. I uninstalled modules, uninstalled Firefox and then install a new version. Still have the problem.
    Thanks for the help

    This problem may be caused by a corrupt installation of Visual C++ or incomplete (several versions can be installed-by-side; SxS) it lacks certain runtime components (redistributable Packages), which depends on Firefox (problem with an embedded manifest file that specifies a specific runtime version).

    You need to install the missing components (for example, Redistrbutable end 2005 ++).

    • bug 713167 - Microsoft.VC80.CRT SideBySide errors, browsercomps.dll
  • How to load firefox when I get this message of corrupted content error, the page you are trying to view cannot be shown because an error in the transmission of data.

    When I connect Firefox, it starts to load the page problem loading page and this message pops up error content corrupted

     The page you are trying to view cannot be shown because an error in the data transmission was detected.
    

    Same problem here. I don't see a fix listed on this site. If anyone has found a?

Maybe you are looking for

  • VoiceOver Math read does not correctly

    I am running OS X Yosemite 10.10.4 on a Macbook Pro and using VoicOver with Safari 8.0.7 I have a few problems in mathematics is playing. the parentheses are not read exhibitors are read as a '4 2' instead of '4 squared '. the "minus" sign is read in

  • Equium A60-155, without recognizing the hard drive

    I gave to this laptop and asked if I could sort. its not to recognize the hard drive. I updated the BIOS to 1.9 but that did not help.The friend gives me no docs or discs, just of the PSU. I found the manual on the website, but it is less than helpfu

  • HP ENvy 17 - J100 of TS: A DVD of RECOVERY will manage partitions of HARD drive on the HARD drive?

    I am desperate... need to get my laptop to the factory settings. It came with Win 8.1 installed. The problem is I tried and tried to make 10 Windows and in the process... all trying to do a fresh install... the original partitions on the HARD drive h

  • How can I create a list of complete dependence to a workspace TestStand 4.2.1?

    This would serve to Perforce labeling and software configuration management features to ensure a precise snapshot of a next generation of the TestStand deployment utility.

  • THAT IS TO SAY 8

    I thought I was just downloading an update and IE 8 has been installed except for the recovery.    I do not want to install 8.How can I keep this from happening?  I can't stop even my pc.