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

PROTOC FAILED by the version 0.6.1 #110

Open
3 tasks
wangliang181230 opened this issue Nov 23, 2022 · 2 comments
Open
3 tasks

PROTOC FAILED by the version 0.6.1 #110

wangliang181230 opened this issue Nov 23, 2022 · 2 comments

Comments

@wangliang181230
Copy link

wangliang181230 commented Nov 23, 2022

Before submitting a bug report

  • Check the existing issues, please avoid submitting duplicates
  • Check the FAQ for known problems
  • Try asking on Gitter

Describe the bug

one of the *.proto:

syntax = "proto3";

package io.seata.protocol.protobuf;

import "abstractTransactionRequest.proto";
import "branchType.proto";

option java_multiple_files = true;
option java_outer_classname = "AbstractBranchEndRequest";
option java_package = "io.seata.serializer.protobuf.generated";

// PublishRequest is a publish request.
message AbstractBranchEndRequestProto {
    AbstractTransactionRequestProto abstractTransactionRequest = 1;
    string xid = 2;
    /**
    * The Branch id.
    */
    int64 branchId = 3;

    /**
     * The Branch type.
     */
    BranchTypeProto branchType = 4;

    /**
     * The Resource id.
     */
    string resourceId = 5;

    /**
     * The Application data.
     */
    string applicationData = 6;
}

error log:

[INFO] Compiling 45 proto file(s) to E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\target\generated-sources\protobuf\java
[ERROR] PROTOC FAILED: ������̫����

[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\abstractBranchEndRequest.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\abstractBranchEndResponse.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\abstractGlobalEndRequest.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\abstractGlobalEndResponse.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\abstractIdentifyRequest.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\abstractIdentifyResponse.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\abstractMessage.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\abstractResultMessage.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\abstractTransactionRequest.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\abstractTransactionResponse.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\batchResultMessage.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\branchCommitRequest.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\branchCommitResponse.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\branchRegisterRequest.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\branchRegisterResponse.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\branchReportRequest.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\branchReportResponse.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\branchRollbackRequest.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\branchRollbackResponse.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\branchStatus.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\branchType.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\globalBeginRequest.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\globalBeginResponse.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\globalCommitRequest.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\globalCommitResponse.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\globalLockQueryRequest.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\globalLockQueryResponse.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\globalReportRequest.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\globalReportResponse.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\globalRollbackRequest.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\globalRollbackResponse.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\globalStatus.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\globalStatusRequest.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\globalStatusResponse.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\heartbeatMessage.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\mergedResultMessage.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\mergedWarpMessage.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\messageType.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\registerRMRequest.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\registerRMResponse.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\registerTMRequest.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\registerTMResponse.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\resultCode.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\transactionExceptionCode.proto [0:0]: ������̫����
[ERROR] E:\Workspace_Java\3rd-party\alibaba\seata\seata\serializer\seata-serializer-protobuf\src\main\resources\protobuf\io\seata\protocol\transcation\undoLogDeleteRequest.proto [0:0]: ������̫����

error stack:

[ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.6.1:compile (default) on project seata-serializer-protobuf: protoc did not exit cleanly. Review output for more information. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.6.1:compile (default) on project seata-serializer-protobuf: protoc did not exit cleanly. Review output for more information.
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
    at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
Caused by: org.apache.maven.plugin.MojoFailureException: protoc did not exit cleanly. Review output for more information.
    at org.xolstice.maven.plugin.protobuf.AbstractProtocMojo.execute (AbstractProtocMojo.java:579)
    at org.xolstice.maven.plugin.protobuf.AbstractProtocCompileMojo.execute (AbstractProtocCompileMojo.java:32)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
    at org.codehaus.classworlds.Launcher.main (Launcher.java:47)

Environment

os: windows 10
java: 1.8.0_272
maven: 3.6.3

protobuf-maven-plugin: 0.6.1 (Not failed when using version `0.5.0`.)
<plugin>
    <groupId>org.xolstice.maven.plugins</groupId>
    <artifactId>protobuf-maven-plugin</artifactId>
    <configuration>
        <protoSourceRoot>${project.basedir}/src/main/resources/protobuf/io/seata/protocol/transcation/</protoSourceRoot>
        <protocArtifact>
            com.google.protobuf:protoc:3.11.0:exe:${os.detected.classifier}
        </protocArtifact>
    </configuration>
    <executions>
        <execution>
            <goals>
                <goal>compile</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Standalone or IDE
Are you are running Maven inside an IDE, and in that case, which IDE?

Plugin configuration

...

To Reproduce
Steps to reproduce the behavior:

  1. ...
  2. ...

Log output

...

Expected behavior

Additional context

@wangliang181230 wangliang181230 changed the title PROTOC FAILED PROTOC FAILED by the version 0.6.1 Nov 23, 2022
@yuexihan
Copy link

  1. open windows registry
  2. find HKEY_CURRENT_USER\Software\Microsoft\Command Processor
  3. delete Autorun

The error is because cmd.exe always return error due to Autorun.

@tonycody
Copy link

This problem is caused because, the command line arguments are too long. The reason for the long parameters is because the file path is too deep or the number of files is too large.

This problem occurs when using cmd.exe to call protoc.exe. The current project should optimize this call.

You can try placing your project in the root directory of the disk, which can temporarily solve the problem.

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

No branches or pull requests

3 participants