Java Persistence API and creation of databases
Hi All
I have designed a small address book application which uses a database to store the information. I have used the new Java Persistence API to take care of my transactions and querrys with the database. This works great for one set database which is generated the first time the application runs and is used all the time.
However I would like to make it so that the user can create a new address book (database) with a different name, I am not sure how I would do this using the Java Persistence API. I know the persistence.xml file must be placed in the META-INF directory of the source, so how would I be able manipulate the file or could I place the file somewhere else.
David
I am using the Derby database. I can create a database by passing the create command when I create the entity Manager like so:
Connection c = DriverManager.getConnection("jdbc:derby:AddressBook;create=true", "app", "app");My problem is that as I understand it the persistence.xml file must know the name of the database. Unless there is another way of setting this. The line in the persistence file I am referring to is:
<property name="toplink.jdbc.url" value="jdbc:derby:AddressBook"/>I wonder if I can progamatically set this value so that I have a default database in the persistence.xml and others can then create there own.
David
Similar Messages
-
DAO pattern and Java Persistence API
Hi
This is a question for anyone who might be familiar with the standard DAO design pattern and the Java Persistence API (JPA - part of EJB3). I'm new to this technology, so apologies for any terminology aberrations.
I am developing the overall architecture for an enterprise system. I intend to use the DAO pattern as the conceptual basis for all data access - this data will reside in a number of forms (e.g. RDBMS, flat file). In the specific case of the RDBMS, I intend to use JPA. My understanding of JPA is that it does/can support the DAO concept, but I'm struggling to get my head around how the two ideas (can be made to) relate to each other.
For example, the DAO pattern is all about how business objects, data access objects, data transfer objects, data sources, etc relate to each other; JPA is all about entities and persistence units/contexts relate to each other. Further, JPA uses ORM, which is not a DAO concept.
So, to summarise - can DAO and JPA work together and if so how?
Thanks
P.S. Please let me know if you think this topic would be more visible in another forum (e.g. EJB).Thanks, duffymo, that makes sense. However ... having read through numerous threads in which you voice your opinion of the DAO World According to Sun, I'd be interested to know your thoughts on the following ...
Basically, I'm in the process of proposing an enterprise system architecture, which will use DAO as the primary persistence abstraction, and DAO + JPA in the particular case of persistence to a RDBMS. In doing so, I'd like to illustrate the various elements of the DAO pattern, a la the standard class diagram that relates BusinessObject / DataAccessObject / DataSource / TransferObject (http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html). With reference to this model, I know that you have a view on the concept of TransferObject (aka ValueObject?) - how would you depict the DAO pattern in its most generic form? Or is the concept of a generic DAO pattern compromised by the specific implementation that is used (in this case JPA)? -
Newbie question on Java Persistence API - Entity Beans
Hi All,
I am basically new to Entities and the Java Persistence API. My question is, when using a container managed EntityManager, do I have to manually tidy-up any resources? Say for example, do I have to explicitly close the database connection (if ever I have that ability)? Invoke close() on EntityManager?
- PatYou don't have to. That's what they mean by container managed. The container does it for you.
In fact you will get an IllegalStateException if you call close on a container-managed EntityManager. -
Question about Java Persistence API.
is Java Persistence API a Object-Relational Mapping Framework, or the java Programmer can use this API to do mapping between Java Applicatiion and Relational Database ??
http://java.sun.com/javaee/overview/faq/persistence.jsp
-
Java persistence api : ejb ql
Hi,
I am using java persistence api(over oracle toplinks)
I have an entity customer and another entity contacts.
customer is mapped with contact as one to many.
the contact have a field primarycontact.
I want to get the contact name from contacts for a customer where primarycontact field is true. and set this contact name as a field customercontact which is a string in customer..
I got a way by executing multiple queries.
but is it possible to do this in single query using ejb ql?
Any help will be greatly appreciated..
Thanks in advance....@Id
@GeneratedValue( @GeneratedValue(strategy= GenerationType.TABLE, generator="SOMENAME")
public int setId() {
returrn this.id;
in the database you need to create table using following commands
CREATE TABLE SEQUENCE
SEQ_NAME VARCHAR(50),
SEQ_COUNT DECIMAL(15)
and insert a row initally with the same "SOMENAME" like
insert into sequence values ( "SOMENAME", 1);
you can get the next id by adding 50(default) to "SELECT SEQ_COUNT FROM SEQUENCE WHERE SEQ_NAME = "SOMENAME"
hope this provides a solution. -
Calling java function load and stored in database
Hi ,
I try to call a java fonction loaded and published in database (Oracle 8.1.7.4ee). this function call an OS command ... the PL/SQL call is completed but de command set in parameters function is not execute ... next is the code :
import java.lang.*;
import java.io.*;
public class JShell {
public static void execute (String command) throws IOException {
try {
Process child = Runtime.getRuntime().exec(command);
} catch (IOException e) {
calling this function with java main is OK
import java.lang.*;
import java.io.*;
public class TestJShell {
static public void main(String args[]) throws Exception
JShell.execute(args[0].toString());
java TestJShell 'cp /test/myfile.txt /test/myfile.sav'
copy is donethen when the fuction is loaded and published in database
as
loadjava -user ../.. JShell.class
CREATE OR REPLACE PROCEDURE JShell_exe (Commande in VARCHAR2) AS LANGUAGE JAVA NAME 'JShell.execute(java.lang.String)';run is
CALL ell_exe ('cp /test/myfile.txt /test/myfile.sav');
call is completed but no copy is doneCan somebody help me ? thanking you in anticipation;Firs things first:
1)Which copy of your class is loaded in the DB ( it seems that you have two different classes JShell and TestJShell ).
2)Do you have permisions for file manipulation ?
3)Do you get any errors ? -
Passing Array of java objects to and from oracle database-Complete Example
Hi all ,
I am posting a working example of Passing Array of java objects to and from oracle database . I have struggled a lot to get it working and since finally its working , postinmg it here so that it coudl be helpful to the rest of the folks.
First thinsg first
i) Create a Java Value Object which you want to pass .
create or replace and compile java source named Person as
import java.sql.*;
import java.io.*;
public class Person implements SQLData
private String sql_type = "PERSON_T";
public int person_id;
public String person_name;
public Person () {}
public String getSQLTypeName() throws SQLException { return sql_type; }
public void readSQL(SQLInput stream, String typeName) throws SQLException
sql_type = typeName;
person_id = stream.readInt();
person_name = stream.readString();
public void writeSQL(SQLOutput stream) throws SQLException
stream.writeInt (person_id);
stream.writeString (person_name);
ii) Once you created a Java class compile this class in sql plus. Just Copy paste and run it in SQL .
you should see a message called "Java created."
iii) Now create your object Types
CREATE TYPE person_t AS OBJECT
EXTERNAL NAME 'Person' LANGUAGE JAVA
USING SQLData (
person_id NUMBER(9) EXTERNAL NAME 'person_id',
person_name VARCHAR2(30) EXTERNAL NAME 'person_name'
iv) Now create a table of Objects
CREATE TYPE person_tab IS TABLE OF person_t;
v) Now create your procedure . Ensure that you create dummy table called "person_test" for loggiing values.
create or replace
procedure give_me_an_array( p_array in person_tab,p_arrayout out person_tab)
as
l_person_id Number;
l_person_name Varchar2(200);
l_person person_t;
l_p_arrayout person_tab;
errm Varchar2(2000);
begin
l_p_arrayout := person_tab();
for i in 1 .. p_array.count
loop
l_p_arrayout.extend;
insert into person_test values(p_array(i).person_id, 'in Record '||p_array(i).person_name);
l_person_id := p_array(i).person_id;
l_person_name := p_array(i).person_name;
l_person := person_t(null,null);
l_person.person_id := l_person_id + 5;
l_person.person_name := 'Out Record ' ||l_person_name ;
l_p_arrayout(i) := l_person;
end loop;
p_arrayout := l_p_arrayout;
l_person_id := p_arrayout.count;
for i in 1 .. p_arrayout.count
loop
insert into person_test values(l_person_id, p_arrayout(i).person_name);
end loop;
commit;
EXCEPTION WHEN OTHERS THEN
errm := SQLERRM;
insert into person_test values(-1, errm);
commit;
end;
vi) Now finally create your java class which will invoke the pl/sql procedure and get the updated value array and then display it on your screen>Alternatively you can also check the "person_test" tbale
import java.util.Date;
import java.io.*;
import java.sql.*;
import oracle.sql.*;
import oracle.jdbc.driver.*;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
public class ArrayDemo
public static void passArray() throws SQLException
Connection conn = getConnection();
ArrayDemo a = new ArrayDemo();
Person pn1 = new Person();
pn1.person_id = 1;
pn1.person_name = "SunilKumar";
Person pn2 = new Person();
pn2.person_id = 2;
pn2.person_name = "Superb";
Person pn3 = new Person();
pn3.person_id = 31;
pn3.person_name = "Outstanding";
Person[] P_arr = {pn1, pn2, pn3};
Person[] P_arr_out = new Person[3];
ArrayDescriptor descriptor =
ArrayDescriptor.createDescriptor( "PERSON_TAB", conn );
ARRAY array_to_pass =
new ARRAY( descriptor, conn, P_arr);
OracleCallableStatement ps =
(OracleCallableStatement )conn.prepareCall
( "begin give_me_an_array(?,?); end;" );
ps.setARRAY( 1, array_to_pass );
ps.registerOutParameter( 2, OracleTypes.ARRAY,"PERSON_TAB" );
ps.execute();
oracle.sql.ARRAY returnArray = (oracle.sql.ARRAY)ps.getArray(2);
Object[] personDetails = (Object[]) returnArray.getArray();
Person person_record = new Person();
for (int i = 0; i < personDetails.length; i++) {
person_record = (Person)personDetails;
System.out.println( "row " + i + " = '" + person_record.person_name +"'" );
public static void main (String args[]){
try
ArrayDemo tfc = new ArrayDemo();
tfc.passArray();
catch(Exception e) {
e.printStackTrace();
public static Connection getConnection() {
try
Class.forName ("oracle.jdbc.OracleDriver");
return DriverManager.getConnection("jdbc:oracle:thin:@<<HostNanem>>:1523:VIS",
"username", "password");
catch(Exception SQLe) {
System.out.println("IN EXCEPTION BLOCK ");
return null;
and thats it. you are done.
Hope it atleast helps people to get started. Comments are appreciated. I can be reached at ([email protected]) or [email protected]
Thanks
Sunil.sHi Sunil,
I've a similar situation where I'm trying to insert Java objects in db using bulk insert. My issue is with performance for which I've created a new thread.
http://forum.java.sun.com/thread.jspa?threadID=5270260&tstart=30
I ran into your code and looked into it. You've used the Person object array and directly passing it to the oracle.sql.ARRAY constructor. Just curios if this works, cos my understanding is that you need to create a oracle.sql.STRUCT out of ur java object collection and pass it to the ARRAY constructor. I tried ur way but got this runtime exception.
java.sql.SQLException: Fail to convert to internal representation: JavaBulkInsertNew$Option@10bbf9e
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.oracore.OracleTypeADT.toDatum(OracleTypeADT.java:239)
at oracle.jdbc.oracore.OracleTypeADT.toDatumArray(OracleTypeADT.java:274)
at oracle.jdbc.oracore.OracleTypeUPT.toDatumArray(OracleTypeUPT.java:115)
at oracle.sql.ArrayDescriptor.toOracleArray(ArrayDescriptor.java:1314)
at oracle.sql.ARRAY.<init>(ARRAY.java:152)
at JavaBulkInsertNew.main(JavaBulkInsertNew.java:76)
Here's a code snippet I used :
Object optionVal[] = {optionArr[0]}; // optionArr[0] is an Option object which has three properties
oracle.sql.ArrayDescriptor empArrayDescriptor = oracle.sql.ArrayDescriptor.createDescriptor("TT_EMP_TEST",conn);
ARRAY empArray = new ARRAY(empArrayDescriptor,conn,optionVal);If you visit my thread, u'll see that I'm using STRUCT and then pass it to the ARRAY constructor, which works well, except for the performance issue.
I'll appreciate if you can provide some information.
Regards,
Shamik -
EJB 3.0 Persistence API and Stored Procedures
Does the EJB 3.0 Persistence API in any way prescribe or facilitate the use of Stored Procedure calls? Given the recent popularity of using (database) server APIs consisting of Stored Procedures that are addressed by ORM frameworks for performing the DML operations and of course the general usefulness of stored procedures for specific data related operations, there definitely is a need for clarity on using the straightforward Persistence operations in combination with calls to Stored Procedures. Can we use the Native Query for executing CallableStatements? Can we get to a Connection instance from the EntityManager? Can we easily use the results from a Stored Procedure invocation to refresh our Domain Objects - or is that all application logic in which the EntityManager cannot help us?
If the spec does not help us at this point, do you know how TopLink will deal with this topic?
Thanks for any help you can give me!
Best regards,
Lucas JellemaI'm am also interested in a response to this post. I've just upgraded to JDeveloper 10.1.3.1 and am interested in making calls to stored procedures.
I've found examples of just creating my own session beans but it seems I would have to hard code the datasource name. Does anyone know if I can get around this using the entity manager supplied by the tool?
thanks,
Dan -
Best way to combine Java Persistence API (JPA) with Visual Web Pack (VWP)?
I like the JPA/Hibernate development approach to create the database elements from JAVA classes.
This way one gets rid of the need to keep JAVA code and the database in sync.
However I have not yet found a good way on how to use JPA from the netbeans VWP.
Note that I have found the tutorial on how to use the IDE with hibernate and it works without problems.
However I think this tutorial does not really implement a good Model/View/Controller approach as it is done in the enterprise pack.
Here you have a controller session bean that deals with all the persistence logic and that exposes properties through a DataModel to the application.
There is no need to encapsulate logic in inherited classes of the ObjectListDataProvider.
Maybe an example makes it more clear:
If we stay with the hibernate tutorial that we have "Animals" and "Pavillion" entities.
How would one efficiently design a "Table" component that shows a list of all Animals and their Pavillions.
With the VWP approach it is quite clear: you create a RowSet with the inner/left join between Animals and Pavillions.
But how would you do it with JPA?You said:
"If we stay with the hibernate tutorial that we have "Animals" and "Pavillion" entities.
How would one efficiently design a "Table" component that shows a list of all Animals and their Pavillions.
With the VWP approach it is quite clear: you create a RowSet with the inner/left join between Animals and Pavillions.
But how would you do it with JPA?"
I have the exact same question. Have you found the answer on how to "join" entities and display them on visual web table component? -
Hi! I am trying to learn to use the http://www.devx.com/Java/Article/33650/ api manually, i tried using netbeans 6.0 for it but i'm not very sure what it does so i am going to try it manually now. I've read these 2 articles by Antonio Goncalves
(http://www.devx.com/Java/Article/33650/ && http://www.devx.com/Java/Article/33906/) it doesn't look very difficult at first but the thing is in netbeans 6.0 when i try to use the annotations,@Inheritance for example, It autocompletes but i don't see the javadoc it says ("Javadoc not found"). I already added the javaee5 documentation to the javaplataform manager but it doesn't do the trick.
Anybody can help? Also if you know any kind of tutorial for the persistence api if you could point me towards there it would be nice.
And finally sorry if i have misplaced this post, I couldn't find a better place.
Thanks, JoaquinHi! I am trying to learn to use the http://www.devx.com/Java/Article/33650/ api manually, i tried using netbeans 6.0 for it but i'm not very sure what it does so i am going to try it manually now. I've read these 2 articles by Antonio Goncalves
(http://www.devx.com/Java/Article/33650/ && http://www.devx.com/Java/Article/33906/) it doesn't look very difficult at first but the thing is in netbeans 6.0 when i try to use the annotations,@Inheritance for example, It autocompletes but i don't see the javadoc it says ("Javadoc not found"). I already added the javaee5 documentation to the javaplataform manager but it doesn't do the trick.
Anybody can help? Also if you know any kind of tutorial for the persistence api if you could point me towards there it would be nice.
And finally sorry if i have misplaced this post, I couldn't find a better place.
Thanks, Joaquin -
Java Communications API and Java SDK 1.4.2
I just installed the Java Communications API 2.0 on my Windows XP system, with JDK 1.4.2. As per the install instructions, I copied files from the zip into my /lib and /bin directories and set the classpath. However, when I attempt to compile any of the samples, the compiler displays a large number of errors. I know the API documentation only references JDK1.2 -- are there any special tricks to installing on newer JDKs, or will I need to acquire an older JDK to develop?
My path variable is still not being set! Here is the content of my autoexec.bat located on the root directory of C:\
rem - By Groove Setup
PATH=%PATH%;"C:\Program Files\Groove Networks\Groove\Bin"
PATH=%PATH%;C:\PROGRAM FILES\J2SDK1.4.2_07\BIN
/code]
When I type 'path' at the MSDOS C:\ prompt, I receive the following in the get the following:C:\WINDOWS;C:\WINDOWS\COMMAND;\C:\PROGRAM FILES\GROOVE NETWORKS\GROOVE\BIN
As an aside, I noticed that when I perform a search of the my hard drive (c:\), I find two autoexec.bat files. One at the root, and the other in C:\Windows\Command\EBD.
I believe the instructions stated to modify the autoexec.bat at the root directory.
TIA for any assistance. This is really becoming a nusance and taking up quite a bit of my time trying to resolve this problem. -
Object, Query and Java Persistence API
Hello Java Programmers.
Question to Object handling with Query results and evaluation.
Example:
one table with 3 Columns
Tablename = ISO6933
Column 1 = UID
Column 2 = language name
Column 3 = language long name
data in database:
C1 = 1
C2 = "ger"
C3 = "german"
read the data from database with EntityManagerFactory and EntityManager
Query query = em.createNativeQuery("SELECT * FROM ISO6933");Final to - Query (Persistence) to Choice (AWT)
Search short code for example!
query.setFirstResult(0); // first element -> possible?
java.util.List queryList = query.getResultList();
// warnings -> List is a raw type. References to generic type List<E> should be parameterized
java.awt.List list = new List();
list.add(queryList.toString()); // for one element in the result, for more elements for/next loop
// = [1,ger,german]I do not want to use
- StringTokenizer
- String.split
(Cast from java.util.List to java.awt.List = Type mismatch: cannot convert from List to List)
for one elements from [1,ger,german]
final to
1
ger
german
in the AWT List()no answer? = is an answer !
the normal solution would be for example.
Query query = em.createNativeQuery("SELECT * FROM ISO693_3"); // create query
query.setFirstResult(0); // first element
Object[] objectList = query.getResultList().toArray();
// objectList[X] = UID,LANGUAGE_ID,LANGUAGE_NAME
int intLength = objectList.length; // Length
StringTokenizer token; // parser
String string = new String(); // temp
for (int i1=0;i1<intLength;i1++)
string = objectList[i1].toString();
string = string.substring(1, string.length()-1);
token = new StringTokenizer(string, ",");
while (token.hasMoreElements())
list.add(token.nextToken().trim()); // the next element and clean string
}I look for however a better solution!
Best greetings -
Java Persistence API + mySQL and East Europe characters
Hi,
I use Sun Application Server 9.0 and mySQL 4.1.20 on Linux. When I put data (with jsf form) into my database table everything is displayed correctly until I restart application server (or redeploy my web app). After restarting server non-ascii characters look strange. I suppose that there is a problem with character coding (between apps server and database) but I can't find any solution. I use UTF-8 character coding both in database fields and for displaying jsf pages.
There are't any problems when I use Derby database for starage data.
ThanksCan you give some more information ?
Are you using netbeans 5.5 or doing this program standalone and interfacing
directly with appserver ?
Can you send a pointer to a gif of the incorrect looking characters ?
Can you elaborate about putting data using jsf form and some details
or extract from the code that writes or reads the data ?
Do the names of your table or columns have the european characters
in them or is it just the data ?
Thanks for your help.
>
Thanks
Hi,
I use Sun Application Server 9.0 and mySQL 4.1.20 on
Linux. When I put data (with jsf form) into my
database table everything is displayed correctly
until I restart application server (or redeploy my
web app). After restarting server non-ascii
characters look strange. I suppose that there is a
problem with character coding (between apps server
and database) but I can't find any solution. I use
UTF-8 character coding both in database fields and
for displaying jsf pages.
There are't any problems when I use Derby database
for starage data.
Thanks -
JPA, java persistence Api, troubleshooting
Hi everybody.
I have a small but boring problem.
I am new at Netbeans and Java Sdk.
I downloaded Netbeans 6.1 and SDK 6.
I tried to exercise "simple database application" in the netbeans web page.
A error encountered that:
24.Tem.2008 10:04:16 org.jdesktop.application.Application$1 run
SEVERE: Application class simpleAp.simpleAp failed to launch
*javax.persistence.PersistenceException: No Persistence provider for EntityManager named simpleAppPU*: The following providers:
oracle.toplink.essentials.PersistenceProvider
oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
Returned null to createEntityManagerFactory.
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:154)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
I can't fix this. anybody know the solution??
hanks, good work.Assalamu Alaikum,
Check in persistence.xml whether persistence-unit is same in Persistence.createEntityManagerFactory*("simpleAppPU")* or not. It should be same.
persistence.xml is like as follows:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="*simpleAppPU*" transaction-type="RESOURCE_LOCAL">
<provider>oracle.toplink.essentials.PersistenceProvider</provider>
<class>Users</class>
<properties>
<property name="toplink.jdbc.user" value="root"/>
<property name="toplink.jdbc.password" value="password"/>
<property name="toplink.jdbc.url" value="jdbc:mysql://localhost:3306/innosched"/>
<property name="toplink.jdbc.driver" value="com.mysql.jdbc.Driver"/>
</properties>
</persistence-unit>
</persistence> -
HR transactions and functionality and creation of Database view
Hi Guys
I am new to HR module . can anybody send me the list of transaction codes with HR functionalities.
I also have to made a database view from hrp1001 and hrp1010 table to list all chief positions who are head of business group , Business unit , Site etc .
Could you help me in creating this databse view.Hi,
These are HR Infotypes
0000 Events
0001 Org assignment
0002 Personal info
0003 Payroll data
0007 Work time
0008 Basic pay
0014 Reoccurring pay
0015 1 X pay
0027 Cost Center
0041 Event Dates
0057 Membership dues
0165 Over ride to limits on deductions
0167 Health
0168 Insurance
0169 Savings
0170 Spending
0194 Garnishment reduction
0195 Garnishment order
0207 Residence Tax
0208 Work Tax
0209 Unemployment Tax
0210 Withholding
0216 Garnishment adjustment
0221 Adjustment
0267 Off cycle
2005 OT
2010 Catts direct to cluster
1000 Infotypes 1000 1999 are PD Relationship infotypes
Logical Database (PNP) ·
Programming with Infotypes ·
Processing Time infotypes/Cluster ·
Processing Payroll infotypes/Cluster
In OM level hrp 1001 and 1010 will be there.
If u want total transactions goto SE11->TSTC Table.
****POINTS TO BE CONSIDERD
Thanks
P.SRIKANTH
Maybe you are looking for
-
HI, I am just started with EJB. I am getting getting the following exception while running the client Program javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an ap
-
BPC 5.1 Business Process Flows
Has anyone experienced a situation where when you kick off a BPF to load data for example recieve an error stating that the package doesn't exist or you don't have rights to run the package? Using the same login credentials, if I run it directly wit
-
Hello all, All in the title. I use always time_waited.v$session_active_history to understand why our sessions are waiting. But, what is the utility of wait_time column ? I understand that it gives the time waited for the last event, but how this info
-
Muse crashed while saving my file, now the file is corrupt.
I was making some new changes to my Muse site (literally 2) and went to save it. Muse, even though it opened the file from recent sites, asked me to locate the file when I said "Save." So I navigated to where the file was saved and hit "Save" again.
-
Hi, I am trying to register in iOS developer program but it gives "An unknown error occurred. Please try again.". I tried different browsers (Google Crome, firefox, IE, safari), I also tried registering from iPad but the same error occured, I am tryi