Play Framework - Compilation error[object inject is not a member of package javax]

I would like to add to the table "Person" when you press the button "Add a Person" but I get an error:
play.PlayExceptions$CompilationException: Compilation error[object inject is not a member of package javax]
at play.PlayExceptions$CompilationException$.apply(PlayExceptions.scala:27) ~[na:na]
at play.PlayExceptions$CompilationException$.apply(PlayExceptions.scala:27) ~[na:na]
at scala.Option.map(Option.scala:145) ~[scala-library-2.11.1.jar:na]
controller is in the class Application:
package controllers
import play.api._
import play.api.mvc._
import play.api.data.Form
import play.api.data.Forms._
import play.api.libs.json.Json
import models._
import javax.inject._
class Application @Inject() (db: DB) extends Controller {
  def index = Action {
   Ok(views.html.index())
  val personForm: Form[Person] = Form {
   mapping(
   "name" -> text
   )(Person.apply)(Person.unapply)
  def addPerson = Action { implicit request =>
   val person = personForm.bindFromRequest.get
  db.save(person)
  Redirect(routes.Application.index)
I do not know how to add a library javax.inject-1.jar ?
Is there another solution . Thank for you help in this matter.

If this is still an outstanding issue, and you have a valid CSI, a BDB support license, please access MOS (MyOracle Support) and review Note 1198943.1: "Building BDB XML 2.5.16 with STLPort on Solaris using Sun Studio". If you cannot access MOS, drop me an e-mail at andrei dot costache at the obvious domain, and I will send the details.
Regards,
Andrei

Similar Messages

  • Compile error: Object library invalid or contains references to object definitions that could not be found

    Office Online 365 installed today January 20 on brand new HP Envy. Get the above message when loading Excel applications with code and when running code. Will greatly appreciate help. Applications run well on other computers.

    Hi Jaime,
    >> Get the above message when loading Excel applications with code and when running code. Will greatly appreciate help. Applications run well on other computers.
    >> Compile error: Object library invalid or contains references to object definitions that could not be found
    According to the error message, it seems some ActiveX control is not registered successfully on the new machine.
    Would you mind telling us which ActiveX controls you used in the workbook?
    >> For my applications Excel from Office 365 is now useless. Should I just let my subscription run out and purchase another version?
    According to my experience, this issue is not related to the subscription.
    Regards,
    Jeffrey
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Compilation Error for import classes not found in generated Proxy Class

    Hi,
    We are generating java classes for the COM dll using JCOM com2java compiler.
    We are getting a compilation error for import class not found when compiling the
    generated Proxy java source code. It can't find the com.bea.jcom.Dispatch class that
    the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
    or com.bea.jcom.Param. These are interfaces or data types or classes used by COM
    library.
    I added weblogic.jar to my class path and the only Dispatch class i found inside
    the weblogic.jar is com.linar.jintegra.Dispatch;
    We have com objects for which we want to develop an EJB client to interface with
    the COM object using JCOM with Native Mode disabled.
    Any help on the compilation error..I tried changing the extends for Dispatch to com.linar.jintegra.Dispatch
    but the other errors are still there.
    To begin with, I think the generated code should not refer to any of the COM data
    types.
    Any help please.
    Thank you in advance,
    Regards,
    Rahul Srivastava
    [email protected]

    Hi,
    I resolved the other errors by changing all references from com.bea.jcom.Variant
    etc to com.linar.jintegra.class name..all were present under the com.linar.jintegra
    package.
    Thank you all anyways,
    Regards,
    rahul
    "Rahul Srivastava" <[email protected]> wrote:
    >
    Hi,
    We are generating java classes for the COM dll using JCOM com2java compiler.
    We are getting a compilation error for import class not found when compiling
    the
    generated Proxy java source code. It can't find the com.bea.jcom.Dispatch
    class that
    the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
    or com.bea.jcom.Param. These are interfaces or data types or classes used
    by COM
    library.
    I added weblogic.jar to my class path and the only Dispatch class i found
    inside
    the weblogic.jar is com.linar.jintegra.Dispatch;
    We have com objects for which we want to develop an EJB client to interface
    with
    the COM object using JCOM with Native Mode disabled.
    Any help on the compilation error..I tried changing the extends for Dispatch
    to com.linar.jintegra.Dispatch
    but the other errors are still there.
    To begin with, I think the generated code should not refer to any of the
    COM data
    types.
    Any help please.
    Thank you in advance,
    Regards,
    Rahul Srivastava
    [email protected]

  • Error: Object type '' could not be generated when creating sales order

    Hello Friends,
    I am using a SAP standard ITS service to create sales order.
    When I am creatin SO, it gives me error Object type '' could not be generated.
    Can you plz suggest me what is that issue & how I can reslove it.
    Regards,
    Narendra

    any inputs around this plz??

  • Error: Object "Dot11BandSelect" does not exist.

    Has anyone else received Error:Object "Dot11BandSelect" does not exist. when configuring the 802.11 settings on a 4400 WLC runing ver. 6.0.196.0
    If so what did you do to resolve it.
    Thanks
    Barry

    6.0.196.0 is a deferred code.
    http://www.cisco.com/web/software/Wireless/Deferral/Software_Advisory_6_0_196_0.html
    Are the global band select enabled, are you getting this error when enabling bandselect on a WLAN's advanced tab.

  • Mate Framework compiler errors

    I can get the Mate Framework to compile under the Flex 4 beta 1 SDK with minor changes. However if I use the latest nightly Flex 4 SDK (full Adobe version), I get the following compiler errors that I can't seem to figure out why I'm getting:
    - 1017: Definition of base class AbstractOperation was not found
    - 1017: Definition of base class LogEvent was not found
    - 1017: Definition of base class RemoteObject was not found
    - 1017: Definition of base class WebService was not found
    - 1045: Interface IMXMLObject  was not found
    In the editor, the code sense for these classes and interfaces come up fine. Also these classes/interfaces are in the SDK source code.What am I missing -

    Sorry, I accidentally hit enter as I was composing this post. Please see my full post at:
    http://forums.ni.com/ni/board/message?board.id=330&message.id=5633

  • Compile Error: "schema 'name' does not exist

    Im trying to build a program that quereys a table in a database but i keep getting this error. Am i missing a link between the files or am i missing a line of code in my program??

    Apologies. I receive a compiler error which reads as follows;
    java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver
    java.sql.SQLSyntaxErrorException: Schema 'DEMO' does not exist
    Heres the main body of code i am trying to execute.
    public class Main {
    * @param args the command line arguments
    public static void main(String[] args) {
    // TODO code application logic here
    try{
    Class.forName("org.apache.derby.jdbc.EmbeddedDriver");
    }catch(ClassNotFoundException e){
    System.out.println(e);
    try{
    Connection con = DriverManager.getConnection("jdbc:derby://localhost:1527/SimpleDBDemo", "demo", "demo");
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("SELECT * FROM DEMO.Table1");
    while (rs.next()) {
    String s = rs.getString("Name");
    float n = rs.getFloat("Age");
    System.out.println(s + " " + n);
    }catch(SQLException e){
    System.err.println(e);
    I am using NetBeans IDE and have created a database under: Services->Databases-> Java DB->SimpleDBDemo.
    I have a database connection in which theres a simple table (called "TABLE1") created which contains the names and ages of two people.
    Hope this makes the problem a bit clearer.
    Any help would be greatly appreciated.

  • C# compiling error: 'System.Array' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'System.Array' could be found (are you missing a using directive or an assembly reference?)

    Hello experts,
    I'm totally new to C#. I'm trying to modify existing code to automatically rename a file if exists. I found a solution online as follows:
    string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
            string tempFileName = fileName;
            int count = 1;
            while (allFiles.Contains(tempFileName ))
                tempFileName = String.Format("{0} ({1})", fileName, count++); 
            output = Path.Combine(folderPath, tempFileName );
            string fullPath=output + ".xml";
    However, it gives the following compilation errors
    for the Select and Contain methods respectively.:
    'System.Array' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'System.Array' could be found
    (are you missing a using directive or an assembly reference?)
    'System.Array' does not contain a definition for 'Contains' and no extension method 'Contains' accepting a first argument of type 'System.Array' could be
    found (are you missing a using directive or an assembly reference?)
    I googled on these errors, and people suggested to add using System.Linq;
    I did, but the errors persist. 
    Any help and information is greatly appreciated.
    P. S. Here are the using clauses I have:
    using System;
    using System.Data;
    using System.Windows.Forms;
    using System.IO;
    using System.Collections.Generic;
    using System.Text;
    using System.Linq;

    Besides your issue with System.Core, you also have a problem with the logic of our code, particularly your variables. It is confusing what your variables represent. You have an infinite loop, so the last section of code is never reached. Take a look 
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.IO;
    namespace consAppFileManipulation
    class Program
    static void Main(string[] args)
    string fullPath = @"c:\temp\trace.log";
    string folderPath = @"c:\temp\";
    string fileName = "trace.log";
    string output = "";
    string fileNameOnly = Path.GetFileNameWithoutExtension(fullPath);
    string extension = Path.GetExtension(fullPath);
    string path = Path.GetDirectoryName(fullPath);
    string newFullPath = fullPath;
    string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
    string tempFileName = fileName;
    int count = 1;
    //THIS IS AN INFINITE LOOP
    while (allFiles.Contains(fileNameOnly))
    tempFileName = String.Format("{0} ({1})", fileName, count++);
    //THIS CODE IS NEVER REACHED
    output = Path.Combine(folderPath, tempFileName);
    fullPath = output + ".xml";
    //string fullPath = output + ".xml";
    UML, then code

  • FPGA Compilation Error (Some signals were not properly constrained in the design)

    Attempting to compile even simple FPGA VIs is returning in failure for me, and I'm not sure why. This is on windows 7, 32 bit, Xilinx 14.4, LabView 2013, for sbRIO-9632.
    "Some signals were not properly constrained in the design." in the summary.
    and
    "Failed to load library libPort_ExecLoader.dll because of The specified procedure could not be found." in the Xilinx log.
    Can anyone help? Many thanks!
    Attachments:
    summary.txt ‏1 KB
    XilinxLog.txt ‏17 KB

    Hello everyone !
    I use a cRIO-9103 for my project and I attempted to compile a new VI for the FPGA. The former code compiled without problem, but the new one failed with the error "Some signals were not properly constrained in the design". I read the issue that was given in this topic, but the strange thing is that I just added a while loop in my old program to make my new one. 
    I joined to this message the new programm of the FPGA and the Xilinx log (I use Xilinx 10.1). The While Loop which causes problems is called "Traitement des informations envoyées par la centrale inertielle (IMU)". Can someone save me please ?  ^^
    Thanks !
    Attachments:
    Init_9401.vi ‏279 KB
    XilinxLog 10_05_2014 16_00.txt ‏993 KB

  • Compile Error std::bad_alloc is not in the current exception specification

    I get a compile Error when I use the Forte C++ Version 6U1 compiler. I am porting the code from 4.6 to 6U1. The error is generated from the standard new interface header file ....include/CC/new. The compiler options i used are CC -c -features=no%bool . Any help would be highly appreciated.
    Thanks

    One of the header files had a #define std. When I commented this line out the error disappeared. This was in the standard mode.Not sure if the error was due to namespace corruption.
    I finally compiled the program in compatability mode because I would have had to make wholesale changes to the code to make it conform to the new STL components in the standard mode.

  • Compiling error C++: float.h not found

    Dear All,
    I am using a Mid 2011 Macbook Air, 1.8 GHz Intel Core i7 running Mac OS 10.9.4. I have Xcode 5.1.1 and have installed the latest Command Line Tools (Late July 2014). I have homebrew installed the gcc compiler.
    I am currently trying to install the coin-or project BCP from here. I have followed the installation instructions as provided here. The "../configure" command works, I get a positive configure message "configure: Main configuration of Bcp successful". However, the next command "make" fails with the following error message
    $ make
    Making all in CoinUtils
    Making all in src
    /Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
    if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I`echo ../../../CoinUtils/src`      -MT CoinBuild.lo -MD -MP -MF ".deps/CoinBuild.Tpo" -c -o CoinBuild.lo ../../../CoinUtils/src/CoinBuild.cpp; \
      then mv -f ".deps/CoinBuild.Tpo" ".deps/CoinBuild.Plo"; else rm -f ".deps/CoinBuild.Tpo"; exit 1; fi
    g++ -DHAVE_CONFIG_H -I. -I../../../CoinUtils/src -MT CoinBuild.lo -MD -MP -MF .deps/CoinBuild.Tpo -c ../../../CoinUtils/src/CoinBuild.cpp  -fno-common -DPIC -o .libs/CoinBuild.o
    In file included from ../../../CoinUtils/src/CoinBuild.cpp:10:0:
    /usr/local/include/c++/4.9.0/cfloat:41:19: fatal error: float.h: No such file or directory
    #include <float.h>
                       ^
    compilation terminated.
    make[3]: *** [CoinBuild.lo] Error 1
    make[2]: *** [all] Error 2
    make[1]: *** [all-recursive] Error 1
    make: *** [all-recursive] Error 1
    I have dug around a bit, and found threads about Mavericks moving/deleting some header files that gcc relies on. The suggested solution was to install the latest Developer tools, which I have done.
    It looks to me, like it is a compiling error, and the compiler isn't looking for the header at the right place. My problem is, I have no real knowledge about these things, I'm more of a front end programmer. I have tried all fixed I could find on the internet, but nothing seems to work.
    Any further suggestions on how I could get this to work would be very much appreciated.
    Thank you.

    When using GCC, consider replacing <float.h> with <cfloat> which also includes <float.h>, but likely relative to its placement in GCC, not in OS X.
    When you use the OS X command line tools, the implicit path for <float.h> is in /usr/include/c++/4.2.1/tr1
    Your homebrew installed GCC will be looking for <float.h> in:
    /usr/local/lib/gcc/x86_64-apple-darwin13.1.0/4.9.0/include
    You may have to educate GCC where its include files live, and not to be confused with those of Xcode command line tools.

  • Please help suggestions for solving built-only compiler error: 'The VI is not executable. The full development version of LabView is required tofix this error.'

    We have develoepd a software tool and build it on regular basis. It currently runs error free when compiled in the editor, but when we built it and run the executable stand alone we get the error.
    'The VI is not executable. The full development version of LabView is required tofix this error.' plus a broeken error.
    This menas an compiler error that is not present in the editor but in the stand alone version. We tried to identify errors as suggested in several posts in this forum, but so far unsuccesfull.
    As the editor and its compiler do not see the error  and are running fine and the stand alone version just syas 'find the error in the editor' in this case LabView is of no help.
    Can anyone suggest a sensible or 'good practice ' way of searching for the source of this error?
    Our project  comprises hundreds of Vis over several libraries.
    Thanks,
    Chris

    Thanks Craig for all your suggestions.
    We seem to have located the problem in a new vi just added to the package causing conflicts by using the same vi names as other vis already present in the package. Excluding this vi removed the error.
    It seems related to a conflict by having two vis with the same name, which was mentioned by LabView and interactively resolved when running the main vi from the editor. When successfully building the main vi the builder did not mention this conflict and reported a successful build, but when trying to run the executable it gave the cryptic error. The error caused us problems because there was no hint for the cause, just the suggestion to solve this in the editor, while at the same time in the editor the VI was running fine.
    We will post about this in detail after we have positively proven that this actually was the case.
    The .net version issue was already checked.
    Performance was the same on all machines we tested on including the dev machine.
    Debugging was tried nut did not help as the vi could not run (broken arrow). We assumed that debugging only helps in running faulty functioning vi''s. We did not check for broken arrows in sub-vis (after connecting), that could have helped, although our application has hundreds of our own vis.
    In relation to your remark: 
    'Are you using many classes? Have you verified that the proper access scopes are set for functions calling those vis?'
    Could you elaborate on setting access scopes. We were not aware of this option in LabView, although we realize this is a basic element of the underlying c code.
    Ragrds,
    Chris

  • Error message "user is not a member of the remote users group"

    user is member of the remote users group on PC, I did not think about adding domain remote users to local pc remote group I will try that, yes domain login works fine locally and also remotely using vnc over Pertino, just not through rdp over Pertino

    I have a user that win 7 pro PC died replaced with win 7 pro PC, user uses RDP from home Win 7 PC over Pertino to access work PC.
    User is a member of domain Remote users group, user was added to PC remote settings as an authorized user, user gets error everytime not a member. This was working fine with old computer for several months until motherboard died, cannot understand how new computer setup same way now has issue. User is not an admin of local PC. I am pretty sure this would fix the problem but would like to avoid since he is "one of those users" that love to get into a mess. 
    This topic first appeared in the Spiceworks Community

  • I have FF 3.6.25 and can't install the yoville zynga gamebar i get an error msg that its not a valid install package - 207. can someone help me with this so that it will work?

    i'm running ff 3.6.25 and can't install the yoville zynga gamebar the message i get is as follows:
    Firefox could not install the file at http://zynga.ourtoolbar.com/xpi because: Not a valid install package -207
    i installed it on my mom's pc after installing ff to it and it worked fine.

    Hi,
    You may have to update Firefox. Please also check the Firefox version on mom's PC: '''Help''' ('''Alt''' + '''H''') > '''About Firefox'''.
    https://www.mozilla.org/en-US/firefox/new/
    Useful links:
    [https://support.mozilla.com/en-US/kb/Options%20window All about Tools > Options]
    [http://kb.mozillazine.org/About:config Going beyond Tools > Options - about:config]
    [http://kb.mozillazine.org/About:config_entries about:config Entries]
    [https://support.mozilla.com/en-US/kb/Page%20Info%20window Page Info] Tools (Alt + T) > Page Info, Right-click > View Page Info
    [https://support.mozilla.com/en-US/kb/Keyboard%20shortcuts Keyboard Shortcuts]
    [https://support.mozilla.com/en-US/kb/Viewing%20video%20in%20Firefox%20without%20a%20plugin Viewing Video without Plugins]
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder & Files]
    [https://developer.mozilla.org/en/Command_Line_Options#Browser Firefox Commands]
    [https://support.mozilla.com/en-US/kb/Basic%20Troubleshooting Basic Troubleshooting]
    [https://support.mozilla.com/en-US/kb/common-questions-after-upgrading-firefox-36 After Upgrading]
    [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20plugins Troubleshooting Plugins]
    [http://kb.mozillazine.org/Testing_plugins Testing Plugins]

  • Random songs in my music library will not play with an error message "computer does not have access rights" but this is not true. I do, and when I re-type the password, it tells me I already have access rights.  How do I fix this?

    When I try to play songs from itunes, I get an error message that my computer is not authorized.  My songs have all played in the past.  This is something new.  I verified my computer is authorized, and when I try to re-enter the password, it tells me that I am already authorized.  Makes no sense at all.  It's an endless circle.  Also, my shuffle will not sync due to access rights denied.  I did nothing new, I always take the updates.  My shuffle and compter are the same, no changes.  Everything is verified in my itunes account.  For some reason, it is blocking me from half of my music.  Help!

    It's an endless circle.
    See if these instructions help: iTunes repeatedly prompts to authorize computer to play iTunes Store purchases

Maybe you are looking for

  • Firefox will no longer display Unicode symbols after update?

    I am using Firefox on Mac OS X Mountain Lion. Just about two Firefox updates ago (roughly Firefox 14), Unicode symbols suddenly stopped displaying that had been displaying fine-switching to boxes with numbers in them. I have changed my Encoding optio

  • Crystal Report chart with VB6 help...

    Hello!....I m using crystal report with visual basic 6.......i develop a report in crystal report in which i add a chart control......when i see preview in crystal report and move mouse over chart then on Tool tip i get each data point shown on mouse

  • Named Anchor in CS3 - AS3

    Does anyone know how to add a named anchor to a scene in Flash CS3 / AS3? I need the middle part of a scene on the timeline to display at the top of the screen when it first appears. Thanks.

  • Crawl just stops

    Need a little help Got a Content Source that crawls a Custom Repository - the protocol handler is installed and all worked earlier on.. Now when I start a Full Crawl, it just stop after 2 min. It's not the process (mssdmn.exe) that doing a crash - no

  • Help...Can't set up my new MBP wifi...

    Good Day All, Need some help, today I received my new Mac Book Pro...Mac OS X 10.6.7, 2ghz Intel Core i7 and memory 8GB...I turned it on, did my configurations and stuff but now I can't seem to get an internet connection, I have registered my laptop