Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"java.lang.IllegalStateException: Found no mapping for -102" exception #806

Closed
abdelrahmansamir opened this issue Jun 15, 2014 · 7 comments
Closed
Labels
bug
Milestone

Comments

@abdelrahmansamir
Copy link

@abdelrahmansamir abdelrahmansamir commented Jun 15, 2014

When i am trying to export [generate java classes] from OracleXE112_Win64, i got an error
and some generated java classes have "class not found" exception

code trace:-
Exception in thread "main" java.lang.IllegalStateException: Found no mapping for -102 (WWV_FLOW_WORKSHEET_NOTIFY.START_DATE)
at com.mysema.query.sql.codegen.MetaDataExporter.handleColumn(MetaDataExporter.
java:272)
at com.mysema.query.sql.codegen.MetaDataExporter.handleTable(MetaDataExporter.
java:347)
at com.mysema.query.sql.codegen.MetaDataExporter.export(MetaDataExporter.
java:242)

my Querydsl version 3.4.0

there is my code:-

    MetaDataExporter exporter = new MetaDataExporter();
    exporter.setPackageName(packageName);
    exporter.setTargetFolder(new File(generationPath));
    exporter.export(dbConnection.getMetaData());

the exception occurred in the last line of code.

@abdelrahmansamir abdelrahmansamir changed the title "java.lang.IllegalStateException: Found no mapping for -102" exception "java.lang.IllegalStateException: Found no mapping for -102" exception #789 Jun 15, 2014
@abdelrahmansamir abdelrahmansamir changed the title "java.lang.IllegalStateException: Found no mapping for -102" exception #789 "java.lang.IllegalStateException: Found no mapping for -102" exception #789 Jun 15, 2014
@abdelrahmansamir abdelrahmansamir changed the title "java.lang.IllegalStateException: Found no mapping for -102" exception #789 "java.lang.IllegalStateException: Found no mapping for -102" exception Jun 15, 2014
@timowest
Copy link
Member

@timowest timowest commented Jun 15, 2014

Thanks for the bug report. Could you also provide a CREATE TABLE clause to reproduce the issue?

@timowest timowest added the bug label Jun 15, 2014
@abdelrahmansamir
Copy link
Author

@abdelrahmansamir abdelrahmansamir commented Jun 15, 2014

There is no CREATE TABLE clause, only the code above.
Is there something i missed?

thanks for your time

@timowest
Copy link
Member

@timowest timowest commented Jun 15, 2014

How does WWV_FLOW_WORKSHEET_NOTIFY look like?

@timowest
Copy link
Member

@timowest timowest commented Jun 15, 2014

Ok, looks like WWV_FLOW_WORKSHEET_NOTIFY is a table of an Oracle internal schema. I was now able to reproduce the issue.

A workaround is to use the schemaPattern when exporting the tables.

@timowest timowest added this to the 3.4.1 milestone Jun 15, 2014
@timowest timowest added the fixed label Jun 15, 2014
@abdelrahmansamir
Copy link
Author

@abdelrahmansamir abdelrahmansamir commented Jun 18, 2014

thanks, it is working.

@timowest timowest modified the milestone: 3.4.1 Jun 25, 2014
@timowest
Copy link
Member

@timowest timowest commented Jun 29, 2014

Released in 3.4.1

@timowest timowest closed this Jun 29, 2014
@abdelrahmansamir
Copy link
Author

@abdelrahmansamir abdelrahmansamir commented Jun 30, 2014

thank you very much.

2014-06-29 13:08 GMT+02:00 Timo Westkämper notifications@github.com:

Released in 3.4.1

Reply to this email directly or view it on GitHub
#806 (comment).

,best regards

Abdelrahman

Abdelrahman Samir
Alazhar University
Systems and Computers Engineering
IEEE Egypt Section
Email: abdelrahman.halawa@ieee.org.eg
Cell phone: +2 0111 954 63 75

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.