resolved to a type
Dear Sir, I am trying to implement the stix-java proyect but i am having lots of problems when referencing the classes. The following error is shown: ArchiveFileExtension cannot be resolved to a type in the src\main\java\io\digitalstate\stix\coo\extension\types\ArchiveFileExtensionExt.java I also have the same problem with other classes like Artifact, AttackPattern, AutonomousSystem, etc
could you help me to solve this problem Many thanks in advance Ana
Hello Sephen, Could it be possible that the missing classes like AttackPattern are the Domain Objects ? I am trying to use the code and trying to guess what is missing thank you in advance
Can you post a snippet of your code/class you are building.
Attack pattern is a Domain Object as per: https://github.com/StephenOTT/STIX-Java/blob/master/src/main/java/io/digitalstate/stix/sdo/objects/AttackPatternSdo.java#L36
Hello Stephen, thank you for taking time to answer my questions. the problem that I have is that the AttackPattern class is missing
[image: image.png]
/**
- attack-pattern
-
- Attack Patterns are a type of TTP that describe ways that adversaries attempt to compromise targets.
*/ @Value.Immutable @Serial.Version(1L) @DefaultTypeValue(value = "attack-pattern", groups = {DefaultValuesProcessor.class}) @Value.Style(typeAbstract="Sdo", typeImmutable="", validationMethod = Value.Style.ValidationMethod.NONE, additionalJsonAnnotations = {JsonTypeName.class}, depluralize = true) @JsonTypeName("attack-pattern") @JsonSerialize(as = AttackPattern.class) @JsonDeserialize(builder = AttackPattern.Builder.class) @JsonPropertyOrder({"type", "id", "created_by_ref", "created", "modified", "revoked", "labels", "external_references", "object_marking_refs", "granular_markings", "name", "description", "kill_chain_phases"}) @Redactable public interface AttackPatternSdo extends DomainObject {
@NotBlank
@JsonProperty("name")
@JsonPropertyDescription("The name used to identify the Attack
Pattern.") @Redactable(useMask = true) String getName();
@JsonProperty("description")
@JsonInclude(value = NON_EMPTY, content= NON_EMPTY)
@JsonPropertyDescription("A description that provides more details and
context about the Attack Pattern, potentially including its purpose and its key characteristics.") @Redactable Optional<String> getDescription();
@JsonProperty("kill_chain_phases")
@JsonInclude(value = NON_EMPTY, content= NON_EMPTY)
@JsonPropertyDescription("The list of kill chain phases for which this
attack pattern is used.") @Redactable Set<KillChainPhaseType> getKillChainPhases();
} I have searched in the repository in case I did something wrong at the time of cloning but i can not find it ¿do i have to build the class with the AttackPattern attributes ?
kind regards Ana
On Mon, Jun 7, 2021 at 1:26 PM Stephen Russett @.***> wrote:
Can you post a snippet of your code/class you are building.
Attack pattern is a Domain Object as per: https://github.com/StephenOTT/STIX-Java/blob/master/src/main/java/io/digitalstate/stix/sdo/objects/AttackPatternSdo.java#L36
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/StephenOTT/STIX-Java/issues/110#issuecomment-855844857, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHLGNKG2QNO45BR3WY4FGFLTRSUE7ANCNFSM456IO6MA .
If the class file: https://github.com/StephenOTT/STIX-Java/blob/master/src/main/java/io/digitalstate/stix/sdo/objects/AttackPatternSdo.java#L36 is missing from your cloned version then I would suggest to reclone.
Which branch did you clone from?
Hello Stephen, the missing class I am referring to is AttackPattern.class. *but this is just one of them, there are others like *ArchiveFileExtension, Artifact.class,AttackPattern.class,AutonomousSystem.class that are also missing
[image: image.png]
On Thu, Jun 10, 2021 at 8:11 PM Stephen Russett @.***> wrote:
If the class file: https://github.com/StephenOTT/STIX-Java/blob/master/src/main/java/io/digitalstate/stix/sdo/objects/AttackPatternSdo.java#L36 is missing from your cloned version then I would suggest to reclone.
Which branch did you clone from?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/StephenOTT/STIX-Java/issues/110#issuecomment-858857637, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHLGNKBKPMFIEA3LIIXB3KDTSD537ANCNFSM456IO6MA .
sorry the branch i have check out is dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final https://github.com/StephenOTT/STIX-Java/tree/dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final https://github.com/StephenOTT/STIX-Java/tree/dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final Regards Ana
On Fri, Jun 11, 2021 at 7:55 AM Ana Gutierrez @.***> wrote:
Hello Stephen, the missing class I am referring to is AttackPattern.class. *but this is just one of them, there are others like *ArchiveFileExtension, Artifact.class,AttackPattern.class,AutonomousSystem.class that are also missing
[image: image.png]
On Thu, Jun 10, 2021 at 8:11 PM Stephen Russett @.***> wrote:
If the class file: https://github.com/StephenOTT/STIX-Java/blob/master/src/main/java/io/digitalstate/stix/sdo/objects/AttackPatternSdo.java#L36 is missing from your cloned version then I would suggest to reclone.
Which branch did you clone from?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/StephenOTT/STIX-Java/issues/110#issuecomment-858857637, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHLGNKBKPMFIEA3LIIXB3KDTSD537ANCNFSM456IO6MA .
I have been tracing the commits to see where the classes were omitted and I found that, for example in the commit c15b925797d37c5c0c5f5b93a0e4ffd8fe93aaef [c15b925]
the class Bundle was removed but this class is still been use
On Fri, Jun 11, 2021 at 8:23 AM Ana Gutierrez @.***> wrote:
sorry the branch i have check out is dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final https://github.com/StephenOTT/STIX-Java/tree/dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final https://github.com/StephenOTT/STIX-Java/tree/dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final Regards Ana
On Fri, Jun 11, 2021 at 7:55 AM Ana Gutierrez @.***> wrote:
Hello Stephen, the missing class I am referring to is AttackPattern.class. *but this is just one of them, there are others like *ArchiveFileExtension, Artifact.class,AttackPattern.class,AutonomousSystem.class that are also missing
[image: image.png]
On Thu, Jun 10, 2021 at 8:11 PM Stephen Russett @.***> wrote:
If the class file: https://github.com/StephenOTT/STIX-Java/blob/master/src/main/java/io/digitalstate/stix/sdo/objects/AttackPatternSdo.java#L36 is missing from your cloned version then I would suggest to reclone.
Which branch did you clone from?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/StephenOTT/STIX-Java/issues/110#issuecomment-858857637, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHLGNKBKPMFIEA3LIIXB3KDTSD537ANCNFSM456IO6MA .