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

Queries involving name, guid, classification fail for IFC4 #667

Closed
hlg opened this Issue Dec 5, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@hlg
Member

hlg commented Dec 5, 2017

When running queries that involve name, guid, or classification on IFC4 models, they fail with the following exception:

Caused by: java.lang.UnsupportedOperationException: null
        at org.bimserver.database.queries.QueryNamesAndTypesStackFrame.getOidOfGuidAlternative(QueryNamesAndTypesStackFrame.java:95)
        at org.bimserver.database.queries.QueryNamesAndTypesStackFrame.<init>(QueryNamesAndTypesStackFrame.java:60)
        at org.bimserver.database.queries.QueryPartStackFrame.process(QueryPartStackFrame.java:124)
        at org.bimserver.database.queries.QueryObjectProvider.next(QueryObjectProvider.java:143)
        ... 33 common frames omitted

This failure is due to the missing singleindex annotation of the queried attributes. These annotations are added to the respective IFC2x3 elements in migrations Step0022.java and Step0027.java. For IFC4 similar annotations would be necessary. Be aware that for IfcClassificationReference the attribute ItemReference was renamed to Identifier in IFC4. This can be accessed for both schemas through its position, see also f6c0182.

@rubendel

This comment has been minimized.

Show comment
Hide comment
@rubendel

rubendel Dec 11, 2017

Member

Thanks for the clear report! Has been fixed in 2e4c74c. There are probably more places where IFC4 support lacks, keep em coming @hlg :)

Member

rubendel commented Dec 11, 2017

Thanks for the clear report! Has been fixed in 2e4c74c. There are probably more places where IFC4 support lacks, keep em coming @hlg :)

@hlg

This comment has been minimized.

Show comment
Hide comment
@hlg

hlg Jan 19, 2018

Member

Tested for name and classification queries as well.

Member

hlg commented Jan 19, 2018

Tested for name and classification queries as well.

@hlg hlg closed this Jan 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment